/* iTurnus. Alt er bygget på døgnet: dag, aften og natt. */

:root {
  --natt: #0B1233;
  --natt-2: #121B45;
  --ink: #0B1233;
  --ink-2: #4A5170;
  --ink-3: #868CA6;
  --paper: #F5F6F8;
  --card: #FFFFFF;
  --line: rgba(11, 18, 51, 0.09);
  --dag: #FFB01F;
  --aften: #FF4D8D;
  --nattvakt: #5B5BFF;
  --ok: #1FAF78;
  --fri: #ECEEF3;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017 19.5%, 1.061 22.4%, 1.067 25.4%, 1.038 30.9%, 1.005 37.1%, 0.996 44.4%, 1.001 62.4%, 1);

  --nav-h: 56px;
  --gutter: clamp(20px, 4vw, 40px);
  --maxw: 1180px;
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 32px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.47 var(--font);
  letter-spacing: -0.016em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.num { font-family: var(--font-round); font-variant-numeric: tabular-nums; }
.w { white-space: nowrap; }

/* ---------- Typografi ---------- */

.h2 {
  font: 700 clamp(34px, 4.6vw, 60px)/1.05 var(--font-display);
  letter-spacing: -0.034em;
  text-wrap: balance;
}

.lead {
  margin-top: 18px;
  max-width: 46ch;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.42;
  letter-spacing: -0.018em;
  color: var(--ink-2);
  text-wrap: pretty;
}

.body-2 { margin-top: 14px; max-width: 46ch; color: var(--ink-2); }

.section { padding-block: clamp(96px, 14vh, 168px); }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 7vh, 80px); }

/* ---------- Knapper ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.012em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .5s var(--spring), background-color .25s, color .25s, box-shadow .25s;
}
.btn:active { transform: scale(.96); }
.btn-sm { height: 34px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1D2758; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #E9ECF5; }

.btn-glass {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- Navigasjon ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  color: var(--ink);
  transition: color .45s var(--ease);
  --logo-dot: var(--ink);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 246, 248, 0.74);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--line);
  transition: background-color .45s var(--ease), box-shadow .45s var(--ease);
}
.nav-inner { position: relative; display: flex; align-items: center; gap: 32px; }

.nav-dark .nav { color: #fff; --logo-dot: #fff; }
.nav-dark .nav::before { background: rgba(6, 11, 34, 0.32); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07); }
.nav-dark .nav .btn-primary { background: #fff; color: var(--ink); }

.brand { display: inline-flex; align-items: center; }
/* Ordmerket er bare navnet, slik det står i appen. */
/* Logoen (samme som appens Logo.jsx): Inter, dotless ı + blå avrundet firkant
   i stedet for prikk. Egen fontfamilie så resten av siden beholder systemfonten. */
@font-face {
  font-family: "iTurnus Logo";
  src: url("assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
.wordmark { display: inline-flex; align-items: baseline; font: 600 22px/1 "iTurnus Logo", var(--font-display); letter-spacing: -0.02em; white-space: nowrap; text-decoration: none; }
.logo-i { position: relative; display: inline-block; }
.logo-prikk { position: absolute; left: 0.036em; top: 0.112em; width: 0.155em; height: 0.155em; border-radius: 0.035em; background: #2563EB; }

.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a, .nav-login { opacity: .78; transition: opacity .2s; }
.nav-links a:hover, .nav-login:hover { opacity: 1; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 14px; }

/* ---------- Hero: kaos inn, turnus ut. Turnusen åpner seg ut av merket. ---------- */

.hero { position: relative; height: 330vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); }

/* Kaoset som går inn */
.hero-flow { position: absolute; inset: 0; display: flex; flex-direction: column; transform-origin: 50% 62%; }
.hero-copy {
  position: relative;
  z-index: 3;
  padding: calc(var(--nav-h) + clamp(18px, 6vh, 72px)) var(--gutter) 0;
  text-align: center;
}
.hero-title {
  font: 700 clamp(44px, min(6.4vw, 10.5vh), 96px)/1 var(--font-display);
  letter-spacing: -0.042em;
}
.hero-title .line { display: inline; }
.hero-title .ch { display: inline-block; white-space: pre; animation: char-in 1s var(--ease) both; animation-delay: calc(.15s + var(--ci) * 24ms); }
.hero-title .h-mute .ch { animation-delay: calc(.38s + var(--ci) * 24ms); }
@keyframes char-in { from { opacity: 0; transform: translateY(.45em) scale(.9); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }

.hero-sub {
  margin: clamp(14px, 2.4vh, 24px) auto 0;
  max-width: 40ch;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.42;
  color: var(--ink-2);
  text-wrap: balance;
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(18px, 3.4vh, 32px); }

.hero-flow .flow-stage { flex: 1 1 auto; height: auto; min-height: 260px; margin: 0; }
.flow-svg { pointer-events: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); filter: blur(12px); }
  to { opacity: 1; transform: none; filter: none; }
}
.intro { animation: rise 1.1s var(--ease) both; animation-delay: var(--d, 0s); }

/* Turnusen som kommer ut. Den ligger over flyten og er usynlig til den åpner seg. */
.hero-result {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 8px) var(--gutter) clamp(16px, 3vh, 32px);
  pointer-events: none;
}
.hero-h2 {
  opacity: 0;
  margin-bottom: clamp(16px, 3vh, 32px);
  font: 700 clamp(34px, min(4.2vw, 6.4vh), 60px)/1.04 var(--font-display);
  letter-spacing: -0.038em;
  text-align: center;
}
.hero-h2 .line { display: block; }
.hero-h2 .line + .line { color: var(--ink-3); }

.rotator { position: relative; height: 1.1em; perspective: 900px; }
.rotator > span { position: absolute; inset: 0 -1em; white-space: nowrap; }
.rotator .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(.3em) rotateX(-100deg);
  transform-origin: 50% 50% -.42em;
  filter: blur(6px);
  transition: transform .9s var(--ease), opacity .55s var(--ease), filter .6s var(--ease);
  transition-delay: calc(var(--ci) * 34ms);
}
.rotator .is-in .ch { opacity: 1; transform: none; filter: none; }
.rotator .is-out .ch { opacity: 0; transform: translateY(-.3em) rotateX(100deg); filter: blur(6px); transition-delay: calc(var(--ci) * 22ms); }
.rotator .is-reset .ch { transition: none; }

/* Turnusoversikten */
.hero-window {
  --cols: 14;
  --rows: 10;
  --row-h: clamp(20px, 3.1vh, 32px);
  --name-w: 104px;
  position: relative;
  width: min(1040px, 100%);
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(11, 18, 51, 0.06),
    0 2px 6px rgba(11, 18, 51, 0.04),
    0 40px 90px -30px rgba(11, 18, 51, 0.35);
  overflow: hidden;
  opacity: 0;
  transform-origin: 50% 50%;
}
.hero-window.is-opening { will-change: transform; }

/* Dekket er merket. Det toner bort mens vinduet vokser. */
.win-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: var(--natt);
  pointer-events: none;
}
.win-cover-pill { display: flex; align-items: center; color: #fff; }

.win-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.win-dots i:nth-child(2) { background: #FEBC2E; }
.win-dots i:nth-child(3) { background: #28C840; }
.win-title { min-width: 0; font-weight: 600; color: var(--ink); }
.win-week { margin-left: 12px; font-variant-numeric: tabular-nums; }
.win-speed { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; background: rgba(31, 175, 120, 0.12); color: #0C7A51; font-size: 12px; font-weight: 600; white-space: nowrap; }
.win-speed b { font-weight: 700; }

.win-body { padding: 10px 16px 4px; }
.win-head, .win-rows { display: grid; grid-template-columns: var(--name-w) 1fr; column-gap: 12px; }
.win-corner { align-self: center; font-size: 11px; color: var(--ink-3); }
.win-days {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: 4px;
  height: 26px;
  align-items: center;
  font-size: 11px;
  text-align: center;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.win-days .is-helg { color: var(--ink); font-weight: 600; }
.win-names { display: grid; grid-auto-rows: var(--row-h); row-gap: 4px; }
.win-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 500; white-space: nowrap; }
.win-name i {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fri);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  color: var(--ink-2);
}
.win-name span { overflow: hidden; text-overflow: ellipsis; }

/* Vaktene fylles inn dag for dag, og lovsjekken sveiper over */
.win-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: var(--row-h);
  gap: 4px;
}
.wc {
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--fri);
  font: 650 11px/1 var(--font);
  font-style: normal;
  color: transparent;
  transform: scale(.86);
  transition: transform .55s var(--spring), background-color .3s var(--ease), color .3s var(--ease);
}
.wc.is-on { transform: none; }
/* Som i appen: en lys flate i vaktfargen og teksten i en mørkere tone av samme farge */
.wc-D.is-on { background: linear-gradient(140deg, #FFCB4D, #FF9F1A); color: #4A2C00; box-shadow: 0 4px 10px -5px rgba(255, 159, 26, 0.7); }
.wc-A.is-on { background: linear-gradient(140deg, #FF73A6, #F2357C); color: #fff; box-shadow: 0 4px 10px -5px rgba(242, 53, 124, 0.7); }
.wc-N.is-on { background: linear-gradient(140deg, #8088FF, #4F46E5); color: #fff; box-shadow: 0 4px 10px -5px rgba(79, 70, 229, 0.7); }
.wc-DFA.is-on { background: var(--card, #fff); box-shadow: inset 0 0 0 1.5px var(--ink-3); color: var(--ink-2); }
.wc-F1.is-on, .wc-F2.is-on { color: var(--ink-3); }
.wc.is-swept { animation: swept .8s var(--ease); }
@keyframes swept {
  25% { box-shadow: 0 0 0 2px rgba(31, 175, 120, 0.7), 0 0 16px rgba(31, 175, 120, 0.5); filter: brightness(1.12); }
}
.win-sweep {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: 0;
  z-index: 2;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(transparent, var(--ok) 18%, var(--ok) 82%, transparent);
  box-shadow: 0 0 18px 3px rgba(31, 175, 120, 0.55);
  opacity: 0;
  pointer-events: none;
}

.win-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 14px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--fri);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.pill svg { width: 14px; height: 14px; }
.pill-check { transition: background-color .5s var(--ease), color .5s var(--ease); }
/* Haken tar ikke plass før sjekken er ferdig */
.pill-check svg { width: 0; margin-right: -6px; transform: scale(0); transition: transform .5s var(--spring), width .4s var(--ease), margin .4s var(--ease); }
.pill-check.is-checked svg { width: 14px; margin-right: 0; }
.pill-check .pill-ok { display: none; }
.pill-check.is-checked { background: rgba(31, 175, 120, 0.12); color: #0C7A51; }
.pill-check.is-checked svg { transform: none; }
.pill-check.is-checked .pill-ok { display: inline; }
.pill-check.is-checked .pill-wait { display: none; }

/* Uten bevegelse ligger flyten og turnusen etter hverandre */
.hero.is-static { height: auto; }
.hero.is-static .hero-sticky { position: relative; height: auto; overflow: visible; }
.hero.is-static .hero-flow, .hero.is-static .hero-result { position: relative; inset: auto; min-height: 100svh; }
.hero.is-static .hero-window, .hero.is-static .hero-h2 { opacity: 1; }
.hero.is-static .win-cover { display: none; }

@media (max-width: 759px) {
  .hero { height: 300vh; }
  .hero-title .line { display: block; }
  .hero-ctas .btn { height: 46px; padding: 0 20px; font-size: 15px; }
  .hero-window { --name-w: 64px; --row-h: clamp(20px, 2.9svh, 28px); border-radius: 18px; }
  .win-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .win-name i { display: none; }
  .win-name { font-size: 12px; }
  .win-foot .pill:not(.pill-check) { display: none; }
}

/* ---------- Smerten ---------- */

/* --night går fra 0 (dag) til 1 (natt) mens turnusen spiser døgnene. */
.pain {
  --night: 0;
  --mix: calc(var(--night) * 100%);
  position: relative;
  height: 460vh;
  background: color-mix(in oklab, var(--paper), var(--natt) var(--mix));
  color: var(--ink);
  transition: color .5s var(--ease);
}
/* Teksten bytter til hvit på ett punkt, så den aldri blir grå på grått i skumringen. */
.pain .h-mute { color: var(--ink-3); transition: color .5s var(--ease); }
.pain.is-dark { color: #fff; }
.pain.is-dark .h-mute { color: rgba(255, 255, 255, 0.5); }
.pain-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; padding-top: calc(var(--nav-h) * .5); }
.pain-inner {
  --t: min(46px, 5.6vh);
  --g: clamp(4px, .6vw, 8px);
  --cal: calc(var(--t) * 12 + var(--g) * 12 + 28px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--cal));
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
}

.pain-titles, .pain-subs { display: grid; }
.pain-titles > p, .pain-subs > p {
  grid-area: 1 / 1;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(.22em);
  transition: opacity .45s var(--ease), filter .6s var(--ease), transform .9s var(--ease);
}
.pain-titles > p.is-on, .pain-subs > p.is-on { opacity: 1; filter: none; transform: none; transition-delay: .08s; }
.pain-titles {
  align-items: end;
  font: 700 clamp(40px, 4.4vw, 64px)/1.04 var(--font-display);
  letter-spacing: -0.036em;
  text-wrap: balance;
}
.pain-subs {
  margin-top: 20px;
  min-height: 2.9em;
  max-width: 34ch;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.42;
  letter-spacing: -0.018em;
  color: var(--ink-2);
  text-wrap: pretty;
  transition: color .5s var(--ease);
}
.pain.is-dark .pain-subs { color: rgba(255, 255, 255, 0.72); }

.pain-cal { width: 100%; }
.pain-meter {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 18px 28px;
  font: 700 clamp(22px, 2vw, 30px)/1 var(--font-round);
  letter-spacing: -0.03em;
}
.pain-meter span + span { opacity: .55; }
.pain-grid {
  position: relative;
  display: grid;
  grid-template-columns: auto repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto) 2px repeat(2, auto);
  gap: var(--g);
  align-items: center;
  transition: opacity .8s var(--ease);
}
.pain-day { padding-right: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0; opacity: .45; }
.pain-ring { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; overflow: visible; }
.pain-ring path { fill: none; stroke-width: 3.6; stroke-linecap: round; }
.pr-track path { stroke: color-mix(in oklab, rgba(11, 18, 51, 0.09), rgba(255, 255, 255, 0.1) var(--mix)); }
.pr-fill path { stroke-dasharray: 0 1; opacity: 0; }
/* Uka som går */
.pain-now {
  grid-row: 1 / -1;
  align-self: stretch;
  margin: calc(var(--g) * -.5 - 6px) calc(var(--g) * -.5);
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transition: opacity .3s;
}
.pain-now.is-on { opacity: .06; }
/* Til slutt trer dagene tilbake, og budskapet står igjen. */
.pain.is-end .pain-grid { opacity: .38; }

.pain.is-static { height: auto; }
.pain.is-static .pain-sticky { position: static; height: auto; padding-block: clamp(120px, 18vh, 200px); }

@media (max-width: 1099px) {
  .pain-inner { --t: 48px; grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pain-cal { max-width: var(--cal); }
}
@media (max-width: 759px) {
  .pain-titles { font-size: clamp(36px, 10vw, 52px); }
  .pain-subs { margin-top: 14px; }
  .pain-inner { --g: 3px; }
  .pain-cal { max-width: none; }
  .pain-meter { margin-left: 20px; margin-bottom: 14px; }
  .pain-day { padding-right: 4px; font-size: 10px; }
}

/* ---------- Kappløpet: to baner på én flate ---------- */

.race-track {
  position: relative;
  padding: clamp(24px, 3.6vw, 52px);
  border-radius: var(--r-l);
  background: var(--natt);
  color: #fff;
  --logo-dot: #fff;
  box-shadow: 0 50px 110px -50px rgba(11, 18, 51, 0.65);
  isolation: isolate;
}
.race-track::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(70% 90% at 100% 100%, rgba(91, 108, 255, 0.3), transparent 70%), radial-gradient(50% 70% at 0% 100%, rgba(236, 92, 138, 0.14), transparent 70%);
}
.lane {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 24px;
}
.lane + .lane { margin-top: clamp(28px, 4.4vh, 48px); padding-top: clamp(28px, 4.4vh, 48px); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.lane-name { display: flex; align-items: center; gap: 10px; padding-bottom: .6em; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.lane-new .lane-name { color: #fff; }
.lane-spin { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.16); border-top-color: rgba(255, 255, 255, 0.75); }
.lane-name .wordmark { font-size: 17px; color: #fff; }
.lane-clock {
  font: 700 clamp(48px, 6.4vw, 92px)/.9 var(--font-round);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}
.lane-old .lane-clock { color: rgba(255, 255, 255, 0.4); }

/* Banene: ni uker som fylles én og én, mot ett strøk i merkets farger */
.lane-weeks, .lane-bar { grid-column: 1 / -1; height: 10px; margin-top: clamp(16px, 2.4vh, 24px); }
.lane-weeks { display: grid; grid-template-columns: repeat(var(--uker, 9), minmax(0, 1fr)); gap: 4px; }
.lane-weeks i { position: relative; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, 0.08); }
.lane-weeks i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255, 255, 255, 0.4); transform-origin: left; transform: scaleX(var(--f, 0)); }
.lane-bar { border-radius: 99px; background: rgba(255, 255, 255, 0.08); }
.lane-bar span { display: block; height: 100%; border-radius: inherit; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--dag), var(--aften), var(--nattvakt)); box-shadow: 0 0 22px rgba(236, 92, 138, 0.55); }

/* Én linje som sier hva som skjer akkurat nå */
.lane-now { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; min-height: 1.5em; margin-top: 14px; font-size: 15px; color: rgba(255, 255, 255, 0.5); }
.lane-now.is-new { animation: now-in .5s var(--ease); }
.lane-new .lane-now { color: rgba(255, 255, 255, 0.78); }
.lane-new.is-done .lane-now { color: #fff; }
.lane-new.is-done .lane-now::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: 0 0 16px rgba(31, 175, 120, 0.6);
  animation: check-in .6s var(--spring);
}
@keyframes now-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes check-in { from { transform: scale(0); } }

.race-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 28px; transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s; }
.race-foot:not(.is-done) { opacity: 0; visibility: hidden; transform: translateY(8px); transition-duration: 0s; }
.race-actions { display: flex; gap: 10px; }
.race-result { font-size: clamp(20px, 2vw, 26px); font-weight: 650; letter-spacing: -0.025em; text-wrap: balance; }

@media (max-width: 759px) {
  .lane { column-gap: 16px; }
  .lane-name { font-size: 14px; text-wrap: balance; }
  .lane-clock { font-size: clamp(40px, 12vw, 56px); }
  .lane-weeks { gap: 3px; }
  .lane-now { font-size: 14px; }
}
.burst {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 5;
  width: var(--s);
  height: calc(var(--s) * .7);
  border-radius: 4px;
  background: var(--c);
  pointer-events: none;
  animation: burst 1.3s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes burst {
  from { transform: translate(-50%, -50%) scale(.3); opacity: 1; }
  70% { opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(1); opacity: 0; }
}

/* ---------- Fire steg: én flate som går gjennom stegene mens du scroller ---------- */

.story { padding-top: clamp(96px, 14vh, 168px); }
.story .section-head { margin-bottom: 0; }
/* Trekkes litt opp under overskriften, så det ikke blir et hull før flaten */
.story-pin { height: 400vh; margin-top: calc(-1 * clamp(80px, 18vh, 200px)); }
.story-sticky { position: sticky; top: 0; display: flex; align-items: center; height: 100vh; height: 100svh; padding-top: var(--nav-h); }
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }

/* Fire streker viser hvor langt du har kommet. De er også snarveier. */
.story-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 440px; margin: 0; padding: 0; list-style: none; }
.story-progress button {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: color .4s var(--ease);
}
.story-progress button:hover, .story-progress .is-done, .story-progress [aria-current="step"] { color: var(--ink); }
.story-progress i { display: block; height: 3px; border-radius: 3px; background: rgba(11, 18, 51, 0.1); overflow: hidden; }
.story-progress b { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* Teksten byttes på samme sted: den gamle glir opp og ut, den nye kommer nedenfra. */
.story-texts { display: grid; margin-top: clamp(28px, 5vh, 52px); }
.story-text {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  pointer-events: none;
  transition: opacity .45s var(--ease), transform .8s var(--ease), filter .45s var(--ease);
}
.story-text.is-past { transform: translateY(-18px); }
.story-text.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; transition-delay: .1s; }
.story-text h3 { font: 700 clamp(30px, 3.3vw, 46px)/1.06 var(--font-display); letter-spacing: -0.035em; text-wrap: balance; }
.story-text p { margin-top: 16px; max-width: 36ch; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }

/* Flaten. Den er like stor som scenen og klippes til innholdet, så den vokser når lovsjekken trenger plass. */
.story-stage {
  position: relative;
  height: clamp(460px, calc(100svh - var(--nav-h) - 160px), 600px);
  filter: drop-shadow(0 30px 50px rgba(11, 18, 51, 0.13)) drop-shadow(0 2px 4px rgba(11, 18, 51, 0.05));
}
.surface {
  --t0: 0px;
  --b0: 0px;
  --t01: 0px;
  --b01: 0px;
  --t2: 0px;
  --b2: 0px;
  --pl: 0px;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--card);
  clip-path: inset(var(--t01) 0px var(--b01) 0px round 28px);
  transition: clip-path .9s var(--ease-io);
}
.surface[data-state="0"] { clip-path: inset(var(--t0) 0px var(--b0) 0px round 28px); }
.surface[data-state="2"] { clip-path: inset(var(--t2) 0px var(--b2) 0px round 28px); }
/* Til slutt trekker flaten seg sammen rundt en telefon. Den forblir hvit, bare telefonen er mørk. */
.surface[data-state="3"] { clip-path: inset(0px var(--pl) 0px var(--pl) round 46px); transition: clip-path .95s var(--ease-io); }
.surface.is-crop[data-state="3"] { clip-path: inset(0px var(--pl) 0px var(--pl) round 40px 40px 0 0); }

.sf-app {
  position: absolute;
  inset: 0 0 auto;
  padding: clamp(22px, 2.4vw, 30px);
  transform: translateY(var(--t01));
  transform-origin: 50% 40%;
  transition: opacity .5s var(--ease) .3s, transform .9s var(--ease-io);
}
.surface[data-state="0"] .sf-app { transform: translateY(var(--t0)); }
.surface[data-state="2"] .sf-app { transform: translateY(var(--t2)); }
.surface[data-state="3"] .sf-app { opacity: 0; transform: translateY(var(--t2)) scale(.9); transition: opacity .3s var(--ease), transform .9s var(--ease-io); }

.sf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sf-titles, .sf-status { display: grid; }
.sf-titles > *, .sf-status > * { grid-area: 1 / 1; opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .5s var(--ease), color .4s var(--ease); }
.sf-titles { font-size: 19px; font-weight: 650; letter-spacing: -0.022em; }
.sf-status { font-size: 14px; font-weight: 600; color: var(--ink-3); text-align: right; white-space: nowrap; }
.surface[data-state="0"] [data-at="0"],
.surface[data-state="1"] [data-at="1"],
.surface[data-state="2"] [data-at="2"],
.surface[data-state="3"] [data-at="2"] { opacity: 1; transform: none; transition-delay: .15s; }
.surface[data-state="1"] .sf-status [data-at="1"] { color: #0C7A51; transition-delay: .9s; }
.sf-status [data-at="2"] { color: #C2255C; }
.surface[data-law="ok"] .sf-status [data-at="2"] { color: #0C7A51; }

/* Radene er de samme hele veien. Ønsket viker for uka når forslaget kommer. */
.sf-days, .sf-row { display: grid; grid-template-columns: var(--who, 132px) repeat(7, minmax(0, 1fr)); column-gap: 6px; align-items: center; }
.sf-days { margin-top: clamp(16px, 2.6vh, 24px); font-size: 12px; font-weight: 600; color: var(--ink-3); text-align: center; opacity: 0; transition: opacity .4s var(--ease); }
/* Dagene kommer når radene har flyttet seg ned og gjort plass */
.surface:not([data-state="0"]) .sf-days { opacity: 1; transition-delay: .5s; }
.sf-rows { display: grid; gap: 8px; margin-top: 10px; transition: transform .9s var(--ease-io); }
.surface[data-state="0"] .sf-rows { transform: translateY(calc(-1 * var(--dz, 0px))); }
.sf-row { height: var(--row, clamp(40px, 5.6vh, 50px)); transition: opacity .5s var(--ease); }
.surface[data-law="bad"] .sf-row:not(.is-focus) { opacity: .28; }
.sf-who { grid-area: 1 / 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.sf-av { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); font-size: 12px; font-weight: 650; color: var(--ink-2); }
.sf-name { overflow: hidden; font-size: 15px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.sf-wish {
  grid-area: 1 / 2 / 2 / -1;
  overflow: hidden;
  padding-left: 4px;
  font-size: 15px;
  color: var(--ink-2);
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: opacity .35s var(--ease), transform .6s var(--ease);
}
.surface:not([data-state="0"]) .sf-wish { opacity: 0; transform: translateX(12px); }

.sc {
  grid-row: 1;
  display: grid;
  place-items: center;
  height: 100%;
  border-radius: 9px;
  background: var(--fri);
  color: transparent;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
  opacity: 0;
  transform: scale(.72);
  transition: opacity .3s var(--ease), transform .6s var(--spring), background-color .45s var(--ease), color .45s var(--ease);
}
/* Cellene kommer dag for dag, med et lite etterslep nedover radene */
.surface:not([data-state="0"]) .sc { opacity: 1; transform: none; transition-delay: var(--d), var(--d), 0s, 0s; }
.sc-D { background: var(--dag); color: rgba(59, 40, 0, 0.82); }
.sc-A { background: var(--aften); color: #fff; }
.sc-N { background: var(--nattvakt); color: #fff; }
.sc.is-bad { animation: sf-bad 1.6s var(--ease) infinite; }
.sc.is-new { animation: sf-new 1.4s var(--ease) both; }
@keyframes sf-bad { 50% { box-shadow: 0 0 0 4px rgba(236, 92, 138, 0.26), 0 0 18px rgba(236, 92, 138, 0.45); } }
@keyframes sf-new { 30% { box-shadow: 0 0 0 4px rgba(31, 175, 120, 0.28), 0 0 22px rgba(31, 175, 120, 0.5); } }

.sf-law {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 16px 16px 16px 20px;
  border-radius: 18px;
  background: var(--paper);
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  transition: opacity .35s var(--ease), transform .6s var(--ease), visibility 0s .6s;
}
.surface[data-state="2"] .sf-law { opacity: 1; transform: none; visibility: visible; transition-delay: .4s, .4s, 0s; }
.sf-law-body { min-width: 0; }
.sf-law-title { font-size: 15px; font-weight: 650; color: #C2255C; transition: color .4s var(--ease); }
.surface[data-law="ok"] .sf-law-title { color: #0C7A51; }
.sf-law-text { margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.sf-law .btn { flex: none; margin-left: auto; }

/* Låseskjermen på telefonen */
.sf-phone {
  position: absolute;
  top: 9px;
  right: calc(var(--pl) + 9px);
  bottom: 9px;
  left: calc(var(--pl) + 9px);
  padding: 58px 12px 16px;
  border-radius: 37px;
  background: linear-gradient(170deg, #1A2A6C 0%, #3B2F73 48%, #E98B86 100%);
  box-shadow: 0 0 0 9px #0D1233;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.surface.is-crop .sf-phone { bottom: -40px; border-radius: 31px 31px 0 0; }
.surface[data-state="3"] .sf-phone { opacity: 1; transition: opacity .55s var(--ease) .12s; }
.sf-phone::after { content: ""; position: absolute; bottom: 9px; left: 50%; width: 112px; height: 4px; margin-left: -56px; border-radius: 4px; background: rgba(255, 255, 255, 0.7); }
.surface.is-crop .sf-phone::after { display: none; }
.sf-island { position: absolute; top: 12px; left: 50%; width: 86px; height: 26px; margin-left: -43px; border-radius: 99px; background: #000; }
.sf-time { font-size: clamp(46px, 4.6vw, 62px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; text-align: center; }
.sf-date { margin-top: 6px; font-size: 14px; font-weight: 500; text-align: center; opacity: .8; }
.sf-notif {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: var(--ink);
  opacity: 0;
  transform: translateY(-14px) scale(.96);
  transition: opacity .3s var(--ease), transform .6s var(--spring);
}
.sf-date + .sf-notif { margin-top: 24px; }
.surface[data-state="3"] .sf-notif { opacity: 1; transform: none; transition-delay: calc(.8s + var(--i) * .5s); }
.sf-notif-icon { flex: none; width: 32px; height: 32px; padding: 4px; border-radius: 9px; background: var(--natt); --logo-dot: #fff; }
.sf-notif-app { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.sf-notif-app span { font-weight: 400; color: var(--ink-3); }
.sf-notif-title { font-size: 14px; font-weight: 650; line-height: 1.3; }
.sf-notif-text { font-size: 13px; line-height: 1.35; color: var(--ink-2); }

@media (max-width: 960px) {
  .story-pin { height: 380vh; margin-top: 0; }
  .story-sticky { align-items: stretch; padding: calc(var(--nav-h) + 20px) 0 20px; }
  .story-grid { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .story-progress { max-width: none; gap: 8px; }
  .story-progress button { font-size: 12px; }
  .story-texts { margin-top: 18px; }
  .story-text h3 { font-size: clamp(24px, 6.4vw, 34px); }
  .story-text p { margin-top: 8px; font-size: 15px; }
  .story-stage { flex: 1 1 auto; height: auto; min-height: 300px; }
}
@media (max-width: 759px) {
  .surface { --who: 70px; --row: clamp(28px, 4.4svh, 40px); }
  .sf-app { padding: 18px; }
  .sf-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .sf-titles { font-size: 16px; }
  .sf-status { font-size: 12px; text-align: left; }
  .sf-days, .sf-row { column-gap: 4px; }
  .sf-days { margin-top: 12px; font-size: 11px; }
  .sf-av { display: none; }
  .sf-name, .sf-wish { font-size: 13px; }
  .sc { border-radius: 7px; font-size: 11px; }
  .sf-law { margin-top: 12px; padding: 10px 10px 10px 16px; }
  .sf-law-text { display: none; }
}
/* Lave telefoner: overskriften i steget holder */
@media (max-width: 759px) and (max-height: 720px) {
  .story-text p { display: none; }
}

/* Delt med Spør iTurnus */
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-2);
}
.mini { display: grid; grid-template-columns: var(--name-col, 0) repeat(7, minmax(0, 1fr)); gap: 5px; align-content: start; }
.mc {
  display: grid;
  place-items: center;
  aspect-ratio: 1.45;
  border-radius: 8px;
  background: var(--fri);
  font-size: 12px;
  font-weight: 650;
  color: #fff;
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), color .5s var(--ease);
}
.mc-D { background: var(--dag); color: #3B2800; }
.mc-A { background: var(--aften); }
.mc-N { background: var(--nattvakt); }
.mc-DFA { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; color: var(--ink-2); }
.mc-F1, .mc-F2 { color: var(--ink-3); }

/* ---------- Funksjoner ---------- */

.features-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }

.f-list { display: grid; gap: 2px; }
.f-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 16px;
  background: none;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-3);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.f-tab:hover { color: var(--ink); }
.f-tab[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(11, 18, 51, 0.05), 0 10px 24px -14px rgba(11, 18, 51, 0.22); }
.f-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--c) 14%, var(--card));
  transition: transform .5s var(--spring);
}
.f-tab[aria-selected="true"] .f-icon { transform: scale(1.06); }
.f-icon .glyph { width: 22px; height: 22px; }

.glyph { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.glyph .g-accent { stroke: var(--c); stroke-width: 2.1; }
.glyph .g-fill { fill: var(--c); stroke: none; }
.glyph .g-soft { fill: color-mix(in srgb, var(--c) 30%, transparent); stroke: none; }

.f-panel {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  min-height: 540px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-l);
  background: var(--card);
  box-shadow: 0 0 0 1px rgba(11, 18, 51, 0.04), 0 30px 60px -34px rgba(11, 18, 51, 0.22);
  transition: opacity .25s var(--ease), transform .4s var(--ease), filter .25s var(--ease);
}
.f-panel.is-swapping { opacity: 0; transform: translateY(8px); filter: blur(6px); }
.f-panel-head { display: flex; align-items: center; gap: 14px; }
.f-panel-head .f-icon { width: 48px; height: 48px; border-radius: 14px; }
.f-panel-head .glyph { width: 26px; height: 26px; }
.f-panel h3 { font: 700 clamp(24px, 2.4vw, 32px)/1.1 var(--font-display); letter-spacing: -0.03em; }
.f-panel-text { margin-top: 18px; max-width: 46ch; color: var(--ink-2); }
.f-art { margin-top: 28px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.f-art svg { width: 100%; height: auto; }
.art-text { font: 500 12px var(--font); fill: var(--ink-3); letter-spacing: 0; }
.art-text-strong { font: 600 13px var(--font); fill: var(--ink); letter-spacing: -0.01em; }
.grow { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 120ms); }
.grow-x { transform-box: fill-box; transform-origin: 0 50%; animation: grow-x .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
.pop-in { transform-box: fill-box; transform-origin: 50% 50%; animation: pop .6s var(--spring) both; animation-delay: calc(var(--i, 0) * 35ms + 150ms); }
.fade-up { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms + 150ms); }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) both .2s; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Segmentert kontroll ---------- */

.segmented {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 3px;
  border-radius: 12px;
  background: rgba(11, 18, 51, 0.06);
  isolation: isolate;
}
.segmented button {
  position: relative;
  z-index: 1;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: none;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-2);
  white-space: nowrap;
  cursor: pointer;
  transition: color .25s;
}
.segmented button[aria-checked="true"] { color: var(--ink); font-weight: 650; }
.seg-thumb {
  position: absolute;
  z-index: 0;
  top: 3px;
  left: 0;
  height: 36px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 18, 51, 0.08), 0 3px 10px rgba(11, 18, 51, 0.1);
  transition: transform .55s var(--spring), width .55s var(--spring), opacity .2s;
}
.seg-wide { display: grid; width: 100%; }
.seg-wide button { padding: 0 8px; }

/* ---------- Spar tid ---------- */

.save {
  position: relative;
  padding-block: clamp(110px, 15vh, 180px);
  background: var(--natt);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.save::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 40% at 85% 6%, rgba(91, 108, 255, 0.3), transparent 70%),
    radial-gradient(45% 40% at 0% 55%, rgba(236, 92, 138, 0.16), transparent 70%),
    radial-gradient(40% 30% at 60% 100%, rgba(245, 181, 63, 0.12), transparent 70%);
}
.save-head { max-width: 760px; }
.save .lead { color: rgba(255, 255, 255, 0.7); }

.sentence-box { position: relative; margin-top: clamp(40px, 6vh, 72px); }
.sentence {
  max-width: 1060px;
  font: 650 clamp(26px, 3.4vw, 46px)/1.42 var(--font-display);
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.5);
  text-wrap: pretty;
}
.chip {
  display: inline;
  margin: 0 .02em;
  padding: .02em .26em .06em;
  border: 0;
  border-radius: .3em;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-color .2s, box-shadow .25s;
}
.chip:hover { background: rgba(255, 255, 255, 0.14); }
.chip.is-scrubbing, .chip[aria-expanded="true"] {
  background: color-mix(in srgb, var(--c) 30%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent), 0 0 36px color-mix(in srgb, var(--c) 50%, transparent);
}
.chip:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; border-radius: .3em; }
.chip .grip { display: inline-block; width: .5em; margin-left: .18em; opacity: .4; vertical-align: .02em; }
.chip:hover .grip, .chip.is-scrubbing .grip { opacity: .85; }
html.is-scrubbing, html.is-scrubbing * { cursor: ew-resize !important; user-select: none !important; }
.sentence-tip { margin-top: 18px; font-size: 15px; color: rgba(255, 255, 255, 0.45); transition: opacity .5s var(--ease); }
.sentence-tip.is-hidden { opacity: 0; }

.chip-pop {
  position: absolute;
  z-index: 10;
  width: min(340px, 100%);
  padding: 16px 18px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  animation: pop-open .4s var(--spring) both;
}
@keyframes pop-open { from { opacity: 0; transform: translateY(-8px) scale(.95); } }
.chip-pop-name { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.chip-pop-body { margin-top: 6px; }
.pop-val { font: 700 30px/1.15 var(--font-round); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pop-options { display: grid; gap: 2px; margin: 4px -6px 0; }
.pop-options button {
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  text-align: left;
  font-size: 16px;
  font-weight: 550;
  cursor: pointer;
}
.pop-options button:hover { background: var(--paper); }
.pop-options button[aria-checked="true"] { background: var(--paper); font-weight: 700; }

.save-result {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-top: clamp(56px, 9vh, 96px);
  padding-top: clamp(32px, 5vh, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.save-kicker { font-size: 17px; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.save-num { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 18px; margin-top: 4px; }
.odo {
  display: inline-flex;
  font: 700 clamp(84px, 13vw, 188px)/1 var(--font-round);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.odo-d { display: inline-block; height: 1em; overflow: hidden; }
.odo-col { display: flex; flex-direction: column; transition: transform 1.15s var(--spring); transition-delay: calc(var(--k) * 45ms); }
.odo-col > span { display: block; height: 1em; }
.odo-sep { display: inline-block; width: .2em; }
.save-unit { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.6); }
.save-line { margin-top: 18px; max-width: 42ch; min-height: 2.8em; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; color: rgba(255, 255, 255, 0.86); text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.save-money { margin: 0; display: grid; }
.save-money div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.save-money dt { font-size: 15px; color: rgba(255, 255, 255, 0.7); }
.save-money dd { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; }
.save-money .save-total dt { color: #fff; font-weight: 600; }
.save-money .save-total dd { font-size: 28px; }
[data-ot-row][hidden] { display: none; }
.save-eff { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; }
.save-eff-label { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.55); }
.seg-dark { background: rgba(255, 255, 255, 0.09); }
.seg-dark button { color: rgba(255, 255, 255, 0.72); }
.seg-dark button[aria-checked="true"] { color: var(--ink); }

.year { margin: clamp(56px, 8vh, 88px) 0 0; }
.year-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; }
.year-title { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; }
.year-legend, .speed-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.year-legend > span, .speed-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.yk, .sk { display: inline-block; width: 12px; height: 12px; border-radius: 3.5px; }
.yk-back { background: linear-gradient(135deg, var(--dag), var(--aften), var(--nattvakt)); }
.yk-left { background: rgba(255, 255, 255, 0.3); }
.yk-red { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
.year-blocks { display: grid; gap: 22px; margin-top: 22px; }
.year-block { display: grid; gap: 8px; }
.year-months, .year-grid { display: grid; grid-template-columns: repeat(var(--weeks), minmax(0, 1fr)); gap: 4px; }
.year-months { font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.year-months span { grid-row: 1; white-space: nowrap; }
.year-grid { grid-template-rows: repeat(5, auto); grid-auto-flow: column; }
.yc {
  aspect-ratio: 1;
  border-radius: 28%;
  background: rgba(255, 255, 255, 0.06);
  transition: background-color .45s var(--ease), box-shadow .45s var(--ease);
  transition-delay: calc(var(--d, 0) * 9ms);
}
.yc.is-back { background: var(--c); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 55%, transparent); }
.yc.is-left { background: rgba(255, 255, 255, 0.3); }
.yc.is-red { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.25); }
.yc.is-pop { animation: yc-pop .7s var(--spring) both; animation-delay: calc(var(--d, 0) * 9ms); }
@keyframes yc-pop { 35% { transform: scale(1.45); } }

.speed { margin-top: clamp(48px, 7vh, 80px); }
.speed-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; }
.speed-title { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; }
.sk-old { background: rgba(255, 255, 255, 0.3); }
.sk-new { background: linear-gradient(90deg, var(--dag), var(--aften)); }
.speed-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 56px; margin-top: 22px; }
.speed-row { display: grid; gap: 9px; }
.speed-name { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: rgba(255, 255, 255, 0.75); }
.speed-name b { font-weight: 650; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sb { position: relative; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.sb span { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); border-radius: inherit; transition: width 1.1s var(--spring); }
.sb-old span { background: rgba(255, 255, 255, 0.3); }
.sb-new span { background: linear-gradient(90deg, var(--dag), var(--aften)); box-shadow: 0 0 16px rgba(236, 92, 138, 0.5); }

.save-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(40px, 6vh, 64px); }
.save-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 36px; }
.more, .how { margin: 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.88); }
.more summary, .how summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.more summary::-webkit-details-marker, .how summary::-webkit-details-marker { display: none; }
.more summary::after, .how summary::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform .4s var(--spring);
}
.more[open] summary::after, .how[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.how-body { margin-top: 14px; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.68); }
.how-body b { color: #fff; font-weight: 600; }
.how-note { margin-top: 6px; color: rgba(255, 255, 255, 0.5); }

.fields { display: grid; gap: 24px; margin-top: 22px; }
.field { display: grid; gap: 8px; }
.field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-top label { font-size: 15px; font-weight: 550; color: #fff; }
.field-val { font-size: 15px; color: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.field-val .num { font-size: 19px; font-weight: 650; color: #fff; letter-spacing: -0.02em; }
.field-hint { font-size: 13px; color: rgba(255, 255, 255, 0.45); }
.field-hint .linked { color: #A3ADFF; }
.field.is-off .range, .field.is-off .field-val { opacity: .35; }
.field-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.55); }

.range {
  --fill: 50%;
  --track: rgba(11, 18, 51, 0.1);
  --done: var(--ink);
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.fields .range { --track: rgba(255, 255, 255, 0.14); --done: #fff; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--done) 0 var(--fill), var(--track) var(--fill) 100%); }
.range::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(11, 18, 51, 0.06), 0 3px 8px rgba(11, 18, 51, 0.25), 0 1px 1px rgba(11, 18, 51, 0.12);
  transition: transform .4s var(--spring), box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.range:active::-webkit-slider-thumb { transform: scale(1.14); }
.range::-moz-range-track { height: 6px; border-radius: 99px; background: var(--track); }
.range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--done); }
.range::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(11, 18, 51, 0.25); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(91, 108, 255, 0.45), 0 3px 8px rgba(11, 18, 51, 0.2); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(91, 108, 255, 0.45); }

.switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  margin: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background-color .25s;
  -webkit-appearance: none;
  appearance: none;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
  transition: transform .45s var(--spring);
}
.switch:checked { background: var(--ok); }
.switch:checked::after { transform: translateX(18px); }

/* ---------- Bevegelse ---------- */

.motion-toggle { padding: 0; border: 0; background: none; color: inherit; font-size: 14px; cursor: pointer; transition: color .2s; }
.motion-toggle:hover { color: #fff; }
.motion-pill {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  box-shadow: 0 0 0 1px var(--line), 0 20px 50px -20px rgba(11, 18, 51, 0.5);
  transform: translateX(-50%);
  white-space: nowrap;
}
.motion-pill .btn { height: 34px; padding: 0 14px; font-size: 14px; }
.motion-pill button.close { width: 34px; padding: 0; background: none; color: var(--ink-3); }

/* ---------- Trygghet ---------- */

.trust-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 6vh, 72px); }
.trust-item .glyph { width: 36px; height: 36px; stroke-width: 1.5; }
.trust-item h3 { margin-top: 18px; font-size: 21px; font-weight: 650; letter-spacing: -0.022em; }
.trust-item p { margin-top: 8px; max-width: 34ch; color: var(--ink-2); }

/* ---------- Laget for ---------- */

.sectors { padding-block: clamp(40px, 6vh, 72px) clamp(64px, 10vh, 112px); }
.sectors-title { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.marquee {
  margin-top: 28px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.sector {
  padding-right: 1.3em;
  font: 650 clamp(26px, 3vw, 40px)/1.2 var(--font-display);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

/* ---------- Varsel ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 20px 50px -20px rgba(11, 18, 51, 0.6);
  opacity: 0;
  transform: translate(-50%, 16px) scale(.96);
  transition: opacity .3s var(--ease), transform .5s var(--spring);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Mindre skjermer ---------- */

@media (max-width: 960px) {
  .features-grid, .save-result, .save-details { grid-template-columns: minmax(0, 1fr); }

  .f-list {
    display: flex;
    gap: 6px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .f-list::-webkit-scrollbar { display: none; }
  .f-tab { flex: none; width: auto; padding: 8px 14px 8px 8px; font-size: 15px; scroll-snap-align: start; }
  .f-tab .f-icon { width: 32px; height: 32px; border-radius: 9px; }
  .f-tab .glyph { width: 18px; height: 18px; }
  .f-panel { position: static; min-height: 0; }

}

@media (max-width: 1020px) {
  .nav-links { display: none; }
}

@media (max-width: 759px) {
  .nav-links, .nav-login { display: none; }
  .trust-row { grid-template-columns: minmax(0, 1fr); }
  .speed-rows { grid-template-columns: minmax(0, 1fr); }
  .win-week { display: none; }
  .year-months { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.motion-full) { scroll-behavior: auto; }
  html:not(.motion-full) *, html:not(.motion-full) *::before, html:not(.motion-full) *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  html:not(.motion-full) .marquee-track { animation: none; flex-wrap: wrap; width: auto; row-gap: 12px; }
  html:not(.motion-full) .marquee-track [aria-hidden="true"] { display: none; }
}

/* Korte navn på funksjonene når listen blir en horisontal rad */
.f-name-short { display: none; }
.btn-ghost { background: rgba(11, 18, 51, 0.07); color: var(--ink); }
.btn-ghost:hover { background: rgba(11, 18, 51, 0.11); }
@media (max-width: 960px) {
  .f-name-long { display: none; }
  .f-name-short { display: inline; }
}

/* Panelet i funksjonene glir over til nytt innhold */
.f-panel { view-transition-name: f-panel; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(f-panel) { animation-duration: .5s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-old(f-panel) { animation: vt-out .3s cubic-bezier(0.16, 1, 0.3, 1) both; }
::view-transition-new(f-panel) { animation: vt-in .55s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px) scale(.97); filter: blur(10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px) scale(.97); filter: blur(12px); } }

/* Skjulte elementer forblir skjult selv om de har egen display-verdi */
[hidden] { display: none !important; }


/* ---------- Merket: sol og måne ---------- */

@property --phase { syntax: '<number>'; inherits: true; initial-value: 1; }
:root { --moon: #E4E9FF; }
.logo-body { fill: color-mix(in srgb, var(--dag) calc(var(--phase) * 100%), var(--moon)); }
.logo-glow { opacity: var(--phase); }
.logo-shadow { transform: translate(calc(var(--phase) * 9px), calc(var(--phase) * -5.4px)); }
.nav { --phase: 1; transition: color .45s var(--ease), --phase 1.1s var(--ease); }
.nav-dark .nav { --phase: 0; }
.chip-pop { background: #fff; }

/* ---------- Kaos inn, turnus ut ---------- */

.flow-stage { position: relative; height: clamp(380px, 46vw, 560px); margin-top: clamp(8px, 2vh, 24px); }
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Det som kommer ut er lyst, som turnusen selv: et hvitt bånd med en tynn kant */
.flow-edge { stroke: rgba(11, 18, 51, 0.1); stroke-width: 58; stroke-linecap: round; filter: drop-shadow(0 14px 24px rgba(11, 18, 51, 0.08)); }
.flow-ribbon { stroke: #fff; stroke-width: 56; stroke-linecap: round; }
.flow-cell-text { font: 700 13px var(--font); letter-spacing: 0; }
.flow-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--natt);
  color: #fff;
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px rgba(11, 18, 51, 0.1), 0 30px 60px -20px rgba(11, 18, 51, 0.55);
  transform: translate(-50%, -50%);
}
/* Meldingene i sløyfa, hver i sitt eget format. Sporet de følger, synes ikke. */
.fm-bg { fill: #fff; stroke: rgba(11, 18, 51, 0.07); }
.fm > g { filter: url(#fm-skygge); }
.fm-tekst { font: 500 15px var(--font); letter-spacing: -0.01em; fill: var(--ink); }
.fm-ekstra { font: 500 15px var(--font); fill: var(--ink-3); }
.fm-ikontekst { font: 800 14px var(--font); }
.fm-anrop .fm-tekst { font-weight: 650; fill: #C22D63; }
.fm-sms .fm-bg, .fm-sms .fm-hale { fill: #E9EBF0; stroke: none; }
.fm-messenger .fm-bg, .fm-messenger .fm-hale { fill: #4F5FF0; stroke: none; }
.fm-messenger .fm-tekst { fill: #fff; }
.fm-lapp .fm-bg { fill: #FFE68A; stroke: none; }
.fm-lapp .fm-tekst { fill: #4D3A00; font-style: italic; }

/* ---------- Flater som legger seg flate (Linear-stil) ---------- */

[data-flatten] {
  transform: perspective(1400px) translateY(var(--fy, 0px)) rotateX(var(--fx, 0deg)) scale(var(--fs, 1));
  transform-origin: 50% 0%;
}

/* ---------- Spør iTurnus ---------- */

kbd {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(11, 18, 51, 0.08);
  font: 600 12px/1.4 var(--font);
  letter-spacing: 0;
  color: inherit;
}
.nav-k {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 5px 0 13px;
  border: 0;
  border-radius: 99px;
  background: rgba(11, 18, 51, 0.06);
  font-size: 14px;
  cursor: pointer;
  transition: background-color .25s;
}
.nav-k:hover { background: rgba(11, 18, 51, 0.1); }
.nav-dark .nav-k { background: rgba(255, 255, 255, 0.1); }
.nav-dark .nav-k:hover { background: rgba(255, 255, 255, 0.16); }
.nav-dark .nav-k kbd { background: rgba(255, 255, 255, 0.14); }

html.pal-open { overflow: hidden; }
.pal { position: fixed; inset: 0; z-index: 100; display: grid; justify-items: center; align-items: start; padding: 14vh 16px 16px; }
.pal-backdrop { position: absolute; inset: 0; background: rgba(11, 18, 51, 0.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade-in .3s var(--ease) both; }
.pal-panel {
  position: relative;
  width: min(680px, 100%);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(11, 18, 51, 0.08), 0 50px 120px -40px rgba(11, 18, 51, 0.4);
  overflow: hidden;
  animation: pal-in .55s var(--spring) both;
}
@keyframes pal-in { from { opacity: 0; transform: translateY(-14px) scale(.95); filter: blur(10px); } }
.pal-search { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pal-logo { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.pal-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--ink); font: 500 19px var(--font); letter-spacing: -0.015em; }
.pal-search input::placeholder { color: var(--ink-3); }
.pal kbd { background: rgba(11, 18, 51, 0.06); color: var(--ink-2); }
.pal-list { list-style: none; margin: 0; padding: 8px; max-height: 52vh; overflow: auto; }
.pal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--ink-2);
  cursor: pointer;
  animation: rise .5s var(--ease) both;
  animation-delay: calc(var(--i) * 28ms);
}
.pal-item[aria-selected="true"] { background: rgba(11, 18, 51, 0.05); color: var(--ink); }
.pal-item .f-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--c); box-shadow: 0 6px 14px -6px var(--c); }
.pal-item .glyph { width: 18px; height: 18px; stroke: #fff; }
.pal-hint { margin-left: auto; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.pal-empty { padding: 18px 12px; color: var(--ink-2); }
.pal-view { padding: 20px 22px 24px; }
.pal-view.is-in > * { animation: rise .55s var(--ease) both; }
.pal-view.is-in > *:nth-child(2) { animation-delay: .06s; }
.pal-view.is-in > *:nth-child(3) { animation-delay: .12s; }
.pal-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.pal-keys { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }

.pv-title { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.pv-bar { height: 8px; margin-top: 14px; border-radius: 99px; background: rgba(11, 18, 51, 0.07); overflow: hidden; }
.pv-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--dag), var(--aften), var(--nattvakt)); transform-origin: left; animation: pv-fill 1.3s var(--ease-io) both; }
@keyframes pv-fill { from { transform: scaleX(0); } }
.pv-done { margin-top: 18px; animation: rise .6s var(--ease) 1.25s both; }
/* Ekte kjøring: streken følger motoren, og resultatet kommer når svaret er der */
.pv-live .pv-bar span { animation: none; transform: scaleX(0); transition: transform .4s var(--ease); }
.pv-live .pv-done { animation-delay: .1s; }
.pv-big { font: 700 34px/1.1 var(--font-round); letter-spacing: -0.03em; }
.pv-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pv-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: rgba(11, 18, 51, 0.05); font-size: 13px; font-weight: 600; }
.pv-pill svg, .pv-note svg, .pv-rules svg { width: 14px; height: 14px; flex: none; }
.pv-pill.ok { background: rgba(31, 175, 120, 0.12); color: #128558; }
.pv-mini { margin-top: 16px; --name-col: 0; }
.pv-mini .mc { animation: pop .5s var(--spring) both; animation-delay: calc(1.35s + var(--i) * 30ms); }
.pv-list, .pv-bars, .pv-rules { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.pv-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(11, 18, 51, 0.04); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 100ms); }
.pv-list .avatar { width: 34px; height: 34px; background: rgba(11, 18, 51, 0.07); box-shadow: none; color: var(--ink); font-size: 12px; }
.pv-who { display: grid; min-width: 0; font-size: 13px; color: var(--ink-3); }
.pv-who b { font-size: 15px; color: var(--ink); font-weight: 600; }
.pv-list .btn { margin-left: auto; }
.pv-list .btn:disabled { background: rgba(31, 175, 120, 0.12); color: #128558; cursor: default; }
.pv-list .btn svg { width: 14px; height: 14px; }
.pv-bars li { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 12px; font-size: 14px; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 100ms); }
.pv-bars i { height: 8px; border-radius: 99px; background: rgba(11, 18, 51, 0.07); overflow: hidden; }
.pv-bars b { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--nattvakt); transform-origin: left; animation: pv-fill .9s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 250ms); }
.pv-bars em { font-style: normal; font-size: 13px; color: var(--ink-3); }
.pv-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: #128558; }
.pv-rules li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: rgba(11, 18, 51, 0.04); font-size: 14px; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 80ms + 100ms); }
.pv-rules li.ok { color: var(--ink); }
.pv-rules li.ok svg { color: var(--ok); }
.pv-rules li.bad { background: rgba(236, 92, 138, 0.1); }
.pv-rules .btn { margin-left: auto; }
.pv-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--aften); box-shadow: 0 0 12px var(--aften); }
@keyframes fade-in { from { opacity: 0; } }

@media (max-width: 759px) {
  .nav-k { display: none; }
  .pal { padding-top: 10vh; }
}

/* Små rutenett: uten navnekolonne når det ikke finnes navn */
.mini { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mini-law { grid-template-columns: 64px repeat(7, minmax(0, 1fr)); }
.pv-mini { gap: 4px; }
.pv-mini .mc { aspect-ratio: 2.3; border-radius: 7px; font-size: 11px; }
.pv-mini .mc-F1, .pv-mini .mc-F2 { background: var(--fri); color: var(--ink-3); }

/* Telefonen tilpasser seg høyden på scenen */
.phone { width: auto; height: min(100%, 620px); aspect-ratio: 9 / 18.5; }
.phone-time { font-size: clamp(40px, 8vh, 64px); }
.win-days span { white-space: nowrap; overflow: hidden; }
@media (max-width: 759px) {
  .win-days { font-size: 10px; }
  .phone { padding-top: 48px; border-radius: 38px; }
  .notif { padding: 10px; border-radius: 16px; }
  .notif-text { font-size: 12px; }
}


/* ---------- Åtte uker i dybden ---------- */

.tunnel { position: relative; height: 360vh; background: var(--natt); color: #fff; }
.tunnel-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  perspective: 1100px;
  perspective-origin: 50% 40%;
  background:
    radial-gradient(60% 50% at 50% 62%, rgba(91, 108, 255, 0.22), transparent 70%),
    radial-gradient(40% 30% at 50% 100%, rgba(236, 92, 138, 0.14), transparent 70%);
}
.tunnel-copy { position: absolute; top: calc(var(--nav-h) + 5vh); left: 0; right: 0; z-index: 200; text-align: center; padding-inline: var(--gutter); pointer-events: none; }
.tunnel-count { font: 700 clamp(56px, 8vw, 116px)/1 var(--font-round); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; transition: color .5s var(--ease); }
.tunnel-count.is-done { color: #6EE7B7; }
.tunnel-title { margin: 14px auto 0; max-width: 34ch; font: 650 clamp(20px, 2.2vw, 28px)/1.25 var(--font-display); letter-spacing: -0.025em; color: rgba(255, 255, 255, 0.75); text-wrap: balance; }
.tunnel-scene { position: absolute; inset: 0; transform-style: preserve-3d; }
.tn-plane {
  position: absolute;
  left: 50%;
  top: 64%;
  width: min(560px, 86vw);
  padding: 16px 16px 18px;
  border-radius: 22px;
  background: var(--natt-2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  --y: -60px;
  --z: -1260px;
  opacity: 0;
  transform: translate(-50%, -50%) translate3d(0, var(--y), var(--z));
  transition: transform 1s var(--ease), opacity .7s var(--ease), filter .7s var(--ease), box-shadow .7s var(--ease);
  will-change: transform, opacity;
}
/* Uka du er i, står foran. De neste venter bak, svakere jo lenger unna. Den forrige flyr forbi kameraet. */
.tn-plane[data-d="0"] { --y: 0px; --z: 0px; opacity: 1; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 60px -10px rgba(91, 108, 255, 0.55), 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.tn-plane[data-d="1"] { --y: -34px; --z: -420px; opacity: .42; }
.tn-plane[data-d="2"] { --y: -56px; --z: -840px; opacity: .14; }
.tn-plane[data-d="past"] { --y: 60px; --z: 640px; opacity: 0; filter: blur(14px); transition: transform 1s var(--ease), opacity .45s var(--ease), filter .45s var(--ease); }
.tunnel-count.is-tick { animation: vt-in .55s var(--ease) both; }
.tn-week { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; font-weight: 650; transition: opacity .5s var(--ease); }
/* Bare uka foran har tittel. Kanten av de neste skal ikke vise halve ord. */
.tn-plane:not([data-d="0"]) .tn-week { opacity: 0; }
.tn-ok { padding: 2px 9px; border-radius: 99px; background: rgba(31, 175, 120, 0.2); color: #6EE7B7; font-size: 12px; }
.tn-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.tn-c { aspect-ratio: 2; border-radius: 6px; background: rgba(255, 255, 255, 0.07); }
.tn-D { background: var(--dag); }
.tn-A { background: var(--aften); }
.tn-N { background: var(--nattvakt); }
.tunnel.is-flat { height: auto; }
.tunnel.is-flat .tunnel-sticky { position: relative; height: auto; padding: 120px var(--gutter) 100px; perspective: none; }
.tunnel.is-flat .tunnel-copy { position: static; }
.tunnel.is-flat .tunnel-scene { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; max-width: var(--maxw); margin: 48px auto 0; }
.tunnel.is-flat .tn-plane { position: static; width: auto; opacity: 1; transform: none; transition: none; }

/* ---------- Prøv selv ---------- */

.swap-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.swap-rules { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.swap-rules li { color: var(--ink-2); transition: color .3s var(--ease), transform .5s var(--spring); }
/* Regelen som ville blitt brutt, lyser opp mens du drar */
.swap-rules li.is-broken { color: #C2255C; transform: translateX(6px); }
.swap-board {
  position: relative;
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--r-l);
  background: var(--card);
  box-shadow: 0 0 0 1px rgba(11, 18, 51, 0.04), 0 30px 60px -34px rgba(11, 18, 51, 0.22);
  isolation: isolate;
}
.sb-grid { display: grid; grid-template-columns: 64px repeat(7, minmax(0, 1fr)); gap: 6px; align-items: center; }
.sb-day { font-size: 12px; text-align: center; color: var(--ink-3); }
.sb-day.is-helg { color: var(--ink); font-weight: 650; }
.sb-name { font-size: 14px; font-weight: 600; }
.sb-cell {
  display: grid;
  place-items: center;
  aspect-ratio: 1.35;
  border: 0;
  border-radius: 10px;
  background: var(--fri);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .4s var(--spring), box-shadow .25s var(--ease), opacity .25s;
}
.sb-cell.sb-F { cursor: default; }
.sb-cell.sb-D { background: var(--dag); color: #3B2800; }
.sb-cell.sb-A { background: var(--aften); }
.sb-cell.sb-N { background: var(--nattvakt); }
.sb-cell:hover:not(.sb-F) { transform: translateY(-2px); box-shadow: 0 6px 14px -6px rgba(11, 18, 51, 0.35); }
.sb-cell.is-lifted { opacity: .25; transform: scale(.92); }
.sb-cell.is-picked { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--nattvakt); }
.sb-cell.is-ok { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--ok), 0 0 24px rgba(31, 175, 120, 0.5); transform: scale(1.06); }
.sb-cell.is-bad { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--aften), 0 0 24px rgba(236, 92, 138, 0.5); transform: scale(1.06); }
.sb-cell.is-new { animation: pop .6s var(--spring) both; }
.sb-cell.is-shake { animation: shake .45s var(--ease); }
@keyframes shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.sb-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.sb-status { font-size: 15px; font-weight: 550; color: var(--ink-2); transition: color .3s; }
.sb-status.is-ok { color: #0C7A51; }
.sb-status.is-bad { color: #B42A5A; }
.sb-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  pointer-events: none;
  box-shadow: 0 18px 36px -10px rgba(11, 18, 51, 0.45);
}
.sb-ghost.sb-D { background: var(--dag); color: #3B2800; }
.sb-ghost.sb-A { background: var(--aften); }
.sb-ghost.sb-N { background: var(--nattvakt); }
.sb-tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 91;
  max-width: 260px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  pointer-events: none;
  box-shadow: 0 12px 30px -10px rgba(11, 18, 51, 0.5);
}
.sb-tip.is-ok { background: var(--ok); }
.sb-tip.is-bad { background: #C2335F; }

@media (max-width: 960px) {
  .swap-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 759px) {
  .sb-grid { grid-template-columns: 52px repeat(7, minmax(0, 1fr)); gap: 4px; }
  .sb-name { font-size: 12px; }
  .sb-foot { flex-direction: column; align-items: flex-start; }
}


/* ---------- Overskrifter i to toner ---------- */

.h-mute { color: var(--ink-3); }
.save .h-mute, .cta .h-mute, .tunnel .h-mute { color: rgba(255, 255, 255, 0.5); }

/* ---------- Flytende glassmeny ---------- */

:root { --nav-h: 80px; }
.nav {
  top: 12px;
  left: 50%;
  right: auto;
  width: min(1200px, calc(100% - 24px));
  height: 60px;
  border-radius: 18px;
  transform: translateX(-50%);
}
.nav::before {
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(11, 18, 51, 0.07), 0 1px 2px rgba(11, 18, 51, 0.04), 0 12px 32px -16px rgba(11, 18, 51, 0.25);
}
.nav-dark .nav::before {
  background: linear-gradient(137deg, rgba(11, 18, 51, 0.62), rgba(11, 18, 51, 0.82));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.12), 0 16px 40px -18px rgba(0, 0, 0, 0.7);
}
.nav .nav-inner { width: 100%; padding: 0 10px 0 18px; }

/* ---------- Ark som glir over hverandre ---------- */

.sheet { position: relative; z-index: 2; margin-top: -72px; border-radius: 72px 72px 0 0; }
.tunnel.sheet { overflow: clip; }
/* Lyse ark tilbake fra natten. De dekker den mørke seksjonen med bakgrunnen sin. */
.sheet-light { background: var(--paper); }
/* Rett etter heroen er arket lyst på lyst. Toppen tones inn, så skyggen under turnusvinduet ikke kuttes med en kant. */
.hero + .sheet-light { --over: 72px; background: linear-gradient(rgb(245 246 248 / 0), var(--paper) var(--over)); }
.is-covered { transform-origin: 50% 100%; will-change: transform, opacity; }

@media (max-width: 759px) {
  .nav { top: 8px; width: calc(100% - 16px); height: 56px; border-radius: 16px; }
  .sheet { margin-top: -44px; border-radius: 44px 44px 0 0; }
  .hero + .sheet-light { --over: 44px; }
}

/* ---------- Merket lever: bølgen puster, og hver melding som går inn, gir et lite slag ---------- */

.flow-pill { padding: 15px 24px 15px 20px; }
.pill-wave { display: flex; align-items: center; gap: 3px; height: 20px; margin-right: 11px; }
.pill-wave i { width: 3px; height: 100%; border-radius: 2px; transform: scaleY(.3); animation: wave 1.1s ease-in-out infinite alternate; }
.pill-wave i:nth-child(1) { background: var(--dag); animation-delay: -.2s; }
.pill-wave i:nth-child(2) { background: #FF7A4D; animation-delay: -.65s; }
.pill-wave i:nth-child(3) { background: var(--aften); animation-delay: -.35s; }
.pill-wave i:nth-child(4) { background: #A855F7; animation-delay: -.9s; }
.pill-wave i:nth-child(5) { background: var(--nattvakt); animation-delay: -.5s; }
@keyframes wave { from { transform: scaleY(.28); } to { transform: scaleY(.85); } }
.win-cover-pill .pill-wave i { animation: none; transform: scaleY(.6); }
.win-cover-pill .pill-wave { margin-right: 11px; }

.flow-pill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; }
.flow-pill.is-tar { animation: pill-tar .7s var(--ease); }
.flow-pill.is-tar::after { animation: pill-ring 1s var(--ease); }
.flow-pill.is-tar .pill-wave { animation: wave-hit .8s var(--ease); }
@keyframes pill-tar { 0% { transform: translate(-50%, -50%); } 22% { transform: translate(-50%, -50%) scale(.93); } 100% { transform: translate(-50%, -50%); } }
@keyframes pill-ring { 0% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 77, 141, 0.5), 0 0 0 0 rgba(91, 91, 255, 0.35); } 100% { opacity: 0; box-shadow: 0 0 0 16px rgba(255, 77, 141, 0), 0 0 0 30px rgba(91, 91, 255, 0); } }
@keyframes wave-hit { 25% { transform: scaleY(1.7); } 100% { transform: none; } }

/* Det iTurnus gjorde med meldingen, rett over merket */
.flow-done {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 18px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px 7px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22C58B, #0E9F6E);
  color: #fff;
  font: 600 13px/1 var(--font);
  letter-spacing: -0.005em;
  white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(14, 159, 110, 0.75);
  opacity: 0;
  pointer-events: none;
}
.flow-done svg { width: 13px; height: 13px; flex: none; }
.flow-done.is-on { animation: done 2.6s var(--ease) both; }
@keyframes done {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(.92); filter: blur(4px); }
  12% { opacity: 1; transform: translate(-50%, 0); filter: none; }
  80% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -8px); }
}

@media (max-width: 759px) {
  .flow-pill { padding: 11px 17px 11px 14px; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(11, 18, 51, 0.1), 0 20px 40px -16px rgba(11, 18, 51, 0.55); }
  .flow-pill .wordmark { font-size: 18px; }
  .pill-wave { height: 15px; gap: 2.5px; margin-right: 8px; }
  .pill-wave i { width: 2.5px; }
  .flow-done { top: calc(100% + 16px); bottom: auto; font-size: 12px; padding: 6px 11px 6px 9px; }
  .flow-edge { stroke-width: 48; }
  .flow-ribbon { stroke-width: 46; }
}

/* ---------- Demosiden: lys og varm, kort tekst til venstre og skjemaet som et kort til høyre ---------- */

.demo-page {
  min-height: 100vh;
  background:
    radial-gradient(50% 60% at 0% 0%, #FFE6D5 0, rgba(255, 230, 213, 0) 70%),
    radial-gradient(45% 55% at 100% 15%, #FFE3EE 0, rgba(255, 227, 238, 0) 70%),
    radial-gradient(60% 50% at 50% 110%, #E3E4FF 0, rgba(227, 228, 255, 0) 70%),
    #FCFAF7;
}
.demo-page .nav::before { background: rgba(252, 250, 247, 0.72); }
.dp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
  padding-top: calc(var(--nav-h) + clamp(48px, 10vh, 120px));
  padding-bottom: 96px;
}
.dp-intro { display: grid; gap: 22px; padding-top: 12px; }
.dp-title { font: 700 clamp(44px, 5.6vw, 76px)/1 var(--font-display); letter-spacing: -0.045em; text-wrap: balance; }
.dp-lead { max-width: 30ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.42; color: var(--ink-2); text-wrap: pretty; }
.dp-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-strip span { display: grid; place-items: center; min-width: 38px; height: 28px; padding: 0 8px; border-radius: 8px; font: 700 12px var(--font); color: #fff; animation: rise .6s var(--ease) both; }
.dp-strip span:nth-child(2) { animation-delay: .05s; }
.dp-strip span:nth-child(3) { animation-delay: .1s; }
.dp-strip span:nth-child(4) { animation-delay: .15s; }
.dp-strip span:nth-child(5) { animation-delay: .2s; }
.dp-strip span:nth-child(6) { animation-delay: .25s; }
.dp-strip span:nth-child(7) { animation-delay: .3s; }
.dp-strip .mc-D { background: linear-gradient(140deg, #FFCB4D, #FF9F1A); color: #4A2C00; }
.dp-strip .mc-A { background: linear-gradient(140deg, #FF73A6, #F2357C); }
.dp-strip .mc-N { background: linear-gradient(140deg, #8088FF, #4F46E5); }
.dp-strip .mc-F { background: #ECEEF3; color: var(--ink-3); }
.dp-points { display: grid; gap: 14px; margin: 6px 0 0; padding: 0; list-style: none; max-width: 44ch; }
.dp-points li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.dp-points li::before { content: ""; position: absolute; left: 0; top: .32em; width: 14px; height: 14px; border-radius: 50%; background: #C9F2DF; box-shadow: inset 0 0 0 4px #C9F2DF, inset 0 0 0 14px #12A06A; }
.dp-points b { color: var(--ink); font-weight: 650; }
.dp-phone { display: inline-flex; justify-self: start; padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.7); box-shadow: 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }

.dp-card {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(11, 18, 51, 0.06), 0 40px 90px -40px rgba(11, 18, 51, 0.35);
  animation: rise .7s var(--ease) .1s both;
}
.dp-form { display: grid; gap: 14px; }
.dp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.dp-field { display: grid; gap: 6px; }
.dp-field span, .dp-set legend { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dp-field input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: #F4F5F8;
  box-shadow: inset 0 0 0 1px rgba(11, 18, 51, 0.06);
  color: var(--ink);
  font: 16px var(--font);
  transition: box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.dp-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 84px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: #F4F5F8;
  box-shadow: inset 0 0 0 1px rgba(11, 18, 51, 0.06);
  color: var(--ink);
  font: 16px/1.45 var(--font);
  resize: vertical;
  transition: box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.dp-field span em { margin-left: 4px; font-style: normal; font-weight: 500; color: var(--ink-3); }
.dp-field textarea::placeholder { color: #A3A8BD; }
.dp-field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--nattvakt), 0 0 0 4px rgba(91, 91, 255, 0.14); }
.dp-field [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #E0457B; background: #fff; }
.dp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dp-go:disabled { opacity: .7; cursor: progress; transform: none; }
.dp-intro .dp-title { max-width: 12ch; }
.dp-field input::placeholder { color: #A3A8BD; }
.dp-field input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--nattvakt), 0 0 0 4px rgba(91, 91, 255, 0.14); }
.dp-set { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; border: 0; min-width: 0; }
.dp-set legend { padding: 0; margin-bottom: 8px; }
.dp-set legend em { margin-left: 4px; font-style: normal; font-weight: 500; color: var(--ink-3); }
.dp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dp-chips label { position: relative; cursor: pointer; }
.dp-chips input { position: absolute; opacity: 0; pointer-events: none; }
.dp-chips span { display: inline-flex; align-items: center; height: 38px; padding: 0 15px; border-radius: 99px; background: #F4F5F8; box-shadow: inset 0 0 0 1px rgba(11, 18, 51, 0.06); font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background-color .2s var(--ease), color .2s var(--ease), transform .3s var(--spring); }
.dp-chips label:hover span { background: #ECEEF3; }
.dp-chips input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.dp-chips input:focus-visible + span { outline: 2px solid var(--nattvakt); outline-offset: 2px; }
.dp-chips input:active + span { transform: scale(.96); }
.dp-error { padding: 10px 14px; border-radius: 12px; background: rgba(255, 77, 141, 0.1); color: #B0285A; font-size: 14px; font-weight: 600; }
.dp-go {
  height: 54px;
  margin-top: 6px;
  border: 0;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font: 650 16px var(--font);
  cursor: pointer;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease);
}
.dp-go:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(11, 18, 51, 0.5); }
.dp-go:active { transform: scale(.98); }
.dp-go:focus-visible { outline: 2px solid var(--nattvakt); outline-offset: 3px; }
.dp-note { font-size: 13px; color: var(--ink-3); text-align: center; }
.dp-done { display: grid; justify-items: start; gap: 10px; padding: 8px 0; animation: rise .6s var(--ease) both; }
.dp-check { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #22C58B, #0E9F6E); color: #fff; box-shadow: 0 10px 24px -10px rgba(14, 159, 110, 0.75); }
.dp-check svg { width: 20px; height: 20px; }
.dp-done-title { font: 700 32px/1.1 var(--font-display); letter-spacing: -0.03em; }
.dp-done-text { margin-bottom: 8px; color: var(--ink-2); }

@media (max-width: 900px) {
  .dp { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: calc(var(--nav-h) + 40px); }
  .dp-intro { gap: 16px; padding-top: 0; }
  .dp-points { display: none; }
}
@media (max-width: 520px) {
  .dp-row { grid-template-columns: minmax(0, 1fr); }
  .dp-card { border-radius: 24px; }
}

/* ---------- Ønskerunden, motoren, kveldene og sykehuset: lyse blokker, tekst og ett kort ---------- */

.blokk { background: var(--card); }
.blokk-paper { background: var(--paper); }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); align-items: center; gap: clamp(40px, 7vw, 112px); }
.duo-snu { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); }
.duo-snu .duo-text { order: 2; }
.duo-text { min-width: 0; }
.duo-text .h2 { font-size: clamp(32px, 3.8vw, 52px); }

.steg { display: grid; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; counter-reset: steg; }
.steg li { counter-increment: steg; display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.steg li::before { content: counter(steg); display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: #FFE3D3; color: #8A3A12; font: 700 13px var(--font-round); }
.steg li:nth-child(2)::before { background: #FFDDEA; color: #9C2456; }
.steg li:nth-child(3)::before { background: #E2E1FF; color: #3730A3; }
.steg li:nth-child(4)::before { background: #CDF3E1; color: #0F6B47; }

.kort { min-width: 0; padding: clamp(20px, 2.4vw, 28px); border-radius: 26px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 30px 70px -36px rgba(11, 18, 51, 0.35); }
.blokk:not(.blokk-paper) .kort { background: #FBFBFD; }
.kort-topp { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.kort-tittel { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.kort-sub { margin-top: 2px; font-size: 14px; color: var(--ink-3); }
.st { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 650; font-style: normal; white-space: nowrap; transition: background-color .4s var(--ease), color .4s var(--ease); }
.st-ja { background: #D9F5E8; color: #0F6B47; }
.st-nei { background: #FFE6D8; color: #9A3F12; }
.st-pa { background: #E2E1FF; color: #3730A3; }

.runde-tall { font-size: 14px; color: var(--ink-2); }
.runde-tall b { font-size: 17px; color: var(--ink); }
.runde-bar { height: 8px; margin: 16px 0 6px; border-radius: 99px; background: rgba(11, 18, 51, 0.07); overflow: hidden; }
.runde-bar span { display: block; height: 100%; width: calc(var(--k) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--dag), var(--aften), var(--nattvakt)); transition: width 1s var(--ease); }
.runde-liste { display: grid; margin: 8px 0 18px; padding: 0; list-style: none; }
.runde-liste li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 550; }
.runde-liste li:last-child { border-bottom: 0; }
.runde-liste .avatar { width: 32px; height: 32px; font-size: 11.5px; }
.runde-liste .st { margin-left: auto; }
.runde-knapp { width: 100%; }
.runde-knapp:disabled { background: #D9F5E8; color: #0F6B47; cursor: default; }

.orden { display: grid; gap: 4px; margin: 32px 0 0; padding: 0; list-style: none; counter-reset: orden; }
.orden li { counter-increment: orden; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.orden li::before { content: counter(orden); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1px var(--line); font: 700 13px var(--font-round); color: var(--ink-2); }
.orden b { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.orden span { color: var(--ink-2); font-size: 15px; }
.fotnote { margin-top: 18px; max-width: 44ch; color: var(--ink-3); font-size: 15px; }

.motor-klar { opacity: 1; transition: opacity .5s var(--ease); }
.motor-steg { display: grid; gap: 2px; margin: 18px 0; padding: 0; list-style: none; }
.motor-steg li { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 15px; color: var(--ink-2); transition: color .3s var(--ease), opacity .3s var(--ease); }
.motor-steg li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: #D9F5E8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2 4.8-5.2' fill='none' stroke='%230F6B47' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; transition: background-color .3s var(--ease); }
.motor-svar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 0; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.motor-svar div { padding: 12px 14px; border-radius: 16px; background: var(--paper); }
.blokk-paper .motor-svar div { background: #F6F7FA; }
.motor-svar dt { font-size: 12.5px; color: var(--ink-3); }
.motor-svar dd { margin: 2px 0 0; font-size: 15px; font-weight: 650; }
.motor-svar .ok { color: #0F6B47; }
.motor-svar .obs { color: #9A3F12; }
/* Mens motoren jobber: stegene krysses av ett for ett, og svarene kommer til slutt */
.motor.is-kjor .motor-klar { opacity: 0; }
.motor.is-kjor .motor-steg li { opacity: .45; }
.motor.is-kjor .motor-steg li::before { background-color: rgba(11, 18, 51, 0.07); background-image: none; }
.motor.is-kjor .motor-steg li.is-ferdig { opacity: 1; color: var(--ink); }
.motor.is-kjor .motor-steg li.is-ferdig::before { background-color: #D9F5E8; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2 4.8-5.2' fill='none' stroke='%230F6B47' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.motor.is-kjor .motor-svar { opacity: 0; transform: translateY(8px); }

.par { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.par li { display: grid; gap: 10px; align-content: start; padding: 22px 22px 24px; border-radius: 22px; background: var(--paper); }
.par .stryk { color: var(--ink-3); font-size: 15px; }
.par b { font-size: 19px; font-weight: 650; line-height: 1.25; letter-spacing: -0.02em; }

.tall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tall-kort { padding: 26px 24px 28px; border-radius: 24px; }
.tall-kort p:last-child { margin-top: 6px; max-width: 24ch; font-size: 16px; color: var(--ink-2); }
.tall-verdi { font: 700 clamp(44px, 5vw, 64px)/1 var(--font-round); letter-spacing: -0.04em; }
.t-fersken { background: #FFE9DD; }
.t-fersken .tall-verdi { color: #B4481A; }
.t-lilla { background: #E9E8FF; }
.t-lilla .tall-verdi { color: #4338CA; }
.t-mint { background: #DDF6EA; }
.t-mint .tall-verdi { color: #0F7A50; }
.kilde { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

.slutt { padding-block: clamp(96px, 16vh, 180px); background:
  radial-gradient(50% 70% at 10% 0%, #FFE6D5 0, rgba(255, 230, 213, 0) 70%),
  radial-gradient(45% 60% at 90% 20%, #FFE3EE 0, rgba(255, 227, 238, 0) 70%),
  radial-gradient(60% 60% at 50% 110%, #E3E4FF 0, rgba(227, 228, 255, 0) 70%),
  #FCFAF7; }
.slutt-inner { display: grid; justify-items: center; text-align: center; }
.slutt-tittel { max-width: 16ch; font: 700 clamp(38px, 5.2vw, 72px)/1.02 var(--font-display); letter-spacing: -0.042em; text-wrap: balance; }
.slutt .lead { margin-inline: auto; }
.slutt .btn { margin-top: 28px; }

@media (max-width: 960px) {
  .duo, .duo-snu { grid-template-columns: minmax(0, 1fr); }
  .duo-snu .duo-text { order: 0; }
  .par { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tall { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .par { grid-template-columns: minmax(0, 1fr); }
  .par li { padding: 18px 18px 20px; }
  .motor-svar { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Pastell: varm lys flate, mørk grå tekst, rolige pastellflater og ingen glød ---------- */

:root {
  --paper: #FAF8F5;
  --card: #FFFFFF;
  --ink: #1E1F24;
  --ink-2: #55565E;
  --ink-3: #8D8B92;
  --line: rgba(40, 32, 24, 0.09);
  --natt: #1E1F24;
  --dag: #F4BE82;
  --aften: #EE9DB9;
  --nattvakt: #9DA2EE;
  --ok: #3FA97C;
  --fri: #F0EEEA;
  --p-d: #FBE5CC; --p-d-t: #8C5718;
  --p-a: #F9DCE6; --p-a-t: #9E3B63;
  --p-n: #E3E4FA; --p-n-t: #3F4396;
  --p-m: #DDF2E7; --p-m-t: #23704F;
}
.nav::before { background: rgba(250, 248, 245, 0.78); }

/* Vaktene i pastell, som i appen */
.wc-D.is-on, .mc-D, .dp-strip .mc-D { background: var(--p-d); color: var(--p-d-t); box-shadow: none; }
.wc-A.is-on, .mc-A, .dp-strip .mc-A { background: var(--p-a); color: var(--p-a-t); box-shadow: none; }
.wc-N.is-on, .mc-N, .dp-strip .mc-N { background: var(--p-n); color: var(--p-n-t); box-shadow: none; }
.dp-strip .mc-F, .pv-mini .mc-F1, .pv-mini .mc-F2 { background: var(--fri); color: var(--ink-3); }

/* Pillen: mørk grå, bølgen i pastell, bekreftelsen som en rolig mint-lapp */
.pill-wave i:nth-child(1) { background: #F4BE82; }
.pill-wave i:nth-child(2) { background: #F2AE9E; }
.pill-wave i:nth-child(3) { background: #EE9DB9; }
.pill-wave i:nth-child(4) { background: #C7A9EE; }
.pill-wave i:nth-child(5) { background: #9DA2EE; }
.flow-done { background: var(--p-m); color: var(--p-m-t); box-shadow: 0 0 0 1px rgba(35, 112, 79, 0.08), 0 8px 18px -12px rgba(35, 112, 79, 0.35); }
@keyframes pill-ring { 0% { opacity: 1; box-shadow: 0 0 0 0 rgba(30, 31, 36, 0.18); } 100% { opacity: 0; box-shadow: 0 0 0 16px rgba(30, 31, 36, 0); } }
.flow-edge { stroke: rgba(40, 32, 24, 0.08); filter: drop-shadow(0 12px 20px rgba(40, 32, 24, 0.06)); }

/* Kappløpet på et lyst kort */
.race-track { background: var(--card); color: var(--ink); --logo-dot: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -44px rgba(40, 32, 24, 0.4); }
.race-track::before { display: none; }
.lane + .lane { border-top-color: var(--line); }
.lane-name { color: var(--ink-3); }
.lane-new .lane-name, .lane-name .wordmark { color: var(--ink); }
.lane-spin { border-color: rgba(30, 31, 36, 0.1); border-top-color: var(--ink-2); }
.lane-old .lane-clock { color: #CBC7C0; }
.lane-weeks i { background: rgba(30, 31, 36, 0.06); }
.lane-weeks i::after { background: #D6D1C9; }
.lane-bar { background: rgba(30, 31, 36, 0.06); }
.lane-bar span { background: var(--nattvakt); box-shadow: none; }
.lane-now { color: var(--ink-3); }
.lane-new .lane-now { color: var(--ink-2); }
.lane-new.is-done .lane-now { color: var(--ink); }
.lane-new.is-done .lane-now::before { box-shadow: none; }

/* Blokkene: samme varme flate, hvite kort, pastell bare der det betyr noe */
.blokk, .blokk-paper { background: var(--paper); }
.blokk:not(.blokk-paper) .kort, .kort { background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -40px rgba(40, 32, 24, 0.35); }
.steg li::before, .steg li:nth-child(n)::before { background: var(--card); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line); }
.st-ja { background: var(--p-m); color: var(--p-m-t); }
.st-nei { background: var(--p-d); color: var(--p-d-t); }
.st-pa { background: var(--p-n); color: var(--p-n-t); }
.runde-bar span { background: var(--nattvakt); }
.motor-bar span { background: #9ED8BD; }
.motor-svar div, .blokk-paper .motor-svar div { background: var(--paper); }
.motor-svar .ok { color: var(--p-m-t); }
.motor-svar .obs { color: var(--p-d-t); }
.par li { background: #FBEADF; }
.par li:nth-child(3n+2) { background: #ECEBFA; }
.par li:nth-child(3n) { background: #E4F3EB; }
.tall-kort.t-fersken { background: #FBEADF; }
.tall-kort.t-lilla { background: #ECEBFA; }
.tall-kort.t-mint { background: #E4F3EB; }
.tall-kort .tall-verdi { color: var(--ink); }
.tall-kort:hover { transform: none; }

/* Avslutningen er én pastellblokk, som hos Clay og Slite */
.slutt { background: var(--paper); padding-block: 24px clamp(64px, 10vh, 120px); }
.slutt-inner { padding: clamp(56px, 8vw, 104px) 24px; border-radius: 40px; background: #FBE7DA; }

/* Paletten og demosiden i samme pastell */
.pal-item .f-icon { background: color-mix(in srgb, var(--c) 45%, #fff); box-shadow: none; }
.pal-item .glyph { stroke: var(--ink); }
.pv-bar span { background: var(--nattvakt); }
.demo-page { background: var(--paper); }
.dp-check { background: var(--p-m); color: var(--p-m-t); box-shadow: none; }
.dp-points li::before { top: .5em; width: 8px; height: 8px; background: var(--ok); box-shadow: none; left: 6px; }
.dp-phone { background: var(--p-m); color: var(--p-m-t); box-shadow: none; }
.dp-card { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 0 1px var(--line), 0 30px 70px -50px rgba(40, 32, 24, 0.4); }
.dp-field input, .dp-field textarea, .dp-chips span { background: var(--paper); }
.runde-liste li { transition: opacity .5s var(--ease), transform .6s var(--ease); }
.runde.is-vent .runde-liste li { opacity: 0; transform: translateY(8px); }

/* Pillen er glass: meldingene og båndet skimtes gjennom, teksten er mørk */
.flow-pill, .flow-pill.flow-pill {
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(40, 32, 24, 0.1), 0 16px 34px -16px rgba(40, 32, 24, 0.35);
}
.win-cover { background: var(--card); }
.win-cover-pill { color: var(--ink); }

/* Meldingene i pastell */
.fm-anrop .fm-tekst { fill: #9E3B63; }
.fm-messenger .fm-bg, .fm-messenger .fm-hale { fill: #E0E1FA; }
.fm-messenger .fm-tekst { fill: #3F4396; }
.fm-sms .fm-bg, .fm-sms .fm-hale { fill: #EFECE7; }
.fm-lapp .fm-bg { fill: #FBEFC4; }
.fm-lapp .fm-tekst { fill: #6B5410; }
.fm-bg { stroke: rgba(40, 32, 24, 0.07); }

/* Kveldene: problemet og svaret i én setning, samme størrelse, problemet dempet */
.par li { display: block; padding: 24px 24px 26px; }
.par .stryk, .par b { display: inline; font-size: 19px; line-height: 1.32; letter-spacing: -0.02em; }
.par .stryk { color: var(--ink-3); font-weight: 600; }
.par b { color: var(--ink); font-weight: 650; }

/* Footeren: Book demo øverst, ordmerket og org.nr. under en tynn linje */
.slutt-inner { display: grid; justify-items: stretch; padding-bottom: 28px; }
.slutt-cta { display: grid; justify-items: center; padding-bottom: clamp(56px, 8vw, 96px); }
.fot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 22px 8px 0; border-top: 1px solid rgba(40, 32, 24, 0.1); text-align: left; }
.fot .wordmark { font-size: 20px; color: var(--ink); }
.fot p { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Footeren ligger helt nederst: full bredde, runde hjørner bare oppe, ingen luft under */
.slutt { padding-bottom: 0; }
.slutt-inner { width: 100%; margin: 0; padding: clamp(64px, 9vw, 112px) var(--gutter) max(24px, env(safe-area-inset-bottom, 0px)); border-radius: 40px 40px 0 0; }
.fot { width: min(var(--maxw), 100%); margin-inline: auto; padding-inline: 0; }

/* Status uten pilleform: farget tekst med en liten prikk foran */
.st, .st-ja, .st-nei, .st-pa { height: auto; padding: 0; border-radius: 0; background: none; gap: 7px; font-size: 13px; font-weight: 600; }
.st::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.st-ja { color: var(--p-m-t); }
.st-nei { color: var(--p-d-t); }
.st-pa { color: var(--p-n-t); }

/* Ingen småtekst: alt som skal leses er minst 15–16 px */
.kort-tittel { font-size: 19px; }
.kort-sub, .runde-tall { font-size: 16px; }
.runde-tall b { font-size: 19px; }
.st, .st-ja, .st-nei, .st-pa { font-size: 15px; }
.runde-liste li { font-size: 16px; }
.motor-steg li { font-size: 16px; }
.motor-svar dt { font-size: 14.5px; }
.motor-svar dd { font-size: 17px; }
.orden span { font-size: 16px; }
.fotnote { font-size: 17px; color: var(--ink-2); }
.kilde { font-size: 15px; }
.tall-kort p:last-child { font-size: 17px; }
.flow-done { font-size: 15px; padding: 8px 14px 8px 11px; }
.fot p { font-size: 16px; }
.dp-field span, .dp-set legend { font-size: 15px; }
.dp-chips span { font-size: 15px; }
.dp-note { font-size: 15px; }
.dp-phone { font-size: 15px; }
@media (max-width: 759px) { .flow-done { font-size: 14px; } }
.runde-liste .avatar { width: 36px; height: 36px; font-size: 13px; }
.steg li::before, .orden li::before { font-size: 14px; }
.fotnote { max-width: 48ch; text-wrap: balance; }

/* Demosiden: bare tekst og tre felt. Ingen prikker foran punktene */
.dp-points { gap: 16px; }
.dp-points li { padding-left: 0; font-size: 17px; }
.dp-points li::before { content: none; }
/* Status på forsiden: bare farget tekst */
.st::before { content: none; }

/* Demosiden, proff: punktene som rader med tynne linjer, tittel over tekst, kortet midt på høyden */
.dp { align-items: center; min-height: calc(100vh - 96px); padding-bottom: 72px; }
.dp-intro { padding-top: 0; }
.dp-points { gap: 0; margin-top: 12px; max-width: 46ch; border-top: 1px solid var(--line); }
.dp-points li { display: grid; gap: 3px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }
.dp-points b { font-size: 17px; }
.dp-card { border-radius: 24px; }
.dp-field input { height: 50px; border-radius: 12px; }
.dp-field textarea { border-radius: 12px; }
.dp-go { border-radius: 12px; height: 52px; }
@media (max-width: 900px) { .dp { min-height: 0; align-items: start; } }
