/* ==========================================================================
   Villabidraget.se – designprototyp, stil: RAK
   Gult/svart, Archivo + Inter, 2 px svarta kanter och förskjutna skuggor.
   Tidigare version med tre andor ligger i arkiv/prototyp-3-andor/.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
/* Hero, formulär och CTA:er bär det gula; resten av sidan är vit/svart. */
:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-2: #F4F3EE;
  --surface: #FFFFFF;
  --ink: #0F0F0F;
  --ink-2: #474747;
  --line: #0F0F0F;
  --line-strong: #0F0F0F;
  --divider: #DADAD3;
  --brand-text: #0F0F0F;
  --soft: #F1F0EA;
  --cta: #FFD21A;
  --cta-hover: #FFC800;
  --on-cta: #0F0F0F;
  --accent-text: #0F0F0F;
  --gold: #FFD21A;
  --focus: #1F4BFF;
  --range: #0F0F0F;
  --error: #D00000;
  --ok: #2E7D4F;
  --radius: 8px;
  --radius-sm: 6px;
  --btn-radius: 6px;
  --border: 2px;
  --card-shadow: 4px 4px 0 #0F0F0F;
  --shadow: 6px 6px 0 #0F0F0F;
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --head-weight: 800;
  --head-track: -0.035em;
  --h1: clamp(2.5rem, 5.4vw, 4.3rem);
  --h2: clamp(1.9rem, 3.6vw, 2.9rem);
  --h3: 1.3rem;
  --topbar-bg: #F1F0EA;
  --topbar-fg: #0F0F0F;
  --topbar-icon: #0F0F0F;
  --header-bg: #0F0F0F;
  --header-fg: #FFFFFF;
  --header-muted: #CFCFCF;
  --header-line: transparent;
  --logo-bg: #FFD21A;
  --logo-fg: #0F0F0F;
  --logo-border: #FFD21A;
  --hero-overlay: linear-gradient(90deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .6) 55%, rgba(0, 0, 0, .35) 100%);
  --hero-em: #0F0F0F;
  --hero-tick: #FFFFFF;
  --feature-bg: #0F0F0F;
  --feature-fg: #FFFFFF;
  --feature-muted: #BDBDBD;
  --feature-accent: #FFD21A;
  --feature-on-accent: #0F0F0F;
  --feature-line: rgba(255, 255, 255, .25);
  --pro-bg: #F1F0EA;
  --pro-fg: #0F0F0F;
  --pro-muted: #474747;
  --footer-bg: #0F0F0F;
  --footer-fg: #E8E8E8;
  --footer-muted: #9A9A9A;
  --input-bg: #FFFFFF;
}

/* ---------- 2. Bas ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-track);
  line-height: 1.08;
  margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
em { font-style: normal; color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(1180px, 100% - 56px); } }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-fill { fill: currentColor; stroke: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 3. Gemensamma komponenter ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-text); margin: 0 0 1rem;
}
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 660px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.5em;
  border-radius: var(--btn-radius);
  border: var(--border) solid transparent;
  background: var(--cta); color: var(--on-cta);
  font: 600 1rem/1.1 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--cta-hover); }
.btn .ic { width: 1.1em; height: 1.1em; }
.btn-sm { padding: .7em 1.1em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--soft); }
.btn-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-light:hover { background: rgba(255, 255, 255, .22); }

.tag {
  display: inline-flex; align-items: center; gap: .3em;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  padding: .2em .6em; border-radius: 99px;
  background: var(--soft); color: var(--brand-text);
}
.tag-dashed { background: transparent; border: 1px dashed currentColor; color: var(--ink-2); font-weight: 600; }

.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.ticks li { display: flex; align-items: center; gap: .45em; }
.ticks .ic { color: var(--brand-text); width: 1.15em; height: 1.15em; stroke-width: 2.4; }
.ticks-col { flex-direction: column; gap: .6rem; }

/* ---------- 4. Toppfält & header ---------- */
.topbar { background: var(--topbar-bg); color: var(--topbar-fg); font-size: .82rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar-items { display: flex; gap: 1.6rem; overflow: hidden; white-space: nowrap; }
.topbar-items > span, .topbar-right { display: inline-flex; align-items: center; gap: .45em; }
.topbar { font-weight: 500; border-bottom: 1px solid #E2E0D8; }
.tb-ic { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #FFD21A; flex: none; }
.tb-ic .ic { width: 12px; height: 12px; color: #0F0F0F; stroke-width: 2.4; }
.topbar-right { white-space: nowrap; }
@media (max-width: 900px) { .topbar-items > span:nth-child(n+2), .topbar-right { display: none; } .topbar .wrap { justify-content: center; } }

.site-header {
  position: relative; z-index: 50; /* inte sticky – menyn skrollar med sidan */
  background: var(--header-bg); color: var(--header-fg);
  border-bottom: 1px solid var(--header-line);
}
.site-header .wrap { display: flex; align-items: center; gap: 2rem; height: 74px; }
.logo {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-track);
  font-size: 1.35rem; text-decoration: none; color: var(--header-fg);
}
.logo-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--logo-bg); color: var(--logo-fg);
  border: var(--border) solid var(--logo-border); border-radius: var(--radius-sm);
}
.logo-mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linejoin: round; stroke-linecap: round; }
.logo-img { display: block; height: 46px; width: auto; }
/* Rad under menyn: "Just nu" */
.now-bar { background: #1A1A1A; color: #FFFFFF; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .94rem; }
.now-bar .wrap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .3rem 1.4rem; min-height: 46px; padding-block: .5rem; }
.now-item { display: inline-flex; align-items: center; gap: .5rem; }
.now-item .ic { width: 18px; height: 18px; flex: none; color: #FFD21A; stroke-width: 2; }
.now-label { color: #BDBDBD; }
.now-item b { font-weight: 700; }
.now-item em { font-style: normal; color: #FFD21A; }
.now-item small { color: #9A9A9A; font-size: .85em; }
.now-sep { width: 1px; height: 20px; background: rgba(255, 255, 255, .2); }
@media (max-width: 640px) {
  .now-bar { font-size: .84rem; }
  .now-bar .wrap { flex-direction: column; gap: .2rem; }
  .now-sep { display: none; }
  .now-item .ic { width: 16px; height: 16px; }
}
.site-footer .logo-img { height: 44px; }
.footer-slogan { margin: .75rem 0 0; font-weight: 600; color: #FFFFFF; }
@media (max-width: 640px) { .site-header .logo-img { height: 38px; } }
.nav { display: flex; align-items: center; gap: 1.7rem; margin-left: auto; }
.nav a { white-space: nowrap; color: var(--header-muted); text-decoration: none; font-weight: 500; font-size: .95rem; display: inline-flex; align-items: center; gap: .4em; }
.nav a:hover { color: var(--header-fg); }
.nav-tag { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .15em .5em; border-radius: 99px; background: var(--gold); color: #16191D; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--header-fg); padding: .4rem; cursor: pointer; }
.menu-toggle .ic { width: 28px; height: 28px; }
@media (max-width: 1120px) {
  .site-header .wrap { gap: 1rem; height: 66px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--header-bg); border-top: 1px solid rgba(128, 128, 128, .25);
    padding: .5rem 16px 1rem; margin: 0;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; font-size: 1.05rem; border-bottom: 1px solid rgba(128, 128, 128, .18); }
}

/* ---------- 5. Hero med formulär ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: #1B1F24; }
.hero-bg-layer {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.04); transition: opacity .7s ease, transform 6s ease;
}
.hero-bg-layer.is-active { opacity: 1; transform: scale(1); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 450px; gap: clamp(32px, 5vw, 72px);
  align-items: center; padding: clamp(40px, 6vw, 84px) 0;
}
.hero .eyebrow { color: rgba(255, 255, 255, .85); }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { color: var(--hero-em); }
.hero .lead { color: rgba(255, 255, 255, .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-ticks { margin-top: 1.75rem; color: rgba(255, 255, 255, .9); font-size: .95rem; }
.hero-ticks .ic { color: var(--hero-tick); }
.hero-rating { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.75rem; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.hero-rating .stars { color: var(--gold); }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { max-width: 640px; }
}
/* Mobil: få upp formuläret så tidigt som möjligt – förtroenderaden kommer direkt efter */
@media (max-width: 640px) {
  .hero-grid { padding: 60px 0 32px; gap: 22px; }  /* rubriken lite ner från menyn (2026-10-16) */
  .hero-actions, .hero-ticks { display: none; }
  .hero .lead { font-size: 1rem; margin-bottom: 0; }
  .lead-title { font-size: 1.3rem; }
  .lead-form .f-grid { grid-template-columns: 1fr; gap: 0; }
  .lead-form .f-grid .f + .f { margin-top: .6rem; }
}

/* Hero enligt Tims canvas-ändringar: lång rubrik + källa */
.hero h1.h1-long { font-size: clamp(2rem, 3.9vw, 3.25rem); line-height: 1.1; }
@media (max-width: 640px) { .hero h1.h1-long { font-size: 28px; } }  /* lite mindre rubrik i mobilen (2026-10-16) */
.hero-sub { margin: 0 0 1.2rem; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 2.1vw, 1.9rem); line-height: 1.08; letter-spacing: -0.035em; color: #FFFFFF; }
.show-mobile { display: none; }
@media (max-width: 640px) {
  .hide-mobile { display: none; }
  .show-mobile { display: inline; }
  .q-legend + .q-hint + .home-opts { margin-top: .9rem; }
}

/* Formulärkortet */
.lead-card {
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius); padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
  border: var(--border) solid var(--card-line, transparent);
}
.lead-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.lead-title { font-size: 1.5rem; margin: 0 0 .15em; }
.lead-sub { margin: 0; color: var(--ink-2); font-size: .92rem; }
.lead-head .ic { width: 34px; height: 34px; color: var(--brand-text); stroke-width: 1.6; }

.svc-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1rem; }
.svc-tab { position: relative; cursor: pointer; }
.svc-tab input { position: absolute; opacity: 0; pointer-events: none; }
.svc-tab span {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: .7rem .4rem .6rem; border-radius: var(--radius-sm);
  border: var(--border) solid var(--line); background: var(--surface);
  font-size: .86rem; font-weight: 600; text-align: center; line-height: 1.15;
  transition: border-color .15s, background .15s;
}
.svc-tab .ic { width: 26px; height: 26px; color: var(--ink-2); }
.svc-tab:hover span { border-color: var(--line-strong); }
.svc-tab input:checked + span { border-color: var(--cta); background: var(--soft); color: var(--brand-text); box-shadow: inset 0 0 0 1px var(--cta); }
.svc-tab input:checked + span .ic { color: var(--brand-text); }
.svc-tab input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.f { position: relative; margin-bottom: .6rem; }
.f-grid .f { margin-bottom: 0; }
.f-grid + .f, .f-grid + .f-grid { margin-top: .6rem; }
.input {
  width: 100%; height: 48px; padding: 0 14px;
  background: var(--input-bg); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.input::placeholder { color: #8A9097; }
.input:focus { outline: none; border-color: var(--cta); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cta) 22%, transparent); }
.input { border-width: 2px; }
.input:focus { border-color: #0F0F0F; box-shadow: 0 0 0 3px #FFD21A; }
.f.has-error .input, .input[aria-invalid="true"] { border-color: var(--error); }
.f-err { display: none; color: var(--error); font-size: .8rem; margin: .3rem 0 0 .2rem; }
.has-error > .f-err { display: block; }
.tel { position: relative; }
.tel-prefix {
  position: absolute; left: 12px; top: 0; height: 48px; display: flex; align-items: center; gap: 6px;
  font-size: .9rem; color: var(--ink-2); pointer-events: none;
}
.tel-prefix svg { width: 20px; height: 14px; border-radius: 2px; }
.tel .input { padding-left: 74px; }

.drop {
  display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap;
  min-height: 58px; padding: .7rem 1rem; margin-top: .6rem;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm);
  color: var(--ink-2); font-size: .9rem; cursor: pointer; text-align: center;
  transition: background .15s, border-color .15s;
}
.drop:hover, .drop.is-over { background: var(--soft); border-color: var(--cta); }
.drop input { position: absolute; opacity: 0; pointer-events: none; width: 1px; }
.drop .ic { width: 22px; height: 22px; }
.drop:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.thumbs { display: flex; gap: .4rem; flex-wrap: wrap; }
.thumbs img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }

.draw-cta {
  display: flex; align-items: center; gap: .75rem; width: 100%;
  margin-top: .6rem; padding: .7rem .85rem; text-align: left;
  background: var(--soft); border: var(--border) solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none; color: var(--ink);
}
.draw-cta:hover { border-color: var(--cta); }
.draw-cta .ic { width: 30px; height: 30px; color: var(--brand-text); stroke-width: 1.5; }
.draw-cta b { display: block; font-size: .92rem; }
.draw-cta small { display: block; color: var(--ink-2); font-size: .8rem; line-height: 1.3; }
.draw-cta .tag { margin-left: auto; background: var(--gold); color: #16191D; }

.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .85rem; color: var(--ink-2); margin-top: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: .1rem 0 0; flex: none; accent-color: var(--range); }
.check a { color: var(--brand-text); }
.lead-submit { margin-top: 1rem; width: 100%; padding: 1.05em 1.5em; font-size: 1.05rem; }
.lead-safe { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: .7rem 0 0; font-size: .78rem; color: var(--ink-2); }
.lead-safe .ic { width: 14px; height: 14px; }

/* Efter skickat: tack + frivillig berikning av leadet */
.lead-done { text-align: left; }
.lead-done[hidden], .lead-form[hidden] { display: none; }
.done-top { display: flex; gap: .9rem; align-items: center; margin-bottom: .6rem; }
.done-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); flex: none; }
.done-icon .ic { width: 26px; height: 26px; stroke-width: 2.6; }
.done-top h3 { margin: 0; }
.done-text { color: var(--ink-2); font-size: .95rem; }
.enrich { border-top: 1px solid var(--divider); padding-top: 1rem; margin-top: 1rem; }
.enrich-title { font-weight: 700; margin: 0 0 .1rem; }
.enrich-sub { font-size: .85rem; color: var(--ink-2); margin: 0 0 .8rem; }
.enrich-q { margin-bottom: .85rem; }
.enrich-q p { font-size: .85rem; font-weight: 600; margin: 0 0 .4rem; }
.enrich-saved { display: none; align-items: center; gap: .5rem; color: var(--ok); font-weight: 600; font-size: .92rem; margin-top: .8rem; }
.enrich.is-saved .enrich-saved { display: flex; }

/* Chips (radioknappar som piller) */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; padding: .42rem .8rem;
  border: var(--border) solid var(--line); border-radius: 99px; background: var(--surface);
  font-size: .86rem; font-weight: 500; transition: background .15s, border-color .15s;
}
.chip:hover span { border-color: var(--line-strong); }
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.chip span { border-radius: 6px; }
.chip input:checked + span { background: #FFD21A; color: #0F0F0F; border-color: #0F0F0F; }

/* Steg 1 i hero (struktur som hårvalet.se): en fråga, resten på nästa sida */
.q-set { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.q-legend { padding: 0; font-weight: 700; font-size: 1.02rem; }
.q-hint { margin: .15rem 0 .8rem; font-size: .85rem; color: var(--ink-2); }.home-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.home-opt { position: relative; cursor: pointer; }
.home-opt input { position: absolute; opacity: 0; pointer-events: none; }
.home-opt span {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: .85rem .3rem .7rem; border: 2px solid #0F0F0F; border-radius: 6px; background: #FFFFFF;
  font-size: .9rem; text-align: center; transition: background .15s;
}
.home-opt b { font-weight: 600; }
.home-ic { width: 40px; height: 40px; fill: none; stroke: #0F0F0F; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-opt:hover span { background: var(--soft); }
.home-opt input:checked + span { background: #0F0F0F; color: #FFFFFF; }
.home-opt input:checked + span .home-ic { stroke: #FFD21A; }
.home-opt input:checked + span::after {
  content: ""; position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #0F0F0F;
  background: #FFD21A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F0F0F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.2 4.2L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.home-opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.q-set.has-error .home-opt span { border-color: var(--error); }
.q-what { margin-bottom: 1.1rem; }
.enrich-q p small { font-weight: 400; color: var(--ink-2); }
.step-ticks { list-style: none; padding: 0; margin: .9rem 0 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; font-size: .82rem; color: var(--ink-2); }
.step-ticks li { display: flex; align-items: center; gap: .35rem; }
.step-ticks .ic { width: 14px; height: 14px; stroke-width: 2.6; color: var(--ink); }
.step-note { margin: .9rem 0 0; padding-top: .8rem; border-top: 1px solid var(--divider); font-size: .8rem; color: var(--ink-2); }
.q-other { margin: .75rem 0 0; font-size: .82rem; line-height: 1.45; color: var(--ink-2); }

/* Steg 2: egen sida med formuläret (struktur som hårvalet.se/jamfor) */
.funnel { background: var(--bg-2); padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.funnel-card { max-width: 580px; margin-inline: auto; background: #FFFFFF; border: 2px solid #0F0F0F; border-radius: 8px; box-shadow: 6px 6px 0 #0F0F0F; padding: clamp(20px, 4vw, 36px); }
.funnel-kicker { margin: 0 0 1rem; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.fp-top { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; color: var(--ink-2); margin-bottom: .45rem; }
.fp-top span:last-child { color: var(--ink); font-weight: 600; }
.fp-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 1.5rem; }
.fp-bar i { height: 6px; border-radius: 3px; background: #DADAD3; }
.fp-bar i.is-done { background: #0F0F0F; }
.fp-bar i.is-current { background: #FFD21A; box-shadow: inset 0 0 0 1px #0F0F0F; }
.funnel-title { font-size: clamp(1.6rem, 3.4vw, 2rem); margin-bottom: .3em; }
.funnel-sub { color: var(--ink-2); font-size: .98rem; }
.choice-chip { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 1rem; padding: .4rem .7rem; background: var(--soft); border-radius: 6px; font-size: .88rem; }
.choice-chip .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.choice-chip a { color: var(--ink); font-weight: 600; margin-left: .35rem; }
.funnel-back { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .9rem; color: var(--ink); font-weight: 600; text-decoration: none; font-size: .95rem; }
.funnel-back .ic { width: 16px; height: 16px; }
.funnel-safe { display: flex; align-items: center; gap: .5rem; margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--divider); font-size: .8rem; color: var(--ink-2); }
.funnel-safe .ic { width: 15px; height: 15px; flex: none; }

/* Formulär – ett steg i taget (offert.html) */
.fp-bar.fp-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.steg[hidden] { display: none; }
.opt-rows { display: flex; flex-direction: column; gap: 10px; }
.opt-row { position: relative; display: block; cursor: pointer; }
.opt-row input { position: absolute; opacity: 0; pointer-events: none; }
.opt-row > span { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 15px 18px; border: 2px solid #0F0F0F; border-radius: 6px; background: #FFFFFF; transition: background .15s; }
.opt-text { flex: 1; min-width: 0; }
.opt-row b { display: block; font-size: 1.05rem; font-weight: 600; }
.opt-row small { display: block; margin-top: 2px; font-size: .85rem; color: var(--ink-2); }
.opt-ic { width: 34px; height: 34px; flex: none; fill: none; stroke: #0F0F0F; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.opt-dot { width: 22px; height: 22px; flex: none; box-sizing: border-box; border-radius: 50%; border: 2px solid #0F0F0F; background: #FFFFFF; }
.opt-row:hover > span { background: var(--soft); }
.opt-row input:checked + span { background: #0F0F0F; color: #FFFFFF; }
.opt-row input:checked + span small { color: #CFCFCF; }
/* Grön bock: "Möjlighet till villabidrag" */
.opt-row small.opt-ok { display: flex; align-items: center; gap: 5px; color: #0A7A3D; font-weight: 600; }
.opt-row small.opt-ok svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.opt-row input:checked + span small.opt-ok { color: #5FD68D; }
.opt-row input:checked + span .opt-ic { stroke: #FFD21A; }
.opt-row input:checked + span .opt-dot {
  border-color: #FFD21A;
  background: #FFD21A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F0F0F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.2 4.2L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.opt-row input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.steg.has-error .opt-row > span { border-color: var(--error); }
.steg-info { margin: 16px 0 0; padding: 12px 14px; border-radius: 6px; background: var(--soft); font-size: .88rem; line-height: 1.5; color: var(--ink-2); }
.steg .f + .f { margin-top: .9rem; }
.f-label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; }
.zip-input { height: 60px; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: .04em; }
.antal { display: flex; gap: 10px; }
.antal-input { flex: 1; min-width: 0; height: 60px; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 1.75rem; }
.antal-btn { width: 60px; height: 60px; flex: none; display: grid; place-items: center; border: 2px solid #0F0F0F; border-radius: 6px; background: #FFFFFF; color: #0F0F0F; cursor: pointer; }
/* Snabba tryck på − / + ska räknas, inte zooma in (iPhone). Nyp-zoom fungerar fortfarande. */
.antal-btn { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.antal-btn:hover { background: var(--soft); }
.antal-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.steg-nav { margin-top: 22px; }
.steg-nav .lead-submit { margin-top: 0; }
button.funnel-back { width: 100%; min-height: 44px; background: none; border: 0; cursor: pointer; font-family: inherit; }
.tack-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 14px; }
.tack-list li { display: flex; gap: 12px; align-items: flex-start; }
.tack-list b { display: block; }
.tack-list small { color: var(--ink-2); font-size: .85rem; }
.tack-nr { width: 28px; height: 28px; flex: none; box-sizing: border-box; border-radius: 50%; border: 2px solid #0F0F0F; background: #FFFFFF; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.tack-list li:first-child .tack-nr { background: #FFD21A; }
.tack-sum { padding: 14px 16px; border-radius: 6px; background: var(--soft); font-size: .9rem; line-height: 1.6; }
.tack-sum b { display: block; margin-bottom: 2px; }
.tack-extra { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--divider); }
.tack-extra.is-saved .enrich-saved { display: flex; }
.steg-tack .done-top .funnel-title { margin: 0; }

/* ---------- 6. Sektioner ---------- */
/* Förtroenderad */
.trust { background: var(--surface); border-bottom: 1px solid var(--divider); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; gap: .85rem; align-items: flex-start; padding: 1.5rem 1.25rem 1.5rem 0; }
.trust-item + .trust-item { padding-left: 1.25rem; border-left: 1px solid var(--divider); }
.trust-item .ic { width: 30px; height: 30px; color: var(--brand-text); stroke-width: 1.5; }
.trust-item b { display: block; font-size: .98rem; line-height: 1.3; }
.trust-item span { display: block; color: var(--ink-2); font-size: .86rem; line-height: 1.45; margin-top: .15rem; }
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--divider); }
}
@media (max-width: 520px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item + .trust-item { padding: 1rem 0; border-left: 0; }
  .trust-item + .trust-item { border-top: 1px solid var(--divider); }
}

/* Så funkar det */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step {
  counter-increment: step; background: var(--surface);
  border: var(--border) solid var(--divider); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--card-shadow); text-align: center;
}
.step::before {
  content: counter(step);
  display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 1.1rem;
  border-radius: 50%; background: var(--cta); color: var(--on-cta);
  font: var(--head-weight) 1.2rem/1 var(--font-head);
}
.step h3 { margin-bottom: .4em; }
.step p { color: var(--ink-2); margin: 0; font-size: .98rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Tjänstekort */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }

.svc {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: var(--border) solid var(--divider);
  border-radius: var(--radius); box-shadow: var(--card-shadow);
}
.svc-img { position: relative; aspect-ratio: 16 / 10; background: var(--bg-2) center / cover no-repeat; }
.svc-img .tag { position: absolute; left: 1rem; top: 1rem; background: rgba(255, 255, 255, .92); color: #16191D; }
.svc-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.svc-body > p { color: var(--ink-2); font-size: .98rem; }
.svc-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .45rem; font-size: .93rem; }
.svc-list li { display: flex; gap: .5em; align-items: flex-start; }
.svc-list .ic { color: var(--brand-text); width: 1.1em; height: 1.1em; margin-top: .22em; stroke-width: 2.4; }
.price { margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--divider); }
.price small { display: block; color: var(--ink-2); font-size: .78rem; }
.price strong { display: block; font: var(--head-weight) 1.3rem/1.25 var(--font-head); letter-spacing: var(--head-track); margin: .1rem 0; }
.svc .btn { margin-top: auto; }
.svc-body > p { margin-bottom: 1.1rem; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* 3D-ritning */
.draw { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.feat-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1rem; }
.feat-list li { display: flex; gap: .9rem; align-items: flex-start; }
.feat-list .ic-wrap { width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--soft); color: var(--brand-text); display: grid; place-items: center; flex: none; }
.feat-list .ic { width: 22px; height: 22px; }
.feat-list b { display: block; }
.feat-list span { color: var(--ink-2); font-size: .94rem; }
.draw-note { margin-top: .9rem; color: var(--ink-2); font-size: .85rem; }
@media (max-width: 980px) { .draw { grid-template-columns: 1fr; } }

.planner {
  border-radius: 16px; overflow: hidden; background: #FFFFFF; color: #16191D;
  border: 1px solid #DDE1E5; box-shadow: 0 30px 60px -30px rgba(16, 24, 40, .45);
  font-family: "Inter", system-ui, sans-serif;
}
.planner { border: 2px solid #0F0F0F; box-shadow: 8px 8px 0 #0F0F0F; border-radius: 8px; }
.planner-bar { display: flex; align-items: center; gap: .8rem; padding: .65rem .9rem; border-bottom: 1px solid #E7EAED; background: #F7F8FA; font-size: .82rem; }
.planner-dots { display: flex; gap: 6px; }
.planner-dots i { width: 10px; height: 10px; border-radius: 50%; background: #D5D9DE; }
.planner-title { font-weight: 600; }
.planner-title span { color: #6B7280; font-weight: 500; margin-left: .4rem; }
.planner-bar .btn { margin-left: auto; padding: .5em .9em; font-size: .78rem; }
.planner-body { display: grid; grid-template-columns: 74px minmax(0, 1fr); }
.planner-tools { display: flex; flex-direction: column; gap: 2px; padding: .5rem .35rem; border-right: 1px solid #E7EAED; background: #FBFBFC; }
.tool { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .5rem .2rem; border-radius: 8px; font-size: .66rem; font-weight: 600; color: #4B5563; background: none; border: 0; cursor: default; }
.tool .ic { width: 22px; height: 22px; stroke-width: 1.5; }
.tool.is-active { background: var(--soft); color: var(--brand-text); }
.planner-canvas { position: relative; background: radial-gradient(circle at 50% 40%, #FFFFFF, #EEF1F4); }
.planner-canvas svg { width: 100%; height: auto; }
.planner-hint { position: absolute; right: .8rem; top: .8rem; background: #fff; border: 1px solid #E5E7EB; border-radius: 8px; padding: .35rem .6rem; font-size: .72rem; color: #4B5563; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .25); }
.planner-foot { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding: .7rem .9rem; border-top: 1px solid #E7EAED; font-size: .78rem; color: #4B5563; }
.swatches { display: flex; gap: .45rem; }
.swatch { width: 30px; height: 30px; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 0 0 1px #D1D5DB; cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--cta); }
.swatch-label { font-weight: 600; color: #16191D; }
@media (max-width: 560px) { .planner-bar .btn { display: none; } .planner-body { grid-template-columns: 1fr; } .planner-tools { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #E7EAED; } .tool { min-width: 58px; } .planner-hint { display: none; } }

/* Isometrisk ritning – färger styrs av variabler så kakelval kan bytas live */
.iso { --t-wall: #F1F1EE; --t-floor: #D9D6CF; --t-grout: #FFFFFF; --t-floor-grout: #C6C2B9; }
.iso .wall-a { fill: var(--t-wall); filter: brightness(.97); }
.iso .wall-b { fill: var(--t-wall); filter: brightness(.9); }
.iso .floor { fill: var(--t-floor); }
.iso .grout { stroke: var(--t-grout); stroke-width: 1; fill: none; opacity: .9; }
.iso .floor-grout { stroke: var(--t-floor-grout); stroke-width: 1; fill: none; }
.iso .edge { fill: none; stroke: #9AA1A9; stroke-width: 1; }
.iso .top { fill: #FFFFFF; }
.iso .side-l { fill: #ECEEF0; }
.iso .side-r { fill: #DADDE1; }
.iso .wood.top { fill: #C9A27A; }
.iso .wood.side-l { fill: #B48A60; }
.iso .wood.side-r { fill: #9E774F; }
.iso .basin { fill: #E4E9EE; }
.iso .glass { fill: rgba(170, 205, 225, .35); stroke: rgba(120, 160, 185, .8); stroke-width: 1; }
.iso .mirror { fill: #CFE0EA; stroke: #9AA1A9; stroke-width: 1; }
.iso .chrome { stroke: #6B7280; stroke-width: 3; fill: none; stroke-linecap: round; }
.iso .top, .iso .side-l, .iso .side-r { stroke: rgba(0, 0, 0, .14); stroke-width: .8; stroke-linejoin: round; }
.iso .plant { fill: #5E8C61; stroke: #4C7650; stroke-width: 1; }
.iso .terra.top { fill: #D98A63; }
.iso .terra.side-l { fill: #C46A44; }
.iso .terra.side-r { fill: #A9573A; }
.iso .mat { fill: var(--cta); opacity: .85; }
.iso .drain { fill: #8E959C; stroke: #6B7280; stroke-width: 1; }
.iso .dim { stroke: var(--cta); stroke-width: 1.5; fill: none; }
.iso .dim-txt { font: 700 13px "Inter", system-ui, sans-serif; fill: var(--brand-text); }
.iso .dim { stroke: #0F0F0F; }
.iso .pin { fill: var(--cta); stroke: #fff; stroke-width: 2; }
.iso .pin-txt { font: 600 11px "Inter", system-ui, sans-serif; fill: #16191D; }
.iso .pin-bg { fill: #fff; stroke: #E5E7EB; }

/* ROT-kalkylator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.calc .ticks { margin-top: 1.5rem; color: var(--ink-2); font-size: .95rem; }
.calc-card { background: var(--surface); border: var(--border) solid var(--divider); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.calc-card { border-color: #0F0F0F; }
.field { margin-bottom: 1.25rem; }
.field-label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 600; font-size: .92rem; margin-bottom: .5rem; }
.field-label output { font: var(--head-weight) 1.05rem var(--font-head); color: var(--brand-text); }
.field-hint { display: block; color: var(--ink-2); font-size: .8rem; margin-top: .35rem; }
input[type="range"] { width: 100%; accent-color: var(--range); height: 24px; }
.seg { display: flex; gap: .3rem; padding: .3rem; background: var(--bg-2); border-radius: calc(var(--radius-sm) + 4px); }
.seg label { flex: 1; position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: .55rem .4rem; border-radius: var(--radius-sm); font-weight: 500; font-size: .92rem; transition: background .15s; }
.seg input:checked + span { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); font-weight: 600; color: var(--brand-text); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); }
.seg { background: #fff; border: 2px solid #0F0F0F; }
.seg input:checked + span { background: #FFD21A; color: #0F0F0F; box-shadow: none; }
.result { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--divider); }
.result-label { display: block; font-size: .82rem; color: var(--ink-2); font-weight: 500; }
.big { display: block; font: var(--head-weight) clamp(1.7rem, 3vw, 2.3rem)/1.15 var(--font-head); letter-spacing: var(--head-track); color: var(--ok); }
.big-ink { color: var(--ink); }
.calc-note { font-size: .8rem; color: var(--ink-2); margin: .8rem 0 1.2rem; min-height: 1.2em; }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } }

/* Bonus: jämför elavtal */
.bonus { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 1.25rem; }
.bonus-main { background: var(--feature-bg); color: var(--feature-fg); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.bonus-main .eyebrow { color: var(--feature-accent); }
.bonus-main h2 em { color: var(--feature-accent); }
.bonus-main .lead { color: var(--feature-muted); }
.mini-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.1rem; }
.mini-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--feature-muted); min-width: 92px; }
.on-feature .chip span { background: transparent; border-color: var(--feature-line); color: var(--feature-fg); }
.on-feature .chip:hover span { border-color: var(--feature-muted); }
.on-feature .chip input:checked + span { background: var(--feature-accent); color: var(--feature-on-accent); border-color: var(--feature-accent); }
.mini-result { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--feature-line); }
.mini-result span { display: block; color: var(--feature-muted); font-size: .9rem; }
.mini-result strong { display: block; font: var(--head-weight) clamp(2rem, 4vw, 2.8rem)/1.1 var(--font-head); letter-spacing: var(--head-track); color: var(--feature-accent); }
.mini-result small { display: block; color: var(--feature-muted); font-size: .8rem; margin-top: .2rem; }
.bonus-main .btn { background: var(--feature-accent); color: var(--feature-on-accent); border-color: var(--feature-accent); }
.bonus-main .btn:hover { filter: brightness(1.06); }
.bonus-side { display: grid; gap: 1.25rem; }
.soon { background: var(--surface); border: var(--border) dashed var(--line-strong); border-radius: var(--radius); padding: 1.5rem; }
.soon .ic { width: 30px; height: 30px; color: var(--brand-text); stroke-width: 1.5; margin-bottom: .8rem; }
.soon h3 { font-size: 1.15rem; margin-bottom: .3em; }
.soon p { color: var(--ink-2); font-size: .92rem; margin: 0 0 .8rem; }
@media (max-width: 900px) { .bonus { grid-template-columns: 1fr; } .bonus-side { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bonus-side { grid-template-columns: 1fr; } }

/* Omdömen */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.review { background: var(--surface); border: var(--border) solid var(--divider); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; box-shadow: var(--card-shadow); }
.stars { display: flex; gap: 2px; color: #F2B630; margin-bottom: .9rem; }
.stars .ic { width: 18px; height: 18px; }
.review blockquote { margin: 0 0 1.25rem; font-size: 1.02rem; line-height: 1.55; }
.review-foot { margin-top: auto; display: flex; align-items: center; gap: .75rem; font-size: .88rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--brand-text); font-weight: 700; }
.review-foot b { display: block; }
.review-foot span { color: var(--ink-2); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* För hantverkare */
.pro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--pro-bg); color: var(--pro-fg); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); }
.pro .eyebrow { color: var(--gold); }
.pro .eyebrow { color: #0F0F0F; }
.pro p { color: var(--pro-muted); }
.pro-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .7rem; }
.pro-list li { display: flex; gap: .6rem; align-items: flex-start; }
.pro-list .ic { color: var(--gold); width: 1.2em; height: 1.2em; margin-top: .18em; stroke-width: 2.4; }
.pro-list .ic { color: #0F0F0F; }
.pro .btn { background: var(--gold); color: #16191D; }
.pro .btn { background: #0F0F0F; color: #FFD21A; border-color: #0F0F0F; box-shadow: none; }
@media (max-width: 900px) { .pro { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--divider); padding: 1.1rem 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--brand-text); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .75rem 0 0; color: var(--ink-2); max-width: 64ch; }

/* Avslutande CTA */
.final { text-align: center; }
.final .lead { margin-inline: auto; }
.final .btn { margin-top: .75rem; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); padding: 64px 0 28px; font-size: .92rem; }
.site-footer .logo { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--footer-muted); margin-bottom: 1rem; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-grid a { text-decoration: none; color: var(--footer-fg); }
.footer-grid a:hover { text-decoration: underline; }
.footer-grid p { color: var(--footer-muted); margin-top: 1rem; max-width: 30em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); color: var(--footer-muted); font-size: .82rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }


/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 150%);
  background: #16191D; color: #fff; padding: .8rem 1.1rem; border-radius: 10px;
  font: 500 .9rem/1.4 "Inter", system-ui, sans-serif; max-width: calc(100% - 32px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); transition: transform .3s ease;
}
.toast.is-visible { transform: translate(-50%, 0); }
@media (max-width: 760px) { .toast { bottom: 96px; } }

/* Nyhetsrad i hero */
.hero-news {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.3rem;
  padding: .35rem .8rem .35rem .4rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px;
  background: rgba(255, 255, 255, .1); color: #FFFFFF; text-decoration: none; font-size: .88rem; font-weight: 500;
}
.hero-news .tag { background: #FFD21A; color: #0F0F0F; }
.hero-news .ic { width: 15px; height: 15px; }
.hero-news:hover { background: rgba(255, 255, 255, .18); }

/* Villabidrag + ROT: stor rabatt och tabell */
.rabatt-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.rabatt-big { background: #0F0F0F; color: #FFFFFF; border-radius: 8px; padding: clamp(22px, 3vw, 32px); box-shadow: 6px 6px 0 #FFD21A; }
.rabatt-label { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #BDBDBD; }
.rabatt-amount { margin: .35rem 0 .15rem; font: 900 clamp(2.4rem, 3.6vw, 3.1rem)/1 var(--font-head); letter-spacing: -.04em; color: #FFD21A; white-space: nowrap; }
.rabatt-sub { margin: 0 0 1.2rem; color: #CFCFCF; }
.rabatt-parts { list-style: none; padding: 0; margin: 0; }
.rabatt-parts li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .95rem; color: #CFCFCF; }
.rabatt-parts b { color: #FFFFFF; white-space: nowrap; }
.rabatt-big .btn { margin-top: 1.3rem; background: #FFD21A; border-color: #FFD21A; color: #0F0F0F; box-shadow: none; white-space: normal; text-align: center; }
.table-wrap { overflow-x: auto; background: #FFFFFF; border: 2px solid #0F0F0F; border-radius: 8px; box-shadow: 6px 6px 0 #0F0F0F; }
.rabatt-table { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .98rem; }
.rabatt-table caption { caption-side: top; text-align: left; padding: 14px 18px; font-weight: 700; background: #F1F0EA; border-bottom: 2px solid #0F0F0F; }
.rabatt-table caption small { display: block; margin-top: 3px; font-size: .8rem; font-weight: 400; line-height: 1.45; color: var(--ink-2); }
.rabatt-table th, .rabatt-table td { padding: 13px 18px; text-align: right; }
.rabatt-table thead th { background: #0F0F0F; color: #FFFFFF; font-weight: 700; font-size: .95rem; vertical-align: bottom; line-height: 1.25; }
.rabatt-table th small { display: block; font-size: .75rem; font-weight: 500; color: #6B6B6B; margin-top: .15rem; }
.rabatt-table thead th small { color: #BDBDBD; }
.rabatt-table tbody th { text-align: left; font-weight: 600; }
.rabatt-table tbody tr + tr > * { border-top: 1px solid #E4E2DA; }
.rabatt-table td { white-space: nowrap; }
.rabatt-table .row-sum > * { font-weight: 700; background: #FAFAF7; }
.rabatt-table .row-before > * { background: #FAFAF7; padding-block: 18px; font-size: 1.05rem; }
.rabatt-table .row-before th { font-weight: 700; }
.rabatt-table .row-before td { font-weight: 600; }
/* Struket men tydligt: svart text, tunt rött streck */
.rabatt-table .row-before s { color: #0F0F0F; text-decoration-color: var(--error); text-decoration-thickness: 1.5px; }
.rabatt-table .row-minus td { color: var(--ok); font-weight: 600; }
.rabatt-table .row-total > * { background: #FFD21A; font: 800 clamp(1.25rem, 2.4vw, 1.7rem)/1.15 var(--font-head); letter-spacing: -.03em; padding-block: 18px; border-top: 2px solid #0F0F0F; }
.rabatt-table .row-pay > * { font-weight: 700; border-top: 2px solid #0F0F0F; }
.table-note { margin: .9rem 0 0; font-size: .82rem; color: var(--ink-2); }
.villkor { margin-top: 2.5rem; padding: 1.5rem 1.75rem; background: var(--soft); border-radius: 8px; }
.villkor h3 { font-size: 1.15rem; margin-bottom: .9rem; }
.villkor-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 2rem; font-size: .95rem; }
.villkor-list li { align-items: flex-start; }
.villkor-list .ic { margin-top: .2em; color: var(--ink); }
@media (max-width: 1100px) { .rabatt-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .villkor-list { grid-template-columns: 1fr; } }

/* Kalkylator: villabidrag + ROT */
.result-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mid { display: block; font: 800 clamp(1.1rem, 2vw, 1.4rem)/1.2 var(--font-head); letter-spacing: var(--head-track); white-space: nowrap; }
.rabatt-out { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .3rem 1rem; margin-top: 1rem; padding: .9rem 1.1rem; background: #FFD21A; border: 2px solid #0F0F0F; border-radius: 6px; }
.rabatt-out span { font-weight: 700; }
.rabatt-out strong { font: 900 clamp(1.7rem, 3.4vw, 2.3rem)/1 var(--font-head); letter-spacing: -.03em; }
@media (max-width: 480px) { .result-3 { grid-template-columns: 1fr 1fr; } }

/* ---------- 7. Jämför elavtal ---------- */
.page-hero { background: var(--feature-bg); color: var(--feature-fg); padding: clamp(40px, 6vw, 72px) 0 clamp(80px, 9vw, 112px); }
.page-hero .eyebrow { color: var(--feature-accent); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.page-hero h1 em { color: var(--feature-accent); }
.page-hero .lead { color: var(--feature-muted); }
.compare { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.5rem; align-items: start; margin-top: clamp(-72px, -6vw, -48px); padding-bottom: 88px; }
.filters { position: sticky; top: 96px; background: var(--surface); border: var(--border) solid var(--divider); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.filters { border-color: #0F0F0F; }
.fgroup + .fgroup { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--divider); }
.flabel { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .6rem; }
.fhint { display: block; font-size: .78rem; color: var(--ink-2); margin-top: .5rem; line-height: 1.45; }
.kwh-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: .8rem; }
.kwh-row output { font: var(--head-weight) 1.2rem var(--font-head); color: var(--brand-text); }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; background: var(--surface); border: var(--border) solid var(--divider); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.results-head { border-color: #0F0F0F; }
.results-head b { font-size: 1.05rem; }
.results-head span { color: var(--ink-2); font-size: .88rem; }
.disclosure { display: flex; gap: .5rem; align-items: flex-start; font-size: .8rem; color: var(--ink-2); margin: 0 0 1rem; }
.disclosure .ic { width: 16px; height: 16px; margin-top: .15em; }
.deals { display: grid; gap: .9rem; }
.deal {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem; align-items: center;
  background: var(--surface); border: var(--border) solid var(--divider); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; box-shadow: var(--card-shadow);
}
.deal { border-color: #0F0F0F; }
.deal.is-best { border-color: var(--cta); box-shadow: inset 0 0 0 1px var(--cta), var(--card-shadow); }
.deal.is-best { background: #FFFBEA; border-color: #0F0F0F; }
.ribbon { position: absolute; top: -11px; left: 1.2rem; background: var(--cta); color: var(--on-cta); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .65rem; border-radius: 99px; }
.ribbon { border: 2px solid #0F0F0F; border-radius: 4px; }
.deal-logo { width: 54px; height: 54px; border-radius: var(--radius-sm); display: grid; place-items: center; font: 800 1.35rem/1 "Inter", system-ui, sans-serif; color: #fff; background: var(--logo, #555); }
.deal-name { font-size: 1.1rem; margin: 0 0 .3rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.deal-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.deal-tags .tag-green { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.deal-facts { list-style: none; padding: 0; margin: .55rem 0 0; display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; font-size: .84rem; color: var(--ink-2); }
.deal-price { text-align: right; min-width: 170px; }
.deal-month { display: block; font-size: .85rem; color: var(--ink-2); }
.deal-month strong { font: var(--head-weight) 1.65rem/1.1 var(--font-head); letter-spacing: var(--head-track); color: var(--ink); margin-right: .15rem; }
.deal-year { display: block; font-size: .8rem; color: var(--ink-2); }
.deal-save { display: block; font-size: .8rem; font-weight: 600; color: var(--ok); }
.deal .btn { margin-top: .7rem; }
.cross { display: flex; gap: 1rem; align-items: center; background: var(--soft); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-top: 1.25rem; }
.cross .ic { width: 34px; height: 34px; color: var(--brand-text); stroke-width: 1.5; }
.cross p { margin: 0; font-size: .95rem; }
.cross .btn { margin-left: auto; flex: none; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-2); background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--line-strong); }
@media (max-width: 900px) {
  .compare { grid-template-columns: 1fr; }
  .filters { position: static; }
}
@media (max-width: 620px) {
  .deal { grid-template-columns: auto minmax(0, 1fr); }
  .deal-price { grid-column: 1 / -1; text-align: left; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 1rem; border-top: 1px solid var(--divider); padding-top: .9rem; }
  .deal-price .btn { grid-row: 1 / span 3; grid-column: 2; margin: 0; }
  .cross { flex-wrap: wrap; }
  .cross .btn { margin-left: 0; }
}

/* ---------- 8. Prototypväljaren (verktyg, neutral stil) ---------- */
.proto-switch {
  position: fixed; right: 16px; bottom: 16px; z-index: 100; width: 300px;
  background: #18181B; color: #F4F4F5; border-radius: 14px; overflow: hidden;
  font: 500 13px/1.45 -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .5);
}
.as-toggle { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .7rem .9rem; background: none; border: 0; color: inherit; cursor: pointer; text-align: left; font: inherit; }
.as-kicker { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #A1A1AA; }
.as-current { font-weight: 600; }
.as-toggle svg { margin-left: auto; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.proto-switch.is-collapsed .as-toggle svg { transform: rotate(180deg); }
.proto-switch.is-collapsed .as-body { display: none; }
.as-body { padding: 0 .9rem .9rem; }
.as-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #27272A; padding: 4px; border-radius: 9px; }
.as-opts button { border: 0; background: none; color: #D4D4D8; padding: .45rem .3rem; border-radius: 6px; cursor: pointer; font: 600 12px/1.2 inherit; font-family: inherit; }
.as-opts button[aria-checked="true"] { background: #F4F4F5; color: #18181B; }
.as-title { margin: .75rem 0 .2rem; font-weight: 700; font-size: 14px; }
.as-desc { margin: 0; color: #A1A1AA; }
.as-note { margin: .7rem 0 0; padding-top: .6rem; border-top: 1px solid #3F3F46; color: #71717A; font-size: 11.5px; }
.as-note kbd { font: inherit; background: #27272A; padding: 0 .3em; border-radius: 3px; color: #D4D4D8; }
@media (max-width: 760px) { .proto-switch { right: 12px; left: 12px; width: auto; bottom: 84px; } }

/* ---------- 9. Små animationer ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lead-done:not([hidden]) { animation: fade-up .35s ease both; }

/* ---------- 10. Rak-detaljer ---------- */
/* Gult används sparsamt: rubrikmarkering i hero, CTA-knappar, valda chips och små ikoner.
   Resten bryts av med svart, vitt och betonggrått. */
.eyebrow { background: #0F0F0F; color: #FFD21A; padding: .35em .7em; border-radius: 4px; font-size: .74rem; }
.hero .eyebrow { background: none; color: #FFFFFF; padding: 0; border-radius: 0; font-size: .78rem; letter-spacing: .1em; }
.hero .eyebrow::before { content: ""; width: 10px; height: 10px; background: #FFD21A; }
.bonus-main .eyebrow { background: #FFD21A; color: #0F0F0F; }
.pro .eyebrow { background: #0F0F0F; color: #FFD21A; }
.hero h1 em { background: #FFD21A; padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
h2 em { background: linear-gradient(transparent 58%, #FFD21A 58%); }
.bonus-main h2 em { background: none; }
.btn { border-color: #0F0F0F; box-shadow: 3px 3px 0 #0F0F0F; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #0F0F0F; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #0F0F0F; }
.hero .btn-light { border-color: rgba(255, 255, 255, .55); box-shadow: none; }
.hero .btn-light:hover { transform: none; }
.bonus-main .btn { border-color: #FFD21A; box-shadow: none; }
.lead-card { border: 2px solid #0F0F0F; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); }
.svc-tab span { border-width: 2px; }
.svc-tab input:checked + span { background: #0F0F0F; border-color: #0F0F0F; color: #FFFFFF; box-shadow: none; }
.svc-tab input:checked + span .ic { color: #FFD21A; }
.step,
.svc,
.review { border-color: #0F0F0F; }
.step::before { content: "0" counter(step); width: auto; height: auto; border-radius: 0; background: none; color: #0F0F0F; font-size: 3.2rem; letter-spacing: -.04em; }
.trust { background: #FFFFFF; border-bottom: 1px solid var(--divider); }
.trust-item .ic { width: 44px; height: 44px; padding: 11px; border-radius: 8px; background: #0F0F0F; color: #FFD21A; stroke-width: 1.8; }
.trust-item span { color: var(--ink-2); }
.price strong { font-size: 1.55rem; }
.tag { background: #0F0F0F; color: #FFD21A; border-radius: 4px; }
.svc-img .tag { background: #FFD21A; color: #0F0F0F; }
.nav-tag { border-radius: 4px; }
.feat-list .ic-wrap { background: #0F0F0F; color: #FFD21A; }
.soon { border-width: 2px; }
.pro { border: 2px solid #0F0F0F; box-shadow: 6px 6px 0 #0F0F0F; }
.big { color: #0F0F0F; }
.result > div:first-child .big { background: #FFD21A; display: inline-block; padding: 0 .15em; }

/* Test 2026-10-13: hela sidan i 85 % på dator (som webbläsarzoom 85 %).
   Mobilen ligger kvar på 100 % – mindre text där gör att iPhone zoomar in i formulärfälten. */
@media (min-width: 900px) {
  html { zoom: .85; }
  /* Heron fyller skärmen under menyn (75 px). 100vh delas med zoomen. */
  .hero { min-height: calc(100vh / .85 - 75px); display: flex; flex-direction: column; justify-content: center; }
}

/* Inga oavsiktliga dubbeltrycks-zoomar på knappar, val och fält i mobilen */
html, button, a, label, input, select, textarea { touch-action: manipulation; }

/* Kompaktare formulärsida i mobilen (2026-10-13). Textfält behåller 16 px så att iPhone inte zoomar in. */
@media (max-width: 640px) {
  .funnel { padding: 14px 0 28px; }
  .funnel .wrap { width: calc(100% - 24px); }
  .funnel-card { padding: 16px; box-shadow: 4px 4px 0 #0F0F0F; }
  .funnel-kicker { margin-bottom: .55rem; font-size: .66rem; }
  .fp-top { font-size: .78rem; margin-bottom: .35rem; }
  .fp-bar { margin-bottom: .95rem; }
  .funnel-title { font-size: 1.35rem; }
  .funnel-sub { font-size: .9rem; margin-bottom: .75rem; }
  .opt-rows { gap: 8px; }
  .opt-row > span { padding: 10px 13px; gap: 11px; min-height: 0; }
  .opt-row b { font-size: .97rem; }
  .opt-row small { font-size: .78rem; margin-top: 1px; }
  .opt-row small.opt-ok svg { width: 13px; height: 13px; }
  .opt-ic { width: 28px; height: 28px; }
  .opt-dot { width: 20px; height: 20px; }
  .steg-info { margin-top: 10px; padding: 9px 11px; font-size: .8rem; }
  .f-label { margin-bottom: 4px; font-size: .85rem; }
  .steg .f + .f { margin-top: .65rem; }
  .zip-input, .antal-input { height: 52px; }
  .antal-btn { width: 52px; height: 52px; }
  .steg-nav { margin-top: 14px; }
  .steg-nav .lead-submit { padding: .85em 1.2em; font-size: 1rem; }
  button.funnel-back { margin-top: .3rem; min-height: 40px; }
  .funnel-safe { margin-top: .5rem; padding-top: .65rem; font-size: .74rem; }
}

/* Våra tjänster: fyra mindre kort i rad på dator (2026-10-13) */
@media (min-width: 1100px) {
  .services { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .svc-img { aspect-ratio: 4 / 3; }
  .svc-body { padding: 1.1rem 1.15rem 1.2rem; }
  .svc-body h3 { font-size: 1.15rem; margin-bottom: .35rem; }
  .svc-body > p { font-size: .9rem; line-height: 1.5; }
  .svc .btn { padding: .8em 1em; font-size: .95rem; }
}

/* Rabattabellen i mobilen: ett kort per exempel i stället för en bred tabell (2026-10-13) */
.rabatt-kort { display: none; }
@media (max-width: 640px) {
  .rabatt-table-col .table-wrap { display: none; }
  .rabatt-kort { display: grid; gap: 14px; }
  .rk-caption { margin: 0; font-weight: 700; }
  .rk-caption small { display: block; margin-top: 3px; font-size: .8rem; font-weight: 400; line-height: 1.45; color: var(--ink-2); }
  .rk { overflow: hidden; background: #FFFFFF; border: 2px solid #0F0F0F; border-radius: 8px; box-shadow: 4px 4px 0 #0F0F0F; }
  .rk-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: 10px 14px; background: #0F0F0F; color: #FFFFFF; }
  .rk-head b { font-size: 1rem; }
  .rk-head small { color: #BDBDBD; font-size: .8rem; text-align: right; }
  .rk dl { margin: 0; padding: 2px 14px; }
  .rk dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: 9px 0; font-size: .92rem; }
  .rk dl > div + div { border-top: 1px solid #E4E2DA; }
  .rk dt { font-weight: 600; }
  .rk dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .rk .row-before dd { font-weight: 600; }
  .rk .row-minus dd { color: var(--ok); font-weight: 600; }
  .rk dt small { display: block; font-size: .75rem; font-weight: 400; color: var(--ink-2); }
  .rk .row-before s { color: #0F0F0F; text-decoration-color: var(--error); text-decoration-thickness: 1.5px; }
  .rk-total { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 12px 14px; background: #FFD21A; border-top: 2px solid #0F0F0F; }
  .rk-total span { font-weight: 700; }
  .rk-total strong { font: 800 1.45rem/1 var(--font-head); letter-spacing: -.03em; white-space: nowrap; }
}

/* Juridiska länkar i sidfotens nedersta rad */
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.footer-legal a, .footer-legal button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.footer-legal a:hover, .footer-legal button:hover { color: #FFFFFF; }

/* ---------- Mobilmeny (som kortet "Meny – mobil" i canvasen) ---------- */
.nav-mob, .nav-extra { display: none; }
.menu-toggle .ic-close, .menu-toggle[aria-expanded="true"] .ic-open { display: none; }
.menu-toggle[aria-expanded="true"] .ic-close { display: block; }
@media (max-width: 1120px) {
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 61; }
  .nav.is-open {
    position: fixed; top: 66px; left: 0; right: 0; bottom: 0; z-index: 60; overflow-y: auto;
    background: #0F0F0F; padding: 8px 20px 28px; border-top: 1px solid rgba(255, 255, 255, .12);
  }
  .nav.is-open > a {
    min-height: 60px; padding: 12px 0; color: #FFFFFF; border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-family: var(--font-head); font-weight: 800; font-size: 28px; letter-spacing: -0.035em;
  }
  .nav.is-open .nav-mob { display: flex; }
  .nav.is-open .nav-extra { display: block; margin-top: 28px; }
  .nav-extra-rubrik { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9A9A9A; }
  .nav .nav-extra a:not(.btn) { display: block; padding: 10px 0; border: 0; color: #E8E8E8; font-size: 17px; }
  .nav .nav-extra .nav-extra-cta { display: flex; width: 100%; justify-content: center; margin-top: 24px; padding: 15px 18px; border-bottom: 2px solid #0F0F0F; color: #0F0F0F; }
  .nav-extra-not { margin: 12px 0 0; text-align: center; font-size: 13.5px; color: #9A9A9A; }
}

/* ---------- Undersidor genererade från canvasen (villabidraget.html m.fl.) ---------- */
/* Innehållet har egna inline-stilar – nolla prototypens typografi så att det ser ut som i canvasen. */
:is(.only-desk, .only-mob, .sida-jur, .partner-dialog) :is(h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote) { margin: revert; font-size: revert; line-height: revert; letter-spacing: revert; font-family: revert; font-weight: revert; color: revert; text-wrap: revert; }
:is(.only-desk, .only-mob, .sida-jur, .partner-dialog) svg { display: revert; max-width: none; }
:is(.only-desk, .only-mob, .sida-jur, .partner-dialog) h2 em { background: none; }
.only-mob { display: none; }
@media (max-width: 640px) {
  .only-desk { display: none; }
  .only-mob { display: block; }
  .sida-jur h1 { font-size: 38px !important; }
  .sida-jur [style*="display: flex"] { flex-wrap: wrap; }
  .sida-jur section > div, .sida-jur > div[style*="max-width: 1180px"] { padding-left: 20px !important; padding-right: 20px !important; }
}

/* ---------- För företag: partnerformuläret i en ruta (kort 14.2a / 14.2am i canvasen) ---------- */
.partner-dialog { width: min(680px, 100% - 32px); max-height: calc(100% - 48px); padding: 0; border: 0; background: transparent; overflow: auto; }
.partner-dialog::backdrop { background: rgba(15, 15, 15, .72); }
.sida .partner-dialog-rad { margin: 0 0 12px; color: #FFFFFF; font-size: 15px; line-height: 1.4; font-weight: 600; }
.partner-dialog-stang { position: absolute; top: 46px; right: 12px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: #0F0F0F; cursor: pointer; }
.partner-dialog-stang .ic { width: 24px; height: 24px; }
@media (max-width: 640px) {
  .partner-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0 0 24px; background: #FFFFFF; }
  .sida .partner-dialog-rad { margin: 0; padding: 23px 64px 23px 20px; background: #0F0F0F; font-family: var(--font-head); font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
  .partner-dialog-stang { top: 10px; color: #FFFFFF; }
  .partner-dialog form { margin: 20px 20px 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
}

/* Nya startsidan (2026-10-15): heron med klickbara punkter på huset behöver bredd,
   så mobilversionen visas upp till 900 px (andra sidor byter vid 640 px). */
@media (max-width: 899px) {
  .only-desk.start-desk { display: none; }
  .only-mob.start-mob { display: block; }
}

/* Test 2026-10-15: mobilvyn 92 % (som datorns 85 %). Fält får 16 px efter zoomen,
   annars zoomar iPhone in när man trycker i dem. */
@media (max-width: 640px) {
  html { zoom: .92; }
  input:not([type="range"], [type="radio"], [type="checkbox"]), select, textarea { font-size: calc(16px / .92) !important; }
}

/* Tjänster som rullgardin i datorns sidhuvud (2026-10-16). I mobilmenyn ligger tjänsterna i .nav-extra i stället. */
.nav-drop { position: relative; }
.nav-drop-knapp { display: inline-flex; align-items: center; gap: .35em; padding: 0; border: 0; background: none; color: var(--header-muted); font: inherit; font-weight: 500; font-size: .95rem; white-space: nowrap; cursor: pointer; }
.nav-drop-knapp:hover, .nav-drop-knapp[aria-expanded="true"] { color: var(--header-fg); }
.nav-drop-knapp svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.nav-drop-knapp[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-drop-lista { display: none; position: absolute; top: calc(100% + 20px); left: 50%; transform: translateX(-50%); z-index: 70; min-width: 270px; margin: 0; padding: 8px; list-style: none; background: #FFFFFF; border: 2px solid #0F0F0F; border-radius: 8px; box-shadow: 6px 6px 0 #0F0F0F; }
.nav-drop-lista::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }  /* musen tappar inte menyn i glipan */
.nav-drop.is-open .nav-drop-lista { display: block; }
.nav .nav-drop-lista a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; color: #0F0F0F; font-weight: 600; font-size: .95rem; }
.nav .nav-drop-lista a:hover, .nav .nav-drop-lista a:focus-visible { background: #F1F0EA; color: #0F0F0F; }
.nav-drop-lista svg { width: 28px; height: 28px; flex: none; fill: none; stroke: #0F0F0F; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1120px) { .nav-drop { display: none; } }
.nav a.nav-mob { display: none; }  /* Om oss och Kontakt bara i mobilmenyn */
.nav.is-open a.nav-mob { display: flex; }

/* Rabattavsnittet utan pristabell (2026-10-16): rubrik till vänster, svarta rutan till höger – som på startsidan */
.rabatt-grid.rabatt-grid-utan-tabell { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; align-items: center; }
.rabatt-grid-utan-tabell .section-head { margin-bottom: 0; }
@media (max-width: 1100px) { .rabatt-grid.rabatt-grid-utan-tabell { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* .hide-mobile ska vinna även över listor med egen display (t.ex. bockpunkterna i kalkylatorn) */
@media (max-width: 640px) { .hide-mobile { display: none !important; } }

/* Fotoheron på startsidan och tjänstesidorna fyller skärmen på datorn, som på fönstersidan (.hero ovan) – 2026-10-28 */
@media (min-width: 900px) {
  .only-desk > section#top[style*="#1B1B1B"] { min-height: calc(100vh / .85 - 75px); display: flex; flex-direction: column; justify-content: center; }
  .only-desk > section#top[style*="#1B1B1B"] > div[style*="max-width: 1180px"] { width: 100%; max-width: 1236px !important; box-sizing: border-box; }
}

