/* =========================================================
   Karla Städ – stilmall v3
   Ett typsnitt, en textfärg, bilder i stället för tomma ytor
   ========================================================= */
:root {
  --night: #0A1016;
  --black: #08090A;
  --text: #F4F1EA;
  --dim: rgba(244, 241, 234, .66);
  --faint: rgba(244, 241, 234, .16);
  --accent: #2CC0C0;
  --accent-dark: #0F7C8C;
  --ok: #2FBF71;
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0; background: var(--night); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { display: block; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--night); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Typografi ---------- */
.display { font-weight: 600; font-size: clamp(46px, 6.3vw, 98px); line-height: .96; letter-spacing: -.055em; text-wrap: balance; }
.title { font-weight: 600; font-size: clamp(32px, 4.2vw, 62px); line-height: 1.02; letter-spacing: -.05em; text-wrap: balance; }

/* ---------- Glas ---------- */
.glass {
  background: linear-gradient(180deg, rgba(16, 24, 27, .62), rgba(11, 16, 18, .76));
  -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3);
  border: 1px solid rgba(244, 241, 234, .17);
  border-radius: var(--r);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 40px 90px -40px rgba(0, 0, 0, .8);
}

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 12px;
  font-weight: 500; font-size: 16px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--accent { background: linear-gradient(180deg, #1BA3AC, var(--accent-dark)); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 10px 24px -12px rgba(44, 192, 192, .9); }
.btn--accent:hover { background: linear-gradient(180deg, #22B4BC, #128897); }
.btn--light { background: linear-gradient(180deg, #F4F1EA, #CFCBC2); color: var(--black); font-weight: 600; }
.btn--light:hover { background: linear-gradient(180deg, #fff, #E2DED5); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn--lg { height: 56px; }
.btn--full { width: 100%; }

/* ---------- Toppbanner: svart list med en aning turkos ---------- */
.nav {
  position: fixed; z-index: 50; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--pad);
  background:
    radial-gradient(42% 260% at 0% 0%, rgba(44, 192, 192, .16), rgba(44, 192, 192, 0) 70%),
    linear-gradient(180deg, rgba(5, 8, 11, .94), rgba(5, 8, 11, .8));
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  transition: padding .4s var(--ease), box-shadow .4s;
}
/* tunn turkos linje i nederkanten som tonar ut åt höger */
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(44, 192, 192, .95) 0%, rgba(44, 192, 192, .4) 28%, rgba(244, 241, 234, .1) 62%, rgba(244, 241, 234, .04) 100%); pointer-events: none; }
.nav.is-scrolled { padding-block: 10px; box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .85); }

.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand__mark { width: 30px; height: 30px; fill: currentColor; flex: none; }
.mark-spark { fill: var(--accent); }
.brand__name { font-weight: 600; font-size: 19px; letter-spacing: -.04em; }
.brand__name span { font-weight: 400; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(88px, 11vh, 112px) 0 clamp(28px, 5vh, 56px);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 0%; filter: brightness(.92); transform: scale(1.05); transform-origin: 46% 0%; will-change: transform; animation: heroIn 2.4s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.16); filter: brightness(.55) blur(6px); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 12, 14, .86) 0%, rgba(8, 12, 14, .6) 30%, rgba(8, 12, 14, .1) 56%, rgba(8, 12, 14, .45) 100%),
    linear-gradient(180deg, rgba(8, 12, 14, .5) 0%, rgba(8, 12, 14, 0) 22%, rgba(8, 12, 14, 0) 60%, var(--night) 100%);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: clamp(28px, 3.6vw, 56px); align-items: center; }
.hero__copy { container-type: inline-size; animation: rise 1s var(--ease) .15s both; }
.hero .display { white-space: nowrap; font-size: min(7.9cqi, 96px); line-height: 1.05; text-shadow: 0 2px 40px rgba(0, 0, 0, .45); }
.hero__lead { margin-top: 14px; display: flex; align-items: center; gap: 12px; white-space: nowrap; font-size: min(3.5cqi, 24px); font-weight: 500; line-height: 1.3; letter-spacing: -.02em; text-shadow: 0 1px 20px rgba(0, 0, 0, .5); }
.hero__arrow { width: 1.25em; height: 1.25em; flex: none; color: var(--accent); animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }

/* ---------- Strömbrytare: Flyttstäd / Hemstäd ---------- */
.switch {
  display: inline-flex; align-items: center; gap: 14px;
  height: 48px; padding: 0 20px; margin-bottom: clamp(16px, 2.6vh, 28px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16, 24, 27, .56), rgba(11, 16, 18, .72));
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid rgba(244, 241, 234, .17);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 20px 44px -22px rgba(0, 0, 0, .85);
  font-size: 16px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap;
  transition: border-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.switch:hover { border-color: rgba(244, 241, 234, .34); }
.switch__label { opacity: .46; transition: opacity .4s var(--ease), text-shadow .4s var(--ease); }
.switch[aria-checked="false"] .switch__label--a,
.switch[aria-checked="true"] .switch__label--b { opacity: 1; text-shadow: 0 0 16px rgba(244, 241, 234, .55), 0 0 34px rgba(44, 192, 192, .5); }
/* spåret: mörk ränna med ett sken som följer lampan */
.switch__track {
  position: relative; flex: none; width: 54px; height: 30px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(44, 192, 192, .42), rgba(44, 192, 192, 0) 46%, rgba(44, 192, 192, 0) 54%, rgba(44, 192, 192, .42)) 0% 0 / 220% 100% no-repeat, rgba(0, 0, 0, .55);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(244, 241, 234, .13);
  transition: background-position .5s var(--ease);
}
.switch[aria-checked="true"] .switch__track { background-position: 100% 0, 0 0; }
/* lampan */
.switch__knob {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff, var(--text) 52%, #CBC7BD);
  box-shadow: 0 0 0 4px rgba(44, 192, 192, .26), 0 0 22px 3px rgba(44, 192, 192, .8), 0 3px 8px rgba(0, 0, 0, .6);
  transition: transform .5s cubic-bezier(.3, 1.45, .5, 1), width .2s var(--ease), box-shadow .3s;
}
.switch[aria-checked="true"] .switch__knob { transform: translateX(24px); }
.switch:hover .switch__knob { box-shadow: 0 0 0 5px rgba(44, 192, 192, .32), 0 0 30px 5px rgba(44, 192, 192, .95), 0 3px 8px rgba(0, 0, 0, .6); }
.switch:active .switch__knob { width: 29px; }
.switch[aria-checked="true"]:active .switch__knob { transform: translateX(19px); }

/* rubriken tänds som en lampa när man byter tjänst */
.hero.is-flip .display { animation: lampOn .7s var(--ease) both; }
.hero.is-flip .calc .field > *, .hero.is-flip .result__main { animation: softIn .5s var(--ease) both; }
@keyframes lampOn {
  0% { opacity: .1; filter: blur(8px); }
  28% { opacity: .95; filter: blur(0); }
  40% { opacity: .35; }
  56%, 100% { opacity: 1; filter: none; }
}
@keyframes softIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Kalkyl ---------- */
.calc { display: grid; gap: 16px; padding: clamp(18px, 1.8vw, 26px); container-type: inline-size; animation: rise 1s var(--ease) .3s both; }
.calc__noscript { font-size: 15px; line-height: 1.45; }
.field { display: grid; gap: 9px; }
.field__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.field__label { font-size: 15px; font-weight: 500; }
.field--split { grid-template-columns: 1fr 1fr; gap: 8px; }

.kvm { display: inline-flex; align-items: baseline; gap: 6px; }
.kvm input {
  width: 3ch; min-width: 66px; text-align: right;
  font-weight: 600; font-size: 36px; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums;
  border: 0; border-bottom: 1px dashed rgba(244, 241, 234, .3); background: transparent; padding: 0 2px 2px; border-radius: 0;
  -moz-appearance: textfield; appearance: textfield;
}
.kvm input::-webkit-outer-spin-button, .kvm input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kvm input:focus { outline: 0; border-bottom-color: var(--text); }
.kvm span { font-size: 18px; font-weight: 500; color: var(--dim); }

.range { --p: 20%; -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: grab; }
.range:active { cursor: grabbing; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--accent) var(--p), rgba(244, 241, 234, .2) var(--p)); }
.range::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(244, 241, 234, .2); }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--text); border: 0; box-shadow: 0 0 0 5px rgba(44, 192, 192, .35), 0 6px 14px -2px rgba(0, 0, 0, .6); transition: transform .2s var(--ease), box-shadow .2s; }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--text); border: 0; box-shadow: 0 0 0 5px rgba(44, 192, 192, .35), 0 6px 14px -2px rgba(0, 0, 0, .6); }
.range:hover::-webkit-slider-thumb, .range:focus-visible::-webkit-slider-thumb { transform: scale(1.08); box-shadow: 0 0 0 7px rgba(44, 192, 192, .45), 0 6px 14px -2px rgba(0, 0, 0, .6); }
.range:focus-visible { outline: 0; }

.seg[data-n="4"] button { font-size: 14px; letter-spacing: -.01em; }
@container (max-width: 440px) { .seg[data-n="4"] { grid-template-columns: 1fr 1fr; } }
.seg { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 4px; padding: 4px; background: rgba(244, 241, 234, .07); border: 1px solid rgba(244, 241, 234, .12); border-radius: 13px; }
.seg button { height: 40px; border-radius: 9px; font-size: 15px; font-weight: 500; opacity: .75; transition: background .25s, color .25s, opacity .25s; }
.seg button:hover { opacity: 1; }
.seg button[aria-checked="true"] { background: var(--text); color: var(--night); opacity: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 11px 0 7px; border-radius: 999px;
  border: 1px solid rgba(244, 241, 234, .2); background: rgba(244, 241, 234, .05);
  font-size: 14px; font-weight: 500;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.chip:hover { border-color: rgba(244, 241, 234, .55); }
.chip:active { transform: scale(.97); }
.chip__box { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(244, 241, 234, .4); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.chip__box svg { width: 14px; height: 14px; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s var(--ease); }
.chip__price { font-size: 12.5px; font-weight: 400; opacity: .62; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip[aria-pressed="true"] { background: rgba(44, 192, 192, .26); border-color: var(--accent); }
.chip[aria-pressed="true"] .chip__box { background: var(--accent-dark); border-color: var(--accent); color: #fff; }
.chip[aria-pressed="true"] .chip__box svg { opacity: 1; transform: none; }
.chip[aria-pressed="true"] .chip__price { opacity: .9; }

.counter { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 7px 7px 14px; border: 1px solid rgba(244, 241, 234, .16); border-radius: 13px; background: rgba(244, 241, 234, .05); }
.counter__label { font-size: 14px; font-weight: 500; line-height: 1.2; }
.counter__label small { display: block; font-size: 12px; font-weight: 400; opacity: .62; margin-top: 2px; }
.counter__ctrl { display: inline-flex; align-items: center; gap: 2px; }
.counter__ctrl button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(244, 241, 234, .12); transition: background .2s, color .2s; }
.counter__ctrl button:hover:not(:disabled) { background: var(--text); color: var(--night); }
.counter__ctrl button:disabled { opacity: .35; cursor: default; }
.counter__ctrl svg { width: 16px; height: 16px; }
.counter__ctrl output { width: 24px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.result { background: rgba(244, 241, 234, .06); border: 1px solid rgba(244, 241, 234, .14); border-radius: 16px; padding: 16px 16px 16px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 18px; }
.result__main { display: grid; gap: 4px; align-content: center; }
.result__label { font-size: 13px; font-weight: 500; opacity: .62; }
.result__side { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 14px; }
.rut { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(244, 241, 234, .09); }
.rut button { height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; opacity: .7; transition: background .25s, color .25s, opacity .25s; }
.rut button[aria-pressed="true"] { background: var(--text); color: var(--night); opacity: 1; }
.result__price { display: flex; align-items: baseline; gap: 8px; line-height: 1; }
.result__price output { font-weight: 600; font-size: clamp(46px, 4vw, 58px); letter-spacing: -.06em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result__price span { font-size: 22px; font-weight: 500; letter-spacing: -.03em; opacity: .62; }
.result__note { font-size: 13px; line-height: 1.4; opacity: .62; }
@container (max-width: 480px) {
  .result { grid-template-columns: 1fr; padding: 18px; }
  .result__side { align-items: stretch; }
  .result__side .rut { align-self: flex-start; }
}

/* Flytande prisrad */
.pricebar {
  position: fixed; z-index: 40; left: 50%; bottom: 16px;
  display: flex; align-items: center; gap: 22px;
  padding: 8px 8px 8px 20px; border-radius: 16px;
  background: rgba(11, 15, 17, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(244, 241, 234, .16);
  box-shadow: 0 20px 44px -16px rgba(0, 0, 0, .7);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), opacity .3s;
}
.pricebar.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.pricebar__text { display: grid; line-height: 1.15; }
.pricebar small { font-size: 12px; opacity: .62; white-space: nowrap; }
.pricebar strong { font-weight: 600; font-size: 24px; letter-spacing: -.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Inne i lägenheten ---------- */
.room { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; }
.room__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 22%, rgba(44, 192, 192, .26), transparent 52%),
    radial-gradient(ellipse at 14% 58%, rgba(15, 124, 140, .22), transparent 55%),
    linear-gradient(155deg, var(--black) 4%, #132731 52%, #0b171f 82%, var(--black));
}
.room__media img { display: none; }
.room__media::after {
  content: "";
  position: absolute;
  inset: -24% -32% 16% 25%;
  border-radius: 50%;
  transform: rotate(-24deg);
  background: repeating-radial-gradient(ellipse at center, transparent 0 27px, rgba(128, 219, 213, .15) 28px, transparent 30px 46px);
  mask-image: radial-gradient(ellipse at center, #000 5%, transparent 68%);
}
.room::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--black), transparent 24%, transparent 64%, var(--black));
}
@media (max-width: 700px) {
  .room__media::after { inset: -12% -85% 48% -24%; }
}
.room__inner { display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(24px, 3.4vw, 44px); padding-block: clamp(110px, 16vh, 170px) clamp(56px, 9vh, 100px); }
.room__head { display: grid; justify-items: center; gap: clamp(16px, 2vw, 24px); text-align: center; }
.room .title { max-width: 15em; text-shadow: 0 2px 30px rgba(0, 0, 0, .7), 0 0 80px rgba(0, 0, 0, .5); }

/* Märke: vilken tjänst det gäller + grön garantibock */
.seal-bg { fill: var(--ok); }
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  height: 46px; padding: 0 20px 0 10px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(16, 24, 27, .62), rgba(11, 16, 18, .78));
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid rgba(244, 241, 234, .17);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 20px 44px -22px rgba(0, 0, 0, .85);
  font-size: 16px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap;
}
.badge svg { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 0 10px rgba(52, 199, 123, .55)); }
.badge i { width: 1px; height: 16px; background: rgba(244, 241, 234, .28); }
.badge span:last-child { font-weight: 500; }

/* En ruta: det vi lovar + det här ingår */
.panel { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.panel__col { padding: clamp(18px, 2vw, 30px); min-width: 0; }
.panel__col + .panel__col { border-left: 1px solid rgba(244, 241, 234, .13); }
.panel__title { font-weight: 600; font-size: clamp(20px, 1.7vw, 24px); letter-spacing: -.04em; line-height: 1.1; margin-bottom: 16px; }
.promises li { display: grid; gap: 2px; padding: 11px 0; border-bottom: 1px solid rgba(244, 241, 234, .12); }
.promises li:first-child { padding-top: 0; }
.promises li:last-child { border-bottom: 0; padding-bottom: 0; }
.promises strong { font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.promises span { font-size: 15px; line-height: 1.4; opacity: .78; }
.promises__guarantee strong { display: flex; align-items: center; gap: 8px; }
.promises__guarantee svg { width: 22px; height: 22px; flex: none; }
/* ---------- Det här ingår ---------- */
.tabs__list { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 4px; padding: 4px; background: rgba(244, 241, 234, .07); border: 1px solid rgba(244, 241, 234, .12); border-radius: 13px; }
.tabs__list button { height: 42px; border-radius: 9px; font-size: 15px; font-weight: 500; opacity: .75; transition: background .25s, color .25s, opacity .25s; }
.tabs__list button:hover { opacity: 1; }
.tabs__list button[aria-selected="true"] { background: var(--text); color: var(--night); opacity: 1; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; margin-top: 8px; min-height: 174px; align-content: start; }
.checklist[hidden] { display: none; }
.checklist li { position: relative; padding: 16px 8px 16px 34px; border-bottom: 1px solid rgba(244, 241, 234, .12); font-size: 16px; line-height: 1.35; animation: rise .5s var(--ease) both; }
.checklist li:nth-last-child(-n+2) { border-bottom: 0; }
.checklist li:nth-child(n+3) { animation-delay: .05s; } .checklist li:nth-child(n+5) { animation-delay: .1s; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 16px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(244, 241, 234, .3);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23F4F1EA' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Boka ---------- */
.contact { position: relative; background: var(--black); padding: clamp(72px, 9vw, 130px) 0 clamp(56px, 7vw, 96px); }
.contact__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.contact__lead { margin-top: 18px; opacity: .72; max-width: 26em; }

.summary { margin-top: 32px; border: 1px solid rgba(244, 241, 234, .14); border-radius: 18px; padding: 8px 22px 18px; background: rgba(244, 241, 234, .035); }
.summary__list { display: grid; }
.summary__list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(244, 241, 234, .12); font-size: 15.5px; }
.summary__list li span:last-child { font-variant-numeric: tabular-nums; opacity: .72; white-space: nowrap; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; }
.summary__total span { font-size: 15px; opacity: .72; }
.summary__total strong { font-weight: 600; font-size: clamp(32px, 3vw, 40px); line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary__edit { display: inline-block; margin-top: 14px; font-size: 14px; opacity: .72; border-bottom: 1px solid rgba(244, 241, 234, .4); transition: opacity .2s; }
.summary__edit:hover { opacity: 1; }

.form { position: relative; background: linear-gradient(180deg, rgba(34, 36, 38, .9), rgba(20, 22, 23, .92)); border: 1px solid rgba(244, 241, 234, .12); border-radius: var(--r); padding: clamp(16px, 1.8vw, 24px); display: grid; gap: 14px; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 50px 90px -40px rgba(0, 0, 0, .9); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input { position: relative; display: block; }
.input--wide { grid-column: 1 / -1; }
.input > span { position: absolute; left: 14px; top: 9px; font-size: 11.5px; opacity: .55; pointer-events: none; }
.input input, .input textarea {
  width: 100%; height: 58px; padding: 22px 14px 6px;
  background: rgba(0, 0, 0, .32); border: 1px solid rgba(244, 241, 234, .12); border-radius: 10px;
  font-size: 16px; color-scheme: dark;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.input textarea { height: auto; min-height: 84px; padding-top: 26px; resize: vertical; line-height: 1.45; }
.input input:hover, .input textarea:hover { border-color: rgba(244, 241, 234, .28); }
.input input:focus, .input textarea:focus { outline: 0; border-color: rgba(244, 241, 234, .6); background: rgba(0, 0, 0, .45); box-shadow: 0 0 0 4px rgba(244, 241, 234, .08); }
.input.is-invalid input { border-color: #F08A6B; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 13px; opacity: .7; line-height: 1.45; cursor: pointer; padding: 2px 2px 0; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.form__error { font-size: 14px; }
.form__done { position: absolute; inset: 0; border-radius: inherit; background: #141617; display: grid; place-content: center; justify-items: center; text-align: center; gap: 14px; padding: 32px; animation: rise .5s var(--ease) both; }
.form__done[hidden] { display: none; }
.form__done svg { width: 40px; height: 40px; animation: spin 6s linear infinite; }
.form__done h3 { font-weight: 600; font-size: 32px; letter-spacing: -.05em; line-height: 1.05; }
.form__done p { opacity: .72; max-width: 26em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer { background: var(--black); border-top: 1px solid rgba(244, 241, 234, .1); padding: 28px 0 36px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 14px 32px; align-items: center; }
.footer__contact { justify-self: end; display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.footer__contact a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.footer__contact a:hover { border-color: currentColor; }
.footer__legal { grid-column: 1 / -1; font-size: 13px; opacity: .45; line-height: 1.6; }

/* ---------- Villkorssidan ---------- */
.legal-page { background: var(--black); }
.legal { max-width: 800px; padding-block: clamp(110px, 14vh, 150px) clamp(64px, 9vw, 110px); }
.legal__back { display: inline-block; font-size: 15px; opacity: .72; margin-bottom: 28px; border-bottom: 1px solid transparent; transition: opacity .2s, border-color .2s; }
.legal__back:hover { opacity: 1; border-color: currentColor; }
.legal__intro { margin-top: 18px; font-size: 18px; line-height: 1.5; opacity: .8; }
.legal section { margin-top: clamp(36px, 5vw, 52px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid rgba(244, 241, 234, .13); }
.legal h2 { font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.04em; line-height: 1.1; margin-bottom: 14px; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.6; opacity: .86; }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 12px; }
.legal ul { display: grid; gap: 8px; }
.legal li { position: relative; padding-left: 20px; }
.legal li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; }
.legal strong { font-weight: 600; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsivt ---------- */
@media (max-width: 1080px) {
  .hero__inner, .contact__inner { grid-template-columns: 1fr; }
  .hero__inner { gap: 32px; }
  .calc { max-width: 620px; }
}
/* Låga datorskärmar (vanliga laptops): tätare kalkyl så att priset syns utan att scrolla */
@media (min-width: 1081px) and (max-height: 800px) {
  .hero { padding: 72px 0 16px; }
  .calc { gap: 11px; padding: 16px 20px; }
  .field { gap: 6px; }
  .field__label { font-size: 14.5px; }
  .kvm input { font-size: 30px; }
  .seg button { height: 36px; }
  .chip { height: 32px; font-size: 13.5px; }
  .chip__box { width: 18px; height: 18px; }
  .counter { padding: 4px 6px 4px 12px; }
  .counter__ctrl button { width: 30px; height: 30px; }
  .result { padding: 12px 14px 12px 18px; gap: 10px 16px; }
  .result__side { gap: 10px; }
  .result__price output { font-size: 42px; }
  .result .btn { height: 46px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 72px; }
  .hero { padding: 92px 0 32px; min-height: 0; }
  .hero__media img { object-position: 52% 30%; }
  .hero__shade { background: linear-gradient(180deg, rgba(8, 12, 14, .66) 0%, rgba(8, 12, 14, .3) 22%, rgba(8, 12, 14, .74) 46%, var(--night) 100%); }
  .hero .display { white-space: normal; font-size: clamp(40px, 12.5vw, 60px); line-height: 1; }
  .hero__lead { margin-top: 14px; font-size: 18px; white-space: normal; }
  .hero__arrow { transform: rotate(90deg); animation: none; }
  .field--split { grid-template-columns: 1fr; }
  .room__inner { padding-block: 96px 40px; gap: 24px; }
  .panel { grid-template-columns: 1fr; }
  .panel__col + .panel__col { border-left: 0; border-top: 1px solid rgba(244, 241, 234, .13); }
  .checklist { grid-template-columns: 1fr; min-height: 0; }
  .checklist li:nth-last-child(2) { border-bottom: 1px solid rgba(244, 241, 234, .12); }
  .tabs__list button { font-size: 14px; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__contact { justify-self: start; flex-wrap: wrap; gap: 8px 20px; }
  .pricebar { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; transform: translateY(140%); }
  .pricebar.is-on { transform: none; }
  .badge { height: 42px; padding: 0 16px 0 8px; gap: 10px; font-size: 14.5px; }
  .badge svg { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__media img { transform: scale(1.04) !important; }
}
