/* Linus Klimatkontroll – stilmall.
   Idé: luft syns inte, vi mäter den. Mörka "instrument"-ytor med levande luftflöde (canvas),
   ljusa läsytor, logans orange som signalfärg. Typsnitt: Familjen Grotesk (rubrik/text, svensk grotesk), Martian Mono (mätvärden). */
@font-face { font-family: "Familjen Grotesk"; src: url("../fonts/familjen-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Familjen Grotesk"; src: url("../fonts/familjen-grotesk-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Martian"; src: url("../fonts/martian-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: "Martian"; src: url("../fonts/martian-mono-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F; }

:root {
  /* Tema "kanalstål": djup petrolblå + sval luftvit, logans orange som enda signalfärg */
  --night: #0b1a20; --night-2: #12262e; --night-3: #1c343d; --night-line: rgba(233, 240, 239, .13);
  --bone: #edf1f0; --white: #fbfcfc; --line: #d2dbdb; --line-2: #b2c0c1;
  --ink: #0c1a1f; --ink-2: #48585d; --ink-3: #7b8a8e;
  --cream: #e6eeed; --cream-2: #9db0b3;
  --brand: #ff6b00; --brand-2: #ff8a33; --brand-ink: #b34700;
  --sans: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian", ui-monospace, Consolas, monospace;
  --wrap: 1280px; --gut: clamp(20px, 4vw, 48px);
  --r: 14px; --r-sm: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bone); color: var(--ink); font: 400 1.125rem/1.62 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.04; letter-spacing: -.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); font-weight: 500; }
h3 { font-size: 1.3rem; letter-spacing: -.02em; }
h1 em, h2 em { font-style: normal; color: var(--brand); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; }
sub { font-size: .7em; vertical-align: -.2em; line-height: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 860px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Etiketter i mono, med en liten "mätpunkt" */
.kicker, .label { display: flex; align-items: center; gap: 10px; font: 500 .7rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 1.1rem; }
.kicker::before { content: ""; width: 14px; height: 2px; background: var(--brand); flex: none; }
.label::before { display: none; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.6; color: var(--ink-2); max-width: 58ch; font-weight: 300; }
.muted { color: var(--ink-2); }
.arw { width: 1em; height: 1em; vertical-align: -.12em; margin-left: .4em; transition: transform .25s var(--ease); flex: none; }
a:hover .arw, button:hover .arw { transform: translateX(4px); }

/* Knappar: rundade "reglage" */
.btn { display: inline-flex; align-items: center; gap: .15em; background: var(--brand); color: var(--night); font: 600 .98rem/1 var(--sans); letter-spacing: -.01em; padding: 1em 1.45em; border: 0; border-radius: 999px; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { background: var(--brand-2); color: var(--night); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .75em 1.15em; font-size: .9rem; }
.btn-lg { padding: 1.15em 1.7em; font-size: 1.02rem; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn-ghost:hover { background: var(--cream); color: var(--night); box-shadow: none; }
.text-link { display: inline-flex; align-items: center; font-weight: 600; text-decoration: none; color: inherit; border-bottom: 1px solid var(--brand); padding-bottom: 3px; }
.text-link:hover { color: var(--brand-ink); }
.phone-link { font: 500 .95rem var(--mono); text-decoration: none; color: inherit; white-space: nowrap; letter-spacing: -.02em; }
.phone-link span { font: 400 .95rem var(--sans); opacity: .65; margin-right: 6px; letter-spacing: 0; }

/* ---------- Sidhuvud ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(11, 26, 32, .93); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--night-line); color: var(--cream); }
.head-inner { display: flex; align-items: center; gap: 28px; height: 78px; }
.brand img { height: 46px; width: auto; }
.nav { margin-left: auto; }
.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; margin: 0; }
.nav-list > li > a { display: block; padding: 9px 13px; font-size: .92rem; color: var(--cream); text-decoration: none; border-radius: 999px; transition: background .2s; }
.nav-list > li > a:hover { background: rgba(233, 240, 239, .09); color: #fff; }
.nav-list > li > a[aria-current] { background: rgba(255, 107, 0, .16); color: var(--brand-2); }
.has-sub > a::after { content: ""; display: inline-block; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin: 0 0 3px 8px; opacity: .6; }
.sub { position: absolute; top: calc(100% + 10px); left: 0; min-width: 290px; list-style: none; margin: 0; padding: 8px; background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); }
.sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub li { margin: 0; }
.sub a { display: block; padding: 10px 14px; color: var(--cream); text-decoration: none; border-radius: var(--r-sm); font-size: .93rem; }
.sub a:hover { background: rgba(233, 240, 239, .08); color: #fff; }
.head-cta { display: flex; align-items: center; gap: 20px; }
.head-phone { font: 500 .85rem var(--mono); color: var(--cream); text-decoration: none; white-space: nowrap; }
.head-phone:hover { color: var(--brand-2); }
.nav-toggle { display: none; }

.crumbs-bar { background: var(--night); }
.crumbs { font: 400 .68rem var(--mono); color: var(--cream-2); padding-top: 22px; }
.crumbs a { color: var(--cream-2); }
.crumbs a:hover { color: var(--brand-2); }

/* ---------- Mörka ytor med luftflöde ---------- */
.hero, .page-hero, .section.dark, .site-foot, .cta-band { position: relative; isolation: isolate; }
.flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero, .page-hero, .section.dark { background: var(--night); color: var(--cream); }
.hero h1, .hero h2, .page-hero h1, .page-hero h2, .section.dark h2, .section.dark h3 { color: #f5f9f8; }
.hero .lead, .page-hero .lead, .section.dark .lead, .section.dark .muted { color: var(--cream-2); }
.hero .kicker, .page-hero .kicker, .section.dark .kicker { color: var(--brand-2); }
.page-hero a:not(.btn), .section.dark a:not(.btn) { color: var(--brand-2); }
.page-hero .form-note { color: var(--cream-2); }

/* Startsidans hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 0; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, var(--night)); z-index: -1; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero h1 { margin: 0 0 .5em; }
.h1-big { display: block; font-size: clamp(2.7rem, 6.3vw, 6.1rem); font-weight: 400; line-height: .95; letter-spacing: -.055em; }
.h1-big em { font-weight: 600; }
.h1-sub { display: block; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 400; letter-spacing: -.01em; line-height: 1.45; color: var(--cream); margin-top: .9em; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-top: 32px; }
.page-hero .hero-actions .phone-link, .hero .hero-actions .phone-link { color: var(--cream); }

/* Instrumentpanel */
.meter { background: rgba(18, 36, 43, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--night-line); border-radius: var(--r); padding: 18px 20px 20px; font-family: var(--mono); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.meter-top { display: flex; justify-content: space-between; align-items: center; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-2); padding-bottom: 14px; border-bottom: 1px solid var(--night-line); }
.led { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-2); }
.led::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px 2px rgba(255, 107, 0, .7); animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.meter dl { margin: 0; }
.meter dl > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: 14px 0 12px; border-bottom: 1px dashed var(--night-line); }
.meter dt { font-size: .62rem; letter-spacing: .07em; text-transform: uppercase; color: var(--cream-2); }
.meter dd { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 300; color: #f5f9f8; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.meter dd small { font-size: .7rem; color: var(--cream-2); margin-left: 6px; letter-spacing: 0; font-weight: 400; }
.meter .spark { grid-column: 1 / -1; width: 100%; height: 34px; margin-top: 6px; }
.meter .spark polyline { fill: none; stroke: var(--brand); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.meter-foot { font-size: .62rem; color: var(--cream-2); margin: 14px 0 0; letter-spacing: .02em; }

.clients { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; margin-top: clamp(56px, 8vw, 104px); padding: 26px 0 30px; border-top: 1px solid var(--night-line); font-size: 1rem; color: var(--cream-2); }
.clients b { font: 500 .66rem var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--cream-2); opacity: .8; margin-right: 6px; }
.clients span { font-weight: 500; letter-spacing: -.02em; color: var(--cream); opacity: .85; }

/* ---------- Sektioner ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.section.alt { background: var(--white); }
.section.dark { overflow: hidden; }
.section.orange { background: var(--brand); color: var(--night); }
.section.orange .kicker { color: var(--night); }
.section.orange .kicker::before { background: var(--night); }
.section.orange .lead, .section.orange .muted { color: #3b1d0d; }
.section.orange a:not(.btn) { color: var(--night); }
.sec-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 72px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head h2 { margin: 0; }
.sec-head p:not(.kicker) { margin: 0; color: var(--ink-2); font-weight: 300; font-size: 1.1rem; }
.dark .sec-head p:not(.kicker) { color: var(--cream-2); }

/* Tjänster: bento med linjeikoner */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(250px, auto); gap: 14px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; color: var(--ink); text-decoration: none; transition: border-color .3s, transform .35s var(--ease), box-shadow .35s; }
.tile:hover { color: var(--ink); border-color: var(--brand); }
.tile .ico { width: 54px; height: 54px; color: var(--brand-ink); margin-bottom: auto; }
.tile h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin: 34px 0 .35em; }
.tile p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.tile:not(.feature) .go { display: none; }
.tile .go { position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: .3s var(--ease); }
.tile .go .arw { margin: 0; }
.tile:hover .go { background: var(--brand); border-color: var(--brand); transform: rotate(-45deg); }
.tile.feature { grid-row: span 2; background: var(--night); color: var(--cream); border-color: var(--night); padding: 0; }
.tile.feature img { width: 100%; height: 56%; object-fit: cover; flex: none; filter: saturate(.9) contrast(1.05); transition: transform .8s var(--ease); }
.tile.feature:hover img { transform: scale(1.04); }
.tile.feature .tile-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.tile.feature .ico { display: none; }
.tile.feature h3 { color: #f5f9f8; font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-top: 0; }
.tile.feature p { color: var(--cream-2); }
.tile.feature .go { border-color: transparent; background: rgba(11, 26, 32, .65); color: var(--cream); }
.tile.feature:hover .go { color: var(--night); }
.tile .ico circle, .tile .ico path, .tile .ico line, .tile .ico polyline { transition: transform .6s var(--ease); transform-origin: center; transform-box: fill-box; }
.tile:hover .ico .spin { transform: rotate(90deg); }
.tile:hover .ico .drift { transform: translate(3px, -3px); }
.tile:hover .ico .slide { transform: translateX(6px); }
.tile:hover .ico .slide2 { transform: translateX(-6px); }

/* OVK-räknaren */
.calc-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.calc { background: var(--night); color: var(--cream); border-radius: calc(var(--r) + 6px); padding: clamp(22px, 3vw, 36px); box-shadow: 0 50px 90px -40px rgba(60, 20, 0, .7); }
.calc-in { display: grid; grid-template-columns: 1fr; gap: 14px; }
.content-grid > *, .calc-wrap > *, .two-col > *, .calc-in label, .calc select { min-width: 0; } /* långa val i listorna får inte trycka ut sidan på mobil */
.calc-in label { display: flex; flex-direction: column; gap: 8px; font: 500 .62rem var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--cream-2); }
.calc-in label:first-child { grid-column: 1 / -1; }
.calc select, .calc input { font: 400 1rem var(--sans); color: #f5f9f8; background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-sm); padding: 12px 14px; min-height: 50px; width: 100%; color-scheme: dark; }
.calc select:focus, .calc input:focus { outline: 2px solid var(--brand); outline-offset: 0; }
.calc-out { display: block; margin-top: 22px; padding: 22px 0 4px; border-top: 1px dashed var(--night-line); font-family: var(--mono); }
.calc-k { display: block; font-size: .62rem; letter-spacing: .07em; text-transform: uppercase; color: var(--cream-2); }
.calc-v { display: block; font: 400 clamp(2.2rem, 4.8vw, 3.6rem)/1.05 var(--sans); letter-spacing: -.05em; color: #f5f9f8; line-height: 1.1; margin: 6px 0 10px; }
.calc-v.warn { color: var(--brand-2); }
.calc-sub { display: block; font: 400 .95rem/1.55 var(--sans); color: var(--cream-2); }
.calc-act { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 22px; }
.calc .calc-act a:not(.btn) { color: var(--cream); font-size: .92rem; }
.calc .calc-act a:not(.btn):hover { color: var(--brand-2); }
.prose .calc { margin: 1.5em 0 2em; }

/* Vem frågar? */
.asks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.asks a { display: flex; flex-direction: column; padding: 28px 26px 30px 0; color: var(--ink); text-decoration: none; min-height: 300px; position: relative; }
.asks a + a { padding-left: 26px; border-left: 1px solid var(--line); }
.asks q { display: block; font-size: clamp(1.2rem, 1.9vw, 1.55rem); font-weight: 300; line-height: 1.3; letter-spacing: -.025em; quotes: "”" "”"; margin-bottom: auto; transition: color .25s; }
.asks q::before { content: open-quote; color: var(--brand); font-weight: 600; margin-right: 2px; }
.asks h3 { font-size: 1.05rem; margin: 34px 0 .3em; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.asks p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.asks a:hover q { color: var(--brand-ink); }
.asks .arw { color: var(--brand-ink); }

/* Arbetsgång: en kanal med fyra mätpunkter */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 14px, transparent 14px 26px); background-size: 26px 2px; animation: duct 1.6s linear infinite; opacity: .8; }
@keyframes duct { to { background-position: 26px 0; } }
.steps li { margin: 0; padding: 0 28px 0 0; position: relative; counter-increment: s; }
.steps li::before { content: "0" counter(s); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--night); border: 1px solid var(--brand); color: var(--brand-2); font: 500 .75rem var(--mono); margin-bottom: 26px; position: relative; }
.steps h3 { font-size: 1.2rem; margin-bottom: .45em; }
.steps p { color: var(--cream-2); font-size: .96rem; margin: 0; }
.section:not(.dark) .steps p { color: var(--ink-2); }

/* Om oss-sektionen */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: var(--r); aspect-ratio: 4 / 4.6; object-fit: cover; width: 100%; }
.pull { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 300; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 .9em; }
.pull b { font-weight: 600; }

/* Referensvägg */
.names { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0 0 40px; padding: 0; list-style: none; font-size: clamp(1.6rem, 4vw, 3.3rem); font-weight: 300; letter-spacing: -.045em; line-height: 1.15; }
.names li { margin: 0; }
.names li:not(:last-child)::after { content: "/"; color: var(--brand); font-weight: 200; margin: 0 .35em; }
.names small { font: 500 .62rem var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); vertical-align: super; margin-left: 4px; }

/* Uppdrag (startsidan) */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: clamp(48px, 6vw, 80px) 0 28px; }
.case { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 26px 28px; }
.case .tags { font: 500 .6rem/1.5 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 16px; }
.case h3 { font-size: 1.15rem; margin-bottom: .4em; }
.case p:last-child { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* Kort arbetsgång bredvid formuläret */
.mini-steps { list-style: none; padding: 0; margin: 36px 0 0 14px; counter-reset: s; border-left: 2px dashed var(--brand); }
.mini-steps li { counter-increment: s; position: relative; padding: 0 0 20px 30px; margin: 0; }
.mini-steps li:last-child { padding-bottom: 0; }
.mini-steps li::before { content: "0" counter(s); position: absolute; left: -15px; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--bone); border: 1px solid var(--brand); display: grid; place-items: center; font: 500 .6rem var(--mono); color: var(--brand-ink); }
.mini-steps b { display: block; font-weight: 600; }
.mini-steps span { color: var(--ink-2); font-size: .94rem; }

/* Tabeller */
.tbl-wrap { overflow-x: auto; }
.tbl-wrap + p { margin-top: 24px; }
table.data { width: 100%; border-collapse: collapse; font-size: .96rem; }
.data caption { text-align: left; font: 500 .66rem var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 14px; }
.data th, .data td { text-align: left; padding: 15px 16px 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data thead th { white-space: nowrap; font: 500 .64rem var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--ink); }
.data td.c, .data th.c { text-align: center; padding-left: 8px; padding-right: 8px; }
.data .short { display: none; }
.data .yes { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(255, 107, 0, .15); }
.data .no { color: var(--line-2); }
.data tbody th { font-weight: 600; }
.data tbody tr { transition: background .2s; }
.data tbody tr:hover { background: rgba(255, 107, 0, .05); }
.data small { display: block; font-weight: 400; margin-top: 2px; color: var(--ink-2); font-size: .85rem; }

/* ---------- Innehållssidor ---------- */
.page-hero { padding: clamp(44px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.page-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-weight: 400; letter-spacing: -.05em; }
.page-hero .figure img { aspect-ratio: 4 / 3.3; }
.figure { margin: 0; position: relative; }
.figure img { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figure figcaption { position: absolute; left: 14px; bottom: 14px; font: 500 .62rem/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--cream); background: rgba(11, 26, 32, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 7px 10px; border-radius: 999px; }
.facts { margin: 0; background: rgba(18, 36, 43, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--night-line); border-radius: var(--r); padding: 8px 22px; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--night-line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font: 500 .6rem/2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--cream-2); }
.facts dd { margin: 0; color: #f5f9f8; line-height: 1.5; font-size: .98rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(40px, 6vw, 100px); }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.6rem, 2.7vw, 2.15rem); margin-top: 2.1em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose ul li::marker { color: var(--brand); }
.prose ol { counter-reset: o; list-style: none; padding: 0; }
.prose ol > li { counter-increment: o; position: relative; padding-left: 46px; margin-bottom: 1em; }
.prose ol > li::before { content: counter(o); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--brand); color: var(--brand-ink); display: grid; place-items: center; font: 500 .7rem var(--mono); }
.prose .figure { margin: 2em 0; }
.prose .data { margin: 1em 0 1.5em; }
.note { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--brand); padding: 20px 24px; margin: 1.6em 0; border-radius: var(--r-sm); }
.note p:last-child { margin: 0; }
.side { position: sticky; top: 110px; align-self: start; display: grid; gap: 16px; }
.side-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.side-box.cta { background: var(--night); color: var(--cream); border-color: var(--night); }
.side-box.cta h3 { color: #f5f9f8; }
.side-box.cta p { color: var(--cream-2); }
.side-box.cta .phone-link { color: var(--cream); }
.side-box h3 { font-size: 1.2rem; }
.side-box p { font-size: .95rem; color: var(--ink-2); }
.side-box .btn { width: 100%; justify-content: center; }
.side-box .phone-link { display: block; margin-top: 14px; text-align: center; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li { border-top: 1px solid var(--line); margin: 0; }
.side-box li a { display: flex; justify-content: space-between; padding: 10px 0; text-decoration: none; color: var(--ink); font-size: .95rem; }
.side-box li a::after { content: "→"; font-family: system-ui, sans-serif; color: var(--line-2); transition: transform .2s, color .2s; }
.side-box li a:hover, .side-box li a[aria-current] { color: var(--brand-ink); }
.side-box li a:hover::after { color: var(--brand); transform: translateX(3px); }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 34px; position: relative; margin-bottom: .75em; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 107, 0, .14); }
.checks li::after { content: ""; position: absolute; left: 6px; top: calc(.3em + 6px); width: 8px; height: 4px; border: solid var(--brand-ink); border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg); }

/* FAQ */
.faq-list { margin-top: 1.2em; display: grid; gap: 10px; }
details.faq { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color .2s; }
details.faq[open] { border-color: var(--line-2); }
details.faq summary { cursor: pointer; list-style: none; padding: 20px 60px 20px 22px; font-weight: 600; font-size: 1.04rem; position: relative; letter-spacing: -.01em; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: linear-gradient(var(--ink), var(--ink)) center / 11px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 11px no-repeat, rgba(255, 107, 0, .12); transition: transform .3s var(--ease), background-color .2s; }
details.faq[open] summary::after { transform: rotate(135deg); background-color: var(--brand); }
details.faq > div { padding: 0 22px 20px; color: var(--ink-2); max-width: 68ch; }
details.faq > div p:last-child { margin: 0; }

/* Länkkort */
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.link-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 24px 26px; text-decoration: none; color: var(--ink); transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; }
.link-card:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(10, 35, 45, .4); }
.link-card .label { margin-bottom: .7rem; }
.link-card h3 { font-size: 1.2rem; margin-bottom: .35em; }
.link-card p { color: var(--ink-2); font-size: .94rem; margin: 0; }
.section.alt .link-card { background: var(--bone); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery .figure img { aspect-ratio: 1; }

/* ---------- Formulär ---------- */
.form-section { background: var(--night); color: var(--cream); }
.form-section h2 { color: #f5f9f8; }
.form-section .kicker { color: var(--brand-2); }
.form-section .lead { color: var(--cream-2); }
.form-section .two-col, #offert .two-col { align-items: start; }
.lead-form { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); padding: clamp(22px, 3.5vw, 40px); }
.form-section .lead-form { border-color: var(--white); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .9); }
.lead-form fieldset { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.lead-form legend { font-weight: 600; font-size: 1.08rem; margin-bottom: 16px; padding: 0; display: flex; align-items: center; gap: 12px; letter-spacing: -.015em; }
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--brand); color: var(--night); border-radius: 50%; font: 500 .68rem var(--mono); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.span2 { grid-column: 1 / -1; }
.lead-form label { display: flex; flex-direction: column; gap: 7px; font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.lead-form input:not([type=checkbox]), .lead-form select, .lead-form textarea { font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--bone); border: 1px solid transparent; border-radius: var(--r-sm); padding: 12px 14px; width: 100%; min-height: 50px; transition: border-color .2s, background .2s; }
.lead-form textarea { resize: vertical; }
.lead-form input:hover, .lead-form select:hover, .lead-form textarea:hover { border-color: var(--line-2); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; background: var(--white); }
.lead-form ::placeholder { color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 500; font-size: .9rem; cursor: pointer; transition: .2s; }
.chip:hover span { border-color: var(--ink-3); }
.chip input:checked + span { background: var(--night); border-color: var(--night); color: var(--cream); }
.chip input:checked + span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-right: 8px; vertical-align: 1px; }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.form-foot { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 26px; }
.form-foot .btn { justify-self: start; }
.form-note { font-size: .84rem; color: var(--ink-2); margin: 0; }
.form-status:empty { display: none; }
.form-status { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--r-sm); background: var(--bone); font-weight: 500; }
.form-status.ok { background: #e3eed9; color: #24401a; }
.form-status.err { background: #f7ddd5; color: #6b1d0c; }
.lead-form.compact { margin: 1.4em 0; }
.lead-form.compact .btn { margin-top: 18px; }
.lead-form.compact .form-note { margin-top: 12px; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-list li { display: grid; grid-template-columns: 100px 1fr; padding: 16px 0; border-top: 1px dashed var(--night-line); margin: 0; align-items: baseline; }
.contact-list span { font: 500 .6rem var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--cream-2); }
.contact-list a { color: #f5f9f8 !important; font-weight: 500; text-decoration: none; }
.contact-list a:hover { color: var(--brand-2) !important; }
.section:not(.form-section):not(.dark) .contact-list li { border-color: var(--line); }
.section:not(.form-section):not(.dark) .contact-list span { color: var(--ink-2); }
.section:not(.form-section):not(.dark) .contact-list a { color: var(--ink) !important; }

/* ---------- CTA-band ---------- */
.cta-band { background: var(--brand); color: var(--night); padding: clamp(64px, 8vw, 110px) 0; overflow: hidden; }
.cta-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; }
.cta-band h2 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 400; letter-spacing: -.045em; }
.cta-band .kicker { color: var(--night); }
.cta-band .kicker::before { background: var(--night); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: flex-end; }
.cta-band .btn { background: var(--night); color: var(--cream); }
.cta-band .phone-link span { opacity: 1; }
.cta-band .btn:hover { background: #000; color: #fff; }

/* ---------- Sidfot ---------- */
.site-foot { border-top: 1px solid var(--night-line); background: var(--night); color: var(--cream-2); padding: clamp(64px, 8vw, 104px) 0 0; font-size: .94rem; overflow: hidden; }
.foot-call { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding-bottom: clamp(48px, 6vw, 80px); background: linear-gradient(var(--night-line), var(--night-line)) no-repeat center bottom / calc(100% - 2 * var(--gut)) 1px; margin-bottom: 56px; }
.foot-call p { margin: 0 0 10px; font: 500 .64rem var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.foot-call a.big { display: block; font-size: clamp(2.6rem, 8.5vw, 7.6rem); font-weight: 300; letter-spacing: -.06em; line-height: .95; color: var(--cream); text-decoration: none; transition: color .3s; }
.foot-call a.big:hover { color: var(--brand); }
.foot-call .mail { color: var(--cream); font-size: 1.05rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 40px; }
.foot-brand img { height: 50px; width: auto; margin-bottom: 20px; }
.foot-h { font: 500 .62rem var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--brand-2); margin: 0 0 16px; }
.foot-h:not(:first-child) { margin-top: 28px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 0 0 9px; }
.site-foot ul.inline { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.site-foot a { color: var(--cream); text-decoration: none; }
.site-foot a:hover { color: var(--brand-2); }
.foot-contact { font: 400 .8rem/2 var(--mono); }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(var(--night-line), var(--night-line)) no-repeat center top / calc(100% - 2 * var(--gut)) 1px; margin-top: 64px; padding-top: 22px; padding-bottom: 26px; font: 400 .68rem var(--mono); color: #7d9095; }
.mobile-bar { display: none; }

/* Mjuk inglidning när sektioner kommer in i bild (bara med JS) */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsivt ---------- */
@media (max-width: 1140px) {
  .head-phone { display: none; }
  .nav-list > li > a { padding: 9px 10px; }
}
@media (max-width: 960px) {
  .cases { grid-template-columns: 1fr; }
  .site-head { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--night); } /* backdrop-filter skulle låsa den fasta menyn inuti sidhuvudet */
  .head-inner { height: 66px; gap: 12px; }
  .brand img { height: 36px; }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; width: 46px; height: 46px; background: none; border: 0; cursor: pointer; order: 3; }
  .nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after { display: block; width: 22px; height: 1.5px; background: var(--cream); position: relative; transition: .25s; }
  .nav-toggle span:first-child::before, .nav-toggle span:first-child::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span:first-child::before { top: -7px; }
  .nav-toggle span:first-child::after { top: 7px; }
  .nav-toggle[aria-expanded=true] span:first-child { background: transparent; }
  .nav-toggle[aria-expanded=true] span:first-child::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded=true] span:first-child::after { top: 0; transform: rotate(-45deg); }
  .head-cta { margin-left: auto; }
  .nav { position: fixed; inset: 66px 0 0; background: var(--night); overflow-y: auto; padding: 16px var(--gut) 110px; display: none; margin: 0; }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--night-line); }
  .nav-list > li > a { padding: 18px 0; font-size: 1.35rem; font-weight: 300; letter-spacing: -.02em; border-radius: 0; }
  .nav-list > li > a:hover, .nav-list > li > a[aria-current] { background: none; }
  .has-sub > a::after { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 14px; min-width: 0; }
  .sub a { padding: 8px 0; color: var(--cream-2); }
  .hero-grid, .page-hero-grid, .two-col, .content-grid, .cta-inner, .sec-head, .calc-wrap, .about, .foot-call { grid-template-columns: 1fr; }
  .side { position: static; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.feature { grid-column: 1 / -1; grid-row: auto; }
  .tile.feature img { height: 280px; }
  .asks { grid-template-columns: 1fr 1fr; }
  .asks a:nth-child(3) { padding-left: 0; border-left: 0; }
  .asks a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .asks a { min-height: 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .steps::before { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-actions { justify-content: flex-start; }
  .hero .meter { max-width: 460px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; padding-bottom: 66px; }
  .head-cta .btn { display: none; }
  .bento, .asks, .steps, .grid2, .foot-grid, .calc-in { grid-template-columns: 1fr; }
  .asks a, .asks a + a { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .asks a:first-child { border-top: 0; }
  .tile { min-height: 0; } .tile h3 { margin-top: 18px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .clients { gap: 10px 22px; font-size: .9rem; }
  .data .full { display: none; }
  .data .short { display: inline; }
  .data th, .data td { padding-right: 8px; }
  .names li:not(:last-child)::after { margin: 0 .25em; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px; background: rgba(11, 26, 32, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--night-line); }
  .mobile-bar a { padding: 14px 10px; text-align: center; color: var(--cream); text-decoration: none; font-weight: 600; font-size: .92rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--night-line); }
  .mobile-bar a.go { background: var(--brand); color: var(--night); box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .site-head, .mobile-bar, .cta-band, .lead-form, .site-foot, .flow, .meter { display: none; } .hero, .page-hero { background: none; color: #000; } }
.h3-size { font-size: 1.3rem; margin-top: 2em; }
