/* Taklokalt – gemensam stilmall
   Layout: blå signumfärg, tunn toppbar, helbreddshero med video på kommersiella sidor,
   läskolumn för guider, länkrik sidfot för intern länkning. */
:root {
  --bg: #F3F6FB;
  --surface: #FFFFFF;
  --ink: #0E1B2C;
  --muted: #52627A;
  --line: #D5DEEA;
  --brand: #1450B8;
  --brand-hover: #0E3F95;
  --brand-ink: #FFFFFF;
  --brand-soft: #E7EEFB;
  --navy: #0A2346;
  --navy-ink: #EAF1FB;
  --navy-muted: #A7BBD8;
  --sky: #9CC0FF;
  --pick: #16803C;
  --pick-soft: #E6F5EC;
  --star: #FBBC04;
  --star-off: rgba(255, 255, 255, 0.28);
  --err: #B42318;
  --focus: #1D6FD1;
  --hero-ink: #FFFFFF;
  --hero-muted: rgba(255, 255, 255, 0.84);

  --f-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.65rem;
  --step-3: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem);
  --radius: 10px;
  --maxw: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1220; --surface: #121B2B; --ink: #E6ECF5; --muted: #9AA9BF; --line: #25334B;
    --brand: #5B8DEF; --brand-hover: #7EA6F4; --brand-ink: #06122A; --brand-soft: #15264A;
    --navy: #071731; --navy-ink: #E6ECF5; --navy-muted: #91A6C6;
    --pick: #3CC870; --pick-soft: #0F2A1B; --err: #F97066; --focus: #7AAAF5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1220; --surface: #121B2B; --ink: #E6ECF5; --muted: #9AA9BF; --line: #25334B;
  --brand: #5B8DEF; --brand-hover: #7EA6F4; --brand-ink: #06122A; --brand-soft: #15264A;
  --navy: #071731; --navy-ink: #E6ECF5; --navy-muted: #91A6C6;
  --pick: #3CC870; --pick-soft: #0F2A1B; --err: #F97066; --focus: #7AAAF5;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--navy); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap {
  max-width: var(--maxw); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.ph { border-bottom: 1.5px dashed currentColor; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 50; background: var(--surface); color: var(--ink); padding: 10px 14px; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- Toppbar ---------- */
.topbar { background: var(--navy); color: var(--navy-ink); font-size: 0.82rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 7px; }
.g-rating { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; }
.g-logo { width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; display: grid; place-items: center; flex: none; }
.g-logo svg { width: 13px; height: 13px; }
.stars { display: block; height: 14px; width: 76px; }
.stars .off { fill: var(--star-off); }
.stars .on { fill: var(--star); }
.award { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; text-align: right; }
.award svg { width: 16px; height: 16px; color: var(--star); flex: none; }
.topbar .proto-tag { font-weight: 400; color: var(--navy-muted); }
@media (max-width: 720px) {
  .topbar .proto-tag { display: none; }
  .award { font-size: 0.76rem; }
}
@media (max-width: 460px) { .g-rating .stars { display: none; } }

/* ---------- Sidhuvud och meny ---------- */
.site-head { position: relative; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.site-head.solid { background: var(--navy); color: var(--hero-ink); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; color: var(--hero-ink); }
.logo svg { width: 32px; height: 24px; flex: none; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.94rem; }
.nav > a, .nav summary { text-decoration: none; color: var(--hero-muted); cursor: pointer; }
.nav > a:hover, .nav summary:hover, .nav > a[aria-current="page"] { color: var(--hero-ink); }
.nav details { position: relative; }
.nav summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
.nav .menu { position: absolute; top: calc(100% + 12px); left: -16px; min-width: 240px; background: var(--surface); color: var(--ink); border-radius: 12px; padding: 8px; box-shadow: 0 18px 40px -12px rgba(4, 16, 40, 0.45); display: grid; }
.nav .menu a { text-decoration: none; padding: 9px 12px; border-radius: 8px; }
.nav .menu a:hover { background: var(--brand-soft); }
.nav .menu .all { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; color: var(--brand); font-weight: 700; }
.head-call { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 99px; color: var(--hero-ink) !important; font-weight: 700; text-decoration: none; }
.head-call svg { width: 16px; height: 16px; }
@media (max-width: 980px) {
  /* Menyn syns alltid: på smala skärmar som en egen rad som går att svepa i sidled.
     Undermenyerna positioneras mot .wrap (utanför scrollraden) så att de inte klipps. */
  .site-head .wrap { position: relative; flex-wrap: wrap; row-gap: 10px; }
  .site-head .nav { position: static; margin-left: 0; flex: 1 0 100%; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 0 4px; font-size: 1rem; }
  .site-head .nav::-webkit-scrollbar { display: none; }
  .site-head .nav details { position: static; flex: none; }
  .site-head .nav > a, .site-head .nav summary { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; white-space: nowrap; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 99px; background: rgba(6, 24, 56, 0.55); color: #fff; font-size: 1rem; touch-action: manipulation; }
  .site-head .nav details[open] summary { background: #fff; color: var(--navy); }
  .site-head .nav .menu { position: absolute; top: calc(100% + 4px); left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); min-width: 0; max-height: 60vh; overflow-y: auto; z-index: 40; }
  .site-head .nav .menu a { min-height: 44px; display: flex; align-items: center; font-size: 1rem; }
}


/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--hero-ink); background: #0A2346; isolation: isolate; overflow: hidden;
  /* Bred, subtil båge: nederkanten sänks mot mitten som en uppochnedvänd regnbåge */
  --arc: clamp(28px, 6vw, 96px);
  border-radius: 0 0 50% 50% / 0 0 var(--arc) var(--arc);
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media video, .hero-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 24, 56, 0.88) 0%, rgba(6, 24, 56, 0.60) 50%, rgba(6, 24, 56, 0.32) 100%),
    linear-gradient(180deg, rgba(6, 24, 56, 0.45) 0%, rgba(6, 24, 56, 0) 28%, rgba(6, 24, 56, 0.55) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 56px; padding-block: 28px calc(56px + var(--arc)); align-items: start; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 12px calc(24px + var(--arc)); } }
.crumbs { font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero .crumbs, .pagehead .crumbs { color: var(--hero-muted); }
.hero .kicker { font-weight: 700; color: var(--sky); margin-bottom: 10px; font-size: 1rem; }
.hero h1 { font-size: var(--step-3); font-weight: 700; max-width: 14em; }
.hero h1 em, .pagehead h1 em { font-style: normal; color: var(--sky); }
.lede { margin-top: 20px; font-size: var(--step-1); color: var(--hero-muted); max-width: 32em; line-height: 1.55; }
.stats { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 16px 0; }
.stats li { display: grid; gap: 2px; padding: 0 24px; border-left: 1px solid rgba(255, 255, 255, 0.25); align-content: start; }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats b { font-family: var(--f-display); font-size: 1.7rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span { font-size: 0.88rem; color: var(--hero-muted); }
.g-stat { display: inline-flex; align-items: center; gap: 10px; height: 100%; }
.g-stat .g-logo { width: 30px; height: 30px; }
.g-stat .g-logo svg { width: 18px; height: 18px; }
.g-stat .stars { height: 20px; width: 108px; }
@media (max-width: 600px) {
  .lede { font-size: var(--step-0); margin-top: 14px; }
  .stats { margin-top: 22px; }
  .stats li { padding: 0 16px; }
  .stats b { font-size: 1.35rem; }
}

/* Sidhuvud för innehållssidor */
.pagehead { background: var(--navy); color: var(--hero-ink); }
.pagehead .pagehead-in { padding-block: 12px 48px; }
.pagehead h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); max-width: 20em; }
.pagehead .lede { font-size: var(--step-0); margin-top: 14px; max-width: 40em; }

/* ---------- Formulärkort ---------- */
.quote {
  background: var(--surface); color: var(--ink); border-radius: 14px;
  box-shadow: 0 2px 4px rgba(4, 16, 40, 0.12), 0 24px 48px -16px rgba(4, 16, 40, 0.45);
  scroll-margin-top: 16px; overflow: hidden;
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.tab { appearance: none; border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 0.95rem; color: var(--muted); padding: 14px 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab svg { width: 17px; height: 17px; }
.tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.tab:hover { color: var(--ink); }
.quote-head { padding: 20px 22px 0; }
.quote-head h2 { font-size: 1.4rem; }
.progress { margin: 14px 22px 0; }
.progress-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.progress-track { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; width: 20%; background: var(--brand); border-radius: 99px; transition: width .35s ease; }

form { margin: 0; }
.step { border: 0; margin: 0; padding: 18px 22px 22px; min-width: 0; }
.q { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; padding: 0; margin-bottom: 12px; }
.q-sub { display: block; font-family: var(--f-body); font-weight: 400; font-size: var(--step--1); color: var(--muted); margin-top: 2px; }
.group + .group { margin-top: 18px; }
.glabel { font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }

.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opts.one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 420px) { .opts.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt-body {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 100%; min-height: 56px;
  padding: 11px 30px 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color .15s, background .15s, transform .1s;
}
.opt-body b { font-weight: 700; font-size: 0.98rem; line-height: 1.25; }
.opt-body small { color: var(--muted); font-size: 0.8rem; line-height: 1.3; }
.opt:hover .opt-body { border-color: var(--muted); }
.opt input:checked + .opt-body { border-color: var(--pick); background: var(--pick-soft); box-shadow: inset 0 0 0 1px var(--pick); }
.opt input:checked + .opt-body::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--pick) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5 10 16.5 18 8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.opt input:focus-visible + .opt-body { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt:active .opt-body { transform: scale(0.98); }
.chip .opt-body { min-height: 46px; align-items: center; text-align: center; padding: 9px 22px 9px 10px; }

.field { display: grid; gap: 6px; }
.field + .field { margin-top: 14px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.opt-tag { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.input {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-height: 50px;
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.input[aria-invalid="true"] { border-color: var(--err); }
.hint { font-size: 0.82rem; color: var(--muted); }
.err { font-size: 0.85rem; color: var(--err); font-weight: 700; margin-top: 10px; }
.err:empty { display: none; }
.note { font-size: 0.85rem; padding: 10px 12px; border-radius: 8px; background: var(--brand-soft); margin-top: 12px; }
.note:empty { display: none; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 0.88rem; color: var(--muted); margin-top: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pick); }
.file-drop { display: grid; place-items: center; text-align: center; gap: 4px; padding: 18px; border: 1.5px dashed var(--line); border-radius: var(--radius); cursor: pointer; color: var(--muted); font-size: 0.9rem; }
.file-drop:hover { border-color: var(--muted); }
.file-drop b { color: var(--ink); }
.file-drop svg { width: 26px; height: 26px; color: var(--brand); }
.file-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.file-list:empty { display: none; }
.file-list img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; border: 2px solid var(--pick); }

.actions { display: flex; gap: 10px; align-items: center; margin-top: 20px; }
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border-radius: var(--radius); text-decoration: none;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); font-size: 1.05rem; }
.actions .btn-primary { flex: 1; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: transparent; color: var(--muted); padding-inline: 12px; }
.btn-ghost:hover { color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-line:hover { border-color: var(--muted); }
.btn svg { width: 18px; height: 18px; }
.privacy { display: flex; gap: 8px; align-items: flex-start; font-size: 0.8rem; color: var(--muted); margin-top: 12px; }
.privacy svg { width: 15px; height: 15px; flex: none; margin-top: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.call-strip { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--bg); font-size: 0.9rem; }
.call-strip p { flex: 1; min-width: 0; color: var(--muted); }
.call-strip b { color: var(--ink); }
.call-strip button { appearance: none; border: 0; background: none; font: inherit; font-weight: 700; color: var(--brand); cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; overflow: hidden; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.avatar svg { width: 60%; height: 60%; margin-top: 18%; }
.avatar.lg { width: 96px; height: 96px; }
.call-panel { padding: 26px 22px 24px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.call-panel .who b { display: block; font-family: var(--f-display); font-size: 1.3rem; }
.call-panel .who span { color: var(--muted); font-size: 0.92rem; }
.online { display: inline-flex; align-items: center; gap: 7px; font-size: 0.85rem; color: var(--pick); font-weight: 700; }
.online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--pick-soft); }
.phone-big { font-family: var(--f-display); font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; user-select: all; }
.call-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; width: 100%; }
.call-panel .hours, .call-panel .alt { font-size: 0.9rem; color: var(--muted); }
.call-panel .alt button { appearance: none; border: 0; background: none; font: inherit; font-weight: 700; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.done-head { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.done-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--pick-soft); color: var(--pick); display: grid; place-items: center; }
.done-icon svg { width: 24px; height: 24px; }
.done-head h3 { font-size: 1.3rem; }
.done-head p { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.timeline { list-style: none; margin: 18px 0 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 14px; font-size: 0.92rem; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; background: var(--surface); position: relative; z-index: 1; }
.timeline li.is-done .dot { background: var(--pick); border-color: var(--pick); color: var(--surface); }
.timeline b { display: block; }
.timeline .t { color: var(--muted); }
.summary { margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: 0.9rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.while { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.while p { font-weight: 700; margin-bottom: 8px; }
.while ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.while a { color: var(--brand); font-weight: 700; text-underline-offset: 3px; }
.devpanel { margin-top: 18px; font-size: 0.8rem; border: 1px dashed var(--line); border-radius: 8px; }
.devpanel summary { cursor: pointer; padding: 8px 12px; color: var(--muted); }
.devpanel pre { margin: 0; padding: 0 12px 12px; overflow-x: auto; font-size: 0.75rem; line-height: 1.45; }
.ref { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85em; background: var(--bg); padding: 1px 6px; border-radius: 4px; }

/* ---------- Innehållsblock ---------- */
section.block .wrap { padding-block: 72px; }
@media (max-width: 760px) { section.block .wrap { padding-block: 48px; } }
.rule { border-top: 1px solid var(--line); }
.eyebrow { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); font-weight: 700; margin-bottom: 10px; }
.block h2 { font-size: var(--step-2); max-width: 22em; }
.block .intro { margin-top: 12px; color: var(--muted); max-width: 42em; }
.band { background: var(--navy); color: var(--navy-ink); }
.band .intro { color: var(--navy-muted); }
.band .eyebrow { color: var(--sky); }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; } }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 16px; }
.steps li::before { content: counter(s); font-family: var(--f-display); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--sky); }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--navy-muted); font-size: 0.98rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; margin-top: 28px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.split h3 { font-size: 1.2rem; margin-bottom: 12px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.ticks li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--pick-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5 10 16.5 18 8' fill='none' stroke='%2316803C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.warn li::before { background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v6M12 17h.01' fill='none' stroke='%231450B8' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.figure { margin: 0; display: grid; gap: 8px; }
.figure img { border-radius: 12px; display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figure figcaption { font-size: 0.85rem; color: var(--muted); }

/* Kortrutnät (tjänster, orter, guider, taktyper) */
.cards { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.card { display: grid; gap: 6px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.card h3 { font-size: 1.12rem; }
.card p { color: var(--muted); font-size: 0.94rem; }
.card .go { color: var(--brand); font-weight: 700; font-size: 0.92rem; margin-top: 6px; }
.card.media { padding: 0; overflow: hidden; }
.card.media canvas, .card.media img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; background: var(--line); }
.card.media .body { padding: 16px 18px 18px; display: grid; gap: 6px; }

/* Priskalkyl */
.calc { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
@media (max-width: 860px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc-in { padding: 26px; display: grid; gap: 24px; align-content: start; }
.calc-out { padding: 26px; background: var(--brand-soft); display: grid; gap: 18px; align-content: start; }
.calc-label { font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.area-out { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.area-out small { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
input[type="range"] { width: 100%; accent-color: var(--brand); height: 32px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.res-main { display: grid; gap: 4px; }
.res-main span { font-size: 0.85rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.06em; }
.res-main b { font-family: var(--f-display); font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.res-rows { margin: 0; display: grid; border-top: 1px solid var(--line); }
.res-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.res-rows dt { color: var(--muted); }
.res-rows dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.res-rows .minus dd { color: var(--pick); }
.cap-note { font-size: 0.88rem; padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.cap-note:empty { display: none; }
.skv { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skv div { padding: 18px 18px 18px 0; display: grid; gap: 2px; }
.skv div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.skv b { font-family: var(--f-display); font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.skv span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 640px) {
  .skv { grid-template-columns: minmax(0, 1fr); }
  .skv div, .skv div + div { padding: 14px 0; border-left: 0; }
  .skv div + div { border-top: 1px solid var(--line); }
}
.foot { font-size: 0.85rem; color: var(--muted); margin-top: 14px; max-width: 52em; }

/* FAQ */
.faq { margin-top: 24px; max-width: 46em; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); max-width: 40em; display: grid; gap: 10px; }
.faq h3 { font-size: 1.15rem; margin-top: 32px; }

/* Artiklar */
.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 56px; align-items: start; }
@media (max-width: 900px) { .article { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.prose { max-width: 42em; display: grid; gap: 16px; }
.prose h2 { font-size: 1.5rem; margin-top: 18px; }
.prose h3 { font-size: 1.2rem; margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.prose a { color: var(--brand); text-underline-offset: 3px; }
.prose .meta { font-size: 0.88rem; color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.callout { padding: 16px 18px; border-radius: 10px; background: var(--brand-soft); }
.aside { position: sticky; top: 20px; display: grid; gap: 16px; }
.cta-box { padding: 22px; border-radius: 14px; background: var(--navy); color: var(--navy-ink); display: grid; gap: 12px; }
.cta-box h2, .cta-box h3 { font-size: 1.25rem; }
.cta-box p { color: var(--navy-muted); font-size: 0.95rem; }
.cta-box .btn { width: 100%; }
.toc { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 0.92rem; }
.toc p { font-weight: 700; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--brand); }

/* Orter längst ner */
.cityband { background: var(--surface); border-top: 1px solid var(--line); }
.cityband .wrap { padding-block: 40px; }
.cityband h2 { font-size: 1.3rem; }
.cityband p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }
.towns { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.towns a { text-decoration: none; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 99px; background: var(--surface); font-size: 0.95rem; }
.towns a:hover { border-color: var(--brand); color: var(--brand); }
.towns a[aria-current="page"] { border-color: var(--pick); background: var(--pick-soft); font-weight: 700; }
.towns small { color: var(--muted); }

/* Sidfot */
footer { background: var(--navy); color: var(--navy-muted); font-size: 0.92rem; }
footer .cols { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 48px 32px; }
@media (max-width: 900px) { footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
footer .cols p.h { color: var(--navy-ink); font-weight: 700; margin-bottom: 10px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--navy-ink); text-decoration: underline; }
footer .logo { font-size: 1.25rem; margin-bottom: 10px; }
footer .bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }

.mcta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: none;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(10, 20, 30, 0.25);
  transform: translateY(110%); transition: transform .25s ease;
}
.mcta .row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.mcta.show { transform: translateY(0); }
@media (max-width: 940px) { .mcta { display: block; } body.has-form { padding-bottom: 80px; } }

/* Partnerformulär */
.plain-form { max-width: 560px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; gap: 14px; }
.plain-form .field + .field { margin-top: 0; }

/* =================================================================
   v4: toppbar, hamburgermeny, kontaktkort, animation, guider
   ================================================================= */
.topbar .usp { color: var(--navy-muted); }
@media (max-width: 640px) { .topbar .usp { display: none; } .topbar .wrap { justify-content: center; } }

/* Sidhuvud: logga + hamburgare till vänster, meny och ring-knapp till höger */
.site-head .wrap { gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; }
.site-head .nav { margin-left: auto; }
.head-call { flex: none; }
@media (max-width: 980px) {
  .head-call { padding: 9px; }
  .head-call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

.hamburger {
  appearance: none; background: transparent; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 12px;
  width: 42px; height: 42px; display: inline-grid; place-content: center; gap: 5px; cursor: pointer; color: var(--hero-ink);
  transition: background .2s ease, border-color .2s ease;
}
.hamburger:hover { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.6); }
.hamburger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(4, 14, 32, 0.55); opacity: 0; transition: opacity .3s ease; }
.drawer {
  position: fixed; z-index: 61; top: 0; bottom: 0; left: 0; width: min(380px, 88vw);
  background: var(--surface); color: var(--ink); display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px);
  box-shadow: 24px 0 60px -20px rgba(4, 14, 32, 0.5);
  transform: translateX(-104%); transition: transform .38s cubic-bezier(.2, .8, .2, 1);
}
.drawer.open { transform: translateX(0); }
.drawer-backdrop.open { opacity: 1; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head .logo { color: var(--ink); font-size: 1.25rem; }
.drawer-head .logo svg path:first-child { stroke: var(--brand); }
.drawer-close { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.drawer-close svg { width: 18px; height: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; display: grid; gap: 6px; align-content: start; }
.dgroup { display: grid; padding-block: 10px; border-bottom: 1px solid var(--line); }
.dgroup:last-child { border-bottom: 0; }
.dtitle { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.dgroup a { text-decoration: none; padding: 7px 0; font-weight: 700; }
.dgroup a:hover { color: var(--brand); }
.drawer.open .dgroup { animation: dIn .4s cubic-bezier(.2, .8, .2, 1) both; }
.drawer.open .dgroup:nth-child(2) { animation-delay: .04s; } .drawer.open .dgroup:nth-child(3) { animation-delay: .08s; }
.drawer.open .dgroup:nth-child(4) { animation-delay: .12s; } .drawer.open .dgroup:nth-child(5) { animation-delay: .16s; }
@keyframes dIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 10px; }
body.drawer-lock { overflow: hidden; }

/* Innehållssidornas sidhuvud */
.pagehead { border-radius: 0 0 50% 50% / 0 0 clamp(20px, 4vw, 56px) clamp(20px, 4vw, 56px); }
.pagehead .pagehead-in { padding-bottom: calc(40px + clamp(20px, 4vw, 56px)); }
.site-head.solid { background: transparent; }

/* Kontaktkort, inspirerat av referensen */
.quote-top { padding: 22px 22px 0; background: linear-gradient(180deg, var(--brand-soft) 0%, var(--surface) 100%); display: grid; gap: 14px; justify-items: start; }
.avatars { display: flex; }
.avatars img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: 0 2px 6px rgba(4, 16, 40, 0.18); }
.avatars img + img { margin-left: -12px; }
.quote-top h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); color: var(--ink); }
.seg-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); }
.seg-tabs .tab { position: relative; border: 0; margin: 0; border-radius: 99px; padding: 9px 16px; font-size: 0.92rem; color: var(--muted); }
.seg-tabs .tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(4, 16, 40, 0.14); }
.live { position: absolute; top: 8px; left: 28px; width: 7px; height: 7px; border-radius: 50%; background: var(--pick); box-shadow: 0 0 0 2px var(--surface); }
.live[hidden] { display: none; }
.progress { margin: 16px 22px 0; }

.send-error { margin-top: 12px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--err); color: var(--err); font-size: 0.9rem; background: var(--surface); }
.send-error b { display: block; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* Takanimation efter inskick (ca 3 s) */
.building { padding: 34px 22px 30px; display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--muted); }
.roof-anim { width: min(240px, 70%); height: auto; overflow: visible; }
.roof-anim path, .roof-anim circle { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ra-wall, .ra-door { stroke: var(--ink); stroke-width: 4; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw .7s ease-out forwards; }
.ra-door { stroke-dasharray: 80; stroke-dashoffset: 80; animation-delay: .35s; }
.ra-roof { stroke: var(--brand); stroke-width: 6; stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw .6s .55s ease-out forwards; }
.ra-chim { stroke: var(--ink); stroke-width: 4; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .3s 1.05s ease-out forwards; }
.ra-tiles .t { fill: var(--brand); stroke: none; opacity: 0; transform-box: fill-box; transform-origin: center; animation: tile .45s cubic-bezier(.3, 1.4, .5, 1) forwards; }
.ra-tiles .t1 { animation-delay: 1.05s; } .ra-tiles .t2 { animation-delay: 1.3s; fill: #2F6BD6; } .ra-tiles .t3 { animation-delay: 1.55s; fill: #4F86E3; } .ra-tiles .t4 { animation-delay: 1.8s; fill: var(--sky); }
.ra-badge { fill: var(--pick) !important; stroke: var(--surface); stroke-width: 4; transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop .35s 2.25s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.ra-check { stroke: #fff; stroke-width: 4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .3s 2.5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes tile { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes pop { to { transform: scale(1); } }

.done { animation: fadeUp .45s ease-out both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.done-head p { color: var(--ink); font-size: 1rem; }
.done > .hint { margin-top: 14px; }
.after-faq { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.after-faq h4 { font-family: var(--f-display); font-size: 1.1rem; margin: 0 0 6px; }
.after-faq details { border-bottom: 1px solid var(--line); }
.after-faq summary { cursor: pointer; padding: 11px 0; font-weight: 700; font-size: 0.95rem; list-style: none; position: relative; padding-right: 24px; }
.after-faq summary::-webkit-details-marker { display: none; }
.after-faq summary::after { content: "+"; position: absolute; right: 2px; top: 8px; color: var(--brand); font-size: 1.2rem; }
.after-faq details[open] summary::after { content: "–"; }
.after-faq details p { padding-bottom: 12px; color: var(--muted); font-size: 0.92rem; }

/* Tre kolumner med bild/video i "Vad ingår" */
.split.three-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
@media (max-width: 1000px) { .split.three-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split.three-col .figure { grid-column: 1 / -1; } }
@media (max-width: 640px) { .split.three-col { grid-template-columns: minmax(0, 1fr); } }
.figure video { border-radius: 12px; display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); }
.figure.wide { margin-bottom: 4px; }

/* Takguider & tips */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.sec-head .eyebrow + h2 { margin: 0; }
.guides-band .sec-head .eyebrow { display: none; }
.card.media .thumb { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.card.media .thumb > * { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.card.media:hover .thumb > * { transform: scale(1.04); }
.card.media canvas, .card.media img { aspect-ratio: auto; }
.tag { position: absolute !important; left: 12px; top: 12px; width: auto !important; height: auto !important; padding: 4px 10px; border-radius: 99px; background: rgba(4, 14, 32, 0.72); color: #fff; font-size: 0.76rem; font-weight: 700; letter-spacing: .02em; }
.cards-guides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-guides .featured { grid-column: span 2; grid-row: span 2; }
.cards-guides .featured { display: flex; flex-direction: column; }
.cards-guides .featured .thumb { flex: 1; aspect-ratio: auto; min-height: 280px; }
.cards-guides .featured h3 { font-size: 1.45rem; }
@media (max-width: 900px) { .cards-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards-guides .featured { grid-column: 1 / -1; grid-row: auto; } .cards-guides .featured .thumb { flex: none; aspect-ratio: 16 / 9; min-height: 0; } }
@media (max-width: 560px) { .cards-guides { grid-template-columns: minmax(0, 1fr); } }
.more { color: var(--brand); font-weight: 700; }

/* =================================================================
   v5: rörlig hero-video, formulärrubrik med pil
   ================================================================= */
.quote-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: 100%; }
.free-note { position: relative; flex: none; font-family: "Caveat", "Segoe Print", "Bradley Hand", cursive; font-weight: 700; font-size: 1.3rem; line-height: 1.1; color: var(--brand); transform: rotate(-4deg); margin-top: 2px; padding-right: 6px; }
.free-note svg { position: absolute; right: 30px; top: 100%; width: 54px; height: 42px; color: var(--brand); }
@media (max-width: 420px) { .free-note { font-size: 1.1rem; } .free-note svg { width: 44px; height: 34px; right: 24px; } }
/* Stående video i det stora guidekortet ska inte styra kortets höjd */
.cards-guides .featured .thumb > video, .cards-guides .featured .thumb > img { position: absolute; inset: 0; }
@media (max-width: 900px) { .cards-guides .featured .thumb > video, .cards-guides .featured .thumb > img { position: absolute; } }

/* =================================================================
   v6: läsbar hero-text, Vårt Trygghetslöfte, taktypbilder
   ================================================================= */
.hero-copy { position: relative; }
.hero-copy::before { content: ""; position: absolute; z-index: -1; inset: -40px -60px -40px -80px; background: radial-gradient(ellipse at 30% 50%, rgba(4, 16, 40, 0.55), rgba(4, 16, 40, 0) 70%); pointer-events: none; }
.hero h1, .hero .lede { text-shadow: 0 1px 12px rgba(4, 16, 40, 0.35); }

.hero-grid { padding-bottom: 28px; }
.promise-wrap { padding-bottom: calc(28px + var(--arc)); }
.promise { pointer-events: none; display: flex; align-items: center; gap: 28px; padding: 14px 24px; border-radius: 16px; background: rgba(10, 35, 70, 0.70); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; }
.promise-title { flex: none; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; padding-right: 24px; border-right: 1px solid rgba(255, 255, 255, 0.25); }
.promise ul { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; justify-content: space-between; gap: 20px; }
.promise li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; }
.promise svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 940px) {
  .hero-grid { padding-bottom: 16px; }
  .promise-wrap { padding-bottom: calc(16px + var(--arc)); }
  .promise { flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 16px; }
  .promise-title { border-right: 0; padding-right: 0; font-size: 0.95rem; }
  .promise ul { flex-direction: column; gap: 0; }
  .promise li { min-height: 36px; font-size: 15px; }
}

.card.media .thumb > img.fit-contain { object-fit: contain; background: #fff; padding: 12px; }
.figure img.fit-contain { object-fit: contain; background: #fff; }
.cards-guides .featured .thumb > video { object-position: 50% 62%; }

/* =================================================================
   v7: Trygghetslöftet fritt ovanpå videon, stående guidevideor
   ================================================================= */
.hero::after {
  background:
    linear-gradient(90deg, rgba(6, 24, 56, 0.86) 0%, rgba(6, 24, 56, 0.58) 50%, rgba(6, 24, 56, 0.30) 100%),
    linear-gradient(180deg, rgba(6, 24, 56, 0.45) 0%, rgba(6, 24, 56, 0) 28%, rgba(6, 24, 56, 0) 62%, rgba(4, 16, 40, 0.80) 100%);
}
.promise { pointer-events: auto; display: grid; justify-items: center; gap: 10px; padding: 0; background: none; border: 0; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; text-align: center; text-shadow: 0 1px 8px rgba(4, 16, 40, 0.55); }
.promise-title { border: 0; padding: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; }
.promise ul { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.promise li { display: flex; justify-content: center; }
.promise a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem; }
.promise a span { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 4px; }
.promise a:hover span { text-decoration-color: #fff; }
.promise a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.promise svg { width: 24px; height: 24px; flex: none; filter: drop-shadow(0 1px 4px rgba(4, 16, 40, 0.5)); }
@media (max-width: 940px) {
  .promise { gap: 2px; }
  .promise-title { font-size: 1rem; }
  .promise ul { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .promise a { min-height: 44px; padding: 4px 8px; font-size: 15px; }
}
.figure.portrait video { aspect-ratio: 9 / 14; max-height: 70vh; width: auto; max-width: 100%; margin-inline: auto; object-fit: cover; }
.figure.portrait figcaption { text-align: center; }

/* =================================================================
   v8: ett typsnitt (Plus Jakarta Sans) och trygghetslöftet närmare hero-kanten
   ================================================================= */
h1, h2, h3, .q, .res-main b, .area-out, .skv b, .stats b { letter-spacing: -0.02em; }
.hero h1 { font-weight: 800; }
.hero-grid { padding-bottom: calc(40px + var(--arc)); }
.promise-wrap { padding-bottom: clamp(14px, 2vw, 26px); }
@media (max-width: 940px) {
  .hero-grid { padding-bottom: calc(24px + var(--arc)); }
  .promise-wrap { padding-bottom: 12px; }
}

/* v11: klickbart telefonnummer i Ring oss-fliken */
a.phone-big { color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
a.phone-big:hover { text-decoration: underline; text-underline-offset: 4px; }

/* v13: röd prick när det är stängt */
.live.closed { background: #D92D20; }
.online.closed { color: var(--muted); }
.online.closed::before { background: #D92D20; box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.15); }

/* v14: numret är suddigt och inte klickbart när det är stängt */
.phone-big.closed { filter: blur(5px); pointer-events: none; user-select: none; opacity: 0.85; }

/* v15: profilbild, karta */
img.avatar.photo { object-fit: cover; padding: 0; }
.map-band { background: var(--surface); border-top: 1px solid var(--line); }
.map-band .wrap { padding-block: 48px; display: grid; gap: 20px; }
.map-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.map-head h2 { font-size: 1.5rem; }
.map-head p { color: var(--muted); margin-top: 6px; }
.map-frame { position: relative; height: 340px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #DCE6F2; display: grid; place-items: center; text-align: center; }
.map-frame .map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-frame > *:not(.map-art) { position: relative; }
.map-pin { display: grid; justify-items: center; gap: 2px; color: #0A2346; margin-bottom: 14px; }
.map-pin svg { width: 44px; height: 44px; filter: drop-shadow(0 4px 8px rgba(10, 35, 70, .25)); }
.map-pin b { font-size: 1.15rem; }
.map-pin span { font-size: .9rem; color: #52627A; }
.map-frame { grid-template-rows: auto auto auto; align-content: center; }
.map-note { font-size: .82rem; color: #52627A; margin-top: 8px; }
.map-frame.loaded { display: block; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) { .map-frame { height: 280px; } }

/* v16: proffsigare profilbilder i formuläret */
.avatars img { width: 48px; height: 48px; border: 2.5px solid var(--brand); box-shadow: 0 0 0 2px var(--surface), 0 4px 10px rgba(4, 16, 40, 0.18); background: var(--surface); }
.avatars img + img { margin-left: -10px; }

/* v17: tom knapprad döljs när det inte finns några knappar att visa */
.actions:not(:has(> :not([hidden]))) { display: none; }

/* v18: Google preferred source-knapp i sidfoten */
.pref-source:empty, .pref-source > div:empty { display: none; }
.pref-source { margin-top: 8px; }
.progress { margin-bottom: 18px; }

/* v19: uppräknande siffror */
.stats b[data-count] { display: inline-block; }
.stats b.counted { animation: count-pop .45s ease-out; }
@keyframes count-pop { 40% { transform: scale(1.08); } 100% { transform: none; } }

/* v19: mobil – menyn ligger på samma rad som loggan, till höger om "Taklokalt" */
@media (max-width: 980px) {
  .site-head .wrap { flex-wrap: nowrap; gap: 12px; padding-block: 12px; }
  .site-head .brand { flex: none; }
  .site-head .nav { flex: 1 1 auto; min-width: 0; gap: 6px; padding: 2px 0; }
  .site-head .nav > :first-child { margin-left: auto; }
  .site-head .nav > a, .site-head .nav summary { min-height: 40px; padding: 0 12px; font-size: 0.92rem; gap: 4px; }
  .site-head .nav summary::after { width: 6px; height: 6px; }
  .site-head .nav .menu { top: calc(100% - 4px); }
}
@media (max-width: 420px) {
  .site-head .logo { font-size: 1.12rem; gap: 6px; }
  .site-head .logo svg { width: 28px; height: 21px; }
}

/* v19: mobil – kalkylatorn */
.res-rows dd { white-space: nowrap; }
@media (max-width: 600px) {
  .seg .opt-body { padding-inline: 8px; }
  .seg .opt input:checked + .opt-body::after { display: none; }
  .res-rows div { font-size: 0.88rem; }
}

/* v21: toppmenyn med knappar och paneler utanför menyraden */
.site-head .wrap { position: relative; }
.nav .nav-btn { appearance: none; background: none; border: 0; font: inherit; color: var(--hero-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 0; }
.nav .nav-btn:hover, .nav .nav-btn[aria-expanded="true"] { color: var(--hero-ink); }
.nav .nav-btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.nav .nav-btn[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-1px, -1px); }
.nav-menus .menu { position: absolute; top: calc(100% - 6px); left: 0; z-index: 40; min-width: 240px; background: var(--surface); color: var(--ink); border-radius: 12px; padding: 8px; box-shadow: 0 18px 40px -12px rgba(4, 16, 40, 0.45); display: grid; }
.nav-menus .menu[hidden] { display: none; }
.nav-menus .menu a { text-decoration: none; padding: 9px 12px; border-radius: 8px; color: var(--ink); }
.nav-menus .menu a:hover { background: var(--brand-soft); }
.nav-menus .menu .all { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; color: var(--brand); font-weight: 700; }
@media (max-width: 980px) {
  .site-head .nav .nav-btn { flex: none; min-height: 40px; padding: 0 12px; white-space: nowrap; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 99px; background: rgba(6, 24, 56, 0.55); color: #fff; font-size: 0.92rem; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .site-head .nav .nav-btn[aria-expanded="true"] { background: #fff; color: var(--navy); }
  .site-head .nav .nav-btn::after { width: 6px; height: 6px; }
  .nav-menus .menu { top: calc(100% - 4px); left: max(16px, env(safe-area-inset-left, 0px)) !important; right: max(16px, env(safe-area-inset-right, 0px)); min-width: 0; max-height: 60vh; overflow-y: auto; }
  .nav-menus .menu a { min-height: 44px; display: flex; align-items: center; font-size: 1rem; }
}

/* v21: popupen i mobil – en grön knapp */
.mcta .btn-go { display: flex; width: 100%; justify-content: center; background: #16803C; color: #fff; border-color: #16803C; font-weight: 700; min-height: 50px; font-size: 1.05rem; }
.mcta .btn-go:hover { background: #126A32; }

/* v21: texter i svarsknapparna stannar alltid innanför ramen */
.opt { min-width: 0; }
.opt-body { min-width: 0; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 420px) {
  #leadForm .opt:not(.chip) .opt-body { padding: 11px 10px; }
  #leadForm .opt:not(.chip) .opt-body b { font-size: 0.94rem; }
  #leadForm .opt:not(.chip) input:checked + .opt-body::after { top: -7px; right: -7px; box-shadow: 0 0 0 2px var(--surface); }
}
.mcta .btn-go { gap: 10px; align-items: center; }
.mcta .go-ico { font-size: 1.25rem; line-height: 1; }
