/* ============================================================================
   Lånesjekk.no — ren sjekkliste-utility for forbrukslån via låneformidlere.
   Designspråk: hvit + teal #0f766e, amber-aksent KUN på steg-markører,
   Manrope, nummererte steg-blokker, avkryssingsikoner, tabular-nums i tall.
   ALT scoped under .lsj — ingen lekkasje til andre satellitter.
   ============================================================================ */

.lsj {
  /* ---- Palett ---- */
  --teal:       #0f766e;
  --teal-dk:    #0b5a53;
  --teal-2:     #14897f;
  --amber:      #f59e0b;
  --line:       #d9e2df;
  --line-soft:  #e6ece9;
  --paper:      #ffffff;
  --paper-2:    #f3f6f5;
  --paper-3:    #eaf0ee;
  --ink-c:      #141a1f;
  --ink-2:      #3a4440;
  --ink-3:      #4b5a57;
  --good:       #0f766e;
  --bad:        #b4451a;

  /* Tema-tokens som delte ruter (guide/anmeldelse/sammenligning) forventer. */
  --color-primary:       #0f766e;
  --color-primary-light: #0f766e14;
  --color-text:          #141a1f;
  --color-bg:            #ffffff;
  --color-surface:       #f3f6f5;
  --color-border:        #d9e2df;
  --color-muted:         #4b5a57;
  --bg:       #ffffff;
  --surface:  #f3f6f5;
  --ink:      #141a1f;
  --ink-soft: #4b5a57;
  --ink-dim:  #4b5a57;
  --border:   #d9e2df;
  --accent:   #0f766e;

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

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

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

/* ---- Container ---- */
.lsj .lsj-container { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) { .lsj .lsj-container { padding: 0 20px; } }

/* ---- Labels / eyebrows ---- */
.lsj .kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ============================ NAV ============================ */
.lsj .nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.lsj .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.lsj .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-c);
}
.lsj .brand-glyph {
  width: 28px; height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
}
.lsj .brand-name {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.015em;
  color: var(--ink-c);
}
.lsj .nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14.5px;
  font-weight: 600;
}
.lsj .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;
}
.lsj .nav-links a:hover { color: var(--teal); border-color: var(--teal); }
.lsj .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  transition: background 0.16s ease;
}
.lsj .nav-cta:hover { background: var(--teal-dk); }
.lsj .arr { transition: transform 0.16s ease; }
.lsj .nav-cta:hover .arr, .lsj .btn:hover .arr { transform: translateX(3px); }

.lsj .nav-burger { display: none; }
@media (max-width: 900px) {
  .lsj .nav-links, .lsj .nav-cta { display: none; }
  .lsj .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 11px; margin-left: auto;
    color: var(--teal); position: relative; z-index: 210;
  }
  .lsj .nav-burger span { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: transform 0.22s ease, opacity 0.22s ease; }
  .lsj .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .lsj .nav-burger.open span:nth-child(2) { opacity: 0; }
  .lsj .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .lsj .nav-mobile { position: fixed; inset: 0; z-index: 200; }
  .lsj .nav-mobile[hidden] { display: none; }
  .lsj .nav-mobile-backdrop { position: absolute; inset: 0; background: rgba(20, 26, 31, 0.5); }
  .lsj .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-c);
    box-shadow: 0 24px 60px rgba(20, 26, 31, 0.24);
    border-bottom: 1px solid var(--line);
  }
  .lsj .nav-mobile-panel a {
    padding: 15px 6px; font-size: 16px; font-weight: 700; color: inherit;
    border-bottom: 1px solid var(--line-soft);
  }
  .lsj .nav-mobile-cta {
    margin-top: 16px; text-align: center; background: var(--teal);
    color: #fff; border-radius: 8px; border-bottom: 0; font-weight: 700;
  }
}

/* ============================ HERO ============================ */
.lsj .hero {
  position: relative;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.lsj .hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 64px;
}
@media (max-width: 940px) {
  .lsj .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 52px 0 48px; }
}
.lsj .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.lsj .hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.lsj .hero h1 {
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-c);
  max-width: 16ch;
}
.lsj .hero h1 b { color: var(--teal); }
.lsj .hero-sub {
  margin-top: 18px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
}
.lsj .hero-cta-row { margin-top: 28px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lsj .btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700;
  padding: 13px 22px; border-radius: 8px;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.lsj .btn-primary { background: var(--teal); color: #fff; box-shadow: 0 1px 2px rgba(15,118,110,0.18); }
.lsj .btn-primary:hover { background: var(--teal-dk); box-shadow: 0 4px 14px rgba(15,118,110,0.24); }
.lsj .btn-ghost { background: #fff; color: var(--teal); border: 1px solid var(--line); }
.lsj .btn-ghost:hover { border-color: var(--teal); }
.lsj .hero-trust {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink-3);
}
.lsj .hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.lsj .hero-trust span::before { content: "✓"; color: var(--teal); font-weight: 700; }

/* Hero-aside: mini sjekkliste. */
.lsj .check-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px -22px rgba(20,26,31,0.3);
  overflow: hidden;
}
.lsj .check-card-head {
  padding: 14px 18px;
  background: var(--teal);
  color: #fff;
}
.lsj .check-card-head .t { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.lsj .check-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.lsj .check-row:last-of-type { border-bottom: 0; }
.lsj .check-mark {
  display: grid; place-items: center;
  width: 24px; height: 24px; flex: none;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  font-size: 12px; font-weight: 700;
  color: var(--ink-3);
}
.lsj .check-mark.is-done { background: var(--teal); border-color: var(--teal); color: #fff; }
.lsj .check-label { font-size: 14.5px; font-weight: 600; color: var(--ink-c); }
.lsj .check-card-foot { padding: 12px 18px; font-size: 12px; color: var(--ink-3); background: var(--paper-2); }

/* ============================ SECTIONS ============================ */
.lsj .section { padding: 68px 0; }
.lsj .section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lsj .section-head { max-width: 640px; margin-bottom: 36px; }
.lsj .section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink-c);
  margin-top: 10px;
}
.lsj .section-head p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* ---- Sjekkliste (3 steg) ---- */
.lsj .check-list { display: flex; flex-direction: column; gap: 0; }
.lsj .check-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.lsj .check-item:first-child { border-top: 1px solid var(--line); }
.lsj .check-item-num {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--amber);
  color: #1a1206;
  font-weight: 800;
  font-size: 16px;
}
.lsj .check-item-body h3 { font-size: 19px; color: var(--ink-c); letter-spacing: -0.01em; }
.lsj .check-item-body p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 64ch; }
.lsj .check-item-foot { margin-top: 12px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lsj .check-item-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14.5px; color: var(--teal);
  text-decoration: underline; text-underline-offset: 3px;
}
.lsj .check-item-note { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }

/* ---- Lånetabell (5 formidlere) ---- */
.lsj .lend-wrap { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.lsj .lend-scroll { overflow-x: auto; }
.lsj table.lend { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; font-variant-numeric: tabular-nums; }
.lsj table.lend thead th {
  text-align: left;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); font-weight: 700;
  background: var(--teal);
  padding: 13px 16px;
}
.lsj table.lend thead th:last-child { text-align: right; }
.lsj table.lend tbody td { padding: 15px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; color: var(--ink-c); }
.lsj table.lend tbody tr:last-child td { border-bottom: 0; }
.lsj table.lend tbody tr.primary { background: linear-gradient(90deg, #fef8ec 0%, #ffffff 60%); }
.lsj table.lend .l-name { font-weight: 700; color: var(--ink-c); display: inline-flex; align-items: center; gap: 9px; }
.lsj table.lend .l-name img { width: 20px; height: 20px; border-radius: 5px; }
.lsj table.lend .l-note { color: var(--ink-2); font-size: 13.5px; }
.lsj table.lend .l-num { font-variant-numeric: tabular-nums; }
.lsj table.lend td.cta-c { text-align: right; white-space: nowrap; }
.lsj table.lend .t-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 6px; font-size: 13.5px; font-weight: 700;
  background: #fff; color: var(--teal); border: 1px solid var(--line);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.lsj table.lend tr.primary .t-cta { background: var(--teal); color: #fff; border-color: var(--teal); }
.lsj table.lend .t-cta:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.lsj .lend-foot { padding: 13px 16px; font-size: 12px; color: var(--ink-3); background: var(--paper-2); border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .lsj table.lend thead { display: none; }
  .lsj table.lend, .lsj table.lend tbody, .lsj table.lend tr, .lsj table.lend td { display: block; width: 100%; min-width: 0; }
  .lsj table.lend tbody tr { padding: 16px 16px; border-bottom: 1px solid var(--line); }
  .lsj table.lend tbody td { padding: 3px 0; border: 0; }
  .lsj table.lend td.cta-c { text-align: left; margin-top: 10px; }
}

/* ---- Guide-liste ---- */
.lsj .guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 36px; }
@media (max-width: 760px) { .lsj .guide-list { grid-template-columns: 1fr; } }
.lsj .guide-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  transition: background 0.14s ease;
}
.lsj .guide-row:hover .guide-row-title { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.lsj .guide-row .num { font-size: 13px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lsj .guide-row-title { display: block; font-size: 16.5px; font-weight: 700; line-height: 1.3; color: var(--ink-c); letter-spacing: -0.01em; }
.lsj .guide-row-desc { margin-top: 5px; display: block; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.lsj .check-ico { color: var(--line); font-size: 15px; transition: color 0.15s ease; }
.lsj .guide-row:hover .check-ico { color: var(--teal); }

/* ---- FAQ ---- */
.lsj .faq-list { display: flex; flex-direction: column; gap: 10px; }
.lsj .faq-item { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; }
.lsj .faq-item summary { font-weight: 700; cursor: pointer; color: var(--ink-c); font-size: 15px; }
.lsj .faq-item p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* ---- CTA-stripe ---- */
.lsj .ctaband { background: var(--teal); color: #fff; }
.lsj .ctaband .lsj-container { padding-top: 52px; padding-bottom: 52px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 820px) { .lsj .ctaband .lsj-container { grid-template-columns: 1fr; gap: 20px; } }
.lsj .ctaband h2 { color: #fff; font-size: clamp(22px, 2.8vw, 30px); letter-spacing: -0.02em; line-height: 1.16; }
.lsj .ctaband p { margin-top: 10px; color: rgba(255,255,255,0.85); font-size: 15.5px; line-height: 1.55; max-width: 46ch; }
.lsj .ctaband .btn-primary { background: #fff; color: var(--teal); }
.lsj .ctaband .btn-primary:hover { background: #eafbf8; box-shadow: none; }
.lsj .ctaband-fine { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.5; }

/* ============================ FOOTER ============================ */
.lsj .footer { background: #10231f; color: #c9d6d2; padding: 56px 0 26px; }
.lsj .footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 820px) { .lsj .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; } }
.lsj .footer .brand-name { color: #fff; }
.lsj .footer-blurb { margin-top: 12px; font-size: 13.5px; line-height: 1.6; color: #a7bcb6; max-width: 30ch; }
.lsj .footer h2 { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #7fa39a; margin-bottom: 12px; font-weight: 700; }
.lsj .footer-col ul { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.lsj .footer-col a { color: #c9d6d2; transition: color 0.15s ease; }
.lsj .footer-col a:hover { color: #fff; }
.lsj .footer-bot { padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: #7fa39a; }
.lsj .footer-bot .signed { font-weight: 700; letter-spacing: 0.02em; }

/* ============================================================================
   Undersider (.container) — guide/anmeldelse/sammenligning arver tema.
   ============================================================================ */
.lsj .container { font-family: var(--font-sans); color: var(--ink-c); }
.lsj .container h1 {
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.14; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--ink-c);
}
.lsj .container h2 { font-size: 23px; letter-spacing: -0.01em; margin: 38px 0 14px; color: var(--teal-dk); }
.lsj .container h3 { font-size: 18px; margin: 24px 0 10px; color: var(--ink-c); }
.lsj .container p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.68; color: var(--ink-c); }
.lsj .container a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.lsj .container a:hover { color: var(--teal-dk); }
.lsj .container ul, .lsj .container ol { list-style: revert; padding-left: 22px; margin: 0 0 18px; }
.lsj .container li { margin-bottom: 7px; line-height: 1.6; }
.lsj .container strong { font-weight: 700; color: var(--ink-c); }
.lsj .container blockquote {
  border-left: 3px solid var(--teal);
  background: var(--paper-2);
  margin: 24px 0; padding: 14px 20px;
  font-size: 15px; color: var(--ink-2); border-radius: 0 8px 8px 0;
}
.lsj .container blockquote p { margin: 0; font-size: 15px; }
.lsj .container details {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px; padding: 16px 20px; margin-bottom: 10px;
}
.lsj .container summary { font-weight: 700; cursor: pointer; color: var(--ink-c); }
.lsj .container hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.lsj .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 — tallkolonner skal være tabular-nums. */
.lsj .container table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.lsj .container thead th {
  background: var(--teal); color: #fff;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
  padding: 12px 14px; text-align: left; border: 0;
}
.lsj .container tbody td { border-bottom: 1px solid var(--line-soft); padding: 12px 14px; text-align: left; color: var(--ink-c); }
.lsj .container tbody tr:nth-child(even) { background: var(--paper-2); }
.lsj .container th, .lsj .container td { vertical-align: top; }

/* spesifisitets-fiks (kontekst-bevarende): .lsj a{color:inherit} (0-1-1) slår
   enkeltklasse-knapper (0-1-0). Speiler color-deklarasjoner med a.-selektor i
   samme selektor-kontekst. */
.lsj a.nav-cta { color: #fff; }
.lsj a.nav-mobile-cta { color: #fff; }
.lsj a.btn-primary { color: #fff; }
.lsj a.btn-ghost { color: var(--teal); }
.lsj table.lend a.t-cta { color: var(--teal); }
.lsj table.lend tr.primary a.t-cta { color: #fff; }
.lsj table.lend a.t-cta:hover { color: #fff; }
.lsj .ctaband a.btn-primary { color: var(--teal); }
.lsj a.ctaband-fine { color: rgba(255,255,255,0.65); }
.lsj a.check-item-link { color: var(--teal); }
