/* Nordic Aero Vision – shared design system for the public website.
   Generated pages live in the repository root (Swedish) and /en/ (English).
   Build: python scripts/build_site.py */

@font-face { font-family: Oswald; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/oswald-latin.woff2) format("woff2"); 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: Oswald; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/oswald-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Geist; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/geist-latin.woff2) format("woff2"); 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: Geist; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/geist-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Fallback"; src: local(Arial); ascent-override: 95.94%; descent-override: 28.16%; line-gap-override: 0%; size-adjust: 104.76%; }
@font-face { font-family: "Oswald Fallback"; src: local("Arial Narrow"), local(Arial); size-adjust: 81%; ascent-override: 150%; descent-override: 36%; }

:root {
  --navy: #101D2B;
  --ink: #080D12;
  --white: #FFFFFF;
  --light: #F5F7F9;
  --text: #334155;
  --muted: #5B6778;
  --accent: #10B3EE;
  --accent-dark: #0B8FC0;
  --link: #0A6A93;
  --line: #E3E8EE;
  --line-dark: rgba(255, 255, 255, .14);
  --on-dark: #E7EDF3;
  --on-dark-muted: #A9B6C4;
  --error: #B42318;
  --success: #067647;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 29, 43, .05), 0 6px 20px rgba(16, 29, 43, .05);
  --shadow-lg: 0 2px 4px rgba(16, 29, 43, .06), 0 18px 44px rgba(16, 29, 43, .09);
  --font-display: Oswald, "Oswald Fallback", "Arial Narrow", Arial, sans-serif;
  --font-body: Geist, "Geist Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: 24px;
  --section: 56px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .6, .2, 1);
  --t: 200ms;
}
@media (min-width: 768px) { :root { --gutter: 48px; --section: 80px; --header-h: 76px; } }
@media (min-width: 1200px) { :root { --gutter: 64px; --section: 96px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
@media (min-width: 1024px) { body { font-size: 18px; } }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--t) var(--ease); }
a:hover { color: var(--navy); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--navy); font-weight: 650; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--white); color: var(--navy); border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-lg); }
.skip:focus { top: 12px; }
.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; }

/* ---------- Typography ---------- */
h1, h2, .display { font-family: var(--font-display); font-weight: 600; color: var(--navy); letter-spacing: .005em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7.4vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
h3, h4 { font-family: var(--font-body); font-weight: 650; color: var(--navy); line-height: 1.3; margin: 0; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.on-dark .eyebrow { color: var(--accent); }
.lead { font-size: 1.12rem; line-height: 1.65; color: var(--text); max-width: 62ch; }
@media (min-width: 1024px) { .lead { font-size: 1.22rem; } }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.no-hyphen { hyphens: manual; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--light { background: var(--light); }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--tight { padding-block: calc(var(--section) * .66); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4, .on-dark strong { color: var(--white); }
.on-dark .muted, .on-dark .lead { color: var(--on-dark-muted); }
.on-dark a:not(.btn) { color: var(--white); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head--split { max-width: none; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: end; gap: 48px; } }
.section-head p { margin: 0; }
.grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 1023px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } .split--wide-media { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.stack > * + * { margin-top: 16px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 1px 0 rgba(8, 13, 18, .08); }
.btn-primary:hover { background: #3cc3f2; color: var(--ink); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: #CDD6E0; }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); color: var(--white); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .93rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--link); text-decoration: none; min-height: 44px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.on-dark .link-arrow { color: var(--accent); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(16, 29, 43, .97); color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .06); transition: background-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
@supports (backdrop-filter: blur(10px)) { .site-header { background: rgba(16, 29, 43, .9); backdrop-filter: saturate(140%) blur(12px); } }
.site-header.is-overlay:not(.is-scrolled):not(.is-open) { background: transparent; backdrop-filter: none; border-bottom-color: transparent; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(8, 13, 18, .18); }
.has-overlay-header .site-header { position: fixed; left: 0; right: 0; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; margin-right: auto; min-height: 44px; }
.brand svg { width: 40px; height: 40px; color: var(--accent); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
.brand-name small { display: block; font-size: .62rem; letter-spacing: .42em; color: var(--accent); margin-top: 4px; }
.brand:hover { color: var(--white); }
.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: var(--on-dark); font-size: .95rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .08); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; }
.lang-switch { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 8px; color: var(--on-dark); font-size: .88rem; font-weight: 600; letter-spacing: .06em; text-decoration: none; }
.lang-switch:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px; background: transparent; color: var(--white); cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-nav { border-top: 1px solid var(--line-dark); padding-block: 12px 24px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li a { display: flex; align-items: center; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--line-dark); color: var(--white); font-size: 1.08rem; font-weight: 500; text-decoration: none; }
.mobile-nav .btn { width: 100%; margin-top: 20px; }
@media (min-width: 1200px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}
@media (min-width: 640px) and (max-width: 1199px) { .header-cta { display: inline-flex; } }
@media (max-width: 380px) { .brand-name { font-size: 1rem; } .brand svg { width: 34px; height: 34px; } }

/* ---------- Hero (home) ---------- */
.hero { position: relative; isolation: isolate; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: var(--white); background: var(--ink); overflow: hidden; }
.hero-media, .hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media { z-index: -2; }
.hero-media video { opacity: 0; transition: opacity .6s var(--ease); }
.hero-media video.is-playing { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(8, 13, 18, .72) 0%, rgba(8, 13, 18, .45) 42%, rgba(8, 13, 18, .08) 72%, rgba(8, 13, 18, 0) 100%),
  linear-gradient(0deg, rgba(8, 13, 18, .88) 0%, rgba(8, 13, 18, .35) 34%, rgba(8, 13, 18, 0) 58%),
  linear-gradient(180deg, rgba(8, 13, 18, .5) 0%, rgba(8, 13, 18, 0) 22%); }
@media (max-width: 767px) { .hero::before { background: linear-gradient(0deg, rgba(8, 13, 18, .9) 0%, rgba(8, 13, 18, .6) 45%, rgba(8, 13, 18, .25) 75%, rgba(8, 13, 18, .45) 100%); } }
.hero-content { position: relative; width: 100%; padding-top: calc(var(--header-h) + 72px); padding-bottom: clamp(40px, 7vw, 72px); }
.hero h1 { color: var(--white); max-width: 11ch; }
.hero .lead { color: #D5DEE8; margin-top: 20px; max-width: 46ch; }
.hero .btn-row { margin-top: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 36px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .95rem; color: #D5DEE8; }
.hero-facts li { display: inline-flex; align-items: center; gap: 10px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.motion-toggle { position: absolute; right: var(--gutter); bottom: clamp(40px, 7vw, 72px); z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(8, 13, 18, .45); color: var(--white); font-size: .88rem; font-weight: 600; cursor: pointer; }
.motion-toggle svg { width: 16px; height: 16px; }
.motion-toggle[hidden] { display: none; }
@media (max-width: 767px) { .motion-toggle { top: calc(var(--header-h) + 12px); bottom: auto; } }

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--navy); color: var(--on-dark); padding-block: clamp(48px, 7vw, 88px) clamp(48px, 7vw, 80px); }
.page-hero h1 { color: var(--white); font-size: clamp(2.3rem, 6vw, 4rem); max-width: 16ch; }
.page-hero .lead { color: #C9D4DF; margin-top: 20px; }
.page-hero .btn-row { margin-top: 28px; }
.page-hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; } }
.page-hero-media { position: relative; border-radius: var(--radius); overflow: hidden; background: #1a2a3b; aspect-ratio: 4 / 3; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumbs { margin-bottom: 20px; font-size: .88rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; color: var(--on-dark-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #5d7086; }
.breadcrumbs a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }
.breadcrumbs--light ol { color: var(--muted); }
.breadcrumbs--light li + li::before { color: #9aa7b6; }
.breadcrumbs--light a { color: var(--link); }
.breadcrumbs--light a:hover { color: var(--navy); }

/* ---------- Media labels ---------- */
.media-label { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(8, 13, 18, .72); color: var(--white); font-size: .76rem; font-weight: 600; letter-spacing: .02em; }
.media-label--top { top: 12px; bottom: auto; }
figure { margin: 0; }
figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.on-dark figcaption { color: var(--on-dark-muted); }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-media { position: relative; aspect-ratio: 16 / 10; background: #dfe6ec; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.card-body p { color: var(--text); margin: 0; }
.card-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: auto; padding-top: 8px; }
.card--flat { box-shadow: none; }
.card--pad { padding: 26px; gap: 10px; }
.price-kind { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); }
.price-card .price { margin: auto 0 0; padding-top: 14px; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1.1; color: var(--ink); }
.price-card .price span { font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--muted); }
.price-card--addon { background: var(--light); }
.service-card h3 { font-size: 1.22rem; }
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.service-card .card-links a { position: relative; z-index: 2; }
.service-card:hover { border-color: #c9d5e0; box-shadow: var(--shadow-lg); }

/* ---------- Featured project ---------- */
.feature { display: grid; overflow: hidden; border-radius: var(--radius); background: var(--ink); color: var(--on-dark); box-shadow: var(--shadow-lg); }
@media (min-width: 960px) { .feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.feature-media { position: relative; min-height: 280px; background: #16232f; }
.feature-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .feature-media { min-height: 520px; } }
.feature-body { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(28px, 4vw, 52px); }
.feature-body h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.1; color: var(--white); }
.feature-body p { color: #C9D4DF; margin: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag-list li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-dark); font-size: .84rem; color: var(--on-dark); }
.light .tag-list li, .tag-list--light li { border-color: var(--line); color: var(--text); background: var(--white); }
.thumb-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.thumb-strip img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 8px; }
.play-button { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); font-weight: 650; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.play-button svg { width: 26px; height: 26px; color: var(--accent-dark); }

/* ---------- Thermal comparison ---------- */
.compare { position: relative; max-width: 520px; margin-inline: auto; }
.compare-frame { --split: 50%; position: relative; aspect-ratio: 659 / 1022; max-height: 78vh; margin-inline: auto; border-radius: var(--radius); overflow: hidden; background: #0c151d; box-shadow: var(--shadow-lg); touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
@media (min-width: 700px) { .compare-frame { aspect-ratio: 659 / 820; } }
.compare-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; pointer-events: none; -webkit-user-drag: none; }
.compare-over { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split)); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; background: var(--white); box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); pointer-events: none; }
.compare-handle span { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 999px; background: var(--white); color: var(--ink); box-shadow: 0 8px 26px rgba(0, 0, 0, .28); }
.compare-handle svg { width: 22px; height: 22px; }
.compare-tag { position: absolute; top: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(8, 13, 18, .72); color: var(--white); font-size: .78rem; font-weight: 650; pointer-events: none; }
.compare-tag--left { left: 12px; }
.compare-tag--right { right: 12px; }
.compare-range { position: absolute; inset: auto 0 0 0; width: 100%; height: 44px; opacity: 0; margin: 0; cursor: ew-resize; }
.compare-frame:focus-within { outline: 3px solid var(--accent); outline-offset: 4px; }
.compare-help { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: .88rem; color: var(--muted); }
.note { padding-left: 16px; border-left: 3px solid var(--accent); color: var(--muted); font-size: .95rem; }
.on-dark .note { color: var(--on-dark-muted); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { position: relative; padding: 24px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 14px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--accent-dark); line-height: 1; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; font-size: .98rem; }
.on-dark .steps li { background: rgba(255, 255, 255, .04); border-color: var(--line-dark); }
.on-dark .steps li::before { color: var(--accent); }
.on-dark .steps p { color: var(--on-dark-muted); }

/* ---------- Check lists and facts ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 999px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23080D12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts > div { background: var(--white); padding: 22px; }
.facts dt { font-weight: 650; color: var(--navy); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: .96rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pill-list a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--navy); font-weight: 550; font-size: .94rem; text-decoration: none; }
.pill-list a:hover { border-color: var(--navy); }

/* ---------- About ---------- */
.about-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; background: #dfe6ec; }
.about-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.partner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.partner img { width: 120px; height: auto; }
.partner p { margin: 0; flex: 1 1 260px; font-size: .96rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 16px 20px; font-weight: 650; color: var(--navy); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg) translateY(-3px); transition: transform var(--t) var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details > div { padding: 0 20px 20px; }

/* ---------- Contact & form ---------- */
.contact-grid { display: grid; gap: 36px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; } }
.contact-lines { display: grid; gap: 12px; margin-top: 28px; }
.contact-lines a { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-size: 1.12rem; font-weight: 600; text-decoration: none; }
.contact-lines svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.form-card { padding: clamp(22px, 4vw, 36px); border-radius: var(--radius); background: var(--white); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.on-dark .form-card strong, .form-card strong, .form-card h3 { color: var(--navy); }
.progress { display: flex; gap: 8px; list-style: none; margin: 0 0 26px; padding: 0; counter-reset: p; }
.progress li { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.progress li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.progress li[aria-current="step"], .progress li.is-done { color: var(--navy); }
.progress li[aria-current="step"]::before, .progress li.is-done::before { background: var(--accent); }
.form-step[hidden] { display: none; }
.form-step legend, .form-step h3 { font-size: 1.15rem; font-weight: 650; color: var(--navy); margin: 0 0 16px; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-grid { display: grid; gap: 10px; }
@media (min-width: 560px) { .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; min-height: 56px; padding: 12px 16px; border: 1px solid #CDD6E0; border-radius: 10px; background: var(--white); color: var(--navy); font-weight: 550; line-height: 1.3; transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.choice input:hover + span { border-color: var(--navy); }
.choice input:checked + span { border-color: var(--accent-dark); background: #EAF7FD; box-shadow: inset 0 0 0 1px var(--accent-dark); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field .label { font-weight: 600; color: var(--navy); font-size: .96rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #C3CDD8; border-radius: 10px; background: var(--white); color: var(--ink); font: 400 1rem/1.4 var(--font-body); transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(16, 179, 238, .25); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .9rem; font-weight: 550; }
.field-error:empty { display: none; }
.field-hint { color: var(--muted); font-size: .88rem; }
.two-col { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-nav .btn-primary { margin-left: auto; }
.summary { display: grid; gap: 0; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.summary > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.summary > div:last-child { border-bottom: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 479px) { .summary > div { grid-template-columns: 1fr; gap: 2px; } }
.form-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-size: .96rem; }
.form-alert--error { background: #FEF3F2; color: #7A271A; border: 1px solid #FECDCA; }
.form-alert--ok { background: #ECFDF3; color: #054F31; border: 1px solid #ABEFC6; }
.form-alert[hidden] { display: none; }
.form-done { text-align: left; }
.form-done h3 { font-size: 1.4rem; margin-bottom: 10px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ---------- Demo (inspection markers, build timeline) ---------- */
.demo { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .demo { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 48px; } }
.roof { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #2b3947 0%, #3a4a5a 100%); box-shadow: var(--shadow-lg); }
.roof::before { content: ""; position: absolute; inset: 8% 6%; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 64px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 44px), linear-gradient(180deg, #506273, #445464); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12); }
.roof .panels { position: absolute; left: 12%; top: 18%; width: 46%; height: 42%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.roof .panels i { background: linear-gradient(160deg, #22406b, #152a47); border: 1px solid rgba(255, 255, 255, .25); }
.roof .vent { position: absolute; right: 16%; top: 22%; width: 11%; aspect-ratio: 1; background: #6c7c8b; border-radius: 4px; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .15); }
.marker { position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 999px; border: 2px solid var(--white); background: rgba(8, 13, 18, .72); color: var(--white); font-weight: 700; cursor: pointer; transition: background-color var(--t) var(--ease), transform var(--t) var(--ease); }
.marker[aria-pressed="true"] { background: var(--accent); color: var(--ink); transform: scale(1.08); }
.demo-detail { padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); min-height: 190px; }
.timeline-frame { position: relative; max-width: 380px; margin-inline: auto; aspect-ratio: 368 / 580; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #dfe6ec; }
.timeline-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--t) var(--ease); }
.segmented { display: flex; gap: 6px; margin: 16px auto 0; max-width: 380px; }
.segmented button { flex: 1; min-height: 44px; border: 1px solid #CDD6E0; border-radius: 10px; background: var(--white); color: var(--navy); font-weight: 600; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery figure { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: #dfe6ec; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery .wide { grid-column: 1 / -1; }
.gallery .wide img { aspect-ratio: 16 / 8; }
.gallery .span2 { grid-column: span 2; }
.gallery .span2 img { aspect-ratio: auto; height: 100%; min-height: 100%; }
@media (max-width: 899px) { .gallery .span2 img { aspect-ratio: 16 / 7; height: auto; } }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 24px 12px 10px; background: linear-gradient(0deg, rgba(8, 13, 18, .7), rgba(8, 13, 18, 0)); color: var(--white); font-size: .84rem; }

/* ---------- CTA band ---------- */
.cta-band { display: grid; gap: 24px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius); background: var(--navy); color: var(--on-dark); }
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; } }
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.cta-band p { color: #C9D4DF; margin: 12px 0 0; max-width: 58ch; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 40px 0 12px; }
.prose h3 { margin: 24px 0 8px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-block: 56px 32px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--on-dark); text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-credit { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.footer-credit a { font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
/* AW Solutions logga (mörk variant) i stället för namnet, i originalfärger. */
.footer-credit .footer-credit-logo { text-decoration: none; border-radius: 6px; }
.footer-credit .footer-credit-logo img { display: block; width: auto; height: 24px; }
.footer-credit .footer-credit-logo:hover { text-decoration: none; opacity: .85; }
.footer-brand p { margin: 16px 0 0; max-width: 34ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: .88rem; }
.linklike { padding: 0; border: 0; background: none; color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 36px; font-size: inherit; }
.linklike:hover { color: var(--white); }

/* ---------- Cookie panel ---------- */
.cookie { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 520px; padding: 20px; border-radius: var(--radius); background: var(--white); color: var(--text); box-shadow: 0 20px 60px rgba(8, 13, 18, .28); border: 1px solid var(--line); }
.cookie[hidden] { display: none; }
.cookie h2 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 650; color: var(--navy); margin: 0 0 6px; }
.cookie p { font-size: .94rem; margin: 0 0 14px; }
@media (min-width: 640px) { .cookie { left: auto; right: 24px; bottom: 24px; } }

/* ---------- Reveal (content is visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* Very narrow screens: buttons may wrap and fill the width instead of overflowing. */
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
  .cta-band .btn-row .btn, .page-hero .btn-row .btn { flex: 1 1 100%; }
}
