:root{
   --bg:#f6f4f0;
   --text:#111;
   --muted:#5b5b5b;
   --card:#ffffff;
   --border:#e7e3dd;
   --accent:#ff3131;
   --accent-2:#c9151a;
   --shadow:0 12px 30px rgba(0,0,0,.10);
   --radius:18px;
   --radius-sm:12px;
  
   --panel:#fbfaf8;
  }
  *{ box-sizing:border-box; }
  html,body{ height:100%; }
  body{
   margin:0;
   font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
   background: radial-gradient(1200px 700px at 50% 0%, #fff 0%, var(--bg) 60%);
   color:var(--text);
   line-height:1.6;
  }
  a{ color:inherit; }
  .app{ min-height:100vh; display:flex; flex-direction:column; }
  .topbar{
   display:flex;
   align-items:center;
   justify-content:space-between;
   gap:12px;
   padding:18px 20px 10px;
   max-width:980px;
   width:100%;
   margin:0 auto;
  }
  .brand{
   display:flex; align-items:center; gap:10px; min-width:0;
   color:#222;
  }
  .dot{ width:10px; height:10px; border-radius:999px; background:var(--accent); }
  .brand small{ display:block; color:var(--muted); font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
  .brand strong{ display:block; font-size:22px; letter-spacing:-.02em; }
  .actions{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
  .chip{
   border:1px solid var(--border);
   background:#fff;
   padding:8px 12px;
   border-radius:999px;
   font-weight:600;
   cursor:pointer;
   user-select:none;
  }
  .chip.primary{
   border-color: rgba(255,49,49,.35);
   background: rgba(255,49,49,.10);
   color:#8b0d12;
  }
  .wrap{
   max-width:980px;
   width:100%;
   margin:0 auto;
   padding:0 20px 28px;
   flex:1;
   display:flex;
  }
  .card{
   background:var(--card);
   border:1px solid var(--border);
   border-radius:var(--radius);
   box-shadow: var(--shadow);
   width:100%;
   overflow:hidden;
   display:flex;
   flex-direction:column;}
  .progress{
   height:10px;
   background:#f2efe9;
   position:relative;
  }
  .progress > span{
   position:absolute; left:0; top:0; bottom:0;
   width:0%;
   background: linear-gradient(90deg, var(--accent), #ff6b6b);
   transition: width .25s ease;
  }
  .content{
   padding:26px 28px 20px;
   display:flex;
   flex-direction:column;
   gap: 10px;
  }
  .kicker{ color:var(--muted); font-weight:700; letter-spacing:.08em; text-transform:uppercase; font-size:12px; }
  h1,h2,h3{ margin:0 0 8px; letter-spacing:-.02em; }
  h2{ font-size:22px; }
  p{ margin:0 0 10px; color:#1a1a1a; }
  .content > :last-child{ margin-bottom:0; }
  .content p:last-child{ margin-bottom:0; }
  .content ul:last-child{ margin-bottom:0; }
  .content hr:last-child{ margin-bottom:0; }
  .content h2{ margin-bottom:12px; }
  .content h3{ margin:14px 0 8px; font-size:18px; }
  .content .kicker{ margin-bottom:10px; }
  .list{ margin:0 0 10px; padding-left:18px; color:#1a1a1a; }

  .muted{ color:var(--muted); }
  .spacer{ height:8px; }
  .list{ margin:0; padding-left:18px; color:#1a1a1a; }
  .list li{ margin:6px 0; }
  .choices{ display:flex; flex-direction:column; gap:10px; margin-top:6px; }
  .choice{
   display:flex; gap:12px; align-items:flex-start;
   border:1px solid var(--border);
   border-radius: 14px;
   padding:12px 12px;
   background:#fff;
   cursor:pointer;
  }
  .choice input{ margin-top:3px; width:16px; height:16px; }
  .choice .label{ font-weight:650; }
  .choice .sub{ color:var(--muted); font-size:13px; margin-top:2px; }
  .pillrow{ display:flex; gap:10px; flex-wrap:wrap; margin-top:4px; }
  .pill{
   border:1px solid var(--border);
   background:#fff;
   border-radius:999px;
   padding:8px 12px;
   font-weight:650;
   cursor:pointer;
   user-select:none;
  }
  .pill.active{
   border-color: rgba(255,49,49,.55);
   background: rgba(255,49,49,.10);
   color:#8b0d12;
  }

  .callout{
   border:1px dashed #d8d2c8;
   background:#fbfaf8;
   border-radius:14px;
   padding:12px 12px;
   color:#2b2b2b;
  }

  /* Neutral, WI-style fact box (used for "Visste du at") */
  .factbox{
   border:1px solid #e8e1d6;
   background: var(--panel);
   border-radius:14px;
   padding:12px 12px 12px 14px;
   position:relative;
  }
  .factbox:before{
   content:"";
   position:absolute;
   left:0;
   top:0;
   bottom:0;
   width:4px;
   background: var(--accent);
   border-radius:14px 0 0 14px;
  }
  .factbox .k{
   font-size:12px;
   letter-spacing:.08em;
   text-transform:uppercase;
   color: var(--muted);
   font-weight:750;
   margin:0 0 6px 0;
  }
  .factbox p{ margin:0; color:#2b2b2b; }
  .factbox .muted{ color: var(--muted); }
  .footer{
   display:flex;
   justify-content:space-between;
   gap:12px;
   padding:14px 18px 18px;
   border-top:1px solid var(--border);
   background: linear-gradient(180deg, rgba(255,255,255,.65), #fff);
  }
  .btn{
   border:1px solid var(--border);
   background:#fff;
   padding:12px 16px;
   border-radius:999px;
   font-weight:750;
   cursor:pointer;
   user-select:none;
   min-width:120px;
  }
  .btn.primary{
   border-color: rgba(255,49,49,.35);
   background: var(--accent);
   color:#fff;
  }
  .btn.primary:hover{ background: var(--accent-2); }
  .btn:disabled{
   opacity:.45;
   cursor:not-allowed;
  }

  /* Cover */
  .cover{
   min-height:calc(100vh - 0px);
   width:100%;
   display:flex;
   align-items:center;
   justify-content:center;
   padding:18px;
  }
  .coverCard{
   width:min(980px, 100%);
   background: var(--accent-2);
   border-radius: 26px;
   box-shadow: var(--shadow);
   overflow:hidden;
   position:relative;
   display:flex;
   align-items:center;
   justify-content:center;
   height: calc(100vh - 36px);
   max-height: 760px;
   min-height: 520px;
  }

  .coverLogo{
   position:absolute;
   top:14px;
   left:16px;
   font-weight:700;
   letter-spacing:.02em;
   color: rgba(255,255,255,.92);
   font-size: 13px;
   text-transform:uppercase;
  }
  .coverInner{
   width:100%;
   padding: clamp(18px, 4vw, 44px);
   display:flex;
   flex-direction:column;
   align-items:center;
   justify-content:center;
   text-align:center;
   gap:16px;
  }
  .logoMark{
   font-weight:900;
   letter-spacing:-.03em;
   color:#fff;
   line-height:1.05;
   font-size: clamp(28px, 5vw, 44px);
  }
  .logoMark span{ display:block; font-weight:700; opacity:.95; }
  .coverTitle{
   color:#fff;
   font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
   font-size: clamp(28px, 6vw, 56px);
   letter-spacing:-.02em;
   margin-top:6px;
  }
  .coverSub{
   color: rgba(255,255,255,.92);
   font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
   font-size: clamp(14px, 2.2vw, 18px);
   max-width: 44ch;
  }
  .coverStart{
   margin-top:10px;
   background: rgba(255,255,255,.12);
   border:1px solid rgba(255,255,255,.32);
   color:#fff;
   padding:12px 18px;
   border-radius:999px;
   font-weight:800;
   cursor:pointer;
   min-width: 140px;
  }
  .coverStart:hover{ background: rgba(255,255,255,.18); }

  /* Modal */
  .modalBackdrop{
   position:fixed; inset:0;
   background: rgba(0,0,0,.40);
   display:none;
   align-items:center;
   justify-content:center;
   padding:18px;
   z-index: 50;
  }
  .modal{
      width:min(720px, 100%);
      max-height: 85vh;
      background:#fff;
      border-radius: 18px;
      border:1px solid var(--border);
      box-shadow: var(--shadow);
      overflow:hidden;
      display:flex;
      flex-direction:column;
    }
  .modalHeader{
   padding:14px 16px;
   border-bottom:1px solid var(--border);
   display:flex; align-items:center; justify-content:space-between; gap:10px;
  }
  .modalHeader strong{ font-size:16px; }
  .modalBody{ padding:16px; display:flex; flex-direction:column; gap:0; overflow:auto; line-height:1.6; }
  .service{
   border:1px solid var(--border);
   border-radius: 14px;
   padding:12px;
   background:#fff;
  }
  .serviceLinkCard{ text-decoration:none; color:inherit; display:block; }
  .serviceLinkCard:hover{ border-color: rgba(255,49,49,.35); }

  .serviceActions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
  .serviceAction{
   display:inline-flex; align-items:center; gap:8px;
   border:1px solid var(--border);
   background:#fff;
   border-radius:999px;
   padding:8px 12px;
   font-weight:650;
   color:#0a4ea3;
   text-decoration:none;
  }
  .serviceAction:hover{ border-color: rgba(255,49,49,.35); text-decoration:none; }


  .service strong{ display:block; }
  .service a{ color:#0a4ea3; text-decoration:none; }
  .service a:hover{ text-decoration:underline; }

  textarea{
   width:100%;
   min-height:120px;
   border:1px solid var(--border);
   border-radius: 14px;
   padding:12px;
   font: inherit;
   line-height:1.4;
   resize: vertical;
   background:#fff;
  }

  @media (max-width:720px){
   .content{ padding:20px 16px 16px; gap:12px; }
   .footer{ padding:12px 14px 14px; }
   .btn{ min-width: 110px; padding:11px 14px; }
   .topbar{ padding:14px 14px 8px; }
   .wrap{ padding:0 14px 18px; }}
 

 .content p{ margin: 0 0 14px; line-height:1.6; }
 .content ul{ margin: 8px 0 16px 20px; padding:0; }
 .content li{ margin: 0 0 8px; }
 .content .h2{ margin-top: 2px; }
 .content .h3{ margin-top: 14px; }

hr.sep{border:none;border-top:1px solid var(--line);margin:14px 0 14px;}

  .wiNote{ margin-top:18px; padding-top:14px; border-top:1px solid var(--border); }
  .wiNote h2{ font-size:18px; margin-bottom:10px; }
  .wiNote p{ font-size:15px; margin-bottom:8px; }
  .wiNote p:last-child{ margin-bottom:0; }

/* --- Spacing tune (v12.1) --- */
/* Mindre "luft" uten å miste lesbarhet */
.card{ min-height: unset; }
.content{ gap: 10px; }
.content p{ margin: 0 0 10px; line-height:1.5; }
.content ul{ margin: 6px 0 12px 20px; padding:0; }
.content li{ margin: 0 0 6px; }
hr.sep{ border:none; border-top:1px solid var(--line); margin:12px 0; }

/* Rettigheter-siden: tett og ryddig */
.rightsGrid{ display:flex; flex-direction:column; gap:12px; }
.rightsBlock{ padding:14px; border:1px solid var(--border); border-radius:16px; background:#fff; }
.rightsBlock h3{ margin:0 0 6px; }
.rightsBlock ul{ margin:6px 0 10px 18px; }
.rightsBlock .serviceActions{ margin-top:10px; }
