/* ==========================================================================
   Sikkerhetsanalyse — visuell profil (offentlig norsk, Altinn-slekt)
   Dyp Altinn-blå, mye luft, Inter. WCAG AA-kontrast. Ingen inline-stiler i
   HTML (CSP: style-src 'self'); alt bor her. Deles av forsiden og API-sidene.
   ========================================================================== */

:root {
  /* Farger – dyp Altinn-blå */
  --blue:       #00427A;   /* primær */
  --blue-700:   #003462;   /* hover / dyp */
  --blue-800:   #00284C;
  --blue-900:   #001E3B;   /* topplinje, footer */
  --blue-50:    #E9F0F8;
  --blue-100:   #C4D7EA;
  --blue-link:  #00427A;

  --ink:        #16202E;
  --ink-soft:   #33414F;
  --muted:      #58646F;
  --faint:      #7C8794;

  --bg:         #FFFFFF;
  --bg-alt:     #F3F5F8;
  --bg-tint:    #EAF1F8;
  --line:       #D2D8DF;
  --line-soft:  #E5E9EE;
  --field-border: #6E7A88;   /* tydeligere feltkant (Altinn-aktig) */

  --red:        #B91C1C;
  --red-bg:     #FBE7E7;
  --green:      #0A7A3D;
  --green-bg:   #E4F3EA;
  --amber:      #92590A;
  --amber-bg:   #FAF0DA;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1120px;
  --radius: 10px;
  --radius-sm: 5px;
  --shadow-sm: 0 1px 2px rgba(0,30,59,.08);
  --shadow: 0 2px 8px rgba(0,40,76,.07), 0 16px 40px -22px rgba(0,40,76,.34);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -.018em; color: var(--ink); }
p { margin: 0; }
a { color: var(--blue-link); text-underline-offset: 2px; }
img, svg { display: block; }
::selection { background: var(--blue-100); color: var(--blue-900); }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: 28px; }
.u-center { margin-inline: auto; text-align: center; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--blue);
}

/* --------------------------------------------------------------------------
   Topplinje + hode
   -------------------------------------------------------------------------- */
.gov-strip { background: var(--blue-900); color: #c9dcf0; font-size: 13.5px; }
.gov-strip .wrap { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.gov-strip svg { width: 15px; height: 15px; opacity: .85; }

.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); }
.brand .emblem { width: 38px; height: 42px; flex: none; }
.brand b { font-size: 21px; font-weight: 700; letter-spacing: -.02em; display: block; line-height: 1.1; }
.brand small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; letter-spacing: .005em; margin-top: 1px; line-height: 1.3; }
.nav-links { display: flex; gap: 34px; font-size: 16px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--blue); border-color: var(--blue); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { background: var(--bg-alt); border-bottom: 1px solid var(--line-soft); }
.hero .wrap { padding: 76px 28px 92px; }

/* hele hero er én swipe-flate */
.hero-shell { max-width: 700px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.hpanel { padding: 52px 50px; }
.hpanel-intro { text-align: center; }
.hpanel-intro .eyebrow { display: block; margin-bottom: 16px; }
.hpanel-intro h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; }
.hpanel-intro .lede { margin: 20px auto 30px; max-width: 30em; font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); line-height: 1.6; }
.hpanel-intro .usp { list-style: none; margin: 34px 0 0; padding: 0; display: inline-grid; gap: 15px; text-align: left; }
.hpanel-intro .usp li { display: flex; align-items: flex-start; gap: 13px; font-size: 16px; color: var(--ink-soft); }
.hpanel-intro .usp svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 1px; }

.hstep-title { font-size: clamp(22px, 3vw, 29px); }
.hstep-sub { margin: 9px 0 24px; color: var(--ink-soft); font-size: 16.5px; line-height: 1.55; }

/* --------------------------------------------------------------------------
   Tjenestekort / skjema
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.card-top { background: var(--blue); color: #fff; padding: 18px 28px; display: flex; align-items: center; gap: 12px; }
.card-top svg { width: 21px; height: 21px; }
.card-top h2 { color: #fff; font-size: 17.5px; font-weight: 600; letter-spacing: 0; }
.card-body { padding: 34px 30px 30px; }

.field { margin-bottom: 26px; }
.field > label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 9px; color: var(--ink); }
.field .sub { font-weight: 400; color: var(--muted); font-size: 14.5px; margin-top: -4px; margin-bottom: 11px; line-height: 1.5; }
.control {
  display: flex; align-items: stretch;
  border: 2px solid var(--field-border); border-radius: var(--radius-sm);
  background: var(--bg); transition: border-color .12s, box-shadow .12s;
}
.control:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.control .prefix { display: inline-flex; align-items: center; padding: 0 14px; color: var(--muted); background: var(--bg-alt); border-right: 2px solid var(--field-border); font-size: 15.5px; }
.control input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); padding: 15px 15px; }
.control input::placeholder { color: var(--faint); }

.input {
  width: 100%; border: 2px solid var(--field-border); border-radius: var(--radius-sm);
  background: var(--bg); font: inherit; font-size: 17px; color: var(--ink); padding: 15px 15px;
  transition: border-color .12s, box-shadow .12s;
}
.input:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.input.err { border-color: var(--red); }

.hint { font-size: 14px; color: var(--muted); margin-top: 8px; }
.hint code, .checkcard li code, .checkcard li code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; background: var(--bg-alt); padding: 1px 6px; border-radius: 4px; color: var(--ink-soft); }
.field-error { display: none; color: var(--red); font-size: 14.5px; margin-top: 8px; font-weight: 500; }
.field-error.on { display: block; }

/* målnettsted vist i steg 2 */
.target-chip {
  display: inline-flex; align-items: center; gap: 9px; max-width: 100%;
  background: var(--bg-tint); border: 1px solid var(--blue-100); color: var(--blue-800);
  border-radius: 999px; padding: 8px 16px; font-size: 14.5px; font-weight: 500; margin-bottom: 24px;
}
.target-chip svg { width: 15px; height: 15px; flex: none; }
.target-chip b { font-weight: 700; word-break: break-all; }

/* avkrysning + vilkår */
.check { display: flex; gap: 13px; align-items: flex-start; margin: 6px 0 26px; }
.check input { width: 23px; height: 23px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.check label { font-size: 15.5px; color: var(--ink-soft); line-height: 1.55; }

/* knapper */
.btn {
  font: inherit; font-weight: 600; font-size: 16.5px; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--radius-sm); padding: 14px 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  transition: background .12s, border-color .12s, color .12s; text-decoration: none;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }
.btn-secondary { background: var(--bg); color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue-50); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 34px; font-size: 18px; border-radius: 8px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.form-foot { margin-top: 6px; font-size: 14px; color: var(--muted); display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.form-foot svg { width: 17px; height: 17px; color: var(--green); flex: none; margin-top: 2px; }

fieldset { border: 0; margin: 0; padding: 0; }
[hidden] { display: none !important; }

/* to-stegs karusell (horisontal swipe). Uten JS: stablet, begge steg synlige. */
.step-back { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; color: var(--blue); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; padding: 2px 0; margin-bottom: 16px; }
.step-back svg { width: 18px; height: 18px; }
.steps-viewport { position: relative; }
.js .steps-viewport { overflow: hidden; transition: height .42s cubic-bezier(.4,0,.2,1); }
.js .steps-track { display: flex; flex-wrap: nowrap; transition: transform .42s cubic-bezier(.4,0,.2,1); will-change: transform; }
.js .steps-track.dragging { transition: none; }
.js .steps-track > * { flex: 0 0 100%; width: 100%; align-self: flex-start; }
@media (prefers-reduced-motion: reduce) { .js .steps-viewport, .js .steps-track { transition: none; } }

/* --------------------------------------------------------------------------
   Varselbokser (Designsystemet Alert)
   -------------------------------------------------------------------------- */
.alert { display: flex; gap: 14px; border: 1px solid; border-left-width: 6px; border-radius: var(--radius-sm); padding: 17px 19px; font-size: 15.5px; line-height: 1.55; }
.alert svg { width: 23px; height: 23px; flex: none; margin-top: 1px; }
.alert-info    { background: var(--blue-50); border-color: var(--blue); color: var(--blue-900); }
.alert-success { background: var(--green-bg); border-color: var(--green); color: #0a3d20; }
.alert-error   { background: var(--red-bg); border-color: var(--red); color: #6b0d0d; }
.alert-warn    { background: var(--amber-bg); border-color: var(--amber); color: #5e3500; }
.alert b { font-weight: 700; }

/* --------------------------------------------------------------------------
   Generiske seksjoner — mer luft
   -------------------------------------------------------------------------- */
section { scroll-margin-top: 18px; }
.band { padding: 100px 0; }
.band-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.sec-head { max-width: 660px; margin-bottom: 56px; }
.sec-head .eyebrow { display: block; margin-bottom: 13px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 38px); }
.sec-head p { margin-top: 16px; color: var(--ink-soft); font-size: 18.5px; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.pillar { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 30px; }
.pillar .pic { width: 46px; height: 46px; border-radius: 9px; background: var(--bg-tint); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.pillar .pic svg { width: 23px; height: 23px; }
.pillar h3 { font-size: 18.5px; }
.pillar p { margin-top: 9px; font-size: 15px; color: var(--muted); line-height: 1.6; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step .num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff; background: var(--blue); margin-bottom: 18px; }
.step h3 { font-size: 19px; }
.step p { margin-top: 9px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.checkcard { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.checkcard .ch-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.checkcard .ch-ic { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--bg-tint); color: var(--blue); }
.checkcard .ch-ic svg { width: 19px; height: 19px; }
.checkcard h3 { font-size: 17.5px; }
.checkcard ul { list-style: none; margin: 0; padding: 0; }
.checkcard li { display: flex; align-items: flex-start; gap: 11px; padding: 9px 0; font-size: 15px; color: var(--ink-soft); border-top: 1px solid var(--line-soft); }
.checkcard li:first-child { border-top: 0; }
.checkcard li svg { width: 16px; height: 16px; color: var(--green); flex: none; margin-top: 4px; }

/* karakterskala */
.grades { display: grid; gap: 12px; max-width: 640px; }
.gradebar { display: flex; align-items: center; gap: 17px; }
.gradebar .gl { font-weight: 700; font-size: 18px; width: 48px; height: 48px; border-radius: 9px; flex: none; display: grid; place-items: center; color: #fff; }
.gradebar .meter { flex: 1; height: 11px; border-radius: 6px; background: var(--line-soft); overflow: hidden; }
.gradebar .meter i { display: block; height: 100%; border-radius: 6px; }
.gradebar .gd { font-size: 15.5px; color: var(--muted); width: 160px; flex: none; }
.g-a .gl, .g-a .meter i { background: #0A7A3D; }
.g-b .gl, .g-b .meter i { background: #6FA32B; }
.g-c .gl, .g-c .meter i { background: #C68A00; }
.g-d .gl, .g-d .meter i { background: #E07B00; }
.g-e .gl, .g-e .meter i { background: #CC4B1E; }
.g-f .gl, .g-f .meter i { background: #B91C1C; }
.g-a .meter i { width: 96%; } .g-b .meter i { width: 82%; } .g-c .meter i { width: 68%; } .g-d .meter i { width: 54%; } .g-e .meter i { width: 40%; } .g-f .meter i { width: 24%; }

/* FAQ + vilkår */
.faq { max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); margin-bottom: 13px; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 600; font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 21px; height: 21px; color: var(--blue); transition: transform .2s; flex: none; }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq .ans { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.62; }

/* --------------------------------------------------------------------------
   Resultat-/statussider (returneres av API-ene)
   -------------------------------------------------------------------------- */
.result-page { background: var(--bg-alt); min-height: 62vh; padding: 72px 0; }
.result-card { max-width: 620px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 38px; }
.result-card h1 { font-size: 27px; margin-bottom: 10px; }
.result-card .lead { color: var(--ink-soft); margin-bottom: 24px; font-size: 17px; }
.result-card .alert { margin-bottom: 24px; }
.result-card .btn-row { margin-top: 28px; }

/* --------------------------------------------------------------------------
   Foot
   -------------------------------------------------------------------------- */
.footer { background: var(--blue-900); color: #a6bad2; padding: 64px 0 32px; font-size: 14.5px; }
.footer .ft-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand b { color: #fff; }
.footer .brand small { color: #97acca; }
.footer .ft-blurb { max-width: 380px; margin-top: 15px; line-height: 1.6; }
.footer .ft-cols { display: flex; gap: 60px; }
.footer h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #7790b1; margin: 0 0 15px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer a { color: #c2d2e8; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .ft-bot { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 24px; color: #7790b1; }
.disclaimer { display: flex; gap: 10px; align-items: flex-start; max-width: 660px; }
.disclaimer svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* --------------------------------------------------------------------------
   Turnstile-verifiseringsmodal (smooth, animert)
   -------------------------------------------------------------------------- */
.ts-modal { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; padding: 24px; }
.ts-modal.open { display: grid; }
.ts-backdrop { position: absolute; inset: 0; background: rgba(0,16,36,.55); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); opacity: 0; animation: ts-bd .28s ease forwards; }
@keyframes ts-bd { to { opacity: 1; } }

.ts-card {
  position: relative; z-index: 1; width: min(440px, 100%);
  background: #fff; border-radius: 18px; padding: 38px 34px 30px; text-align: center;
  box-shadow: 0 32px 90px -26px rgba(0,16,36,.6), 0 2px 8px rgba(0,16,36,.14);
  transform: translateY(20px) scale(.96); opacity: 0;
  animation: ts-in .5s cubic-bezier(.2,.9,.25,1) .04s forwards;
}
@keyframes ts-in { to { transform: none; opacity: 1; } }
.ts-close { position: absolute; top: 15px; right: 15px; width: 36px; height: 36px; border: 0; background: var(--bg-alt); color: var(--muted); border-radius: 9px; cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s; }
.ts-close:hover { background: #e6ebf0; color: var(--ink); }
.ts-close svg { width: 18px; height: 18px; }

.ts-emblem { position: relative; width: 88px; height: 88px; margin: 8px auto 20px; display: grid; place-items: center; }
.ts-emblem .ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 250deg, var(--blue) 322deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: ts-spin 1s linear infinite;
}
.ts-emblem .disc { position: absolute; inset: 11px; border-radius: 50%; background: var(--blue-50); transition: background .25s, inset .25s; }
.ts-emblem .glyph { position: relative; width: 36px; height: 40px; color: var(--blue); }
.ts-emblem .glyph svg { width: 100%; height: 100%; }
.ts-emblem .check { position: absolute; width: 42px; height: 42px; color: #fff; opacity: 0; }
.ts-emblem .check path { stroke-dasharray: 40; stroke-dashoffset: 40; }
@keyframes ts-spin { to { transform: rotate(360deg); } }

.ts-modal.success .ring { animation: none; background: var(--green); -webkit-mask: none; mask: none; }
.ts-modal.success .disc { background: var(--green); inset: 0; }
.ts-modal.success .glyph { display: none; }
.ts-modal.success .check { opacity: 1; }
.ts-modal.success .check path { animation: ts-draw .5s ease .06s forwards; }
.ts-modal.success .ts-emblem::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); animation: ts-pulse .75s ease-out forwards; }
@keyframes ts-draw { to { stroke-dashoffset: 0; } }
@keyframes ts-pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(1.55); opacity: 0; } }

.ts-modal.error .ring { animation: none; background: var(--red); -webkit-mask: none; mask: none; }
.ts-modal.error .disc { background: var(--red-bg); }
.ts-modal.error .glyph { color: var(--red); }

.ts-card h3 { font-size: 22px; }
.ts-sub { color: var(--muted); font-size: 15px; margin: 8px 0 22px; line-height: 1.5; }
.ts-widget { min-height: 70px; display: flex; justify-content: center; align-items: center; }
.ts-status { min-height: 22px; margin-top: 16px; font-weight: 600; font-size: 15px; color: var(--blue); }
.ts-modal.success .ts-status { color: var(--green); }
.ts-modal.error .ts-status { color: var(--red); }

/* --------------------------------------------------------------------------
   Reveal + responsiv
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(12px); animation: rise .6s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .04s; } .d2 { animation-delay: .12s; } .d3 { animation-delay: .22s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .checks { grid-template-columns: 1fr; }
  .band { padding: 76px 0; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav-links { display: none; }
  .hero .wrap { padding: 52px 18px 64px; }
  .hpanel { padding: 38px 26px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .pillars { grid-template-columns: 1fr; }
  .gradebar .gd { width: 124px; }
  .card-body { padding: 28px 22px 24px; }
  .result-card { padding: 30px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ts-backdrop, .ts-card { opacity: 1; transform: none; }
  .ts-emblem .ring { animation: none; }
  .ts-modal.success .check path { stroke-dashoffset: 0; }
  .ts-modal.success .ts-emblem::after { display: none; }
}

/* steg-header: Tilbake til venstre, malnettsted-badge helt til hoyre */
.hstep-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.hstep-head .step-back { margin-bottom: 0; }
.hstep-head .target-chip { margin-bottom: 0; margin-left: auto; }

/* myndighets-henvisning */
.legal-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 30px; }
.legal-note a { color: var(--blue); }

/* A-F karakter-ribbon i hero (sammenhengende, som energimerke) */
.hero-scale-wrap { margin: 28px 0 2px; }
.hero-scale { display: inline-flex; border-radius: 11px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,16,36,.14), 0 1px 0 rgba(0,16,36,.04); }
.hero-scale .hsg { width: 50px; height: 44px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px; line-height: 1; }
.hero-scale .hsg + .hsg { box-shadow: inset 1px 0 0 rgba(255,255,255,.25); }
.hero-scale-cap { margin: 13px 0 0; font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.hero-scale .g-a { background: #0A7A3D; }
.hero-scale .g-b { background: #6FA32B; }
.hero-scale .g-c { background: #C68A00; }
.hero-scale .g-d { background: #E07B00; }
.hero-scale .g-e { background: #CC4B1E; }
.hero-scale .g-f { background: #B91C1C; }
/* --------------------------------------------------------------------------
   Tillitsstripe under hero
   -------------------------------------------------------------------------- */
.trust-strip { background: var(--bg-alt); border-bottom: 1px solid var(--line-soft); }
.trust-row { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 30px; }
.trust-row li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--muted); line-height: 1.4; }
.trust-row svg { width: 23px; height: 23px; flex: none; color: var(--blue); }
.trust-row b { color: var(--ink); font-weight: 700; }

/* --------------------------------------------------------------------------
   Rapport-forhandsvisning
   -------------------------------------------------------------------------- */
.report-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.rd-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.rd-points li { display: flex; gap: 13px; align-items: flex-start; font-size: 17px; color: var(--ink-soft); line-height: 1.55; }
.rd-points svg { width: 23px; height: 23px; color: var(--green); flex: none; margin-top: 2px; }
.rd-points b { color: var(--ink); }
.rd-card { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.rd-top { background: linear-gradient(135deg, var(--blue-900), var(--blue)); color: #fff; padding: 22px 26px; }
.rd-url { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; opacity: .82; word-break: break-all; }
.rd-grade { display: flex; align-items: center; gap: 16px; margin-top: 15px; }
.rd-badge { width: 64px; height: 64px; border-radius: 13px; background: #fff; color: #6FA32B; font-weight: 800; font-size: 38px; line-height: 1; display: grid; place-items: center; flex: none; }
.rd-score b { font-size: 21px; font-weight: 700; display: block; }
.rd-score small { font-size: 13px; opacity: .85; }
.rd-rows { padding: 6px 26px 10px; }
.rd-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line-soft); font-size: 15px; color: var(--ink-soft); }
.rd-row:first-child { border-top: 0; }
.rd-foot { padding: 13px 26px 17px; color: var(--faint); font-size: 12.5px; border-top: 1px solid var(--line-soft); }
.rd-card .p { font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 3px 10px; flex: none; }
.rd-card .p.ok { background: var(--green-bg); color: var(--green); }
.rd-card .p.bad { background: var(--red-bg); color: var(--red); }
.rd-card .p.warn { background: var(--amber-bg); color: var(--amber); }

/* --------------------------------------------------------------------------
   Trygghet & personvern
   -------------------------------------------------------------------------- */
.assure { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 44px; }
.assure-item { display: flex; gap: 16px; align-items: flex-start; }
.assure-item .ai-ic { width: 46px; height: 46px; border-radius: 10px; background: var(--bg-tint); color: var(--blue); display: grid; place-items: center; flex: none; }
.assure-item .ai-ic svg { width: 23px; height: 23px; }
.assure-item h3 { font-size: 17.5px; }
.assure-item p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Inntoning ved scroll (kun med JS; progressiv forbedring)
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }
.stagger > *:nth-child(2) { transition-delay: .06s; }
.stagger > *:nth-child(3) { transition-delay: .12s; }
.stagger > *:nth-child(4) { transition-delay: .18s; }
.stagger > *:nth-child(5) { transition-delay: .24s; }
.stagger > *:nth-child(6) { transition-delay: .30s; }

@media (max-width: 940px) {
  .trust-row { grid-template-columns: repeat(2, 1fr); gap: 16px 26px; }
  .report-demo { grid-template-columns: 1fr; gap: 34px; }
  .assure { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  .trust-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* «Hvorfor nå» har tre kort – la dem bruke hele bredden (tre kolonner) */
.pillars-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 940px) { .pillars-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .pillars-3 { grid-template-columns: 1fr; } }

/* ==========================================================================
   Bakgrunnsmønstre — ulikt, rolig mønster per seksjon. Ingen animasjon.
   Rutenett kun ett sted (hero). CSP-vennlig: ren CSS.
   ========================================================================== */

/* HERO — rutenett (det ene stedet) + myk glød */
.hero { position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 50% -12%, rgba(0,66,122,.14), rgba(0,66,122,0) 64%),
    linear-gradient(180deg, #e9f0f8, var(--bg-alt) 60%);
}
.hero::before { content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(0,66,122,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,66,122,.07) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask: radial-gradient(125% 100% at 50% 0%, #000 30%, transparent 72%);
          mask: radial-gradient(125% 100% at 50% 0%, #000 30%, transparent 72%);
}
.hero > .wrap { position: relative; z-index: 1; }

/* «Hvorfor nå» — fine diagonale linjer */
.pat-diag { position: relative; overflow: hidden; }
.pat-diag > .wrap { position: relative; z-index: 1; }
.pat-diag::before { content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image: repeating-linear-gradient(135deg, rgba(0,66,122,.055) 0 1px, transparent 1px 15px);
  -webkit-mask: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent);
          mask: linear-gradient(180deg, transparent, #000 24%, #000 76%, transparent);
}

/* «Trygghet & personvern» — prikkmatrise */
.pat-dots { position: relative; overflow: hidden; }
.pat-dots > .wrap { position: relative; z-index: 1; }
.pat-dots::before { content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image: radial-gradient(rgba(0,66,122,.10) 1.3px, transparent 1.6px);
  background-size: 23px 23px;
  -webkit-mask: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
          mask: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}

/* «Karakter» — myk fargemesh (ingen linjer) */
.pat-mesh { position: relative; overflow: hidden; }
.pat-mesh > .wrap { position: relative; z-index: 1; }
.pat-mesh::before { content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(440px 320px at 10% 18%, rgba(0,66,122,.09), transparent 70%),
    radial-gradient(520px 360px at 90% 84%, rgba(47,109,246,.07), transparent 72%);
}

/* «Slik ser rapporten ut» — myk glød bak kortet */
.report-band { position: relative; overflow: hidden; }
.report-band > .wrap { position: relative; z-index: 1; }
.report-band::before { content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background: radial-gradient(700px 440px at 80% 50%, rgba(0,66,122,.08), transparent 70%);
}

/* FOOTER — myk hjørneglød (mørkt) */
.footer { position: relative; overflow: hidden; }
.footer > .wrap { position: relative; z-index: 1; }
.footer::before { content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(680px 340px at 86% -22%, rgba(120,165,225,.18), transparent 64%),
    radial-gradient(520px 300px at 8% 124%, rgba(120,165,225,.10), transparent 70%);
}

/* hvite seksjoner — myk gradient-vask for dybde (ingen linjer) */
.pat-wash { position: relative; }
.pat-wash > .wrap { position: relative; z-index: 1; }
.pat-wash::before { content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background: radial-gradient(880px 520px at 86% -6%, rgba(0,66,122,.05), transparent 66%); }
#sjekk.pat-wash::before { background: radial-gradient(820px 500px at 12% 104%, rgba(47,109,246,.05), transparent 68%); }

/* ==========================================================================
   Bekreft-side (/confirm) — swipe-karusell: verifisering -> arbeid -> resultat
   Gjenbruker .steps-viewport/.steps-track (som forsiden) og spinner-emblemet
   (.ts-emblem). Alt bor her (CSP: style-src 'self' — ingen inline-stiler).
   ========================================================================== */
.cf-viewport { margin-top: 2px; }
.cf-track.cf-noanim { transition: none !important; }
.cf-panel { width: 100%; }
.cf-center { text-align: center; }
.cf-center .ts-emblem { margin: 6px auto 22px; }
.cf-center h1 { font-size: 25px; }
.cf-worklead { color: var(--muted); margin-top: 8px; min-height: 1.55em; transition: opacity .22s ease; }
.cf-worklead.swap { opacity: 0; }
.cf-prog { height: 6px; border-radius: 6px; background: var(--line-soft); overflow: hidden; margin: 24px auto 4px; max-width: 360px; }
.cf-prog i { display: block; height: 100%; width: 38%; border-radius: 6px; background: linear-gradient(90deg, var(--blue), #2f6df6); animation: cf-prog 1.35s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes cf-prog { 0% { transform: translateX(-130%); } 100% { transform: translateX(360%); } }
.cf-hint { margin-top: 14px; font-size: 13.5px; color: var(--faint); }
@media (prefers-reduced-motion: reduce) {
  .cf-prog i { animation: none; width: 100%; }
  .cf-worklead { transition: none; }
}
