/* ============================================================================
   Pengeronline.no — smålån/rammekreditt, «hva koster det egentlig»
   Designspråk: mørk lilla-sort (#0f0a1f) hero/footer, hvitt innhold, lilla
   primær (#4c1d95) + gul CTA-aksent (#facc15). Mobil-først, kontrastrikt.
   Space Grotesk (overskrifter) + Inter (brødtekst). ALT scoped under .pol.
   ============================================================================ */

.pol {
  /* ---- Palett ---- */
  --dark:       #0f0a1f;
  --dark-2:     #190f33;
  --violet:     #4c1d95;
  --violet-dk:  #3b1575;
  --violet-lt:  #6d35c2;
  --gold:       #facc15;
  --gold-dk:    #b48a00;
  --line:       #e4e0f0;
  --line-soft:  #ecebf6;
  --paper:      #ffffff;
  --paper-2:    #f6f4fb;
  --paper-3:    #efecf8;
  --ink:        #1a1530;
  --ink-2:      #413a5c;
  --ink-3:      #6e6482;
  --good:       #15803d;
  --bad:        #b42318;

  /* Tema-tokens som delte ruter (guide/anmeldelse/sammenligning) forventer. */
  --color-primary:       #4c1d95;
  --color-primary-light: #4c1d9517;
  --color-text:          #1a1530;
  --color-bg:            #ffffff;
  --color-surface:       #f6f4fb;
  --color-border:        #e4e0f0;
  --color-muted:         #6e6482;
  --bg:       #ffffff;
  --surface:  #f6f4fb;
  --ink-soft: #6e6482;
  --ink-dim:  #6e6482;
  --border:   #e4e0f0;
  --accent:   #4c1d95;

  --font-head: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.pol *, .pol *::before, .pol *::after { box-sizing: border-box; }
.pol a { color: inherit; text-decoration: none; }
.pol button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.pol img { display: block; max-width: 100%; }
.pol p { margin: 0; }
.pol h1, .pol h2, .pol h3, .pol h4, .pol h5 { margin: 0; font-family: var(--font-head); font-weight: 600; letter-spacing: -0.01em; }
.pol ul { list-style: none; padding: 0; margin: 0; }

/* ---- Container ---- */
.pol .pol-container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .pol .pol-container { padding: 0 28px; } }
@media (min-width: 980px) { .pol .pol-container { padding: 0 40px; } }

.pol .kicker {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
}

/* ============================ NAV ============================ */
.pol .nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.pol .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 62px; }
.pol .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.pol .brand-glyph {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  background: var(--violet); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  border-radius: 8px; letter-spacing: -0.02em;
}
.pol .brand-name { font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.pol .nav-links { display: flex; align-items: center; gap: 24px; font-size: 14.5px; font-weight: 500; }
.pol .nav-links a { color: var(--ink-2); padding: 4px 0; border-bottom: 2px solid transparent; transition: color 0.15s ease, border-color 0.15s ease; }
.pol .nav-links a:hover { color: var(--violet); border-color: var(--violet); }
.pol a.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; background: var(--gold); color: var(--dark);
  font-size: 14px; font-weight: 700; border-radius: 999px;
  transition: background 0.16s ease, transform 0.16s ease;
}
.pol a.nav-cta:hover { background: #ffde59; transform: translateY(-1px); }
.pol .nav-cta .arr, .pol .btn .arr { transition: transform 0.16s ease; }
.pol .nav-cta:hover .arr, .pol .btn:hover .arr { transform: translateX(3px); }

.pol .nav-burger { display: none; }
@media (max-width: 860px) {
  .pol .nav-links, .pol .nav-cta { display: none; }
  .pol .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 11px; margin-left: auto;
    color: var(--violet); position: relative; z-index: 210;
  }
  .pol .nav-burger span { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: transform 0.22s ease, opacity 0.22s ease; }
  .pol .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .pol .nav-burger.open span:nth-child(2) { opacity: 0; }
  .pol .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .pol .nav-mobile { position: fixed; inset: 0; z-index: 200; }
  .pol .nav-mobile[hidden] { display: none; }
  .pol .nav-mobile-backdrop { position: absolute; inset: 0; background: rgba(15, 10, 31, 0.6); }
  .pol .nav-mobile-panel {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; flex-direction: column;
    padding: 84px 20px 24px;
    background: #fff; color: var(--ink);
    box-shadow: 0 24px 60px rgba(15, 10, 31, 0.3);
    border-bottom: 1px solid var(--line);
  }
  .pol .nav-mobile-panel a { padding: 15px 6px; font-size: 16px; font-weight: 600; color: inherit; border-bottom: 1px solid var(--line-soft); }
  .pol a.nav-mobile-cta { margin-top: 16px; text-align: center; background: var(--gold); color: var(--dark); border-radius: 10px; border-bottom: 0; font-weight: 700; }
}

/* ============================ HERO (mørk) ============================ */
.pol .hero { position: relative; background: var(--dark); color: #f1edff; overflow: hidden; }
.pol .hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 85% 0%, rgba(109, 53, 194, 0.35) 0%, transparent 70%);
  pointer-events: none;
}
.pol .hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 48px 0 44px; }
@media (min-width: 940px) { .pol .hero-inner { padding: 88px 0 80px; } }
@media (max-width: 940px) { .pol .hero-inner { grid-template-columns: 1fr; gap: 32px; } }
.pol .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-size: 11.5px; letter-spacing: 0.06em;
  color: #c9b8f2; margin-bottom: 18px;
  background: rgba(109, 53, 194, 0.22); border: 1px solid rgba(109, 53, 194, 0.4);
  padding: 6px 12px; border-radius: 999px;
}
.pol .hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.pol .hero h1 { font-size: clamp(32px, 7vw, 54px); line-height: 1.05; letter-spacing: -0.02em; color: #fff; max-width: 15ch; }
.pol .hero h1 b { color: var(--gold); }
.pol .hero-sub { margin-top: 18px; font-size: clamp(16px, 2vw, 18.5px); line-height: 1.55; color: #cfc6e8; max-width: 46ch; }
.pol .hero-cta-row { margin-top: 26px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pol .btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700; font-family: var(--font-head);
  padding: 13px 22px; border-radius: 999px; min-height: 48px;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.pol a.btn-primary { background: var(--gold); color: var(--dark); box-shadow: 0 2px 0 rgba(0,0,0,0.12); }
.pol a.btn-primary:hover { background: #ffde59; transform: translateY(-1px); }
.pol a.btn-accent { background: var(--gold); color: var(--dark); }
.pol a.btn-accent:hover { background: #ffde59; }
.pol a.btn-ghost { background: rgba(255,255,255,0.06); color: #fff; border: 1px solid rgba(255,255,255,0.28); }
.pol a.btn-ghost:hover { border-color: rgba(255,255,255,0.55); }
.pol .hero-trust { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--font-head); font-size: 11.5px; letter-spacing: 0.03em; color: #a79bcb; }
.pol .hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.pol .hero-trust span::before { content: "✓"; color: var(--gold); }

/* Beløpsvelger-kort i hero. */
.pol .amount-card { background: #15102b; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(0,0,0,0.6); }
.pol .amount-card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: rgba(109,53,194,0.3); }
.pol .amount-card-head .t { font-family: var(--font-head); font-size: 12px; letter-spacing: 0.08em; color: #fff; }
.pol .amount-card-head .src { font-family: var(--font-head); font-size: 10.5px; color: #c9b8f2; }
.pol .amount-rows { padding: 4px 0; }
.pol .amount-row { padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.pol .amount-row:last-child { border-bottom: 0; }
.pol .amount-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pol .amount-row-top .amt { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: #fff; }
.pol .amount-row-top .mo { font-size: 12.5px; color: #a79bcb; }
.pol .amount-row-bottom { margin-top: 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; color: #cfc6e8; }
.pol .amount-row-bottom b { color: var(--gold); }
.pol .amount-row-bottom .int { font-size: 12px; color: #a79bcb; }
.pol .amount-card-foot { padding: 12px 18px; font-size: 11.5px; color: #a79bcb; background: rgba(0,0,0,0.18); line-height: 1.5; }

/* ============================ SECTIONS ============================ */
.pol .section { padding: 52px 0; }
@media (min-width: 760px) { .pol .section { padding: 72px 0; } }
.pol .section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pol .section-head { max-width: 640px; margin-bottom: 32px; }
.pol .section-head h2 { font-size: clamp(24px, 4vw, 34px); line-height: 1.12; letter-spacing: -0.015em; color: var(--ink); margin-top: 10px; }
.pol .section-head p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* Tilbuds-kort */
.pol .offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pol .offer-card { display: flex; flex-direction: column; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; gap: 10px; }
.pol .offer-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pol .offer-card-head img { width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0; }
.pol .offer-name { font-weight: 700; font-size: 16px; color: var(--ink); }
.pol .offer-badge {
  margin-left: auto; font-family: var(--font-head); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--violet); background: var(--color-primary-light); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
}
.pol .offer-tagline { font-size: 14px; line-height: 1.55; color: var(--ink-2); flex: 1; }
.pol a.offer-cta { margin-top: 4px; justify-content: center; background: var(--violet); color: #fff; font-size: 14px; padding: 11px 18px; }
.pol a.offer-cta:hover { background: var(--violet-dk); }

/* Alternativer-kort */
.pol .alt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .pol .alt-grid { grid-template-columns: 1fr; } }
.pol .alt-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--violet); border-radius: 12px; }
.pol .alt-card h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.pol .alt-card p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.pol .alt-link { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--violet); }
.pol .alt-link:hover { text-decoration: underline; }

/* Guide-liste */
.pol .guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 36px; }
@media (max-width: 760px) { .pol .guide-list { grid-template-columns: 1fr; } }
.pol .guide-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); align-items: start; }
.pol .guide-row:hover .guide-row-title { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.pol .guide-row .num { font-family: var(--font-head); font-size: 12.5px; color: var(--ink-3); padding-top: 2px; }
.pol .guide-row-title { display: block; font-size: 16.5px; font-weight: 600; line-height: 1.3; color: var(--ink); letter-spacing: -0.005em; }
.pol .guide-row-desc { display: block; margin-top: 5px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.pol .guide-row-meta { display: block; margin-top: 7px; font-family: var(--font-head); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); }

/* FAQ (details/summary) */
.pol .faq-list { display: flex; flex-direction: column; gap: 10px; }
.pol details.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.pol details.faq-item summary { font-weight: 600; cursor: pointer; color: var(--ink); font-size: 15.5px; }
.pol details.faq-item p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* CTA-stripe (mørk) */
.pol .ctaband { background: var(--dark); color: #fff; }
.pol .ctaband .pol-container { padding-top: 48px; padding-bottom: 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 820px) { .pol .ctaband .pol-container { grid-template-columns: 1fr; gap: 20px; } }
.pol .ctaband h2 { color: #fff; font-size: clamp(22px, 3.4vw, 30px); letter-spacing: -0.015em; line-height: 1.16; }
.pol .ctaband p { margin-top: 10px; color: #cfc6e8; font-size: 15.5px; line-height: 1.55; max-width: 44ch; }
.pol .ctaband-fine { margin-top: 12px; font-size: 12px; color: #8f82b0; line-height: 1.5; }

/* ============================ FOOTER (mørk) ============================ */
.pol .footer { background: var(--dark); color: #cdc3e8; padding: 52px 0 26px; border-top: 1px solid rgba(255,255,255,0.08); }
.pol .footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 38px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 820px) { .pol .footer-top { grid-template-columns: 1fr 1fr; gap: 26px; } }
.pol .footer .brand-name { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.pol .footer-blurb { margin-top: 12px; font-size: 13.5px; line-height: 1.6; color: #a79bcb; max-width: 30ch; }
.pol .footer h2 { font-family: var(--font-head); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #8f82b0; margin-bottom: 12px; font-weight: 600; }
.pol .footer-col ul { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.pol .footer-col a { color: #cdc3e8; transition: color 0.15s ease; }
.pol .footer-col a:hover { color: #fff; }
.pol .footer-bot { padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: #8f82b0; }
.pol .footer-bot .signed { font-family: var(--font-head); letter-spacing: 0.03em; }

/* ============================================================================
   Undersider (.container) — guide/anmeldelse/sammenligning arver tema.
   ============================================================================ */
.pol .container { font-family: var(--font-sans); color: var(--ink); }
.pol .page-pad { padding-top: 24px; }
@media (max-width: 720px) { .pol .page-pad { padding-top: 16px; } }
.pol .container h1 { font-family: var(--font-head); font-size: clamp(28px, 5vw, 42px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--ink); }
.pol .container h2 { font-family: var(--font-head); font-size: 24px; letter-spacing: -0.01em; margin: 38px 0 14px; color: var(--violet); }
.pol .container h3 { font-size: 18.5px; margin: 24px 0 10px; color: var(--ink); }
.pol .container p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.68; color: var(--ink); }
.pol .container a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.pol .container a:hover { color: var(--violet-dk); }
.pol .container ul, .pol .container ol { list-style: revert; padding-left: 22px; margin: 0 0 18px; }
.pol .container li { margin-bottom: 7px; line-height: 1.6; }
.pol .container strong { font-weight: 700; color: var(--ink); }
.pol .container blockquote { border-left: 4px solid var(--violet); background: var(--paper-2); margin: 24px 0; padding: 14px 20px; font-size: 15px; color: var(--ink-2); border-radius: 0 10px 10px 0; }
.pol .container blockquote p { margin: 0; font-size: 15px; }
.pol .container details { background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.pol .container summary { font-weight: 600; cursor: pointer; color: var(--ink); }
.pol .container hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.pol .container code { font-family: ui-monospace, "SFMono-Regular", monospace; font-size: 13.5px; background: var(--paper-3); padding: 2px 6px; border-radius: 4px; }

/* Data-tabeller på undersider. */
.pol .container table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.pol .container thead th {
  background: var(--violet); color: #fff;
  font-family: var(--font-head); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
  padding: 12px 14px; text-align: left; border: 0;
}
.pol .container tbody td { border-bottom: 1px solid var(--line-soft); padding: 12px 14px; text-align: left; color: var(--ink); }
.pol .container tbody tr:nth-child(even) { background: var(--paper-2); }
.pol .container th, .pol .container td { vertical-align: top; }
@media (max-width: 640px) {
  .pol .container table { font-size: 13px; }
  .pol .container thead th, .pol .container tbody td { padding: 9px 10px; }
}
