/* ==========================================================================
   Lommepenger.com - hovedstilark
   Palett: indigo (tillit/ro) + myntgull (penger) + mynte (positivt)
   Uttrykk: vennlig "family-fintech" - runde former, myke skygger, ikon-drevet.
   ========================================================================== */

:root {
  --brand:        #5B4FE0;   /* indigo */
  --brand-d:      #3A2EA8;
  --brand-l:      #7B71EC;
  --brand-soft:   #EEECFB;
  --accent:       #F5B301;   /* myntgull */
  --accent-d:     #D99400;
  --accent-soft:  #FFF4D6;
  --mint:         #1FA97A;   /* positivt / "ja" */
  --mint-soft:    #E4F5EE;
  --coral:        #F2654E;   /* advarsel / "nei" */
  --coral-soft:   #FDEAE6;
  --ink:          #211C3A;   /* mork indigo-tekst */
  --text:         #2C2941;
  --text-light:   #6E6A85;
  --bg:           #F7F6FC;   /* svakt lilla off-white */
  --bg-2:         #EDEBF7;
  --white:        #FFFFFF;
  --border:       #E6E3F2;

  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow: 0 2px 6px rgba(58,46,168,.05), 0 10px 28px rgba(58,46,168,.07);
  --shadow-lg: 0 16px 50px rgba(58,46,168,.16);
  --maxw: 1160px;

  /* Fargetoner for flate hoder + ikon-kort (tone-1..6) */
  --t1a:#6C5CE7; --t1b:#3A2EA8;   /* indigo */
  --t2a:#F5B301; --t2b:#E08600;   /* gull */
  --t3a:#1FA97A; --t3b:#15795A;   /* mynte */
  --t4a:#F2654E; --t4b:#C53E2C;   /* korall */
  --t5a:#3AA0D6; --t5b:#1E6E9C;   /* himmelblaa */
  --t6a:#A05CE7; --t6b:#6E2E9C;   /* lilla */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-d); }

h1,h2,h3,h4 { font-weight: 800; line-height: 1.18; color: var(--ink); letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.2rem; }
.narrow { max-width: 740px; }

.section { padding: 3.4rem 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 2.4rem; }
.section-head .eyebrow { color: var(--brand); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2 { margin: .4rem 0 .6rem; }
.section-head p { color: var(--text-light); font-size: 1.06rem; }

/* ---------- Topp-nav ---------- */
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: .6rem 1.2rem; display: flex; align-items: center; gap: 1.1rem; }
.nav-logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -.03em; }
.nav-logo:hover { color: var(--ink); }
.nav-logo-icon { width: 38px; height: 38px; border-radius: 12px; overflow: hidden; display: block; box-shadow: 0 3px 8px rgba(58,46,168,.28); }
.nav-logo-icon svg { width: 100%; height: 100%; display: block; }
.nav-logo-text span { color: var(--brand); }
.nav-menu { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.nav-link { padding: .55rem .75rem; border-radius: var(--r-pill); font-size: .92rem; font-weight: 700; color: var(--text); cursor: pointer; white-space: nowrap; }
.nav-link:hover { background: var(--brand-soft); color: var(--brand-d); }
.nav-cta { background: var(--accent); color: var(--ink) !important; box-shadow: 0 4px 12px rgba(245,179,1,.4); }
.nav-cta:hover { background: var(--accent-d); color: #fff !important; }

.nav-dropdown { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px); background: var(--white); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 1.3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1.4rem; min-width: 540px; opacity: 0; visibility: hidden; transition: .18s; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown.nav-dd-right .dropdown-menu { left: auto; right: 0; transform: translateX(0) translateY(8px); }
.nav-dropdown.nav-dd-right:hover .dropdown-menu { transform: translateX(0) translateY(0); }
.dropdown-menu.dropdown-themes { min-width: 380px; }
.dropdown-themes .dropdown-col a { font-weight: 600; }
.dropdown-col h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-light); margin-bottom: .6rem; }
.dropdown-col a { display: block; padding: .27rem 0; font-size: .9rem; color: var(--text); font-weight: 500; }
.dropdown-col a:hover { color: var(--brand); }
.dropdown-col a.more { color: var(--brand); font-weight: 800; }

.btn-search-icon { background: none; border: none; padding: .45rem; cursor: pointer; color: var(--text-light); font-size: 1.15rem; border-radius: var(--r-sm); }
.btn-search-icon:hover { background: var(--brand-soft); color: var(--brand); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); padding: .2rem .4rem; }

/* ---------- Knapper ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.6rem; border-radius: var(--r-pill); font-weight: 800; font-size: .98rem; cursor: pointer; border: 2px solid transparent; transition: .15s; }
.btn-primary { background: var(--accent); color: var(--ink) !important; }
.btn-primary:hover { background: var(--accent-d); color:#fff !important; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(245,179,1,.45); }
.btn-brand { background: var(--brand); color: #fff !important; }
.btn-brand:hover { background: var(--brand-d); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(91,79,224,.4); }
.btn-ghost { background: var(--white); color: var(--brand) !important; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- Forside-hero: delt, ingen foto ---------- */
.hero { position: relative; background: radial-gradient(1200px 600px at 15% -10%, #6C5CE7 0%, var(--brand-d) 55%, #2A2080 100%); color: #fff; overflow: hidden; }
.hero::before { content:""; position:absolute; inset:0; background-image: radial-gradient(circle, rgba(255,255,255,.10) 1.5px, transparent 1.6px); background-size: 26px 26px; opacity:.5; }
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 4.4rem 1.2rem 4.6rem; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p.lead { font-size: 1.18rem; color: rgba(255,255,255,.92); margin-bottom: 1.7rem; max-width: 34rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero .pill { background: rgba(255,255,255,.16); color:#fff; margin-bottom: 1.1rem; }

/* Hurtigsvar-kort (signatur): mini-tabell alder -> belop */
.quick-card { background: var(--white); color: var(--text); border-radius: var(--r-lg); padding: 1.5rem 1.6rem 1.3rem; box-shadow: var(--shadow-lg); }
.quick-card h3 { font-size: 1.1rem; display:flex; align-items:center; gap:.5rem; margin-bottom: .2rem; }
.quick-card .sub { font-size: .85rem; color: var(--text-light); margin-bottom: 1rem; }
.quick-rows { display: grid; gap: .5rem; }
.quick-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .8rem; padding: .55rem .8rem; background: var(--bg); border-radius: var(--r-sm); }
.quick-row .age { font-weight: 700; color: var(--ink); font-size: .92rem; }
.quick-row .amt { font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.quick-row .amt small { color: var(--text-light); font-weight: 600; font-size: .76rem; }
.quick-card .foot { margin: 1rem 0 0; font-size: .8rem; color: var(--text-light); }
.quick-card .foot a { font-weight: 700; }

/* ---------- Sidehode for artikler/hubber (flatt, farget) ---------- */
.page-hero { position: relative; min-height: 260px; display: flex; align-items: flex-end; color: #fff; background-size: cover; background-position: center; }
.page-hero.page-hero--flat { min-height: 0; }
.page-hero .inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 2.6rem 1.2rem; }
.page-hero .kicker { display:inline-block; background: rgba(255,255,255,.2); color:#fff; font-weight: 800; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .85rem; border-radius: var(--r-pill); margin-bottom: .85rem; }
.page-hero h1 { color: #fff; margin: 0 0 .5rem; max-width: 24ch; }
.page-hero p { color: rgba(255,255,255,.94); font-size: 1.1rem; max-width: 52ch; margin: 0; }
/* bilde-variant trenger lesbarhet */
.page-hero:not(.page-hero--flat)::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(33,28,58,.15), rgba(33,28,58,.66)); }
.page-hero:not(.page-hero--flat) h1, .page-hero:not(.page-hero--flat) p { text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* Fargetoner */
.tone-1 { background: linear-gradient(125deg, var(--t1a), var(--t1b)); }
.tone-2 { background: linear-gradient(125deg, var(--t2a), var(--t2b)); }
.tone-3 { background: linear-gradient(125deg, var(--t3a), var(--t3b)); }
.tone-4 { background: linear-gradient(125deg, var(--t4a), var(--t4b)); }
.tone-5 { background: linear-gradient(125deg, var(--t5a), var(--t5b)); }
.tone-6 { background: linear-gradient(125deg, var(--t6a), var(--t6b)); }
.page-hero--flat.tone-2 .kicker { color: var(--ink); background: rgba(0,0,0,.12); }
.page-hero--flat.tone-2 h1, .page-hero--flat.tone-2 p { color: var(--ink); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--bg); border-bottom: 1px solid var(--border); font-size: .85rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 0; align-items: center; }
.breadcrumb li { color: var(--text-light); }
.breadcrumb li a { color: var(--text-light); }
.breadcrumb li a:hover { color: var(--brand); }
.breadcrumb li::after { content: "›"; margin-left: .4rem; color: var(--border); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb li:last-child { color: var(--ink); font-weight: 700; }

/* ---------- Seksjonskort (forside) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 1.2rem; }
.scard { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 1.6rem; box-shadow: var(--shadow); transition: .18s; display: block; position: relative; overflow: hidden; }
.scard::before { content:""; position:absolute; left:0; top:0; bottom:0; width:5px; background: var(--brand); }
.scard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.scard .ico { font-size: 1.9rem; margin-bottom: .6rem; display:inline-flex; width:54px; height:54px; align-items:center; justify-content:center; border-radius: 14px; background: var(--brand-soft); }
.scard h3 { margin-bottom: .35rem; }
.scard p { font-size: .9rem; color: var(--text-light); margin: 0; }
.scard:nth-child(6n+2)::before { background: var(--accent); } .scard:nth-child(6n+2) .ico { background: var(--accent-soft); }
.scard:nth-child(6n+3)::before { background: var(--mint); } .scard:nth-child(6n+3) .ico { background: var(--mint-soft); }
.scard:nth-child(6n+4)::before { background: var(--coral); } .scard:nth-child(6n+4) .ico { background: var(--coral-soft); }
.scard:nth-child(6n+5)::before { background: var(--t5a); } .scard:nth-child(6n+5) .ico { background: #E4F1F8; }
.scard:nth-child(6n+6)::before { background: var(--t6a); } .scard:nth-child(6n+6) .ico { background: #F1E6FB; }

/* ---------- Kort i grid (hub) ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1.3rem; }
.dest-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: .18s; display: flex; flex-direction: column; }
.dest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dest-card .ph { aspect-ratio: 3/2; background: var(--bg-2); background-size: cover; background-position: center; }
.dest-card .ph-ico { display:flex; align-items:center; justify-content:center; aspect-ratio: 16/7; }
.dest-card .ph-ico span { font-size: 2.6rem; filter: drop-shadow(0 3px 6px rgba(0,0,0,.18)); }
.dest-card .body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.dest-card h3 { font-size: 1.12rem; margin-bottom: .2rem; }
.dest-card .grp { font-size: .74rem; color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.dest-card .desc { font-size: .9rem; color: var(--text-light); flex: 1; }
.dest-card .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .85rem; }
.tag { font-size: .72rem; background: var(--brand-soft); color: var(--brand-d); padding: .2rem .6rem; border-radius: var(--r-pill); font-weight: 700; }

/* ---------- Artikkelinnhold ---------- */
.article { max-width: 740px; margin: 0 auto; padding: 2.6rem 1.2rem 3.5rem; }
.article p, .article ul, .article ol { font-size: 1.06rem; color: #353149; }
.article ul, .article ol { margin: 0 0 1.2rem 1.3rem; }
.article li { margin-bottom: .45rem; }
.article h2 { margin: 2.1rem 0 .8rem; }
.article h3 { margin: 1.6rem 0 .5rem; }
.article figure { margin: 1.5rem 0; }
.article figure img { border-radius: var(--r); width: 100%; }
.article figcaption { font-size: .8rem; color: var(--text-light); margin-top: .5rem; text-align: center; }
.lead { font-size: 1.18rem; color: #353149; }
.toc { background: var(--brand-soft); border: 1px solid var(--border); border-radius: var(--r); padding: 1.2rem 1.5rem; margin: 1.6rem 0; }
.toc h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-d); margin-bottom: .6rem; }
.toc ul { list-style: none; margin: 0; display: grid; gap: .35rem; }
.toc a { font-size: .95rem; font-weight: 700; }

.img-credit { font-size: .74rem; color: var(--text-light); margin: .25rem 0 0; }
.img-credit a { color: var(--text-light); text-decoration: underline; }

/* Callouts */
.callout { background: var(--accent-soft); border-left: 5px solid var(--accent); border-radius: var(--r-sm); padding: 1.1rem 1.4rem; margin: 1.6rem 0; }
.callout.green, .callout.mint { background: var(--mint-soft); border-color: var(--mint); }
.callout.blue { background: #E7F1F9; border-color: var(--t5a); }
.callout.warn { background: var(--coral-soft); border-color: var(--coral); }
.callout p:last-child { margin: 0; }
.callout strong { color: var(--ink); }

/* Faktaboks */
.factbox { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 1.4rem 1.6rem; margin: 1.6rem 0; }
.factbox h3 { margin-bottom: .8rem; font-size: 1.08rem; }
.factbox dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.1rem; font-size: .94rem; }
.factbox dt { color: var(--text-light); font-weight: 600; }
.factbox dd { font-weight: 800; color: var(--ink); }

/* Fordeler/ulemper */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.6rem 0; }
.pros-cons > div { border-radius: var(--r); padding: 1.2rem 1.4rem; }
.pros { background: var(--mint-soft); }
.cons { background: var(--coral-soft); }
.pros h4, .cons h4 { margin-bottom: .6rem; }
.pros-cons ul { list-style: none; margin: 0; }
.pros-cons li { font-size: .92rem; padding-left: 1.5rem; position: relative; margin-bottom: .5rem; }
.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 900; }
.cons li::before { content: "✕"; position: absolute; left: 0; color: var(--coral); font-weight: 900; }

/* Sjekkliste */
.checklist { list-style: none; margin: 1.2rem 0 1.4rem; padding: 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .6rem; font-size: 1.02rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.4rem; height: 1.4rem; background: var(--mint); color:#fff; border-radius: 50%; font-size: .82rem; font-weight: 900; display:flex; align-items:center; justify-content:center; }

/* Beløpstabell (alder -> kr) */
.age-table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .98rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.age-table th, .age-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.age-table thead th { background: var(--brand); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.age-table tbody tr:last-child td { border-bottom: 0; }
.age-table tbody tr:nth-child(even) { background: var(--bg); }
.age-table td.amt { font-weight: 800; color: var(--brand-d); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Tall-statistikk-chips */
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 1rem; margin: 1.6rem 0; }
.stat { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 1.2rem; text-align: center; box-shadow: var(--shadow); }
.stat .n { font-size: 1.9rem; font-weight: 900; color: var(--brand); line-height: 1; }
.stat .l { font-size: .85rem; color: var(--text-light); margin-top: .4rem; }

/* ---------- Intern lenking ---------- */
.related { background: var(--bg); border-top: 1px solid var(--border); }
.related h2 { text-align: center; margin-bottom: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.chip { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-pill); padding: .5rem 1.1rem; font-size: .88rem; font-weight: 700; color: var(--brand); }
.chip:hover { border-color: var(--brand); background: var(--brand-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 3.2rem 0 1.6rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2rem; }
.footer-brand .nav-logo { color: #fff; margin-bottom: .9rem; }
.footer-brand .nav-logo-text span { color: var(--accent); }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.65); max-width: 23rem; }
.footer-col h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .85rem; }
.footer-col a { display: block; color: rgba(255,255,255,.72); font-size: .9rem; padding: .22rem 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.4rem; padding-top: 1.3rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .82rem; color: rgba(255,255,255,.55); }

/* ---------- Søke-modal ---------- */
.search-modal { position: fixed; inset: 0; background: rgba(33,28,58,.55); backdrop-filter: blur(3px); z-index: 200; display: none; padding: 8vh 1rem 0; }
.search-modal.open { display: block; }
.search-box { max-width: 600px; margin: 0 auto; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-box-head { display: flex; align-items: center; padding: .5rem .5rem .5rem 1.3rem; border-bottom: 1px solid var(--border); }
.search-box input { flex: 1; border: none; outline: none; font-size: 1.05rem; padding: .85rem .5rem; background: transparent; color: var(--text); }
.search-box .close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-light); padding: .5rem .8rem; }
.search-res { max-height: 52vh; overflow-y: auto; padding: .6rem; }
.search-res a { display: block; padding: .65rem .9rem; border-radius: var(--r-sm); }
.search-res a:hover, .search-res a.sel { background: var(--brand-soft); }
.search-res .t { font-weight: 700; color: var(--ink); }
.search-res .s { font-size: .8rem; color: var(--text-light); }
.search-res .empty { padding: 1rem; color: var(--text-light); font-size: .9rem; }

/* ---------- Hjelpere ---------- */
.center { text-align: center; }
.mt2 { margin-top: 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.muted { color: var(--text-light); }
.pill { display:inline-block; background: var(--brand-soft); color: var(--brand-d); font-weight: 800; font-size: .78rem; padding: .3rem .8rem; border-radius: var(--r-pill); }

/* ---------- Lommepengekalkulator ---------- */
.kalk { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; max-width: 820px; margin: 0 auto; }
.kalk-head { background: linear-gradient(125deg, var(--brand-l), var(--brand-d)); color: #fff; padding: 1.6rem 1.8rem; }
.kalk-head h2 { color: #fff; margin: 0; }
.kalk-head p { color: rgba(255,255,255,.9); font-size: .94rem; margin: .35rem 0 0; }
.kalk-body { padding: 1.8rem; display: grid; gap: 1.5rem; }
.kalk-q .qlabel { font-weight: 800; font-size: 1rem; margin-bottom: .6rem; display:block; color: var(--ink); }
.kalk-q .qlabel small { display:block; font-weight:500; color: var(--text-light); font-size:.82rem; margin-top:.1rem; }
.opts { display: flex; gap: .5rem; flex-wrap: wrap; }
.opts .opt { flex: 1; min-width: 90px; padding: .7rem .6rem; border: 2px solid var(--border); background: var(--white); border-radius: var(--r-sm); font-size: .9rem; font-weight: 700; color: var(--text-light); cursor: pointer; transition: .12s; text-align:center; }
.opts .opt:hover { border-color: var(--brand-l); color: var(--brand); }
.opts .opt.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.kalk-field { display: flex; align-items: center; gap: .6rem; }
.kalk-field span { color: var(--text-light); font-weight: 600; }
.kalk-input { width: 150px; padding: .7rem .9rem; border: 2px solid var(--border); border-radius: var(--r-sm);
  font-size: 1.05rem; font-weight: 800; color: var(--ink); background: var(--white); font-variant-numeric: tabular-nums; }
.kalk-input:focus { border-color: var(--brand); outline: none; }
.kalk-foot { padding: 1.4rem 1.8rem; border-top: 1px solid var(--border); background: var(--bg); }
.kalk-result { display:none; }
.kalk-result.show { display:block; }
.kalk-amount { text-align:center; padding: .5rem 0 1rem; }
.kalk-amount .big { font-size: 3rem; font-weight: 900; color: var(--brand); line-height: 1; }
.kalk-amount .per { color: var(--text-light); font-weight: 700; }
.kalk-amount .alt { font-size: .92rem; color: var(--text-light); margin-top: .5rem; }
.kalk-note { font-size: .9rem; color: var(--text); background: var(--brand-soft); border-radius: var(--r-sm); padding: 1rem 1.2rem; margin-top: .4rem; }

/* ---------- Responsivt ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 1080px) {
  .nav-menu { position: fixed; inset: 58px 0 auto 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 1rem; gap: .2rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); display: none; max-height: calc(100vh - 58px); overflow-y: auto; }
  .nav-menu.open { display: flex; }
  .nav-link { padding: .8rem; border-radius: var(--r-sm); }
  .nav-cta { text-align:center; margin-top:.3rem; }
  .dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: .3rem 0 .6rem 1rem; min-width: 0; display: block; }
  .nav-dropdown:hover .dropdown-menu { transform: none; }
  .dropdown-col { margin-bottom: .6rem; }
  .nav-toggle { display: block; margin-left: auto; }
  .grid-2, .pros-cons { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 2.6rem 0; }
  .hero-inner { padding: 3rem 1.2rem; }
  .kalk-amount .big { font-size: 2.4rem; }
}

/* ---------- Illustrasjoner (egne SVG-motiv) ---------- */
/* Hero-illustrasjon: hvitt kort med motiv, vises paa alle hero-fargetoner */
.hero-art { position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  background: #fff; border-radius: 20px; padding: 12px; line-height: 0;
  box-shadow: 0 12px 30px rgba(33,28,58,.22); }
.hero-art img { width: 104px; height: 104px; display: block; }
.page-hero--flat .inner { padding-right: 188px; }
@media (max-width: 760px) {
  .hero-art { display: none; }
  .page-hero--flat .inner { padding-right: 1.2rem; }
}

/* Kildeboks (E-E-A-T) i artikler */
.kilder { background: var(--bg); border: 1px solid var(--border); border-left: 5px solid var(--mint);
  border-radius: var(--r); padding: 1.2rem 1.5rem; margin: 2rem 0 1rem; }
.kilder h3 { font-size: 1rem; margin: 0 0 .6rem; }
.kilder ul { margin: 0 0 .6rem 1.1rem; }
.kilder li { font-size: .92rem; margin-bottom: .3rem; }
.kilder .muted { font-size: .82rem; margin: 0; }

/* Ekte foto-figur (med bildekreditt) */
.photo-figure { margin: 0 0 1.8rem; }
.photo-figure img { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow); display: block; }
.photo-figure figcaption { margin-top: .5rem; text-align: right; }

/* Inline illustrasjonsfigur i brodtekst/intro */
.ill-figure { margin: 1.8rem 0; text-align: center; }
.ill-card { display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-soft), #ffffff);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.3rem 2.2rem; box-shadow: var(--shadow); }
.ill-card img { width: 140px; height: 140px; display: block; }
.ill-figure figcaption { font-size: .85rem; color: var(--text-light); margin-top: .6rem; }

/* Dekorativ illustrasjon i forside-hero */
.hero-deco { position: absolute; right: 4%; bottom: -10px; width: 230px; height: 230px;
  opacity: .16; pointer-events: none; z-index: 1; filter: brightness(0) invert(1); }
@media (max-width: 980px) { .hero-deco { display: none; } }

/* ---------- Cookie-banner (samtykke) ---------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); max-width: var(--maxw); margin: 0 auto; }
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: flex; align-items: center; gap: 1.2rem; padding: 1rem 1.3rem; flex-wrap: wrap; }
.cookie-text { margin: 0; font-size: .9rem; color: var(--text); flex: 1; min-width: 240px; }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: .6rem 1.2rem; font-size: .9rem; }
@media (max-width: 560px) { .cookie-actions { width: 100%; } .cookie-actions .btn { flex: 1; } }

/* Byline */
.byline { font-size: .85rem; color: var(--text-light); margin: 0 0 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.byline span { color: var(--ink); font-weight: 700; }
