/* ==========================================================
   eSmart Energy Solutions – stilmall
   Ren CSS, inga bibliotek. Färgkontraster uppfyller WCAG 2.2 AA.
   ========================================================== */

/* ---------- Typsnitt: Ubuntu, lagrat lokalt i /fonts ----------
   Ubuntu Font Licence 1.0 – se fonts/LICENCE.txt.
   Delmängd "latin" täcker svenska tecken (å, ä, ö, é m.fl.). */
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ubuntu-latin-400.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: "Ubuntu";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ubuntu-latin-500.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: "Ubuntu";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/ubuntu-latin-700.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;
}

:root {
  --bg: #f5f7fa;
  --bg-alt: #eaf0f5;
  --surface: #ffffff;
  --text: #0e1a2b;
  --text-muted: #46566b;
  --border: #cfd8e3;
  --primary: #0a7a4c;        /* grön, 5.4:1 mot vit */
  --primary-hover: #075e3a;
  --on-primary: #ffffff;
  --accent: #0b2340;         /* mörk marinblå */
  --hero-from: #0b2340;
  --hero-to: #12385f;
  --on-hero: #ffffff;
  --on-hero-muted: #c9d6e6;
  --hero-accent: #4ee0a0;
  --error: #b42318;
  --error-bg: #fdecea;
  --success: #0a7a4c;
  --success-bg: #e6f5ee;
  --focus: #1f6feb;
  --focus-ring: 0 0 0 3px var(--surface), 0 0 0 6px var(--focus);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 8px 24px rgba(14, 26, 43, .08);
  --header-h: 72px;
  --font: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* Mörkt tema: följer systemet om användaren inte valt själv */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a111d;
    --bg-alt: #0f1828;
    --surface: #142033;
    --text: #e8eef6;
    --text-muted: #a8b7ca;
    --border: #2a3a52;
    --primary: #3fd894;
    --primary-hover: #6ee6b0;
    --on-primary: #04241a;
    --accent: #e8eef6;
    --hero-from: #08101c;
    --hero-to: #0f2440;
    --error: #ff8a80;
    --error-bg: #3a1714;
    --success: #3fd894;
    --success-bg: #0f2c22;
    --focus: #7cb4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a111d;
  --bg-alt: #0f1828;
  --surface: #142033;
  --text: #e8eef6;
  --text-muted: #a8b7ca;
  --border: #2a3a52;
  --primary: #3fd894;
  --primary-hover: #6ee6b0;
  --on-primary: #04241a;
  --accent: #e8eef6;
  --hero-from: #08101c;
  --hero-to: #0f2440;
  --error: #ff8a80;
  --error-bg: #3a1714;
  --success: #3fd894;
  --success-bg: #0f2c22;
  --focus: #7cb4ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  /* WCAG 2.4.11: fokus/ankarmål ska inte döljas av den fasta headern */
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; margin-top: 1.25rem; }
p { margin: 0 0 1em; }

a { color: var(--primary); text-underline-offset: .18em; }
a:hover { color: var(--primary-hover); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 2.5rem); }

.visually-hidden {
  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: 1rem; top: -100px;
  z-index: 1000;
  padding: .75rem 1.25rem;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 1rem; }

main:focus { outline: none; }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-secondary {
  background: transparent;
  color: var(--on-hero);
  border-color: currentColor;
  text-transform: none;
  letter-spacing: 0;
}
.btn-secondary:hover { background: rgba(255, 255, 255, .12); color: var(--on-hero); }
.btn-sm { min-height: 44px; padding: .6rem 1.2rem; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
  min-height: 44px;
}
.brand-pill {
  display: inline-block;
  padding: .2rem .8rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #111;
}
:root[data-theme="dark"] .brand-pill { background: #fff; color: #111; box-shadow: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-pill { background: #fff; color: #111; box-shadow: none; }
}
.brand-text { font-weight: 600; font-size: .95rem; color: var(--text-muted); }

.site-nav { display: flex; align-items: center; }
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .85rem;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}
.nav-list a:hover { background: var(--bg-alt); color: var(--text); }
.nav-list a[aria-current="true"] { color: var(--primary); text-decoration: underline; text-decoration-thickness: 2px; }
.nav-list .nav-cta { background: var(--primary); color: var(--on-primary); margin-left: .25rem; }
.nav-list .nav-cta:hover { background: var(--primary-hover); color: var(--on-primary); }
.nav-list .nav-cta[aria-current="true"] { color: var(--on-primary); }

.nav-toggle,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-width: 44px;
  min-height: 44px;
  padding: .4rem .75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover, .theme-toggle:hover { background: var(--bg-alt); }
.nav-toggle { display: none; }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.theme-toggle { padding: .4rem; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle[aria-pressed="true"] .icon-sun { display: block; }
.theme-toggle[aria-pressed="true"] .icon-moon { display: none; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { order: 2; }
  .theme-toggle { order: 1; }
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: .75rem 1.25rem 1.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-list[data-open="false"] { display: none; }
  .nav-list a { width: 100%; border-radius: var(--radius-sm); padding: .75rem 1rem; }
  .nav-list .nav-cta { margin: .5rem 0 0; justify-content: center; }
  .brand-text { display: none; }
}
/* Utan JS visas menyn alltid */
.no-js .nav-list { display: flex; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(78, 224, 160, .18), transparent 60%),
    linear-gradient(160deg, var(--hero-from), var(--hero-to));
  color: var(--on-hero);
  padding: clamp(3rem, 6vw, 6rem) 0 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .3rem .85rem;
  border: 1px solid rgba(78, 224, 160, .5);
  border-radius: 999px;
  color: var(--hero-accent);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--on-hero-muted); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.hero .btn-primary { background: var(--hero-accent); color: #04241a; }
.hero .btn-primary:hover { background: #7aeebb; color: #04241a; }

.hero-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.hero-showcase img { width: 100%; }
.hero-showcase img:nth-child(2) { transform: translateY(-14px) scale(1.06); }

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
}
.stats li {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
}
.stat-value { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 700; color: #fff; }
.stat-label { color: var(--on-hero-muted); font-size: .95rem; }

/* ---------- Sektioner ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 46rem; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Funktioner */
.feature-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}
.feature { padding: 1.75rem 1.5rem; }
.feature p { color: var(--text-muted); margin: 0; }
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--success-bg);
  color: var(--primary);
}

/* Produkter */
.product-list { display: grid; gap: 1.75rem; }
.product {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  overflow: hidden;
}
.product-media {
  display: grid;
  place-items: center;
  padding: 2rem;
  background: #fff;              /* produktbilderna har vit bakgrund */
  border-right: 1px solid var(--border);
}
.product-media img { max-height: 340px; width: auto; }
.product-body { padding: clamp(1.5rem, 3vw, 2.5rem); }
.product-body > p { color: var(--text-muted); }
.product-body strong { color: var(--text); }
.tag {
  display: inline-block;
  margin-bottom: .75rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.product-body .tag { color: var(--primary); }
.product h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: .5rem 0 1rem;
  border-top: 1px solid var(--border);
}
.specs > div {
  padding: .7rem 0;
  border-bottom: 1px solid var(--border);
}
.specs > div:nth-child(odd) { padding-right: 1rem; }
.specs dt { font-size: .85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.specs dd { margin: 0; font-weight: 600; }
.footnote { font-size: .9rem; color: var(--text-muted); }

/* Jämförelsetabell */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.compare { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare caption {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  font-size: .95rem;
}
.compare th, .compare td {
  padding: .9rem 1.25rem;
  text-align: left;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.compare thead th { background: var(--bg-alt); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.compare tbody th { font-weight: 700; width: 24%; }
.compare tbody tr:hover { background: color-mix(in srgb, var(--primary) 6%, transparent); }

/* FAQ */
.faq-list { display: grid; gap: .85rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s;
  color: var(--primary);
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-item summary:hover { color: var(--primary); }
.faq-answer { padding: 0 1.25rem 1.25rem; color: var(--text-muted); }
.faq-answer p { margin: 0; }
.faq-answer strong { color: var(--text); }

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-intro p { color: var(--text-muted); font-size: 1.1rem; }
.contact-intro .small { font-size: .95rem; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .6rem; }
.checklist li { position: relative; padding-left: 2rem; font-weight: 600; }
.checklist li::before {
  content: "";
  position: absolute;
  left: .2rem; top: .35em;
  width: 8px; height: 14px;
  border-right: 3px solid var(--primary);
  border-bottom: 3px solid var(--primary);
  transform: rotate(45deg);
}

.form-card { padding: clamp(1.5rem, 3vw, 2.25rem); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.field { margin: 0 0 1.25rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .35rem; padding: 0; }
.req { color: var(--error); }
.hint { margin: .3rem 0 0; font-size: .9rem; color: var(--text-muted); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .9rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 2px solid #7a8899;  /* 3.4:1 mot vit – WCAG 1.4.11 */
  border-radius: var(--radius-sm);
}
textarea { resize: vertical; min-height: 140px; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
[aria-invalid="true"] { border-color: var(--error) !important; }

.checks { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.check {
  display: inline-flex !important;
  align-items: flex-start;
  gap: .6rem;
  min-height: 44px;
  padding-top: .55rem;
  font-weight: 500 !important;
  cursor: pointer;
}
.check input { width: 22px; height: 22px; margin: .1rem 0 0; flex: none; accent-color: var(--primary); }

.field-error { margin: .35rem 0 0; color: var(--error); font-weight: 600; font-size: .95rem; }
.field-error:empty { display: none; }
.field-error::before { content: "⚠ "; }

.error-summary {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--error);
  border-left-width: 6px;
  border-radius: var(--radius-sm);
  background: var(--error-bg);
}
.error-summary h3 { font-size: 1.05rem; color: var(--error); margin-bottom: .4rem; }
.error-summary ul { margin: 0; padding-left: 1.25rem; }
.error-summary a { color: var(--error); font-weight: 600; }
.error-summary:focus-visible { outline-offset: 2px; }

.form-status:not(:empty) {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--success);
  border-left-width: 6px;
  border-radius: var(--radius-sm);
  background: var(--success-bg);
  font-weight: 600;
}

.form-status.is-error:not(:empty) { border-color: var(--error); background: var(--error-bg); color: var(--error); }

/* ---------- Emulate & EnergX ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-reverse .split-copy { order: 2; }
.split-lead { color: var(--text-muted); font-size: 1.15rem; }
.split .checklist { margin-bottom: 2rem; }

.flow { margin: 0; padding: clamp(1.5rem, 3vw, 2.25rem); }
.flow-title { font-weight: 700; font-size: 1.15rem; margin-bottom: 1.25rem; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.flow-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 0;
}
.flow-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px; top: calc(50% + 24px);
  width: 2px; height: calc(100% - 48px);
  background: var(--primary);
  opacity: .5;
}
.flow-steps strong { color: var(--text); }
.flow-steps li > span:last-child { color: var(--text-muted); }
.flow-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}

.phone {
  justify-self: center;
  width: min(300px, 100%);
  aspect-ratio: 9 / 18.5;
  padding: 12px;
  border-radius: 44px;
  background: #0b0f16;
  box-shadow: 0 30px 60px rgba(14, 26, 43, .3), inset 0 0 0 2px #2b3442;
}
.phone-screen {
  height: 100%;
  border-radius: 34px;
  padding: 2.75rem 1.25rem 1.25rem;
  background: linear-gradient(170deg, #0f2440, #0a111d);
  color: #e8eef6;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  width: 90px; height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
.phone-label { margin: 0; font-size: .85rem; color: #a8b7ca; }
.phone-value { margin: 0 0 1.25rem; font-size: 2.6rem; font-weight: 700; color: #fff; }
.phone-value span { font-size: 1.1rem; color: #4ee0a0; }
.phone-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: .75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
}
.phone-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(#4ee0a0, #1f9e6a);
}
.phone-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .75rem; }
.phone-tiles div { padding: .7rem .8rem; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.phone-tiles small { display: block; color: #a8b7ca; font-size: .75rem; }
.phone-tiles b { font-size: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #08111e;
  color: #c3cfdd;
  padding: 3.5rem 0 1.5rem;
}
.site-footer a { color: #e8eef6; text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.site-footer a:hover { color: var(--hero-accent); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.site-footer :focus-visible { outline-color: #7cb4ff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: .75rem; }
.brand-footer { margin: 0 0 .75rem; }
.brand-footer .brand-pill,
:root[data-theme="dark"] .brand-footer .brand-pill { background: #fff; color: #111; box-shadow: none; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #22324a;
  font-size: .95rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Responsivt ---------- */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-showcase { max-width: 520px; }
  .product { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-copy { order: 0; }
  .product-media { border-right: 0; border-bottom: 1px solid var(--border); }
  .product-media img { max-height: 260px; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .specs > div:nth-child(odd) { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Windows högkontrastläge */
@media (forced-colors: active) {
  .btn, .nav-toggle, .theme-toggle, .faq-item, .card { border: 2px solid ButtonText; }
  .brand-pill { border: 2px solid CanvasText; }
}
