/* Zen Finans demo. Design tokens measured from the live site:
   primary purple rgb(68,24,186), body bg rgb(248,247,250), ink rgb(15,16,16),
   lavender button fill rgb(241,237,250), green hero checks rgb(33,161,67),
   square corners everywhere on the marketing pages. Body face Open Sans;
   display face omnes-pro on the live site, Nunito is the closest Google-
   hosted match (weight 600, tight line heights: h1 55/60, h2 45/50, h3 35/35). */

:root {
  --purple: #4418ba;
  --purple-dark: #351292;
  --purple-soft: #ede8fb;
  --lav-btn: #f1edfa;
  --lavender: #e3dcf7;
  --ink: #0f1010;
  --body-bg: #f8f7fa;
  --muted: #55565a;
  --card: #ffffff;
  --line: #e5e2ee;
  --green: #1e9e6a;
  --green-check: #21a143;
  --vipps: #ff5b24;
  --danger: #c0392b;
  --radius: 14px;
  --shadow: 0 10px 34px rgba(38, 18, 90, 0.08);
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --font-head: "Nunito", "Open Sans", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* The `hidden` attribute must win over any `display` rule. Without this,
   `.cookiebar { display: flex }` overrode `[hidden]`, so setting the bar's
   hidden attribute never actually hid it and Accept/Reject appeared dead. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--body-bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; color: var(--ink); }
h1 { font-size: 55px; line-height: 60px; }
h2 { font-size: 45px; line-height: 50px; }
h3 { font-size: 35px; line-height: 35px; }
.container { width: calc(100% - 48px); max-width: 1140px; margin: 0 auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 400; font-size: 16px;
  padding: 15px 32px; border: 2px solid var(--purple); cursor: pointer;
  background: var(--purple); color: #fff; border-radius: 0; text-decoration: none;
  touch-action: manipulation;
  transition: background .15s ease, color .15s ease;
}
.btn.outline { background: transparent; color: var(--purple); font-weight: 700; }
.btn.lav { background: var(--lav-btn); color: var(--purple); border-color: var(--lav-btn); font-size: 22px; padding: 18px 40px; }
.btn.lav svg { width: 22px; height: 22px; }
.btn.vipps { background: var(--vipps); border-color: var(--vipps); border-radius: 6px; font-size: 18px; font-weight: 700; }
.btn.bankid { background: #39134c; border-color: #39134c; border-radius: 6px; font-size: 18px; font-weight: 700; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.small { padding: 9px 20px; font-size: 14px; }

/* ---------- top bar + header ---------- */
.topbar {
  background: var(--body-bg); color: var(--ink); text-align: center;
  font-size: 16px; padding: 9px 12px; border-bottom: 1px solid #e9e7ef;
}
.topbar b { color: var(--purple); font-weight: 700; }
.topbar a { color: var(--purple); font-weight: 700; }
.site-header {
  background: var(--body-bg); position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: #fff; border-bottom-color: var(--line); }
.site-header .inner {
  width: calc(100% - 94px); max-width: 1346px; min-height: 92px;
  margin: 0 auto; padding: 18px 0;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  color: var(--ink); font-family: var(--font-head); font-weight: 600;
  font-size: 18px; white-space: nowrap; padding: 13px 12px;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav a .caret { width: 12px; height: 12px; display: inline-block; }
.nav a .caret svg { display: block; width: 100%; height: 100%; }
.nav a.btn { color: #fff; font-family: var(--font-body); font-weight: 400; }
.nav .btn.small {
  width: 154px; height: 56px; padding: 0 24px;
  font-size: 16px; margin-left: 10px;
}
.menu-toggle { display: none; }
.lang-switch {
  display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  font-size: 13px; font-weight: 700; margin-left: 6px;
}
.lang-switch button {
  border: 0; background: transparent; padding: 6px 12px; cursor: pointer;
  font-weight: 700; color: var(--muted); font-family: var(--font-body);
}
.lang-switch button.active { background: var(--purple); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 55px 0 0; }
.hero .grid { display: grid; grid-template-columns: 520px 536px; gap: 50px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .sub { font-weight: 700; font-size: 22px; line-height: 33px; margin-bottom: 24px; max-width: 420px; }
.checklist { list-style: none; margin: 0 0 26px; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; font-size: 16px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px;
  background: var(--purple);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center/contain no-repeat;
}
.hero .checklist li { font-size: 19px; line-height: 28.5px; margin-bottom: 12px; padding-left: 30px; }
.hero .checklist li::before { background: var(--green-check); top: 5px; }
.hero .btn.hero-cta { width: 100%; max-width: 496px; height: 56px; }
.hero .photo { width: 536px; height: 604px; overflow: hidden; }
.hero .photo img { width: 100%; height: 100%; object-fit: cover; }

/* Trustpilot line under the hero CTA */
.trustline { display: flex; align-items: center; gap: 12px; margin-top: 30px; font-size: 14px; color: var(--ink); flex-wrap: wrap; }
.trustline .rating { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.tp-stars { display: inline-flex; gap: 2px; }
.tp-stars span {
  width: 22px; height: 22px; background: #00b67a; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.trustline .reviews { text-decoration: underline; }
.trustline .tp-brand { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 16px; }
.trustline .tp-brand .tp-star { color: #00b67a; font-size: 18px; }

/* wave band under hero */
.wave-band {
  height: 110px;
  background: url('/assets/divider.svg') center / cover no-repeat;
  margin-top: 95px;
}

/* ---------- USP tiles ---------- */
.usp-row { margin: 63px 0 0; position: relative; z-index: 2; }
.usp-row .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.usp {
  background: #fff; border-radius: 0; box-shadow: none;
  padding: 28px 22px; min-height: 178px; text-align: center;
  font-weight: 400; font-size: 18px; line-height: 23px;
}
.usp .ico { width: 46px; height: 46px; margin: 0 auto 16px; color: var(--purple); }
.usp .ico svg { width: 100%; height: 100%; }

/* ---------- sections ---------- */
section.block { padding: 0; margin-bottom: 145px; }
#hjelp { margin-top: 118px; padding-bottom: 28px; margin-bottom: 145px; }
section.banks-block { margin-bottom: 145px; }
section.steps-block { margin-bottom: 196px; }
section.about-block { margin-bottom: 300px; }
section.why-block { margin-bottom: 200px; }
section.faq-block { margin-bottom: 145px; }
.section-title { text-align: center; margin-bottom: 70px; }
.eyebrow { color: var(--ink); font-weight: 400; font-size: 16px; margin-bottom: 14px; }

/* product columns (transparent on the body background, like the live site) */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.pcard {
  background: transparent; border-radius: 0; box-shadow: none; padding: 0 25px 0 0;
  display: flex; flex-direction: column;
}
.pcard img.icon { width: 239px; height: 239px; margin: 0 0 20px; }
.pcard h3 { margin-bottom: 20px; }
.pcard ul { margin: 0 0 34px 20px; color: var(--ink); font-size: 16px; line-height: 24px; }
.pcard ul li { margin-bottom: 0; }
.pcard .btn { margin-top: auto; align-self: flex-start; font-size: 25px; padding: 20px 40px; }

/* banks */
.banks { display: grid; grid-template-columns: 1fr 570px; gap: 0; align-items: stretch; }
.bank-grid {
  display: grid; grid-template-columns: repeat(2, 230px); justify-content: start;
  gap: 44px 60px; align-content: center; align-items: center;
}
.bank-grid .bank {
  background: transparent; border-radius: 0; padding: 0; min-width: 0;
  display: flex; align-items: center; justify-content: flex-start; box-shadow: none;
}
/* max-width in % (not a fixed 210px) so the logos shrink with their grid
   column on narrow screens. A fixed px width kept the columns from shrinking,
   which pushed the whole page wider than the phone and put the fixed cookie
   bar's buttons off-screen. */
.bank-grid .bank img { max-height: 88px; max-width: 100%; object-fit: contain; }
.banks .pitch {
  background: var(--card); border-radius: 0; box-shadow: none;
  padding: 30px; min-height: 660px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.banks .pitch h2 { margin-bottom: 18px; max-width: 510px; }
.banks .pitch p { margin-bottom: 34px; max-width: 510px; }

.smallprint { font-size: 14px; color: var(--ink); line-height: 1.6; }
.smallprint p { margin-bottom: 8px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 60px; }
.step-card { text-align: left; }
.step-card img { width: 227px; height: 225px; object-fit: cover; margin-bottom: 22px; }
.step-card h3 { margin-bottom: 16px; }
.step-card p { font-size: 16px; line-height: 24px; }
.center { text-align: center; }
.note-em { font-style: italic; color: var(--ink); font-size: 16px; margin-top: 16px; }

/* om oss */
.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch;
  background: var(--card); border-radius: 0; box-shadow: var(--shadow); padding: 0; min-height: 532px;
}
.about > div:first-child { padding: 43px 30px 30px; }
.about h2 { margin: 8px 0 22px; }
.about p { margin-bottom: 16px; line-height: 24px; }
.about .photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

/* photo + checklist */
.split { display: grid; grid-template-columns: 570px 1fr; gap: 60px; align-items: center; }
.split .photo img { width: 100%; height: 360px; object-fit: cover; border-radius: 0; box-shadow: none; }
.split .checklist li { font-size: 18px; line-height: 27px; margin-bottom: 15px; padding-left: 30px; }
.split .checklist li::before {
  background: var(--purple); width: 18px; height: 18px; top: 4px;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm4.3-11.7L11 13.6l-2.3-2.3-1.4 1.4 3.7 3.7 7-7z"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm4.3-11.7L11 13.6l-2.3-2.3-1.4 1.4 3.7 3.7 7-7z"/></svg>') center/contain no-repeat;
}
.split .btn { margin-top: 14px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.faq-card { background: var(--card); border-radius: 0; box-shadow: none; padding: 50px 30px 30px; }
.faq-card h5 { font-size: 20px; line-height: 24px; margin-bottom: 16px; }
.faq-card p { font-size: 16px; line-height: 24px; color: var(--ink); }
.linkrow { text-align: center; margin-top: 125px; font-size: 16px; }
.linkrow strong { display: block; font-family: var(--font-head); font-size: 18px; margin-bottom: 16px; }
.linkrow a { margin: 0 6px; }
.linkrow .sep { color: var(--muted); }

/* CTA callback section (light, like the live site) */
.cta-band { background: var(--body-bg); color: var(--ink); text-align: center; padding: 0 24px 125px; }
.cta-band .wrap { max-width: 1090px; margin: 0 auto; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band .cta-sub { font-size: 20px; line-height: 30px; margin: 0 auto 40px; max-width: 1060px; }
.cta-bar {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 70px; background: var(--purple); color: #fff;
  font-size: 22px; text-decoration: none; padding: 16px 20px;
}
.cta-bar svg { width: 24px; height: 24px; }
.cta-or { font-size: 20px; margin: 34px 0; }
.cta-form { text-align: left; }
.cta-form .fieldrow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-bottom: 18px; }
.cta-form label { display: block; font-size: 16px; margin-bottom: 8px; }
.cta-form input {
  width: 100%; height: 60px; padding: 0 18px; font-size: 16px;
  font-family: var(--font-body); color: var(--ink);
  background: #fff; border: 1px solid #ddd9e8; border-radius: 0;
}
.cta-form input::placeholder { color: #9b98a6; }
.cta-form input:focus { outline: 2px solid var(--purple-soft); border-color: var(--purple); }
.cta-form .msgfield { margin-bottom: 24px; }
.cta-form button {
  width: 100%; min-height: 70px; font-size: 22px; gap: 12px;
}
.cta-sent { font-size: 20px; color: var(--green); font-weight: 700; padding: 30px 0; display: none; }
.cta-sent.show { display: block; }

/* footer */
.site-footer { background: #fff; padding: 100px 0 0; margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 1.25fr 1.25fr 1fr; gap: 40px; padding-bottom: 60px; }
.site-footer h4 { font-size: 25px; line-height: 25px; margin-bottom: 12px; }
.site-footer .reg { font-size: 16px; margin-bottom: 34px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 20px; font-size: 16px; }
.site-footer .links-col h4 { margin-bottom: 28px; }
.site-footer a { color: var(--ink); }
.site-footer a.active { color: var(--purple); }
.contact-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-size: 16px; }
.contact-row .cico { width: 22px; height: 22px; color: var(--purple); flex: none; }
.contact-row .cico svg { width: 100%; height: 100%; }
.hours { margin: 34px 0 30px; font-size: 16px; }
.hours strong { display: block; }
.socials { display: flex; gap: 14px; }
.socials a {
  width: 33px; height: 33px; border-radius: 50%; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.socials svg { width: 16px; height: 16px; }
.subfooter { border-top: 1px solid var(--line); padding: 34px 0 40px; }
.subfooter .legal { display: flex; justify-content: space-between; gap: 20px; margin-top: 22px; font-size: 14px; color: var(--ink); flex-wrap: wrap; }

/* cookie bar */
.cookiebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: #211440; color: #fff; padding: 16px 24px; font-size: 14px;
  display: flex; gap: 14px 24px; align-items: center; flex-wrap: wrap;
}
/* min-width:0 lets the text shrink so it never forces the bar wider than the
   screen (which used to push the buttons off the right edge on phones). */
.cookie-text { flex: 1 1 300px; min-width: 0; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookiebar .btn { padding: 8px 20px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.cookiebar .btn.outline { color: #fff; border-color: #fff; background: transparent; }
@media (max-width: 620px) {
  .cookiebar { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* demo ribbon */
.demo-ribbon {
  background: #fff7e6; color: #8a5b00; border: 1px solid #f0d9a8;
  font-size: 13px; text-align: center; padding: 7px 12px;
}

/* ---------- wizard (soknad) ---------- */
.wizard-wrap { max-width: 860px; margin: 40px auto 80px; padding: 0 24px; }
.wizard-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 44px; }
.progress { display: flex; gap: 6px; margin-bottom: 30px; }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.progress span.on { background: var(--purple); }
.wizard-card h2 { font-size: 28px; margin-bottom: 8px; }
.wizard-card .lead { color: var(--muted); margin-bottom: 26px; }
.fieldrow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 16px; font-family: var(--font-body); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--purple-soft); border-color: var(--purple); }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.field.invalid input { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 13px; margin-top: 4px; display: none; }
.field.invalid .err { display: block; }
.radio-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 20px; }
.radio-card {
  border: 2px solid var(--line); border-radius: 10px; padding: 16px 18px; cursor: pointer;
  font-weight: 700; display: flex; align-items: center; gap: 10px; background: #fff;
}
.radio-card input { accent-color: var(--purple); width: 18px; height: 18px; }
.radio-card.sel { border-color: var(--purple); background: var(--purple-soft); }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 30px; gap: 14px; }
.wizard-nav[hidden] { display: none; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.kv b { text-align: right; }
.pill { display: inline-block; background: var(--purple-soft); color: var(--purple); font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.pill.green { background: #e2f6ec; color: var(--green); }

/* gate (appfarm-style start) */
.gate { max-width: 520px; margin: 56px auto 90px; text-align: center; }
.gate .wizard-card { padding: 44px 40px; }
.gate h2 { margin-bottom: 24px; }
.gate .or { color: var(--muted); margin: 16px 0; font-size: 14px; }
.gate .consent { font-size: 12.5px; color: var(--muted); margin-top: 26px; text-align: left; }
.gate .contactline { margin-top: 26px; font-size: 13px; color: var(--muted); }

/* debts table */
table.debts { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
table.debts th, table.debts td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.debts th { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
table.debts td.num, table.debts th.num { text-align: right; }

/* offers */
.offer { border: 2px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 14px; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: #fff; }
.offer.sel { border-color: var(--purple); background: var(--purple-soft); }
.offer .bank { font-weight: 800; font-family: var(--font-head); font-size: 18px; }
.offer .rates { font-size: 13.5px; color: var(--muted); }
.offer .mo { font-size: 22px; font-weight: 800; font-family: var(--font-head); white-space: nowrap; }
.offer .mo small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }

/* insurance step */
.ins-price { text-align: center; margin: 26px 0 8px; }
.ins-price .amount { font-size: 44px; font-weight: 800; font-family: var(--font-head); color: var(--purple); }
.ins-price .amount.loading { opacity: .35; }
.ins-price .per { color: var(--muted); font-size: 15px; }
.sum-slider { margin: 26px 0 8px; }
.sum-slider output { display: block; text-align: center; font-size: 22px; font-weight: 800; font-family: var(--font-head); margin-bottom: 10px; }
.sum-slider input[type=range] { width: 100%; accent-color: var(--purple); height: 34px; cursor: pointer; }
.sum-slider .ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.coverages { margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.coverage { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.coverage .tick { color: var(--green); font-weight: 800; flex: none; }
.coverage .cvg-title { font-weight: 700; }
.coverage .cvg-desc { color: var(--muted); font-size: 13px; }
.ins-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 4px; }
.ins-note { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.vipps-mark { display: inline-block; background: var(--vipps); color: #fff; font-weight: 800; font-size: 12px; border-radius: 4px; padding: 2px 8px; }
.error-box { background: #fdeceb; border: 1px solid #f5c6c2; color: var(--danger); border-radius: 8px; padding: 12px 16px; font-size: 14px; margin: 14px 0; display: none; }
.error-box.show { display: block; }
.spinner {
  width: 42px; height: 42px; border-radius: 50%; margin: 0 auto 18px;
  border: 4px solid var(--purple-soft); border-top-color: var(--purple);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* receipt */
.receipt-icon { width: 76px; height: 76px; border-radius: 50%; background: #e2f6ec; color: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 38px; }
.receipt-icon.failed { background: #fde8e8; color: #b42318; }

/* minside */
.portal-frame-wrap { max-width: 1200px; margin: 26px auto 60px; padding: 0 24px; }
#portal-frame { width: 100%; border: 0; min-height: 760px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.portal-login { max-width: 480px; margin: 60px auto 100px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  h1 { font-size: 36px; } h2 { font-size: 28px; }
  .hero { padding: 36px 0 28px; }
  .wave-band { height: 130px; margin-top: 34px; }
  .usp-row { margin: 20px 0 40px; padding-bottom: 0; }
  section.block { padding: 56px 0; margin-bottom: 0; }
  #hjelp, section.banks-block, section.steps-block, section.about-block, section.why-block, section.faq-block { margin-bottom: 0; }
  #hjelp { padding-bottom: 56px; }
  .hero .grid, .banks, .about, .split { grid-template-columns: 1fr; }
  .hero .grid { gap: 36px; }
  .hero .photo { width: 100%; height: 480px; order: -1; }
  .hero .btn.hero-cta { max-width: 100%; }
  .usp-row .grid, .cards-3, .steps, .faq-grid, .coverages { grid-template-columns: 1fr 1fr; }
  .cards-3 { gap: 24px; }
  .pcard { padding: 0; }
  .pcard img.icon { width: 180px; height: 180px; }
  .pcard .btn { font-size: 16px; padding: 14px 34px; }
  .banks { grid-template-columns: 1fr; } .banks .pitch { min-height: 0; padding: 40px 24px; }
  .bank-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 40px; }
  .about, .split, .faq-grid { min-height: 0; }
  .about > div:first-child { padding: 30px; }
  .split .photo img { height: auto; }
  .linkrow { margin-top: 50px; }
  .cta-band { padding: 0 24px 72px; }
  .cta-form .fieldrow2 { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .site-header { position: relative; }
  .site-header .inner { width: calc(100% - 48px); min-height: 92px; padding: 18px 0; }
  .brand img { height: 26px; width: auto; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 9px; margin-left: auto;
    border: 0; background: transparent; color: var(--ink); cursor: pointer;
    font: 600 15px var(--font-body); padding: 12px 0;
  }
  .menu-toggle-lines { display: grid; gap: 4px; width: 22px; }
  .menu-toggle-lines span { display: block; width: 22px; height: 2px; background: var(--purple); }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    z-index: 60; margin: 0; padding: 28px 24px 32px; background: #fff;
    box-shadow: 0 18px 30px rgba(38, 18, 90, .12);
    flex-direction: column; align-items: flex-start; gap: 18px;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 17px; }
  .nav .btn.small { width: 152px; height: 56px; margin-top: 4px; }
  .site-footer { padding-top: 56px; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  h1, .hero h1 { font-size: 35px; line-height: 45.5px; }
  h2 { font-size: 30px; line-height: 39px; }
  .hero { padding: 0 0 36px; }
  .hero .container { width: 100%; }
  .hero .grid { gap: 0; }
  .hero .grid > div:first-child { padding: 36px 24px 0; }
  .hero .photo { order: -1; width: 100vw; height: 260px; }
  .hero .sub { font-size: 18px; line-height: 28px; }
  .usp-row .grid, .cards-3, .steps, .faq-grid, .fieldrow, .radio-cards, .ins-choice, .coverages { grid-template-columns: 1fr; }
  .wizard-card { padding: 28px 22px; }
  .offer { grid-template-columns: 1fr; }
}

/* Hover styles only on real hovering pointers (mouse). On touch, applying
   hover on first tap would just recolor the button instead of clicking it
   (iOS sticky-hover). */
@media (hover: hover) {
  a:hover { text-decoration: underline; }
  .btn:hover { background: var(--purple-dark); border-color: var(--purple-dark); text-decoration: none; }
  .btn.outline:hover { background: var(--purple); color: #fff; }
  .btn.lav:hover { background: #e6dff7; border-color: #e6dff7; color: var(--purple); }
  .btn.vipps:hover { background: #e64d1a; border-color: #e64d1a; }
  .btn.bankid:hover { background: #260c33; border-color: #260c33; }
  .brand:hover { text-decoration: none; }
  .nav a:hover { color: var(--purple); text-decoration: none; }
  .nav .btn.small:hover { color: #fff; }
  .cta-bar:hover { background: var(--purple-dark); text-decoration: none; color: #fff; }
  .site-footer a:hover { color: var(--purple); }
  .socials a:hover { background: var(--purple); }
}
