:root {
  --bg:          #F5F3EE;
  --surface:     #FDFCF9;
  --surface2:    #F0EDE6;
  --ink:         #1A1814;
  --ink2:        #3D3A34;
  --muted:       #7A7570;
  --border:      #DDD9D0;
  --border2:     #C8C3B8;

  --sapphire:    #1B4F8A;
  --sapphire-lt: #E8EEF7;
  --sapphire-md: #2D6AB5;
  --teal:        #0E7C6E;
  --teal-lt:     #E5F3F0;
  --red:         #C0392B;
  --red-lt:      #FCEEED;
  --amber:       #B45309;
  --amber-lt:    #FEF3E2;
  --gold:        #8B6914;

  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;
  --shadow:      0 2px 12px rgba(26,24,20,.07), 0 1px 3px rgba(26,24,20,.05);
  --shadow-lg:   0 8px 40px rgba(26,24,20,.10), 0 2px 8px rgba(26,24,20,.06);

  --font-display: 'Syne', 'Georgia', sans-serif;
  --font-body:    'Literata', 'Georgia', serif;
}

/* =====================================================
   BASE — NO body selectors per requirement
   We scope everything inside .lkalk-root
===================================================== */
.lkalk-root {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.lkalk-root *, .lkalk-root *::before, .lkalk-root *::after {
  box-sizing: border-box;
}

/* =====================================================
   LAYOUT
===================================================== */
.lkalk-wrap {
  width: 95%;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* =====================================================
   PAGE TITLE BLOCK
===================================================== */
.lkalk-title-block {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}
@media(max-width:680px){ .lkalk-title-block{ grid-template-columns:1fr; } }

.lkalk-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sapphire);
  margin-bottom: 10px;
}
.lkalk-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.08;
  margin: 0 0 12px;
  letter-spacing: -.025em;
}
.lkalk-h1 em {
  font-style: italic;
  color: var(--sapphire);
  font-weight: 700;
}
.lkalk-subtitle {
  font-size: .97rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0;
  font-weight: 400;
  line-height: 1.7;
}
.lkalk-year-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sapphire);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 8px 18px;
  border-radius: 100px;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 4px;
}

/* =====================================================
   TWO-COLUMN GRID
===================================================== */
.lkalk-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start;
}
@media(max-width:1024px){ .lkalk-grid{ grid-template-columns: 1fr; } }

/* =====================================================
   CARD
===================================================== */
.lkalk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow .22s ease;
}
.lkalk-card:hover { box-shadow: var(--shadow-lg); }
@media(max-width:600px){ .lkalk-card{ padding: 20px 18px; } }

.lkalk-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -.01em;
}
.lkalk-card-title .ct-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--sapphire-lt);
  border-radius: 6px;
  margin-right: 10px;
  font-size: .9rem;
  vertical-align: middle;
}

/* =====================================================
   FORM ELEMENTS
===================================================== */
.lkalk-label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink2);
  margin-bottom: 7px;
}
.lkalk-label .lk-opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 10.5px;
  color: var(--muted);
  margin-left: 6px;
  font-family: var(--font-body);
}

.lkalk-input,
.lkalk-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none;
  appearance: none;
}
.lkalk-input:focus,
.lkalk-select:focus {
  outline: none;
  border-color: var(--sapphire);
  box-shadow: 0 0 0 3px rgba(27,79,138,.12);
}
.lkalk-input::placeholder { color: var(--muted); opacity:.7; }

.lkalk-select {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='10' viewBox='0 0 16 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L8 9L15 1' stroke='%237A7570' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.lkalk-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
@media(max-width:540px){ .lkalk-row{ grid-template-columns: 1fr; } }

.lkalk-field { display: flex; flex-direction: column; gap: 0; margin-bottom: 18px; }
.lkalk-field:last-child { margin-bottom: 0; }

/* Input with NOK prefix */
.lkalk-input-wrap {
  position: relative;
}
.lkalk-input-wrap .lk-prefix {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .05em;
  pointer-events: none;
  user-select: none;
}
.lkalk-input-wrap input {
  padding-left: 50px;
}

/* =====================================================
   BUTTONS
===================================================== */
.lkalk-btn-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.lkalk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s ease;
}
.lkalk-btn-primary {
  background: var(--sapphire);
  color: #fff;
  box-shadow: 0 4px 16px rgba(27,79,138,.28);
  flex: 1;
}
.lkalk-btn-primary:hover {
  background: var(--sapphire-md);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(27,79,138,.38);
}
.lkalk-btn-primary:active { transform: translateY(0); }

.lkalk-btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
}
.lkalk-btn-ghost:hover {
  color: var(--ink);
  border-color: var(--border2);
  background: var(--surface2);
}

/* =====================================================
   LEGAL NOTE
===================================================== */
.lkalk-note {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.6;
  padding: 14px 16px;
  background: var(--sapphire-lt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--sapphire);
  margin-top: 20px;
}
.lkalk-note strong { color: var(--sapphire); }

/* =====================================================
   RESULTS
===================================================== */
.lkalk-results { display: none; }
.lkalk-results.visible {
  display: block;
  animation: lkFadeUp .4s ease both;
}
@keyframes lkFadeUp {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Hero result banner */
.lkalk-hero-result {
  background: linear-gradient(135deg, var(--sapphire) 0%, #163D6E 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.lkalk-hero-result::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  pointer-events: none;
}
.lkalk-hero-result::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -20px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.lkalk-hero-inner { position: relative; z-index: 2; }

.lkalk-hero-kicker {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 6px;
}
.lkalk-hero-amount {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 4px;
  animation: lkPop .45s cubic-bezier(.34,1.56,.64,1) both;
  animation-delay: .08s;
}
@keyframes lkPop {
  from { opacity:0; transform:scale(.8); }
  to   { opacity:1; transform:scale(1); }
}
.lkalk-hero-sub {
  font-size: .92rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 20px;
}
.lkalk-hero-sub strong { color: rgba(255,255,255,.9); }

.lkalk-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media(max-width:480px){ .lkalk-hero-stats{ grid-template-columns: 1fr 1fr; } }
.lkalk-hero-stat {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 14px 12px;
  backdrop-filter: blur(6px);
}
.lkalk-hero-stat .hs-label {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 5px;
}
.lkalk-hero-stat .hs-val {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

/* Stat cards grid */
.lkalk-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media(max-width:600px){ .lkalk-stat-grid{ grid-template-columns: 1fr; } }

.lkalk-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
}
.lkalk-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.lkalk-stat-card.sc-general::before { background: var(--red); }
.lkalk-stat-card.sc-bracket::before { background: var(--sapphire); }
.lkalk-stat-card.sc-trygd::before   { background: var(--amber); }

.lkalk-stat-card .sc-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.lkalk-stat-card .sc-val {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
}
.lkalk-stat-card .sc-pct {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 400;
}

/* Breakdown table */
.lkalk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.lkalk-table th,
.lkalk-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.lkalk-table thead th {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface2);
}
.lkalk-table thead th:last-child { text-align: right; }
.lkalk-table td:last-child { text-align: right; font-weight: 600; font-family: var(--font-display); }
.lkalk-table tbody tr:last-child td { border-bottom: none; }
.lkalk-table tbody tr:hover td { background: var(--surface2); }
.lkalk-table tr.tr-total td {
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1rem;
  border-top: 2px solid var(--border);
  border-bottom: none;
}
.lkalk-table tr.tr-total td:last-child { color: var(--teal); }
.lkalk-table .tr-deduct td:last-child { color: var(--red); }
.lkalk-table .tr-info td { color: var(--muted); font-size: .88rem; }

/* =====================================================
   CHARTS
===================================================== */
.lkalk-chart-wrap {
  height: 280px;
  position: relative;
  margin-top: 10px;
}

/* =====================================================
   BRACKETS TABLE
===================================================== */
.lkalk-brackets-wrap {
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.lkalk-bracket-group { margin-bottom: 18px; }
.lkalk-bracket-group:last-child { margin-bottom: 0; }
.lkalk-bracket-group-title {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sapphire);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.lkalk-bracket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  background: var(--surface2);
  font-size: .88rem;
}
.lkalk-bracket-row .br-range { color: var(--ink2); }
.lkalk-bracket-row .br-rate {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
}
.lkalk-bracket-row.br-active {
  background: var(--sapphire-lt);
  border: 1px solid rgba(27,79,138,.2);
}
.lkalk-bracket-row.br-active .br-rate { color: var(--sapphire); }
.lkalk-bracket-row .br-arrow {
  font-size: .75rem;
  color: var(--sapphire);
  margin-left: 6px;
}

/* =====================================================
   EFFECTIVE RATE METER
===================================================== */
.lkalk-rate-meter {
  margin: 20px 0 0;
  padding: 18px 20px;
  background: var(--surface2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.lkalk-rate-meter .rm-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.lkalk-rate-meter .rm-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.lkalk-rate-meter .rm-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
}
.lkalk-rate-meter .rm-track {
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.lkalk-rate-meter .rm-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--teal), var(--sapphire));
  transition: width 1s cubic-bezier(.25,.8,.25,1);
  width: 0%;
}

/* =====================================================
   INFO / ARTICLE SECTION
===================================================== */
.lkalk-info-section { margin-top: 40px; }

.lkalk-info-section h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -.02em;
}
.lkalk-info-section h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 10px;
  letter-spacing: -.01em;
  padding-left: 14px;
  border-left: 3px solid var(--sapphire);
}
.lkalk-info-section p {
  font-size: .97rem;
  color: var(--ink2);
  line-height: 1.8;
  margin-bottom: 14px;
}
.lkalk-info-section ul {
  margin: 0 0 14px 20px;
}
.lkalk-info-section ul li {
  font-size: .97rem;
  color: var(--ink2);
  line-height: 1.75;
  margin-bottom: 6px;
}
.lkalk-info-section strong { color: var(--ink); }
.lkalk-info-section a {
  color: var(--sapphire);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(27,79,138,.3);
  transition: border-color .15s;
}
.lkalk-info-section a:hover { border-color: var(--sapphire); }

.lkalk-highlight {
  background: var(--sapphire-lt);
  border-left: 4px solid var(--sapphire);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 18px 0;
  font-size: .95rem;
  color: var(--ink2);
  line-height: 1.7;
}
.lkalk-highlight strong { color: var(--sapphire); }

/* Pace table (reference rates) */
.lkalk-ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 14px 0 20px;
}
.lkalk-ref-table th {
  background: var(--surface2);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border2);
}
.lkalk-ref-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--ink2);
}
.lkalk-ref-table tr:hover td { background: var(--surface2); }
.lkalk-ref-table td:first-child { font-weight: 600; color: var(--ink); }
.lkalk-ref-table td:last-child { font-family: var(--font-display); font-weight: 700; color: var(--sapphire); }

/* Ressurser */
.lkalk-resources {
  background: var(--teal-lt);
  border: 1px solid rgba(14,124,110,.2);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 24px 0;
}
.lkalk-resources h4 {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
.lkalk-resources ul { margin: 0; padding-left: 18px; }
.lkalk-resources ul li { margin-bottom: 6px; font-size: .92rem; color: var(--ink2); }
.lkalk-resources a { color: var(--teal); border-bottom-color: rgba(14,124,110,.3); }
.lkalk-resources a:hover { border-color: var(--teal); }

/* =====================================================
   FAQ
===================================================== */
.lkalk-faq-item { border-bottom: 1px solid var(--border); }
.lkalk-faq-item:last-child { border-bottom: none; }

.lkalk-faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 16px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  letter-spacing: -.01em;
  transition: color .15s;
}
.lkalk-faq-q:hover { color: var(--sapphire); }
.lkalk-faq-q::after {
  content: '＋';
  font-size: 1.1rem;
  color: var(--sapphire);
  flex-shrink: 0;
  transition: transform .22s;
  font-weight: 400;
}
.lkalk-faq-item.lk-open .lkalk-faq-q::after { transform: rotate(45deg); }
.lkalk-faq-a {
  font-size: .93rem;
  color: var(--ink2);
  line-height: 1.75;
  padding-bottom: 16px;
  display: none;
}
.lkalk-faq-item.lk-open .lkalk-faq-a { display: block; }

/* =====================================================
   FOOTER / SOURCES
===================================================== */
.lkalk-sources {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
}
.lkalk-sources strong { color: var(--ink2); }
.lkalk-sources ul { margin: 6px 0 0 18px; }
.lkalk-sources ul li { margin-bottom: 4px; }

/* =====================================================
   RESPONSIVE TWEAKS
===================================================== */
@media(max-width:600px){
  .lkalk-wrap { padding: 24px 16px 60px; }
  .lkalk-h1 { font-size: 1.7rem; }
  .lkalk-hero-amount { font-size: 2.4rem; }
  .lkalk-stat-grid { grid-template-columns: 1fr 1fr; }
}