/* =========================================================
   Sukkerstopp – statisk nettside
   Fargepalett hentet fra appen og dagens nettside
   ========================================================= */

/* Figtree, selvhostet (SIL Open Font License, se assets/fonts/OFL.txt) */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #4a4a7e;
  --navy-deep: #3a3a63;
  --navy-soft: #5b5a95;
  --pink: #c34b83;
  --pink-dark: #a83d6f;
  --pink-bright: #f380b7;
  --pink-light: #fde6ec;
  --pink-pale: #fff3f6;
  --pink-cell: #f7e4ec;
  --blue-light: #e2eaff;
  --lilac-a: #7b6cb8;
  --lilac-b: #b674b8;
  --sand-a: #c7b79c;
  --sand-b: #ab977b;
  --ink: #282828;
  --ink-soft: #4d4d4d;
  --muted: #6c737d;
  --line: #ececf2;
  --bg: #ffffff;
  --bg-soft: #f6f6f9;
  --warn: #b85c1e;

  --radius-s: 14px;
  --radius-m: 22px;
  --radius-l: 32px;
  --shadow: 0 20px 50px -20px rgba(58, 58, 99, .35);
  --shadow-soft: 0 10px 30px -15px rgba(58, 58, 99, .3);

  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--pink); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--pink-bright); outline-offset: 3px; border-radius: 8px; }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.7em; border-radius: 999px; border: 0;
  background: var(--pink); color: #fff; font-weight: 600; text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 20px -10px rgba(195, 75, 131, .8);
}
.btn:hover { background: var(--pink-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--ghost {
  background: var(--pink-light); color: var(--pink); box-shadow: none;
  border: 2px solid var(--pink);
}
.btn--ghost:hover { background: #fbd6e2; }
.btn--sm { padding: .55em 1.2em; font-size: .95rem; }

.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badges a { display: block; transition: transform .15s ease; }
.badges a:hover { transform: translateY(-2px); }
.badges img { height: 52px; width: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--pink); }
.lang { display: inline-flex; gap: 2px; background: var(--bg-soft); border-radius: 999px; padding: 3px; }
.nav .lang a {
  padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--muted);
}
.nav .lang a[aria-current="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.nav-toggle {
  display: none; background: var(--blue-light); border: 0; width: 44px; height: 44px; border-radius: 12px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; content: "";
  transition: transform .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .lang { align-self: flex-start; margin-top: 16px; }
  .nav .lang a:not(.btn) { padding: 6px 14px; border-bottom: 0; }
  .nav .btn { margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 72px 0 0;
  isolation: isolate;
}
.hero::after {
  /* myk bølge, som toppen av hjemskjermen i appen */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 140px;
  background: var(--bg);
  clip-path: path("M0 140 L0 120 C 260 20, 520 40, 900 40 C 1200 40, 1400 10, 1600 -40 L 1600 140 Z");
  z-index: -1;
}
@supports not (clip-path: path("M0 0")) {
  .hero::after { border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
}
.hero .blob {
  position: absolute; border-radius: 50%; filter: blur(2px); z-index: -2; opacity: .55;
}
.hero .blob--1 { width: 420px; height: 420px; right: -120px; top: -140px; background: radial-gradient(circle at 30% 30%, var(--lilac-b), transparent 65%); }
.hero .blob--2 { width: 300px; height: 300px; left: -100px; top: 220px; background: radial-gradient(circle at 60% 40%, var(--pink), transparent 70%); opacity: .35; }

.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  padding: 6px 14px 6px 8px; border-radius: 999px; font-size: .9rem; font-weight: 500; margin-bottom: 22px;
}
.eyebrow .dot {
  width: 22px; height: 22px; border-radius: 50%; background: var(--pink);
  display: grid; place-items: center;
}
.eyebrow .dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.5); opacity: .5; } }

.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--pink-bright); }
.hero .lead { font-size: 1.15rem; color: rgba(255, 255, 255, .85); max-width: 34em; }
.hero .cta-line { font-weight: 600; color: #fff; margin-top: 4px; }
.hero .badges { margin-top: 26px; }
.hero-copy { padding-bottom: 120px; }

.hero-stats {
  display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap;
}
.hero-stats div { font-size: .9rem; color: rgba(255, 255, 255, .7); }
.hero-stats strong { display: block; font-size: 1.6rem; color: #fff; font-weight: 700; }

.hero-device { position: relative; display: flex; justify-content: center; padding-bottom: 40px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; text-align: left; }
  .hero-device { padding-bottom: 80px; }
}

/* ---------- Telefon-mockup ---------- */
.phone {
  position: relative; width: 360px; max-width: 100%;
  background: #fff; border-radius: 48px; padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(20, 20, 50, .55), 0 0 0 1px rgba(0, 0, 0, .04);
  color: var(--ink);
  transform: rotate(2deg);
  transition: transform .4s ease;
}
.phone:hover { transform: rotate(0deg); }
.phone-screen {
  position: relative; border-radius: 38px; overflow: hidden; background: #fff;
  min-height: 640px; display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 104px; height: 30px; background: #111; border-radius: 20px; z-index: 3;
}
.app-top {
  position: relative; background: var(--navy); color: #fff; text-align: center;
  padding: 58px 16px 54px; font-weight: 600; font-size: 1.15rem;
}
.app-top::after {
  content: ""; position: absolute; left: -30%; right: -5%; bottom: -30px; height: 56px; background: #fff;
  border-radius: 55% 45% 0 0 / 100% 70% 0 0; transform: rotate(-4deg);
}
.app-body { position: relative; z-index: 1; padding: 4px 18px 0; text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; }
.app-label { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.app-days { font-size: 5.2rem; font-weight: 600; line-height: 1; letter-spacing: -.04em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.app-days-label { font-size: .95rem; margin: 0 0 12px; }
.app-hms { display: flex; gap: 14px; justify-content: center; color: #6e6e6e; }
.app-hms span { display: flex; flex-direction: column; align-items: center; font-size: 2rem; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.1; min-width: 2.2ch; }
.app-hms small { font-size: .85rem; font-weight: 400; margin-top: 2px; }

.cheat-card {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%;
  background: var(--pink-light); border: 2px solid #f8c4d6; border-radius: 22px;
  padding: 10px 10px 10px 12px; margin: 18px 0 12px; text-align: left;
}
.cheat-icons { display: flex; flex-shrink: 0; }
.cheat-icons .ticket { width: 30px; height: 40px; }
.cheat-icons .ticket + .ticket { margin-left: -8px; transform: rotate(8deg); }
.cheat-card .txt { flex: 1; min-width: 0; }
.cheat-card strong { display: block; font-size: .92rem; font-weight: 600; white-space: nowrap; }
.cheat-card small { display: block; font-size: .72rem; color: var(--warn); line-height: 1.3; }
.cheat-card .btn--ghost { padding: .45em .9em; font-size: .85rem; border-width: 2px; flex-shrink: 0; }
.cheat-card.is-empty { background: var(--bg-soft); border-color: var(--line); }
.cheat-card.is-empty .btn--ghost { opacity: .4; pointer-events: none; }

.app-stop { width: 76%; padding: .7em; font-size: 1.05rem; }

.app-tabbar {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 16px 10px 12px;
  background: var(--blue-light); border-radius: 20px; padding: 10px 4px 8px;
  box-shadow: 0 8px 18px -10px rgba(58, 58, 99, .4);
}
.app-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; color: #444; }
.app-tabbar span.is-active { color: var(--pink); }
.app-tabbar svg { width: 20px; height: 20px; }

.float-chip {
  position: absolute; background: #fff; color: var(--ink); border-radius: 18px;
  padding: 10px 14px; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; z-index: 2;
  animation: bob 5s ease-in-out infinite;
}
.float-chip .ico { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; }
.float-chip small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
.float-chip--a { left: -40px; top: 40px; }
.float-chip--a .ico { background: var(--pink-light); color: var(--pink); }
.float-chip--b { right: -30px; bottom: 210px; animation-delay: -2.5s; }
.float-chip--b .ico { background: var(--blue-light); color: var(--navy); }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 520px) {
  .float-chip { display: none; }
  .phone { transform: none; }
}

/* ---------- Seksjoner ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 110px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 14px;
}

/* ---------- Funksjoner (bento) ---------- */
.features { background: var(--bg); padding-top: 60px; }
.bento {
  display: grid; gap: 22px;
  grid-template-columns: repeat(6, 1fr);
}
.tile {
  position: relative; border-radius: var(--radius-l); padding: 30px;
  background: var(--bg-soft); overflow: hidden;
  display: flex; flex-direction: column;
}
.tile h3 { font-size: 1.5rem; font-weight: 700; }
.tile > p { color: var(--ink-soft); }
.tile .tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--navy); margin-bottom: 16px;
}
.tile .tag svg { width: 14px; height: 14px; }
.tile .demo { margin-top: auto; padding-top: 18px; }

.tile--bet { grid-column: span 3; background: var(--navy); color: #fff; }
.tile--bet > p { color: rgba(255, 255, 255, .78); }
.tile--bet .tag { background: rgba(255, 255, 255, .14); color: #fff; }
.tile--crave { grid-column: span 3; background: var(--pink-pale); }
.tile--cheat { grid-column: span 2; background: var(--blue-light); }
.tile--widget { grid-column: span 4; background: #f4f0fb; }

@media (max-width: 960px) {
  .tile--bet, .tile--crave, .tile--cheat, .tile--widget { grid-column: span 6; }
}
@media (max-width: 520px) {
  .tile { padding: 22px; border-radius: 26px; }
}

/* Veddemål-demo */
.bet-head {
  background: rgba(255, 255, 255, .08); border-radius: 22px; padding: 18px;
}
.bet-time { display: flex; align-items: baseline; gap: 14px; font-weight: 700; flex-wrap: wrap; }
.bet-time b { font-size: 2.4rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bet-time i { font-style: normal; font-weight: 500; font-size: 1.05rem; margin-left: 4px; }
.bet-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600;
  background: rgba(255, 255, 255, .14); padding: 6px 12px; border-radius: 999px;
}
.pill svg { width: 15px; height: 15px; }
.players { display: grid; gap: 10px; margin-top: 12px; }
.player {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-radius: 18px; padding: 12px 16px; color: var(--ink);
  transition: transform .25s ease;
}
.player:nth-child(1) { background: var(--pink-light); }
.player:nth-child(2) { background: var(--blue-light); }
.player:nth-child(3) { background: #f1eafb; }
.player .name { font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.player .avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: .85rem; font-weight: 700;
}
.player .used { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); }
.player .used .ticket { width: 24px; height: 32px; }
.player .used .count {
  min-width: 22px; height: 22px; border-radius: 11px; background: var(--pink); color: #fff;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700; padding: 0 6px;
}
.player.is-out { opacity: .55; }
.player.is-out .name::after {
  content: "ute"; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: var(--ink); color: #fff; border-radius: 6px; padding: 2px 6px;
}
.player.bump { transform: scale(1.03); }
.bet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.bet-actions .btn { padding: .65em 1.3em; }
.bet-actions .reset { background: none; border: 0; color: rgba(255, 255, 255, .7); text-decoration: underline; font-size: .9rem; }
.bet-feed { margin-top: 10px; font-size: .85rem; color: rgba(255, 255, 255, .7); min-height: 1.4em; }

/* Sukkersug-demo */
.heat-wrap { background: #fff; border-radius: 22px; padding: 16px; box-shadow: var(--shadow-soft); }
.heat-label { font-size: .85rem; color: var(--ink-soft); margin-bottom: 8px; display: flex; justify-content: space-between; }
.heat {
  display: grid; grid-template-columns: 16px repeat(24, 1fr); gap: 3px; align-items: center;
  font-size: .68rem; color: var(--muted);
}
.heat .hr { grid-column: span 6; text-align: left; }
.heat .cell {
  aspect-ratio: 1 / 1; border-radius: 3px; background: var(--pink-cell);
  transition: background .3s ease, transform .3s ease;
}
.heat .cell[data-v="1"] { background: #f2b6cf; }
.heat .cell[data-v="2"] { background: #e283ae; }
.heat .cell[data-v="3"] { background: var(--pink); }
.heat .cell.pop { transform: scale(1.6); }
.crave-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px;
}
.crave-stats div { background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow-soft); }
.crave-stats b { display: block; font-size: 1.9rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.crave-stats .ok b { color: var(--pink); }
.crave-stats span { font-size: .9rem; color: var(--ink-soft); }
.triggers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  border: 1.5px solid var(--navy); background: #fff; color: var(--navy);
  border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; }
.crave-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.crave-actions .btn { padding: .65em 1.2em; flex: 1; min-width: 150px; }

/* Cheatdays-demo */
.segment {
  display: grid; grid-template-columns: repeat(3, 1fr); background: #3a3a63;
  border-radius: 999px; padding: 4px; position: relative;
}
.segment button {
  background: none; border: 0; color: rgba(255, 255, 255, .8); padding: .6em .4em; border-radius: 999px;
  font-size: .92rem; position: relative; z-index: 1; transition: color .2s ease;
}
.segment button[aria-checked="true"] { color: #fff; }
.segment .thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3);
  background: #7575b8; border-radius: 999px; transition: transform .25s cubic-bezier(.3, .7, .3, 1);
}
.stepper { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.stepper button {
  width: 56px; height: 56px; border-radius: 50%; border: 2.5px solid var(--pink);
  background: transparent; color: var(--pink); font-size: 1.8rem; line-height: 1;
  display: grid; place-items: center; transition: background .15s ease, opacity .15s ease;
}
.stepper button.plus { background: var(--pink); color: #fff; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper .val { text-align: center; }
.stepper .val b { display: block; font-size: 3.4rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stepper .val span { font-weight: 600; color: var(--ink-soft); font-size: .95rem; }
.cheat-hint { text-align: center; font-size: .88rem; color: var(--navy); margin: 12px 0 0; }
.stepper.is-off { opacity: .35; pointer-events: none; }

/* Widget-demo */
.widget-demo { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 380px; }
.swatch {
  background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: .85rem; color: var(--ink-soft);
}
.swatch i {
  display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 18px; border: 3px solid transparent;
  transition: transform .15s ease, border-color .15s ease;
}
.swatch:hover i { transform: scale(1.05); }
.swatch[aria-checked="true"] i { border-color: var(--pink); }
.swatch[aria-checked="true"] { color: var(--ink); font-weight: 600; }
.bg-rosa { background: var(--pink); }
.bg-mork { background: #2f2f2f; }
.bg-lilla { background: linear-gradient(135deg, var(--lilac-a), var(--lilac-b)); }
.bg-sand { background: linear-gradient(135deg, var(--sand-a), var(--sand-b)); }

.toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 12px 16px; margin-top: 16px; max-width: 380px;
}
.toggle-row b { display: block; font-weight: 600; }
.toggle-row small { color: var(--muted); font-size: .82rem; }
.switch {
  position: relative; width: 52px; height: 30px; border-radius: 15px; border: 0; background: #d6d6de; flex-shrink: 0;
  transition: background .2s ease;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s ease;
}
.switch[aria-checked="true"] { background: var(--pink); }
.switch[aria-checked="true"]::after { transform: translateX(22px); }

.widget-stage {
  position: relative; width: 210px; height: 210px; border-radius: 34px; padding: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .5), transparent 40%),
    linear-gradient(160deg, #cfd8f5, #f3d6e4);
  display: grid; place-items: center;
}
.widget {
  width: 160px; height: 160px; border-radius: 30px; color: #fff; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); transition: background .3s ease;
}
.widget b { font-size: 3.6rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.widget span { font-size: .85rem; font-weight: 600; margin-top: 6px; }
.widget small { font-size: .75rem; font-weight: 500; opacity: .95; }
.widget small[hidden] { display: none; }
@media (max-width: 640px) {
  .widget-demo { grid-template-columns: 1fr; }
  .widget-stage { margin-inline: auto; }
}

/* ---------- Fordeler ---------- */
.benefits { background: var(--blue-light); position: relative; overflow: hidden; }
.benefits::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -200px;
  border-radius: 46% 54% 60% 40% / 50% 40% 60% 50%; background: rgba(255, 255, 255, .5);
}
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.benefit {
  background: #fff; border-radius: var(--radius-m); padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.benefit:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: var(--shadow); }
.benefit .ico {
  width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--pink-light); border-radius: 22px 22px 22px 6px;
}
.benefit:nth-child(even) .ico { border-radius: 22px 6px 22px 22px; }
.benefit .ico img { width: 34px; height: 34px; object-fit: contain; }
.benefit h3 { font-size: 1.2rem; font-weight: 700; }
.benefit p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .benefit-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .benefit-grid { grid-template-columns: 1fr; } }

/* ---------- Slik fungerer det ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 3px;
  background: repeating-linear-gradient(90deg, var(--pink) 0 10px, transparent 10px 20px);
  opacity: .35;
}
.step { position: relative; text-align: center; padding: 0 6px; }
.step .num {
  width: 70px; height: 70px; margin: 0 auto 20px; display: grid; place-items: center;
  background: #fff; border-radius: 50%; box-shadow: 0 0 0 8px #fff, var(--shadow-soft); position: relative;
}
.step .num img { width: 52px; height: 52px; }
.step h3 { font-size: 1.15rem; font-weight: 700; }
.step p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 70px 1fr; gap: 0 18px; text-align: left; }
  .step .num { margin: 0; grid-row: span 2; }
}

/* ---------- Spørsmål og svar ---------- */
.faq { padding-top: 40px; }
.faq-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.faq .section-head { position: sticky; top: 110px; margin-bottom: 0; }
.faq-list { display: grid; gap: 12px; }
.faq details {
  background: var(--bg-soft); border-radius: var(--radius-m); padding: 0 24px;
  transition: background .2s ease;
}
.faq details[open] { background: var(--pink-pale); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--pink);
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 500; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 0 22px; color: var(--ink-soft); }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq .section-head { position: static; }
}

/* ---------- Last ned ---------- */
.download { padding: 40px 0 110px; }
.download-card {
  position: relative; overflow: hidden; border-radius: 40px;
  background: var(--pink); color: #fff; padding: 64px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.download-card::before, .download-card::after {
  content: ""; position: absolute; border-radius: 50%;
}
.download-card::before { width: 380px; height: 380px; right: -80px; top: -140px; background: rgba(255, 255, 255, .1); }
.download-card::after { width: 220px; height: 220px; right: 140px; bottom: -120px; background: rgba(74, 74, 126, .35); }
.download-card h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; position: relative; }
.download-card p { color: rgba(255, 255, 255, .88); font-size: 1.1rem; position: relative; }
.download-card .badges { position: relative; margin-top: 24px; }
.download-art { position: relative; z-index: 1; display: flex; justify-content: center; }
.download-art .widget { width: 190px; height: 190px; transform: rotate(-6deg); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .45); }
.download-art .widget b { font-size: 4.4rem; }
.download-art .widget + .widget { position: absolute; width: 130px; height: 130px; left: calc(50% + 50px); top: 58%; transform: rotate(8deg); }
.download-art .widget:first-child { margin-right: 90px; }
.download-art .widget + .widget b { font-size: 3rem; }
@media (max-width: 860px) {
  .download-card { grid-template-columns: 1fr; padding: 40px 26px; border-radius: 30px; }
  .download-art { padding: 10px 0 30px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .78); padding: 70px 0 30px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer img.logo-f { height: 32px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.site-footer h3 { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 50px; padding-top: 22px; font-size: .88rem; color: rgba(255, 255, 255, .55); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Undersider (juridisk tekst o.l.) ---------- */
.page-hero {
  position: relative; background: var(--navy); color: #fff; padding: 70px 0 110px; isolation: isolate;
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 80px; background: var(--bg);
  clip-path: path("M0 80 L0 70 C 300 10, 700 30, 1000 26 C 1300 22, 1500 0, 1700 -20 L 1700 80 Z");
  z-index: -1;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; margin: 0; }
.page-hero p { color: rgba(255, 255, 255, .8); margin: 12px 0 0; font-size: 1.1rem; max-width: 40em; }
.prose { max-width: 760px; margin: 0 auto; padding: 30px 0 100px; }
.prose h2 { font-size: 1.6rem; font-weight: 700; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--pink); }
.prose .meta { color: var(--muted); font-size: .95rem; }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.member { background: var(--bg-soft); border-radius: var(--radius-m); padding: 24px; }
.member .avatar {
  width: 56px; height: 56px; border-radius: 18px 18px 18px 4px; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 14px;
}
.member h3 { margin: 0 0 2px; font-size: 1.1rem; }
.member .role { color: var(--pink); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.member p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } }

/* ---------- Scroll-animasjon ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.avatar--pink { background: var(--pink); }
.avatar--navy { background: var(--navy); }
.avatar--lilac { background: var(--lilac-a); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
