@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/BricolageGrotesque.ttf") format("truetype");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
/* =====================================================================
   TB Tak Entreprenad AB – styles.css · v2 "material" (2026-10-13)
   Graphite, limestone, terracotta, copper, black steel.
   System fonts only, no external resources. Mobile first – 390 px is the main target.
   ===================================================================== */

:root {
  /* Material palette (ТЗ v2) */
  --graphite: #1C1B19;
  --limestone: #F3EFE8;
  --limestone-deep: #E9E3D9;
  --terracotta: #B8431F;
  --copper: #9A6A3F;
  --steel: #2A2A2A;

  /* Roles – WCAG contrast is checked by tools/check.mjs */
  --bg: #F3EFE8;
  --surface: #FBF9F5;
  --surface-2: #E9E3D9;
  --ink: #1C1B19;
  --text: #36332E;
  --muted: #59544D;
  --line: rgba(28, 27, 25, .12);
  --line-strong: rgba(28, 27, 25, .32);
  --input-border: #8A8379;
  --placeholder: #67615A;
  --accent: #B8431F;
  --accent-hover: #93351A;
  --accent-strong: #9A3A1B;
  --accent-soft: #F2E2D9;
  --copper-text: #7A5332;
  --error: #B42318;
  --error-bg: #FBE9E3;
  --white: #FFFFFF;
  --footer-bg: #1C1B19;
  --footer-panel: #2A2A2A;
  --footer-text: #ECE7DF;
  --footer-muted: #ABA59B;
  --ph-bg: #FFF1B8;
  --ph-text: #3D3000;

  /* On dark: funnel plate, process section, footer */
  --plate: rgba(28, 27, 25, .9);
  --on-dark-muted: rgba(255, 255, 255, .72);
  --on-dark-line: rgba(255, 255, 255, .16);
  --on-dark-error: #FFB4A3;
  --copper-light: #D09E70;
  --copper-on-dark: #C08A5A; /* v4: koppar på mörkt (ikoner, fokus, fel) */
  --panel: #1F1E1B;          /* v4: offertplattan */

  --radius-sm: 2px;
  --radius: 2px;
  --radius-lg: 3px;
  --header-h: 60px;
  --maxw: 1200px;
  --gutter: 20px;
  --hero-gap: 56px;
  --section-y: clamp(72px, 10vw, 136px);
  --font: "Bricolage Grotesque", "Helvetica Neue", "Inter", Arial, sans-serif;
  --font-text: "Helvetica Neue", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 40px; --header-h: 72px; }
}
@media (min-width: 1200px) {
  :root { --hero-gap: 88px; }
}

/* ---------- Bas ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }

svg { display: block; }

h1, h2, h3 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); line-height: 1.04; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }

ul, ol { margin: 0; padding: 0; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
main:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.muted { color: var(--muted); }

/* Ikoner (inline SVG) */
.i {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i .dot { stroke-width: 2.8; }

/* Platshållare [XXX] markeras av site.js – syns tydligt i demon */
mark.ph {
  padding: 0 .2em;
  border-radius: 2px;
  background: var(--ph-bg);
  color: var(--ph-text);
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Typografiska byggstenar */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: var(--copper-text);
  font-family: var(--font);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 36px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: .75em 1.35em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .i { width: 19px; height: 19px; }
.btn:focus-visible { outline-offset: 3px; }

/* Terrakotta = den enda huvudknappen (”Beskriv ditt projekt” / ”Skicka”) */
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; color: var(--white); }

/* Ljus knapp på mörka ytor (sekundära upprepningar av huvudknappen) */
.btn-light { background: var(--limestone); color: var(--ink); }
.btn-light:hover { background: #D6CDBF; color: var(--ink); }

.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-secondary mark.ph { background: transparent; color: inherit; padding: 0; }

.btn-sm { min-height: 44px; padding: .55em 1.05em; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: .85em 1.6em; font-size: 1.0625rem; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: .72; cursor: progress; }

/* ---------- Sidhuvud ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 239, 232, .96);
  border-bottom: 1px solid var(--line);
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .site-header {
    background: rgba(243, 239, 232, .84);
    -webkit-backdrop-filter: saturate(1.2) blur(12px);
    backdrop-filter: saturate(1.2) blur(12px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { color: var(--ink); }
.logo-mark { width: 30px; height: 22px; color: var(--accent); }
.logo-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.header-actions { display: flex; align-items: center; gap: 18px; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone .i { width: 18px; height: 18px; color: var(--copper); }
.header-phone:hover { color: var(--accent-strong); }

@media (max-width: 359px) {
  .header-phone-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---------- Hero ---------- */
.hero-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-block: 0 56px;
}

/* Materialblock: SVG-tak (tegel + plåt). Mobil: en remsa överst. */
.hero-art {
  position: relative;
  height: 220px; /* v4: mobil – foto 220 px överst */
  margin-inline: calc(-1 * var(--gutter));
  overflow: hidden;
  background: var(--steel);
}
.roof-art { width: 100%; height: 100%; }

.hero { padding-top: 36px; }

.hero h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 30em;
  color: var(--text);
  font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  line-height: 1.5;
}

.hero-actions {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}
@media (min-width: 560px) {
  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
}

.hero-facts {
  display: grid;
  gap: 0;
  margin-top: 32px;
  list-style: none;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: .9375rem;
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.hero-facts li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 1px;
  background: var(--accent);
}

.funnel-section { margin: 40px calc(-1 * var(--gutter)) 0; }

@media (min-width: 960px) {
  .hero-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--hero-gap);
    align-items: center;
    padding-block: 56px 120px;
  }
  .hero { grid-column: 1; grid-row: 1; align-self: start; padding: clamp(16px, 3vw, 48px) 0 0; }
  .hero-art {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    height: auto;
    min-height: 760px;
    margin: 0;
  }
  .funnel-section {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: start;
    width: 460px; /* v4: fast bredd */
    max-width: calc(100% + var(--hero-gap) / 2);
    margin: 120px 0 48px calc(var(--hero-gap) / -2);
  }
}
@media (min-width: 1200px) {
  .hero-wrap { grid-template-columns: minmax(0, 1fr) 580px; }
}

/* ---------- Offertflödet v4: mörk platta #1F1E1B, korn i CSS, terrakottalinje överst, raka hörn ---------- */
.funnel {
  position: relative;
  padding: 28px 20px 32px;
  border-top: 2px solid var(--accent);
  border-radius: 0;
  background-color: var(--panel);
  background-image:
    radial-gradient(rgba(255, 255, 255, .03) .6px, transparent .9px),
    radial-gradient(rgba(0, 0, 0, .22) .6px, transparent .9px),
    radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0) 60%);
  background-size: 3px 3px, 5px 5px, auto;
  background-position: 0 0, 1px 2px, 0 0;
  box-shadow: none;
  color: var(--white);
  outline: 2px solid transparent;
  outline-offset: 0;
  transition: outline-color .3s ease;
}
.funnel.is-attention { outline-color: var(--copper-on-dark); }
.funnel a { color: var(--white); }
.funnel a:hover { color: var(--copper-light); }
.funnel :focus-visible { outline-color: var(--white); }
@media (min-width: 420px) { .funnel { padding: 32px 28px 34px; } }
@media (min-width: 960px) { .funnel { padding: 36px; } }

/* Huvud: Tillbaka + stort stegnummer, segment med etiketter, klickbara val */
.funnel-head { display: grid; gap: 12px; margin: -8px 0 20px; }
.funnel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.funnel-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  margin-left: -6px;
  padding: 0 10px 0 2px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--white);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
}
.funnel-back .i { width: 20px; height: 20px; }
.funnel-back:hover { color: var(--copper-on-dark); }

.funnel-num {
  margin: 0;
  color: var(--white);
  font-family: var(--font);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.funnel-num-total { color: rgba(255, 255, 255, .42); }
.funnel-num.is-done { color: var(--copper-on-dark); }

.funnel-progress { margin: 0; }
.fprog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fprog li { display: grid; gap: 7px; min-width: 0; }
.fprog-bar { display: block; height: 3px; background: rgba(255, 255, 255, .18); transition: background-color .3s var(--ease); }
.fprog-label {
  overflow: hidden;
  color: rgba(255, 255, 255, .5);
  font-family: var(--font);
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color .3s var(--ease);
}
/* passerade steg = koppar */
.funnel-progress[data-at="2"] li:nth-child(-n + 1) .fprog-bar,
.funnel-progress[data-at="3"] li:nth-child(-n + 2) .fprog-bar,
.funnel-progress[data-at="4"] li:nth-child(-n + 3) .fprog-bar,
.funnel-progress[data-at="5"] li .fprog-bar { background: var(--copper-on-dark); }
.funnel-progress[data-at="2"] li:nth-child(-n + 1) .fprog-label,
.funnel-progress[data-at="3"] li:nth-child(-n + 2) .fprog-label,
.funnel-progress[data-at="4"] li:nth-child(-n + 3) .fprog-label,
.funnel-progress[data-at="5"] li .fprog-label { color: var(--copper-on-dark); }
/* aktivt steg = terrakotta */
.funnel-progress[data-at="1"] li:nth-child(1) .fprog-bar,
.funnel-progress[data-at="2"] li:nth-child(2) .fprog-bar,
.funnel-progress[data-at="3"] li:nth-child(3) .fprog-bar,
.funnel-progress[data-at="4"] li:nth-child(4) .fprog-bar { background: var(--accent); }
.funnel-progress[data-at="1"] li:nth-child(1) .fprog-label,
.funnel-progress[data-at="2"] li:nth-child(2) .fprog-label,
.funnel-progress[data-at="3"] li:nth-child(3) .fprog-label,
.funnel-progress[data-at="4"] li:nth-child(4) .fprog-label { color: var(--white); }

.funnel-count {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: .75rem;
}

/* Valda svar som chips (överst i steg 1–4 och som sammanfattning i sista steget) */
.funnel-crumbs,
.funnel-summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.funnel-summary { margin: 0 0 20px; }
.funnel-summary:empty { display: none; }
.fchip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 0;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .86);
  font-family: var(--font-text);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease), background-color .16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.fchip:hover { border-color: var(--copper-on-dark); color: var(--white); }
.fchip:focus-visible { outline: none; border-color: var(--copper-on-dark); box-shadow: inset 0 0 0 1px var(--copper-on-dark); color: var(--white); }

.fstep-title {
  margin: 0 0 20px;
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.fstep-title:focus { outline: none; }
@media (min-width: 420px) { .fstep-title { font-size: 1.6rem; } }

/* Stegbyte: fade + slide 220 ms (riktning via --fstep-x), inget vid prefers-reduced-motion */
.fstep.is-entering { animation: fstep-in .22s var(--ease) both; }
@keyframes fstep-in {
  from { opacity: 0; transform: translateX(var(--fstep-x, 12px)); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .fstep.is-entering { animation: none; } }

/* Steg 0: tjänstekort 2×3 + Annat */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.service-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  min-height: 104px;
  padding: 14px 12px 13px;
  border: 1px solid var(--on-dark-line);
  border-radius: 0;
  background: rgba(255, 255, 255, .03);
  color: var(--white);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.service-opt .i { width: 28px; height: 28px; color: var(--copper-on-dark); stroke-width: 1.5; }
.service-text { display: flex; flex-direction: column; gap: 3px; }
.service-label { font-size: 1.0625rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.service-sub {
  color: rgba(255, 255, 255, .6);
  font-family: var(--font-text);
  font-size: .8125rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  transition: color .18s var(--ease);
}

.service-opt--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 56px;
}

@media (min-width: 420px) {
  .service-opt { min-height: 112px; padding: 15px 14px 14px; }
  .service-opt--wide { min-height: 56px; padding-block: 12px; }
}

@media (hover: hover) {
  .service-opt:hover { border-color: var(--copper-on-dark); transform: translateY(-2px); }
}
.service-opt:focus-visible {
  outline: none;
  border-color: var(--copper-on-dark);
  box-shadow: inset 0 0 0 1px var(--copper-on-dark);
  transform: translateY(-2px);
}
.service-opt[aria-pressed="true"] { border-color: var(--limestone); background: var(--limestone); color: var(--ink); }
.service-opt[aria-pressed="true"] .i { color: var(--copper); }
.service-opt[aria-pressed="true"] .service-sub { color: var(--muted); }
.service-opt:active { transform: translateY(0) scale(.99); }

.funnel-note {
  margin: 20px 0 0;
  color: var(--on-dark-muted);
  font-size: .8125rem;
  text-align: center;
}

/* Steg 1–4: radiorader 56 px, rund indikator till vänster, chevron till höger */
.opt-list { display: grid; gap: 8px; }

.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 8px 14px 8px 16px;
  border: 1px solid var(--on-dark-line);
  border-radius: 0;
  background: rgba(255, 255, 255, .03);
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.opt::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.opt-text { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }
.opt .i { width: 20px; height: 20px; color: rgba(255, 255, 255, .5); }
.opt-sub { color: var(--on-dark-muted); font-size: .8125rem; font-weight: 400; line-height: 1.3; }

.opt:active { transform: scale(.99); }

@media (hover: hover) {
  .opt:hover { border-color: var(--copper-on-dark); background: rgba(255, 255, 255, .06); }
  .opt:hover::before { border-color: var(--copper-on-dark); }
  .opt:hover .i { color: var(--white); }
}
.opt:focus-visible { outline: none; border-color: var(--copper-on-dark); box-shadow: inset 0 0 0 1px var(--copper-on-dark); }
.opt:focus-visible::before { border-color: var(--copper-on-dark); }

.opt[aria-pressed="true"] { border-color: var(--accent); background: rgba(184, 67, 31, .16); }
.opt[aria-pressed="true"]::before {
  border-color: var(--accent);
  background: radial-gradient(circle, var(--white) 0 2.5px, var(--accent) 3px);
}
.opt[aria-pressed="true"] .i { color: var(--copper-on-dark); }

/* Kontaktsteget: flytande etiketter, fält 56 px, inga skuggor */
.fstep-form .field { position: relative; margin: 0 0 12px; }
.fstep-form .field-row .field { margin-bottom: 0; }
.fstep-form .field-row { margin-bottom: 12px; }

.field label {
  position: absolute;
  top: 18px;
  left: 15px;
  right: 12px;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .62);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform .16s var(--ease), color .16s var(--ease);
}
.field:focus-within label,
.field.is-filled label { transform: translateY(-10px) scale(.75); color: rgba(255, 255, 255, .72); }
.field:focus-within label { color: var(--copper-on-dark); }
@supports selector(:has(*)) {
  .field:has(.input:not(:placeholder-shown)) label { transform: translateY(-10px) scale(.75); }
}
.field:has(.input:-webkit-autofill) label { transform: translateY(-10px) scale(.75); }
.opt-label { color: inherit; font-size: .8125em; font-weight: 400; opacity: .8; }

.input {
  display: block;
  width: 100%;
  height: 56px;
  min-height: 56px;
  padding: 24px 14px 7px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0;
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
  color: var(--white);
  caret-color: var(--copper-on-dark);
  font: inherit;
  font-size: 1.0625rem; /* 17 px – iOS zoomar inte in */
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .16s ease, background-color .16s ease;
}
.input::placeholder { color: transparent; opacity: 1; }
.field:focus-within .input::placeholder { color: rgba(255, 255, 255, .42); }
.input:focus {
  outline: none;
  padding: 23.5px 13.5px 6.5px;
  border: 1.5px solid var(--copper-on-dark);
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
}
.input[aria-invalid="true"] { border-color: var(--copper-on-dark); box-shadow: none; }
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  -webkit-box-shadow: 0 0 0 1000px #2B2A27 inset;
  transition: background-color 9999s ease-out;
}

textarea.input { height: auto; min-height: 56px; padding-top: 25px; resize: vertical; }
textarea.input:focus { padding-top: 24.5px; }

.hint { margin: 6px 0 0; color: rgba(255, 255, 255, .6); font-size: .8125rem; line-height: 1.4; }
.error { margin: 6px 0 0; color: var(--copper-on-dark); font-size: .8125rem; font-weight: 500; line-height: 1.4; }

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 10px;
  align-items: start;
}

/* Honeypot: dold för människor, synlig för enkla robotar */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Skicka: 60 px, 17 px/600, terrakotta; spinner när aria-busy="true" (app.js) */
.fstep-form [data-submit] {
  height: 60px;
  min-height: 60px;
  margin-top: 20px;
  padding: 0 20px;
  border-radius: 0;
  font-size: 1.0625rem;
  font-weight: 600;
}
.fstep-form [data-submit]:disabled { opacity: .85; }
.btn[aria-busy="true"]::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: tb-spin .7s linear infinite;
}
@keyframes tb-spin { to { transform: rotate(360deg); } }

.funnel-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, .8);
  font-size: .8125rem;
  line-height: 1.3;
}
.funnel-trust li { display: inline-flex; align-items: center; gap: 6px; }
.funnel-trust .i { width: 15px; height: 15px; color: var(--copper-on-dark); stroke-width: 2; }

.funnel-alert {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 180, 163, .55);
  border-radius: 0;
  background: rgba(184, 67, 31, .22);
  color: var(--white);
  font-size: .9375rem;
  line-height: 1.5;
}

.gdpr {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .6);
  font-size: .8125rem;
  line-height: 1.45;
}

.funnel-noscript { margin: 16px 0 0; font-size: .9375rem; }

/* ---------- Sektioner ---------- */
.section { padding-block: var(--section-y); }
/* Ljusa sektioner i följd: tunn linje i containerbredd i stället för ny bakgrund */
.section:not(.section--dark) + .section:not(.section--dark) { padding-top: 0; }
.section:not(.section--dark) + .section:not(.section--dark) > .container {
  padding-top: var(--section-y);
  border-top: 1px solid var(--line);
}

.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin-bottom: .4em; }
.section-head p { color: var(--muted); font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); line-height: 1.5; }

.section-cta { margin-top: clamp(40px, 5vw, 64px); }

/* Mörk sektion: Så går det till */
.section--dark {
  background: var(--graphite);
  color: var(--on-dark-muted);
}
.section--dark h2,
.section--dark h3 { color: var(--white); }
.section--dark :focus-visible { outline-color: var(--white); }

.steps {
  display: grid;
  list-style: none;
  border-top: 1px solid var(--on-dark-line);
}
.steps li {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--on-dark-line);
}
.step-num {
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
  font-family: var(--font);
  font-size: clamp(3.5rem, 2.6rem + 3.4vw, 5.5rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: 10px; font-size: 1.375rem; }
.steps p { color: var(--on-dark-muted); }
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; }
  .steps li {
    padding: 4px 40px 8px;
    border-bottom: 0;
    border-left: 1px solid var(--on-dark-line);
  }
  .steps li:first-child { padding-left: 0; border-left: 0; }
  .steps li:last-child { padding-right: 0; }
}

/* Tjänster: register i stället för kort */
.registry { border-top: 1px solid var(--line-strong); }

.registry .card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 8px;
  padding: 24px 0 22px;
  border-bottom: 1px solid var(--line);
  transition: background-color .2s var(--ease);
}
.reg-num {
  grid-column: 1;
  grid-row: 1;
  padding-top: .55em;
  color: var(--copper-text);
  font-family: var(--font);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
}
.registry h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 10px;
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.registry .card p { grid-column: 2; color: var(--text); font-size: 1rem; }
.registry .card-link { grid-column: 2; justify-self: start; }

/* hover: известняк темнее, линии остаются в ширину контейнера */
.registry .card::before {
  content: "";
  position: absolute;
  inset: -1px -12px 0;
  z-index: -1;
  transition: background-color .2s var(--ease);
}
@media (hover: hover) {
  .registry .card:hover::before { background: var(--surface-2); }
}

@media (min-width: 860px) {
  .registry .card {
    grid-template-columns: 80px minmax(0, 5fr) minmax(0, 6fr);
    column-gap: 32px;
    align-items: start;
    padding: 36px 0 34px;
  }
  .registry .card::before { inset: -1px -20px 0; }
  .reg-num { padding-top: .9em; }
  .registry h3 { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .registry .card p { grid-column: 3; grid-row: 1; }
  .registry .card-link { grid-column: 3; grid-row: 2; }
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 6px;
  color: var(--ink);
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
.card-link .i { width: 18px; height: 18px; color: var(--accent); transition: transform .2s var(--ease); }
.card-link:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
.card-link:hover .i { transform: translateX(3px); }
/* hela raden är klickbar */
.registry .card-link::after { content: ""; position: absolute; inset: 0; }
.registry .card:hover .card-link .i { transform: translateX(3px); }

/* Trygghet: faktaband med stora siffror */
.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 0 clamp(48px, 6vw, 88px);
  list-style: none;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.fact { padding: 22px 0 24px; }
.fact + .fact { border-top: 1px solid var(--line); }
.fact-cap { max-width: 26ch; }
.fact-num {
  display: block;
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(2.25rem, 1.75rem + 2.2vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  -webkit-hyphens: manual;
  hyphens: manual;
}
.fact-cap {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.4;
}
@media (min-width: 600px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 26px 24px 28px 0; }
  .fact + .fact { border-top: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .fact:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .facts { display: flex; }
  .facts .fact { flex: 1 1 auto; padding: 32px 32px 34px; border-top: 0; border-left: 1px solid var(--line); }
  .facts .fact:first-child { padding-left: 0; border-left: 0; }
  .facts .fact:last-child { padding-right: 0; }
}

.trust {
  display: grid;
  gap: 0 48px;
  list-style: none;
}
@media (min-width: 700px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.trust-item {
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
}
.trust-item h3 { margin-bottom: 8px; font-size: 1.125rem; }
.trust-item p { color: var(--text); font-size: 1rem; }

.rot-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--accent);
}
.rot-badge {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--copper);
  color: var(--copper-text);
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .1em;
}
.rot-line {
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.rot-link { font-size: .9375rem; }
@media (min-width: 700px) {
  .rot-callout { gap: 28px; }
  .rot-line { font-size: 1.375rem; max-width: 40em; }
}

/* Områden: typografiskt block */
.areas-head { margin-bottom: clamp(36px, 5vw, 56px); }
.areas-head h2 { max-width: 14ch; margin-bottom: 0; }
.areas-text { margin-top: 20px; max-width: 34rem; }
.areas-text p { font-size: 1.0625rem; }
.areas-text p:first-child { color: var(--text); font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); line-height: 1.5; }
@media (min-width: 960px) {
  .areas-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; }
  .areas-text { margin-top: 0; }
}

.area-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.area-list li {
  padding: 16px 12px 16px 16px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.area-list li:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
.area-extra span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-text);
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: 0;
}
@media (min-width: 700px) {
  .area-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .area-list li,
  .area-list li:nth-child(2n + 1) { padding: 18px 16px 18px 20px; border-left: 1px solid var(--line); }
  .area-list li:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .area-list .area-extra { grid-column: 1 / -1; }
}
@media (min-width: 1040px) {
  .area-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .area-list li,
  .area-list li:nth-child(2n + 1),
  .area-list li:nth-child(3n + 1) { padding-left: 24px; border-left: 1px solid var(--line); }
  .area-list li:nth-child(4n + 1) { padding-left: 0; border-left: 0; }
  .area-list .area-extra { grid-column: auto; }
}

/* Referenser – ”fotografiska” platshållare (inga stockfoton) */
.ph-img {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--steel);
  color: rgba(243, 239, 232, .42);
}
.ph-img--b { background: #252421; }
.ph-img--c { background: #2F2D2A; }
.ph-sil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ph-sil path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}
.ph-sil .ph-ground { stroke: var(--accent); }
.ph-img figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: rgba(243, 239, 232, .8);
  font-family: var(--font);
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.badge-demo {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 1;
  padding: 4px 8px 3px;
  border-radius: 1px;
  background: var(--limestone);
  color: var(--ink);
  font-family: var(--font);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ref-feature { display: grid; gap: 24px; }
.ref-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ref-gallery .ph-img:first-child { grid-column: 1 / -1; }
.ref-kicker {
  margin-bottom: 10px;
  color: var(--copper-text);
  font-family: var(--font);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ref-body h3 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.ref-body p:not(.ref-kicker) { color: var(--text); }

@media (min-width: 860px) {
  .ref-feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; }
  .ref-gallery { grid-template-columns: 2fr 1fr; }
  .ref-gallery .ph-img:first-child { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; align-self: stretch; }
  .ref-body { padding-bottom: 8px; }
}

.ref-grid {
  display: grid;
  gap: 36px;
  margin-top: clamp(44px, 6vw, 80px);
}
@media (min-width: 700px) { .ref-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

.ref-card-body { padding: 18px 0 0; }
.ref-card-body h3 { margin-bottom: 6px; font-weight: 500; }
.ref-card-body p:not(.ref-kicker) { color: var(--muted); font-size: .9375rem; }

/* FAQ */
@media (min-width: 960px) {
  .faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
}
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: block;
  padding: 20px 48px 20px 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
/* plustecken av två tunna linjer */
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  width: 16px;
  height: 1.5px;
  background: var(--accent);
  transition: transform .2s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--accent-strong); }
.faq-answer { padding: 0 8px 22px 0; color: var(--text); max-width: 42rem; }

/* ---------- Sidfot ---------- */
.site-footer {
  padding-block: clamp(64px, 8vw, 112px) 32px;
  border-top: 2px solid var(--accent);
  background: var(--footer-bg);
  color: var(--footer-text);
}
.site-footer h2 { color: var(--white); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--copper-light); }
.site-footer strong { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--white); }
.site-footer mark.ph { background: var(--ph-bg); color: var(--ph-text); }
.site-footer .btn-primary { color: var(--white); }
.site-footer .btn-light,
.site-footer .btn-light:hover { color: var(--ink); }

.footer-cta {
  display: grid;
  gap: 18px;
  padding-bottom: clamp(44px, 6vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-cta-title {
  max-width: 16ch;
  margin: 0;
  color: var(--white);
  font-family: var(--font);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.footer-cta-note { margin: 0; color: var(--footer-muted); font-size: .9375rem; }
.footer-cta .btn { justify-self: start; }
.footer-links--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.footer-links-full { grid-column: 1 / -1; margin-top: 4px; }
@media (max-width: 599px) {
  .site-footer .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .footer-col:not(.footer-col--firm) .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
}
@media (min-width: 860px) {
  .footer-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 48px; }
  .footer-cta-note { grid-column: 1; }
  .footer-cta .btn { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
  padding-top: clamp(40px, 5vw, 64px);
}
.footer-col--firm,
.footer-col--contact { grid-column: 1 / -1; }
@media (min-width: 960px) {
  .footer-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; }
  .footer-col--firm,
  .footer-col--contact { grid-column: auto; }
}

.footer-h {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: var(--white);
  font-family: var(--font);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-firm { margin: 0 0 12px; color: var(--white); font-family: var(--font); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }

.footer-links { display: grid; gap: 8px; list-style: none; color: var(--footer-text); font-size: .9375rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

.footer-lead { max-width: 32rem; color: var(--footer-muted); font-size: .9375rem; }

.contact-list { display: grid; gap: 0; margin: 16px 0 0; }
.contact-list div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.contact-list div:first-child { border-top: 0; padding-top: 0; }
.contact-list dt { color: var(--footer-muted); font-size: .875rem; }
.contact-list dd { margin: 0; color: var(--footer-text); font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.footer-legal {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: var(--footer-muted);
  font-size: .875rem;
  line-height: 1.6;
}
.footer-legal p { margin-bottom: 6px; }
.footer-legal a { color: var(--footer-text); }

.site-footer--compact { padding-block: 28px; }
.site-footer--compact .footer-legal { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- FAQ-bot ”Frågor?” ---------- */
.bot {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none; /* the wrapper must not block clicks on the page underneath */
}
.bot-toggle,
.bot-panel { pointer-events: auto; }

.bot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px 0 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background-color .2s ease;
}
.bot-toggle .i { width: 20px; height: 20px; }
.bot-toggle:hover { background: #000; }
.bot-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.bot-toggle.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
}

.bot-panel {
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 120px));
  max-height: min(560px, calc(100dvh - 120px));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.bot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 12px 14px 18px;
  background: var(--ink);
  color: var(--white);
}
.bot-title { margin: 0; color: var(--white); font-family: var(--font); font-size: 1.0625rem; font-weight: 700; }
.bot-sub { margin: 2px 0 0; color: var(--on-dark-muted); font-size: .8125rem; }
.bot-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -6px -2px 0 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--white);
  cursor: pointer;
}
.bot-close:hover { background: rgba(255, 255, 255, .1); }
.bot-close:focus-visible { outline-color: var(--white); }

.bot-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 14px 16px;
}
.bot-intro { margin: 0 0 10px; color: var(--muted); font-size: .875rem; }

.bot-q {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.bot-q:hover { border-color: var(--ink); background: var(--surface-2); }

.bot-bubble {
  margin: 0 0 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  line-height: 1.5;
}
.bot-bubble--user {
  margin-left: 18%;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
}
.bot-bubble--bot {
  margin-right: 6%;
  background: var(--surface-2);
  color: var(--text);
}
.bot-bubble--bot:focus { outline: none; }
.bot-bubble--bot p { margin: 0; }

.bot-cta { margin-top: 4px; }
.bot-cta.btn-primary { background: var(--ink); }
.bot-cta.btn-primary:hover { background: #000; }
.bot-more {
  display: block;
  min-height: 44px;
  margin: 6px auto 0;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
}
.bot-more:hover { color: var(--accent-strong); }

.bot-foot {
  margin: 0;
  padding: 12px 18px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}
.bot-foot a { font-weight: 600; }

@media (max-width: 599px) {
  /* room for the floating "Frågor?" button below the last footer line */
  .site-footer:not(.site-footer--compact) { padding-bottom: 88px; }
  .bot { right: 12px; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); align-items: flex-end; }
  .bot.is-open { left: 0; right: 0; bottom: 0; }
  .bot.is-open .bot-toggle { display: none; }
  .bot-panel {
    width: 100%;
    max-height: 78vh;
    max-height: 78dvh;
    border-bottom: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

/* ---------- Tacksidan ---------- */
.tack-main { padding-block: clamp(48px, 8vw, 112px); }
.tack-card {
  max-width: 600px;
  margin-inline: auto;
  padding-top: clamp(28px, 5vw, 40px);
  border-top: 1px solid var(--accent);
}
.tack-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border: 1px solid var(--copper);
  border-radius: 50%;
  color: var(--copper-text);
}
.tack-icon .i { width: 26px; height: 26px; stroke-width: 1.8; }
.tack-card h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem); letter-spacing: -0.02em; }
.tack-lead { color: var(--ink); font-size: 1.1875rem; }
.tack-card h2 { margin-top: 32px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-text); }
.tack-steps { display: grid; gap: 0; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: tack; border-top: 1px solid var(--line); }
.tack-steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  counter-increment: tack;
}
.tack-steps li::before {
  content: "0" counter(tack);
  color: var(--accent-strong);
  font-family: var(--font);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- Integritetspolicy ---------- */
.prose-main { padding-block: clamp(48px, 7vw, 104px); }
.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -0.02em; margin-bottom: 32px; }
.prose ol { display: grid; gap: 14px; padding-left: 1.6em; }
.prose li { padding-left: 6px; }
.prose li::marker { color: var(--accent-strong); font-family: var(--font); font-weight: 600; font-variant-numeric: tabular-nums; }
.prose .back { margin-top: 40px; }

.tack-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tack-actions .btn { flex: 1 1 200px; }

/* ---------- 404 ---------- */
.notfound { padding-block: 96px; }

/* ---------- Demo-meddelande (tel:-länk utan nummer) ---------- */
.demo-toast {
  position: fixed;
  left: 50%;
  top: calc(var(--header-h) + 12px);
  z-index: 80;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  font-size: .9375rem;
  font-weight: 600;
  transform: translateX(-50%);
}

.funnel-back:disabled { opacity: .5; cursor: default; }

/* ---------- Rörelse: sektioner tonar in (site.js lägger till .js-reveal) ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .2s ease-out, transform .2s ease-out;
}
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

@media print {
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* --- Brand logo (real artwork) --- */
.logo-img { display: block; height: 44px; width: auto; }
.footer-logo { display: block; height: 40px; width: auto; margin-bottom: 20px; }
@media (max-width: 720px) { .logo-img { height: 34px; } }

/* --- Real photography layer --- */
.hero-art { background: var(--steel); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 42%; filter: saturate(.8) contrast(1.05); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,27,25,.08) 0%, rgba(28,27,25,.05) 35%, rgba(28,27,25,.62) 100%); pointer-events: none; }
.photo-note { position: absolute; right: 14px; bottom: 12px; z-index: 2; max-width: 150px; font-size: 10px; line-height: 1.35; letter-spacing: 0; text-align: right; color: rgba(243,239,232,.9); opacity: .6; }
.ph-img.has-photo { position: relative; overflow: hidden; }
.ph-img.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .6s ease; }
.ph-img.has-photo:hover img { transform: scale(1.03); }
.ph-img.has-photo figcaption { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,239,232,.85); text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.ph-img.has-photo .badge-demo { z-index: 3; }
h1, h2, h3, .hero h1 { font-family: var(--font); font-variation-settings: "wdth" 92, "opsz" 96; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .ph-img.has-photo img { transition: none; } }

/* =====================================================================
   v4 (2026-10-13): "Frågor?", tidslinje i "Så går det till", sidfot
   ===================================================================== */
/* 8. "Frågor?": 24 px från hörnet, 48 px hög (ikon + text); mobil: rund ikonknapp 56 px */
.bot { right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.bot-toggle { height: 48px; min-height: 48px; padding: 0 20px 0 16px; gap: 10px; }
@media (max-width: 599px) {
  .bot { left: auto; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .bot.is-open { left: 0; right: 0; bottom: 0; }
  .bot-toggle {
    justify-content: center;
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    border-radius: 50%;
  }
  .bot-toggle .i { width: 24px; height: 24px; }
  .bot-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* 10. "Så går det till": tidsangivelse + tunn kopparlinje mellan numren */
.step-when {
  display: block;
  margin: 0 0 12px;
  color: var(--copper-on-dark);
  font-family: var(--font);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.steps .step-num { display: flex; align-items: center; gap: 20px; }
.steps .step-num::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--copper-on-dark); opacity: .6; }
@media (min-width: 820px) {
  .steps li { border-left: 0; }
  .steps li:not(:last-child) .step-num::after { margin-right: -64px; }
  .steps li:last-child .step-num::after { background: linear-gradient(90deg, var(--copper-on-dark), rgba(192, 138, 90, 0)); }
}

/* 12. Sidfot: kolumner toppjusterade, alla kolumnrubriker lika (h2 = p) */
.footer-cols { align-items: start; }
.footer-h { font-variation-settings: normal; }
.footer-logo { height: 40px; width: auto; }
