/* ==========================================================================
   iPartner Smart Card – stilark
   Navy + gull (merkevare), blå (handlinger i app/kort)
   ========================================================================== */
:root {
  --navy-950: #061226;
  --navy-900: #0a1a33;
  --navy-800: #0f2547;
  --navy-700: #16335f;
  --navy-600: #224777;
  --gold-300: #f6d77e;
  --gold-400: #ecc35b;
  --gold-500: #e2ad3f;
  --gold-600: #c8902a;
  --blue-500: #1e6bff;
  --blue-600: #1557d6;
  --blue-50: #eef4ff;
  --green-500: #20b15a;
  --ink: #0e1b2e;
  --ink-2: #3c4a5e;
  --muted: #6b778a;
  --line: #e4e9f0;
  --line-2: #eef2f7;
  --bg: #f5f7fb;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 51, .06), 0 1px 3px rgba(10, 26, 51, .05);
  --shadow: 0 8px 24px rgba(10, 26, 51, .08), 0 2px 6px rgba(10, 26, 51, .05);
  --shadow-lg: 0 30px 60px rgba(3, 10, 24, .35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Caveat", "Segoe Script", cursive;
  --gold-grad: linear-gradient(180deg, #f3cf6d 0%, #e3ab3c 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; border-radius: 6px; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .78rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- Knapper ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .7em 1.2em; border-radius: 10px; border: 1px solid transparent; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .95em 1.6em; font-size: 1.08rem; border-radius: 12px; }
.btn-sm { padding: .45em .85em; font-size: .85rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold-grad); color: var(--navy-900); box-shadow: 0 6px 18px rgba(226, 173, 63, .35), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold:hover { box-shadow: 0 8px 24px rgba(226, 173, 63, .5), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-primary { background: var(--blue-500); color: #fff; box-shadow: 0 6px 16px rgba(30, 107, 255, .25); }
.btn-primary:hover { background: var(--blue-600); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-outline { border-color: #cdd5e1; background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--navy-700); }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .03); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-light:hover { border-color: #c7d0dd; }
.btn-danger { background: #fff; color: #c62f3a; border-color: #f2c7cb; }
.btn-danger:hover { background: #fdf1f2; }
.btn-ghost { background: transparent; color: var(--ink-2); padding: .45em .6em; }
.btn-ghost:hover { background: var(--line-2); }
.btn.is-disabled { opacity: .6; pointer-events: none; }
.btn .ic { width: 1.1em; height: 1.1em; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.logo-text small { font-size: .82rem; font-weight: 500; margin-top: 3px; letter-spacing: .01em; padding-left: 1.4em; }
.logo-light .logo-text { color: #fff; }
.logo-dark .logo-text { color: var(--navy-900); }

/* ---------- Toppnavigasjon ---------- */
.topnav { position: sticky; top: 0; z-index: 50; background: rgba(8, 21, 42, .92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.topnav-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.topnav-logo { flex: none; }
.topnav-links { display: flex; gap: 6px; margin-inline: auto; }
.topnav-links a { color: rgba(255, 255, 255, .86); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.topnav-links a:hover, .topnav-links a[aria-current] { color: #fff; background: rgba(255, 255, 255, .07); }
.topnav-links a[aria-current] { box-shadow: inset 0 -2px 0 var(--gold-400); border-radius: 8px 8px 0 0; background: none; }
.topnav-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .85); font-size: .9rem; font-weight: 600; margin-right: 6px; }
.topnav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.topnav-toggle .ic { width: 28px; height: 28px; }
.topnav-mobile-cta { display: none; }
@media (max-width: 1100px) {
  .topnav-links { position: fixed; inset: 76px 0 auto 0; flex-direction: column; background: var(--navy-900); padding: 12px 16px 20px; gap: 2px; transform: translateY(-120%); transition: transform .25s; border-bottom: 1px solid rgba(255, 255, 255, .08); max-height: calc(100vh - 76px); overflow: auto; }
  .topnav.is-open .topnav-links { transform: none; }
  .topnav-links a { padding: 12px; font-size: 1.05rem; }
  .topnav-links a[aria-current] { box-shadow: inset 3px 0 0 var(--gold-400); border-radius: 0; }
  .topnav-mobile-cta { display: flex; gap: 10px; margin-top: 12px; }
  .topnav-mobile-cta .btn { flex: 1; }
  .topnav-actions { display: none; }
  .topnav-toggle { display: block; }
}

/* ---------- Flash ---------- */
.flash-wrap { padding-top: 16px; }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px; margin-bottom: 12px; font-size: .95rem; border: 1px solid; }
.flash .ic { margin-top: 2px; }
.flash span { flex: 1; word-break: break-word; }
.flash-success { background: #ecfaf1; border-color: #bfe9cf; color: #11643a; }
.flash-error { background: #fdf0f1; border-color: #f5c5ca; color: #9b1c27; }
.flash-info { background: var(--blue-50); border-color: #c9dafd; color: #163f8f; }
.flash-close { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }

/* ---------- Hero ---------- */
.hero, .page-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 75% 40%, #183a6d 0%, transparent 60%), linear-gradient(160deg, #0b1f3e 0%, #081631 55%, #061226 100%); }
.hero-bg i { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .5; }
.hero-bg i:nth-child(1) { width: 380px; height: 380px; right: 4%; top: 6%; background: #23508f; }
.hero-bg i:nth-child(2) { width: 260px; height: 260px; right: 30%; bottom: -80px; background: #1a3b6b; }
.hero-bg i:nth-child(3) { width: 180px; height: 180px; right: 2%; bottom: 10%; background: rgba(226, 173, 63, .35); }
.hero-bg i:nth-child(4) { width: 120px; height: 120px; left: 40%; top: 10%; background: rgba(110, 160, 230, .25); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 64px 0 72px; }
.hero-title { font-size: clamp(2.5rem, 4.9vw, 4.4rem); white-space: nowrap; font-weight: 800; letter-spacing: -.035em; margin: 0 0 .1em; line-height: 1.02; }
.hero-title span:first-child { background: linear-gradient(180deg, #fff 30%, #cfe0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.7rem, 3.3vw, 2.75rem); font-weight: 500; line-height: 1.15; margin: 0 0 .55em; letter-spacing: -.02em; }
.hero-lead { font-size: 1.2rem; color: #c3d3ef; max-width: 36em; }
.hero-feats { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; grid-template-columns: repeat(6, auto); justify-content: space-between; gap: 14px; }
.hero-feats li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; font-size: .86rem; max-width: 9.5em; font-weight: 500; color: #e7eefb; line-height: 1.3; }
.hero-feat-ic { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .12); color: var(--gold-400); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.hero-feat-ic .ic { width: 30px; height: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.play-dot { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--navy-900); }
.play-dot .ic { width: 14px; height: 14px; fill: currentColor; }
.hero-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #dbe5f6; font-size: .95rem; }
.hero-checks li { display: inline-flex; align-items: center; gap: 6px; }
.hero-checks .ic { color: #fff; width: 1.05em; }

.hero-visual { position: relative; min-height: 640px; }
.phone { position: absolute; left: 0; top: 0; width: 330px; height: 660px; border-radius: 52px; padding: 12px; background: linear-gradient(145deg, #2d4d86, #0f1f3c 40%, #1d3a6c); box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .12); z-index: 2; }
.phone-screen { height: 100%; border-radius: 42px; overflow: hidden; background: #fff; position: relative; }
.phone-notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 100px; height: 28px; background: #0a0f1b; border-radius: 20px; z-index: 5; }
.phone-status { position: absolute; top: 24px; left: 44px; right: 40px; display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; color: #0e1b2e; z-index: 4; }
.phone-icons { letter-spacing: 1px; font-size: .6rem; }
.nfc-card { position: absolute; right: 0; top: 70px; width: 300px; height: 470px; border-radius: 22px; transform: rotate(9deg); background: radial-gradient(120% 70% at 30% 0%, #1a3664 0%, #0a1a33 55%, #071228 100%); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .08); padding: 46px 30px; display: flex; flex-direction: column; align-items: center; z-index: 1; }
.nfc-logo .logo-mark { width: 92px; height: 92px; }
.nfc-logo .logo { flex-direction: column; gap: 12px; }
.nfc-logo .logo-text { align-items: center; }
.nfc-logo .logo-text b { font-size: 2.3rem; }
.nfc-logo .logo-text small { font-size: 1.3rem; padding: 0; margin-top: 6px; }
.nfc-qr { margin-top: auto; background: var(--gold-grad); border-radius: 14px; padding: 12px 12px 8px; text-align: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.nfc-qr-code { background: #fff; border-radius: 6px; padding: 6px; width: 132px; height: 132px; }
.nfc-qr-code canvas, .nfc-qr-code img { width: 100%; height: 100%; }
.nfc-qr span { display: block; font-weight: 800; color: var(--navy-900); letter-spacing: .05em; margin-top: 6px; }
.hero-script { position: absolute; right: -40px; bottom: 0; font-family: var(--script); font-size: 2rem; line-height: 1.1; color: #fff; transform: rotate(-6deg); z-index: 3; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.hero-script svg { width: 46px; height: 46px; margin: 0 0 4px 30px; color: #fff; }
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-feats { grid-template-columns: repeat(3, 1fr); justify-content: stretch; }
  .hero-feats li { max-width: none; }
  .hero-title { white-space: normal; }
  .hero-visual { min-height: 620px; max-width: 560px; width: 100%; margin-inline: auto; }
}
@media (max-width: 600px) {
  .hero-feat-ic { width: 54px; height: 54px; }
  .hero-feats { gap: 16px 8px; }
  .hero-feats li { font-size: .82rem; }
  .hero-visual { min-height: 560px; }
  .phone { width: 270px; height: 560px; border-radius: 44px; left: 50%; transform: translateX(-62%); }
  .phone-screen { border-radius: 34px; }
  .nfc-card { width: 200px; height: 320px; padding: 26px 18px; right: -6px; top: 120px; }
  .nfc-logo .logo-mark { width: 56px; height: 56px; }
  .nfc-logo .logo-text b { font-size: 1.5rem; }
  .nfc-logo .logo-text small { font-size: .9rem; }
  .nfc-qr-code { width: 90px; height: 90px; }
  .hero-script { display: none; }
  .hero-cta .btn { width: 100%; }
}

/* ---------- Visitkort (delt mellom mockup og offentlig side) ---------- */
.vcard { --acc: var(--card-accent, var(--blue-500)); background: #fff; color: var(--ink); }
.vcard-cover { position: relative; height: 210px; overflow: hidden; }
.vcard-cover .cover { width: 100%; height: 100%; object-fit: cover; }
.cover-gradient { width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy-800), var(--acc)); }
.vcard-bar { position: absolute; inset: 14px 14px auto; display: flex; align-items: center; justify-content: space-between; }
.vcard-bar-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--navy-900); border: 0; cursor: pointer; }
.vcard-bar-btn .ic { width: 18px; height: 18px; }
.vcard-brand { background: rgba(255, 255, 255, .88); border-radius: 12px; padding: 5px 10px 5px 6px; }
.vcard-brand .logo-mark { width: 26px; height: 26px; }
.vcard-brand .logo-text b { font-size: 1rem; }
.vcard-brand .logo-text small { font-size: .62rem; margin-top: 1px; }
.vcard-head { text-align: center; margin-top: -78px; position: relative; padding: 0 18px; }
.vcard-avatar { position: relative; display: inline-block; }
.avatar { border-radius: 50%; object-fit: cover; background: #dfe6f0; }
.avatar-initials { display: inline-grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, hsl(var(--h, 215) 60% 45%), hsl(calc(var(--h, 215) + 40) 65% 35%)); }
.avatar-sm { width: 38px; height: 38px; font-size: .85rem; }
.avatar-md { width: 44px; height: 44px; font-size: .95rem; }
.avatar-lg { width: 84px; height: 84px; font-size: 1.6rem; }
.avatar-xl { width: 150px; height: 150px; font-size: 2.8rem; border: 5px solid #fff; box-shadow: 0 8px 24px rgba(10, 26, 51, .18); }
.vcard-verified { position: absolute; right: 8px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-grad); color: #fff; display: grid; place-items: center; border: 3px solid #fff; }
.vcard-verified .ic { width: 16px; height: 16px; stroke-width: 3; }
.vcard-name { font-size: 1.85rem; font-weight: 800; margin: 10px 0 2px; }
.vcard-title { margin: 0; color: var(--ink-2); font-weight: 500; }
.vcard-company { margin: 0; color: var(--muted); font-size: .92rem; }
.vcard-actions { display: flex; justify-content: center; gap: 22px; margin: 20px 0 18px; padding: 0 12px; }
.vcard-action { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink-2); font-size: .82rem; text-decoration: none !important; }
.vcard-action > span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--acc) 35%, transparent); transition: transform .15s; }
.vcard-action:hover > span { transform: translateY(-2px); }
.vcard-action.is-green > span { background: #25c26b; box-shadow: 0 6px 14px rgba(37, 194, 107, .35); }
.vcard-action .ic { width: 24px; height: 24px; }
.vcard-save { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 18px 12px; padding: 14px; border-radius: 12px; background: var(--acc); color: #fff; font-weight: 700; text-decoration: none !important; box-shadow: 0 8px 18px color-mix(in srgb, var(--acc) 30%, transparent); }
.vcard-links { list-style: none; margin: 0; padding: 4px 18px 10px; }
.vcard-link { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--line-2); color: var(--ink); font-weight: 500; text-decoration: none !important; }
.vcard-links li:last-child .vcard-link { border-bottom: 0; }
.vcard-link:hover { background: #fafbfd; }
.vcard-link > span:nth-child(2) { flex: 1; }
.vcard-link-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #eef2f8; color: var(--navy-800); }
.vcard-link-ic .ic { width: 19px; height: 19px; }
.ic-linkedin { background: #0a66c2; color: #fff; }
.ic-facebook { background: #1877f2; color: #fff; }
.ic-instagram { background: radial-gradient(circle at 30% 110%, #fdcb52 0%, #fd5a2b 35%, #d6249f 60%, #285aeb 100%); color: #fff; }
.chev { color: #9aa6b8; width: 18px; height: 18px; }

/* Mini (mockup i mobil) */
.vcard-mini { font-size: 13px; pointer-events: none; user-select: none; }
.vcard-mini .vcard-cover { height: 170px; }
.vcard-mini .vcard-bar { top: 52px; }
.vcard-mini .vcard-bar-btn { width: 26px; height: 26px; background: transparent; color: #2a3b52; }
.vcard-mini .vcard-head { margin-top: -62px; }
.vcard-mini .avatar-xl { width: 116px; height: 116px; font-size: 2.2rem; border-width: 4px; }
.vcard-mini .vcard-verified { width: 26px; height: 26px; right: 4px; bottom: 6px; }
.vcard-mini .vcard-name { font-size: 1.32rem; margin-top: 6px; }
.vcard-mini .vcard-title { font-size: .82rem; }
.vcard-mini .vcard-company { font-size: .75rem; }
.vcard-mini .vcard-actions { gap: 16px; margin: 12px 0 12px; }
.vcard-mini .vcard-action > span { width: 42px; height: 42px; }
.vcard-mini .vcard-action .ic { width: 19px; height: 19px; }
.vcard-mini .vcard-action small { font-size: .7rem; }
.vcard-mini .vcard-save { padding: 10px; margin: 0 14px 6px; font-size: .85rem; border-radius: 10px; }
.vcard-mini .vcard-links { padding: 0 14px; }
.vcard-mini .vcard-link { padding: 8px 2px; gap: 10px; font-size: .8rem; }
.vcard-mini .vcard-link-ic { width: 26px; height: 26px; border-radius: 7px; }
.vcard-mini .vcard-link-ic .ic { width: 15px; height: 15px; }

/* ---------- Offentlig kortside ---------- */
.card-body { background: linear-gradient(180deg, #e8eef7 0%, #f5f7fb 40%); min-height: 100vh; }
.card-page { padding: 0 0 40px; }
.card-shell { width: min(480px, 100%); margin: 0 auto; background: #fff; min-height: 100vh; box-shadow: 0 0 40px rgba(10, 26, 51, .08); }
@media (min-width: 560px) { .card-page { padding: 28px 16px 40px; } .card-shell { border-radius: 28px; overflow: hidden; min-height: 0; } }
.owner-bar { width: min(480px, 100%); margin: 0 auto 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; background: var(--navy-900); color: #fff; font-size: .88rem; border-radius: 12px; }
.owner-bar a { color: var(--gold-400); display: inline-flex; gap: 6px; align-items: center; font-weight: 700; }
.card-shell > .flash { margin: 12px 18px; }
.card-section { padding: 22px 22px; border-top: 8px solid #f3f6fa; scroll-margin-top: 10px; }
.card-section h2 { font-size: 1.12rem; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-section h2 .ic { color: var(--acc, var(--blue-500)); color: var(--card-accent, var(--blue-500)); }
.card-bio { color: var(--ink-2); margin: 0; }
.card-share { display: flex; gap: 18px; align-items: center; }
.card-share h2 { margin-bottom: 4px; }
.qr-box { width: 120px; height: 120px; flex: none; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.qr-box canvas, .qr-box img { width: 100%; height: 100%; }
.card-foot { text-align: center; padding: 18px; font-size: .82rem; color: var(--muted); background: #f8fafc; }
.card-foot a { color: var(--ink-2); }
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: var(--navy-900); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; border: 0; background: var(--navy-800) center/cover; cursor: pointer; display: grid; place-items: center; }
.video-play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .95); display: grid; place-items: center; color: var(--navy-900); box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.video-play .ic { fill: currentColor; width: 26px; height: 26px; margin-left: 3px; }
.video-title { font-weight: 600; margin: 8px 0 14px; font-size: .95rem; }
.booked { text-align: center; padding: 10px 0; }
.booked-ic { width: 56px; height: 56px; border-radius: 50%; background: #e7f8ee; color: var(--green-500); display: inline-grid; place-items: center; margin-bottom: 8px; }
.booked-ic .ic { width: 28px; height: 28px; stroke-width: 3; }

/* Mini-kalender for booking */
.mini-cal { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.mini-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 700; }
.mini-cal-head button { background: none; border: 1px solid var(--line); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.mini-cal-head button:disabled { opacity: .35; cursor: default; }
.mini-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.mini-cal-grid .dow { font-size: .72rem; color: var(--muted); font-weight: 600; padding: 4px 0; }
.mini-cal-grid button { aspect-ratio: 1; border: 0; background: none; border-radius: 50%; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--ink); }
.mini-cal-grid button:disabled { color: #c3cad6; cursor: default; font-weight: 400; }
.mini-cal-grid button:not(:disabled):hover { background: var(--blue-50); }
.mini-cal-grid button.is-selected { background: var(--card-accent, var(--blue-500)); color: #fff; }
.mini-cal-grid button.is-today { box-shadow: inset 0 0 0 1.5px var(--card-accent, var(--blue-500)); }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-bottom: 14px; }
.slot-list p { grid-column: 1/-1; margin: 0; }
.slot { border: 1.5px solid var(--line); background: #fff; border-radius: 9px; padding: 9px 4px; font-weight: 700; cursor: pointer; font-size: .9rem; }
.slot:hover { border-color: var(--card-accent, var(--blue-500)); }
.slot.is-selected { background: var(--card-accent, var(--blue-500)); border-color: var(--card-accent, var(--blue-500)); color: #fff; }
.booking-details { display: grid; gap: 12px; }

/* ---------- Seksjoner ---------- */
.section { padding: 84px 0; }
.section-tint { background: var(--bg); }
.section-pull { padding-top: 48px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-500); margin-bottom: 10px; }
.eyebrow-gold { color: var(--gold-400); }
.feature-grid, .biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-card h3 { font-size: 1.1rem; margin: 14px 0 6px; }
.feature-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.feature-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--blue-50); color: var(--blue-500); }
.feature-ic .ic { width: 28px; height: 28px; }
@media (max-width: 900px) { .feature-grid, .biz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid, .biz-grid { grid-template-columns: 1fr; } .section { padding: 56px 0; } }

.how { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.how-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 28px; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--navy-800); color: var(--gold-400); display: grid; place-items: center; font-weight: 800; }
.steps b { font-size: 1.05rem; }
.steps span { color: var(--muted); font-size: .95rem; }
.mock-dash { display: grid; grid-template-columns: 120px 1fr; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px rgba(10, 26, 51, .15); border: 1px solid var(--line); }
.mock-dash-side { background: var(--navy-900); padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.mock-dash-side .logo-mark { width: 24px; height: 24px; }
.mock-dash-side .logo-text b { font-size: .85rem; }
.mock-dash-side .logo-text small { font-size: .55rem; }
.mock-dash-side i { height: 10px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.mock-dash-side i.on { background: var(--blue-500); margin-top: 14px; }
.mock-dash-main { padding: 20px; }
.mock-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.mock-kpis div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; }
.mock-kpis small { font-size: .65rem; color: var(--muted); }
.mock-kpis strong { font-size: 1.2rem; }
.mock-kpis em { font-style: normal; font-size: .7rem; color: var(--green-500); font-weight: 700; }
.mock-chart { width: 100%; height: 130px; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } .mock-kpis { grid-template-columns: repeat(2, 1fr); } }

/* Priser */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; box-shadow: var(--shadow-sm); }
.price-card.is-highlight { border: 2px solid var(--gold-400); box-shadow: 0 16px 40px rgba(226, 173, 63, .2); }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold-grad); color: var(--navy-900); font-size: .75rem; font-weight: 800; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.price-card h3 { text-align: center; font-size: 1.1rem; }
.price { text-align: center; margin: 6px 0 20px; display: flex; flex-direction: column; }
.price strong { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.price .price-contact { font-size: 1.6rem; line-height: 1.5; }
.price small { color: var(--muted); }
.price-card .checks { flex: 1; margin-bottom: 22px; align-content: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.checks li { display: flex; gap: 9px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.checks .ic { color: var(--green-500); width: 18px; height: 18px; margin-top: 2px; stroke-width: 2.6; }
@media (max-width: 1000px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }

.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 56px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta-band p { color: #c3d3ef; margin: 0; }

/* Undersider */
.page-hero { padding: 72px 0 64px; text-align: center; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; }
.page-hero h1 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { color: #c3d3ef; font-size: 1.15rem; max-width: 640px; margin: 0 auto; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-top: 80px; }
.split h2 { font-size: 2rem; font-weight: 800; }
.split p { color: var(--ink-2); }
.split-rev > :first-child { order: 2; }
.split-visual { display: grid; place-items: center; background: var(--bg); border-radius: 20px; padding: 40px; min-height: 300px; }
.qr-demo { background: #fff; padding: 14px; border-radius: 16px; box-shadow: var(--shadow); width: 228px; height: 228px; }
.mini-pipeline { display: grid; gap: 12px; width: 100%; max-width: 280px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.mini-pipeline .pill { padding: 14px 18px; font-size: 1rem; border-radius: 12px; }
.pill-blue { background: #e7efff; color: #1d4fc4; }
.pill-green { background: #e3f6ea; color: #157a40; }
.pill-gold { background: #fdf1d4; color: #94660d; }
.pill-violet { background: #efe9fd; color: #5b37b8; }
.pill-grey { background: #eef1f5; color: #5b6676; }
.pill-red { background: #fde8ea; color: #b02532; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; } .split-rev > :first-child { order: 0; } }
.examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.example { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; padding-bottom: 22px; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.example:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.example-cover { width: 100%; height: 120px; }
.example-cover .cover { width: 100%; height: 100%; }
.example .avatar { margin-top: -42px; border: 4px solid #fff; }
.example h3 { margin: 10px 0 2px; }
.example p { color: var(--muted); font-size: .92rem; }
.example-open { color: var(--blue-500); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }
.example-new { justify-content: center; padding: 30px; border-style: dashed; }
.example-new h3 { margin-top: 16px; }
.cta-box { margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; border-radius: 20px; padding: 36px; }
.cta-box p { color: #c3d3ef; margin: 0; }
.cta-box-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.guide { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); }
.guide h3 { margin-top: 14px; font-size: 1.1rem; }
.guide p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.faq { max-width: 780px; margin: 64px auto 0; }
.faq h2 { text-align: center; font-size: 1.8rem; font-weight: 800; margin-bottom: 20px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.faq summary { padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 16px; margin: 0; color: var(--ink-2); }
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-info h3 { margin: 12px 0 4px; font-size: 1.05rem; }
.contact-info p { margin: 0; color: var(--ink-2); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.3rem; }
.prose li { margin-bottom: .4em; }
.error-page { text-align: center; padding: 120px 0; }
.error-code { font-size: 5rem; font-weight: 800; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Footer */
.footer { background: var(--navy-950); color: #9fb0cb; padding: 56px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 14px; max-width: 340px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 8px; }
.footer a { color: #9fb0cb; }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-top: 20px; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1/-1; } }

/* ---------- Skjema ---------- */
.stack { display: grid; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; font-size: .9rem; }
.field > span { font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.field-link { font-weight: 500; font-size: .85rem; }
.field input:not([type=checkbox]):not([type=radio]):not([type=color]), .field select, .field textarea, .input { width: 100%; padding: 11px 13px; border: 1.5px solid #dbe2ec; border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; font-size: .95rem; }
.field textarea { resize: vertical; min-height: 44px; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(30, 107, 255, .12); }
.field-hint { font-size: .8rem; color: var(--muted); font-weight: 400; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue-500); flex: none; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch b { display: block; font-size: .95rem; }
.switch small { color: var(--muted); }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 99px; background: #cfd7e3; position: relative; cursor: pointer; flex: none; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked { background: var(--blue-500); }
.switch input:checked::after { transform: translateX(18px); }

/* ---------- Auth ---------- */
.auth-body { background: var(--bg); }
.auth { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 100vh; }
.auth-aside { position: relative; overflow: hidden; color: #fff; padding: 40px 48px; display: flex; flex-direction: column; background: radial-gradient(800px 500px at 80% 30%, #1b3f75 0%, transparent 60%), linear-gradient(160deg, #0b1f3e, #061226); }
.auth-aside-copy { margin: auto 0; }
.auth-aside h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.auth-aside h2 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-aside .checks li { color: #dbe5f6; font-size: 1.02rem; }
.auth-script { font-family: var(--script); font-size: 1.9rem; line-height: 1.1; color: var(--gold-300); transform: rotate(-4deg); margin: 0; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: min(460px, 100%); background: #fff; border-radius: 20px; padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.auth-card h1 { font-size: 1.7rem; font-weight: 800; }
.auth-card form { margin-top: 22px; }
.demo-hint { display: flex; gap: 10px; align-items: center; margin-top: 20px; padding: 12px 14px; background: #fdf6e3; border: 1px solid #f3dfa6; border-radius: 10px; font-size: .88rem; color: #6d5310; }
.plan-note { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--blue-50); color: #163f8f; font-size: .9rem; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-aside { padding: 24px 20px; } .auth-aside-copy, .auth-script { display: none; } .auth-card { padding: 26px 20px; } }

/* ==========================================================================
   App (innlogget)
   ========================================================================== */
.app-body { background: var(--bg); }
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, #0b1d37, #0a1830); color: #c7d3e6; display: flex; flex-direction: column; padding: 20px 14px; overflow-y: auto; z-index: 40; }
.sidebar-logo { padding: 4px 8px 22px; }
.sidebar-logo .logo-mark { width: 34px; height: 34px; }
.sidebar-logo .logo-text b { font-size: 1.25rem; }
.sidebar-logo .logo-text small { font-size: .72rem; }
.sidebar-nav { display: grid; gap: 3px; }
.sidebar-nav a, .sidebar-logout button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #c7d3e6; font-weight: 500; font-size: .95rem; text-decoration: none; border: 0; background: none; width: 100%; cursor: pointer; text-align: left; }
.sidebar-nav a:hover, .sidebar-logout button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar-nav a.is-active { background: var(--blue-500); color: #fff; box-shadow: 0 6px 16px rgba(30, 107, 255, .35); }
.sidebar-nav .ic { width: 20px; height: 20px; }
.sidebar-plan { margin-top: auto; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 14px; font-size: .85rem; }
.sidebar-plan p { margin: 8px 0 10px; color: #9fb0cb; }
.plan-chip { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--gold-grad); color: var(--navy-900); font-weight: 800; font-size: .75rem; }
.sidebar-logout { margin-top: 10px; }
.sidebar-backdrop { display: none; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 12px 28px; background: rgba(245, 247, 251, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.app-top-title { font-weight: 700; color: var(--ink-2); margin-right: auto; }
.app-menu { display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 99px; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { background: #fff; }
.usermenu-name { display: flex; flex-direction: column; line-height: 1.2; }
.usermenu-name b { font-size: .9rem; }
.usermenu-name small { font-size: .78rem; color: var(--muted); }
.usermenu-pop { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 210px; padding: 6px; display: grid; }
.usermenu-pop a, .usermenu-pop button { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: .92rem; background: none; border: 0; width: 100%; cursor: pointer; text-align: left; text-decoration: none; }
.usermenu-pop a:hover, .usermenu-pop button:hover { background: var(--bg); }
.app-content { padding: 28px; flex: 1; width: 100%; max-width: 1400px; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 264px; transform: translateX(-100%); transition: transform .25s; }
  .app.is-nav-open .sidebar { transform: none; }
  .app.is-nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(6, 18, 38, .5); z-index: 35; }
  .app-menu { display: grid; }
  .app-top { padding: 10px 16px; }
  .app-content { padding: 18px 16px; }
  .usermenu-name, .app-viewcard span { display: none; }
}

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 1.7rem; font-weight: 800; margin: 0 0 2px; }
.page-head p { margin: 0; color: var(--muted); }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.08rem; margin: 0; }
.panel-head a { font-size: .88rem; font-weight: 600; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-sm); }
.kpi-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.kpi-ic .ic { width: 26px; height: 26px; }
.kpi-ic.blue { background: #e9f0ff; color: var(--blue-500); }
.kpi-ic.violet { background: #f0eafd; color: #6d43d6; }
.kpi-ic.green { background: #e5f7ec; color: #18994e; }
.kpi-ic.gold { background: #fdf3da; color: #c08613; }
.kpi strong { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.kpi small { color: var(--muted); font-size: .85rem; }
.trend { font-size: .8rem; font-weight: 700; color: #18994e; }
.trend.down { color: #c62f3a; }
.trend.flat { color: var(--muted); }
@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi { flex-direction: column; align-items: flex-start; padding: 14px; gap: 8px; } .kpi-ic { width: 40px; height: 40px; } .kpi strong { font-size: 1.4rem; } }

.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.dash-grid .panel + .panel { margin-top: 0; }
.dash-col { display: grid; gap: 20px; align-content: start; min-width: 0; }
.dash-col > * { min-width: 0; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }

.chart { width: 100%; height: auto; overflow: visible; }
.chart text { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.chart .grid { stroke: #edf1f6; }
.chart-wrap { position: relative; }
.chart-tip { position: absolute; pointer-events: none; transform: translate(-50%, -115%); background: var(--navy-900); color: #fff; font-size: .78rem; padding: 6px 10px; border-radius: 8px; white-space: nowrap; box-shadow: var(--shadow); }
.chart-tip b { display: block; font-size: .9rem; }
.chart-dot { opacity: 0; transition: opacity .1s; }
.chart-hit { fill: transparent; cursor: crosshair; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.list li:last-child { border-bottom: 0; }
.list-main { flex: 1; min-width: 0; }
.list-main b { display: block; font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-main small { color: var(--muted); font-size: .82rem; }
.date-badge { width: 46px; flex: none; text-align: center; border-radius: 10px; background: var(--blue-50); color: var(--blue-500); padding: 5px 0; line-height: 1.1; }
.date-badge b { display: block; font-size: 1.1rem; }
.date-badge small { font-size: .68rem; text-transform: uppercase; font-weight: 700; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.empty .ic { width: 36px; height: 36px; margin: 0 auto 8px; color: #b6c1d1; }

.share-panel { display: flex; gap: 18px; align-items: center; }
.share-panel .qr-box { width: 128px; height: 128px; }
.share-link { display: flex; gap: 8px; margin: 8px 0; }
.share-link input { flex: 1; min-width: 0; font-size: .85rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink-2); }
@media (max-width: 520px) { .share-panel { flex-direction: column; align-items: stretch; } .share-panel .qr-box { margin: 0 auto; } }

/* Tabell / leads */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { padding: 7px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: .88rem; font-weight: 600; text-decoration: none !important; }
.tab:hover { border-color: #c6d0de; }
.tab.is-active { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; }
.search input { width: 100%; padding: 9px 12px 9px 38px; border: 1.5px solid #dbe2ec; border-radius: 10px; background: #fff; }
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:hover td { background: #fafbfe; }
.table .who { display: flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; }
.table .who .avatar { width: 32px; height: 32px; font-size: .75rem; }
.table a.row-link { color: inherit; }
.status-select { appearance: none; border: 0; border-radius: 99px; padding: 4px 26px 4px 10px; font-size: .78rem; font-weight: 700; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 12px; }
.pagination { display: flex; gap: 6px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: .88rem; color: var(--ink-2); }
.pagination span.is-current { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }
.hide-sm { }
@media (max-width: 760px) { .hide-sm { display: none; } }

/* Pipeline (CRM) */
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.col { background: #eef2f8; border-radius: 14px; padding: 12px; min-height: 300px; }
.col-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 700; font-size: .9rem; }
.col.is-over { outline: 2px dashed var(--blue-500); outline-offset: -4px; }
.lead-card { background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 8px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); cursor: grab; display: block; color: inherit; text-decoration: none !important; }
.lead-card:active { cursor: grabbing; }
.lead-card b { display: block; font-size: .92rem; }
.lead-card small { color: var(--muted); font-size: .8rem; display: block; }
.lead-card .pill { margin-top: 8px; }
.lead-card.is-dragging { opacity: .5; }

/* Lead-detalj */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }
.dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; margin: 0; font-size: .93rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; word-break: break-word; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 18px; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-500); }
.timeline small { color: var(--muted); display: block; }

/* Kort-editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.editor-preview { position: sticky; top: 84px; }
.preview-phone { width: 340px; height: 680px; margin: 0 auto; border-radius: 48px; padding: 11px; background: linear-gradient(145deg, #2d4d86, #0f1f3c 40%, #1d3a6c); box-shadow: 0 24px 50px rgba(10, 26, 51, .25); }
.preview-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 38px; background: #fff; }
@media (max-width: 1200px) { .editor { grid-template-columns: 1fr; } .editor-preview { position: static; order: -1; display: none; } }
.avatar-edit { display: flex; align-items: center; gap: 18px; }
.avatar-edit .stack { justify-items: start; }
.table td.nowrap { white-space: nowrap; }
.cover-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cover-pick label { cursor: pointer; border-radius: 10px; overflow: hidden; border: 2px solid transparent; position: relative; height: 56px; }
.cover-pick label .cover, .cover-pick label .cover-gradient { width: 100%; height: 100%; }
.cover-pick input { position: absolute; opacity: 0; }
.cover-pick label:has(input:checked) { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(30, 107, 255, .18); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.swatches label { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; position: relative; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.swatches input[type=radio] { position: absolute; opacity: 0; }
.swatches label:has(input:checked) { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.swatches input[type=color] { width: 40px; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.form-section { margin-bottom: 20px; }
.form-section h2 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.form-section h2 .ic { color: var(--blue-500); }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 4px; display: flex; gap: 10px; justify-content: flex-end; }
.lock { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; background: #fdf6e3; border: 1px solid #f3dfa6; color: #6d5310; font-size: .92rem; }
.lock .ic { flex: none; }
.lock .btn { margin-left: auto; }
.ai-out { white-space: pre-wrap; background: var(--blue-50); border-radius: 10px; padding: 12px; font-size: .9rem; }

/* Kalender (møter) */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .cal-layout { grid-template-columns: minmax(0, 1fr); } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head h2 { margin: 0; font-size: 1.1rem; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cal > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 96px; padding: 6px; font-size: .8rem; background: #fff; }
.cal .dow { min-height: 0; text-align: center; font-weight: 700; color: var(--muted); background: #f8fafc; padding: 8px 4px; font-size: .75rem; text-transform: uppercase; }
.cal .out { background: #fafbfd; color: #b6c0ce; }
.cal .day-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 700; margin-bottom: 4px; color: inherit; text-decoration: none !important; }
.cal .today .day-n { background: var(--blue-500); color: #fff; }
.cal .is-selected { box-shadow: inset 0 0 0 2px var(--blue-500); }
.cal .off { background: repeating-linear-gradient(135deg, #fff, #fff 6px, #f6f8fb 6px, #f6f8fb 12px); }
.ev { display: block; background: var(--blue-50); color: #1d4fc4; border-left: 3px solid var(--blue-500); padding: 2px 6px; border-radius: 4px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: .74rem; text-decoration: none !important; }
.ev.done { background: #eef1f5; color: #5b6676; border-color: #9aa6b8; }
.ev.cancel { background: #fde8ea; color: #b02532; border-color: #e0525e; text-decoration: line-through !important; }
@media (max-width: 700px) { .cal > div { min-height: 58px; padding: 3px; } .ev { font-size: 0; height: 6px; padding: 0; border-left-width: 0; background: var(--blue-500); } .cal .day-n { width: 22px; height: 22px; font-size: .75rem; } }
.slots { display: grid; gap: 8px; }
.slots .slot-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; }
.slots .slot-row.busy { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }
.slots .slot-row.busy small { color: #dbe7ff; }
.teams-note { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: #f1f0fe; color: #3e3a8f; font-size: .88rem; margin-top: 14px; }
.teams-note .ic { width: 30px; height: 30px; color: #5b5fc7; flex: none; }
.daypick { display: flex; gap: 6px; flex-wrap: wrap; }
.daypick label { position: relative; }
.daypick input { position: absolute; opacity: 0; }
.daypick span { display: inline-grid; place-items: center; width: 44px; height: 36px; border-radius: 8px; border: 1.5px solid var(--line); font-weight: 700; font-size: .85rem; cursor: pointer; }
.daypick input:checked + span { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
.daypick input:focus-visible + span { outline: 3px solid var(--gold-400); }

/* Statistikk */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 46px; gap: 10px; align-items: center; font-size: .88rem; }
.bar { height: 10px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--blue-500); }
.bar-row b { text-align: right; }
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.funnel div { background: var(--bg); border-radius: 12px; padding: 14px; text-align: center; }
.funnel strong { display: block; font-size: 1.5rem; }
.funnel small { color: var(--muted); }
@media (max-width: 640px) { .funnel { grid-template-columns: 1fr 1fr; } }
.range { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.range a { padding: 6px 12px; border-radius: 7px; font-size: .85rem; font-weight: 600; color: var(--ink-2); text-decoration: none !important; }
.range a.is-active { background: var(--navy-800); color: #fff; }

/* Video */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.video-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.video-thumb { aspect-ratio: 16/9; background: var(--navy-800) center/cover; display: grid; place-items: center; position: relative; }
.video-thumb .video-play { width: 48px; height: 48px; }
.video-card-body { padding: 14px; }
.video-card-body b { display: block; }
.video-card-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.badge-star { position: absolute; top: 10px; left: 10px; }

/* Team */
.member { display: flex; align-items: center; gap: 12px; }
.invite-link { margin-top: 10px; }
