/* Vasa IT — gemensam stilmall.
   Layout: smal, vänsterställd textspalt (~68 tecken) med breda tabeller/rader där fakta ska skannas.
   Inga externa resurser: typsnitten ligger lokalt i /fonts. */

@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #0f1d33;
  --muted: #475570;
  --line: #d6dce6;
  --accent: #1d4c9e;
  --accent-soft: #e6edf8;
  --brass: #7d5f16;
  --todo-bg: #fff3bf;
  --todo-ink: #5c4300;
  --footer-bg: #0f1d33;
  --footer-ink: #f5f7fa;
  --footer-muted: #a9b4c8;
  --footer-line: #24324d;
  --footer-line-strong: #4a5a78;

  --f-sans: "Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: clamp(2rem, 4.2vw, 2.9rem);
  --measure: 68ch;
  --wide: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1424;
    --surface: #121c30;
    --ink: #e8edf5;
    --muted: #a9b4c8;
    --line: #27334b;
    --accent: #93b4ff;
    --accent-soft: #1a2849;
    --brass: #dcb75c;
    --todo-bg: #4a3b0c;
    --todo-ink: #ffe08a;
    --footer-bg: #070d19;
    --footer-line: #1c2740;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--bg);
  padding: 0.6rem 1rem; z-index: 10; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}

/* Sidhuvud */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1rem; }
.brand { display: flex; align-items: baseline; gap: 0.5rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand-mark { width: 1.1rem; height: 1.1rem; align-self: center; flex: none; }
.brand small { font-family: var(--f-mono); font-weight: 400; font-size: var(--step--1); color: var(--muted); letter-spacing: 0; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: var(--step--1); font-weight: 600; padding-block: 0.4rem; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }

/* Typografi */
h1, h2, h3 { line-height: 1.2; text-wrap: balance; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: var(--step-3); font-weight: 600; }
h2 { font-size: var(--step-2); font-weight: 600; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; max-width: var(--measure); }
.eyebrow { font-family: var(--f-mono); font-size: var(--step--1); color: var(--brass); letter-spacing: 0.04em; text-transform: uppercase; }
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.5; }
.muted { color: var(--muted); }

main { display: block; }
.section { padding-block: clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 1.1rem; }
.stack-lg { display: flex; flex-direction: column; gap: 2.5rem; }

/* Hero */
.hero { padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(3rem, 7vw, 5rem); }
.hero h1 { max-width: 22ch; }
.hero .lede { max-width: 58ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.btn {
  display: inline-block; padding: 0.75rem 1.2rem; border-radius: 4px;
  font-weight: 600; text-decoration: none; border: 2px solid var(--accent);
}
.btn-primary { background: var(--accent); color: var(--surface); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-ghost { color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }

/* Fakta-remsa: fyra löften i rad */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); margin-top: 3rem; }
.facts > div { padding: 1rem 1.25rem 0 0; display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); font-size: var(--step--1); }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.25rem; } }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* Tjänster: rubrik till vänster, text till höger */
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 1rem 3rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0.5rem; }
.row .stack { gap: 0.8rem; }
.row ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; color: var(--muted); }
@media (max-width: 760px) { .row { grid-template-columns: minmax(0, 1fr); } }

/* Principer i två spalter */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.principles > div { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
@media (max-width: 760px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* Företagsuppgifter för upphandlare */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.25rem, 3vw, 2rem); }
.factsheet { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.factsheet th, .factsheet td { text-align: left; vertical-align: top; padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--line); }
.factsheet th { font-weight: 600; width: 34%; }
.factsheet td { font-family: var(--f-mono); }
.factsheet tr:last-child th, .factsheet tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.doclist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.doclist li { padding-block: 0.7rem; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; }
.doclist li:last-child { border-bottom: 0; }
.doclist span { color: var(--muted); font-size: var(--step--1); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* Personer */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem; }
.person { display: flex; flex-direction: column; gap: 0.35rem; }
.person .role { font-family: var(--f-mono); font-size: var(--step--1); color: var(--brass); }

/* Kontakt */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem 2rem; }
.contact dt { font-weight: 600; }
.contact dd { margin: 0.2rem 0 0; }
.contact dd a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.contact dd a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* Platshållare som måste fyllas i innan publicering */
.todo { background: var(--todo-bg); color: var(--todo-ink); outline: 1px dashed currentColor; padding: 0 0.3em; border-radius: 2px; font-family: var(--f-mono); font-size: 0.92em; }

/* Dokumentsidor (policyer) */
.doc { padding-block: clamp(2.5rem, 6vw, 4rem); }
.doc article { display: flex; flex-direction: column; gap: 1.1rem; max-width: var(--measure); }
.doc h1 { font-size: var(--step-2); }
.doc h2 { font-size: var(--step-1); margin-top: 1.2rem; }
.doc ul, .doc ol { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.35rem; }
.doc .meta { font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); border-left: 3px solid var(--line); padding-left: 0.9rem; }
.breadcrumb { font-size: var(--step--1); }

/* Sidfot: mörk yta, tre spalter och en bottenrad med juridik */
.site-footer { border-top: 1px solid var(--footer-line); background: var(--footer-bg); color: var(--footer-muted); font-size: var(--step--1); }
.site-footer a { color: var(--footer-ink); text-decoration: none; }
.site-footer a[href^="mailto:"] { text-decoration: underline; text-decoration-color: var(--footer-line-strong); text-underline-offset: 0.2em; }
.site-footer a[href^="mailto:"]:hover { text-decoration-color: currentColor; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--footer-ink); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 3rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.footer-brand .brand { color: var(--footer-ink); }
.footer-brand p { max-width: 34ch; line-height: 1.6; }
.site-footer .footer-cta { display: inline-block; padding: 0.55rem 1rem; border: 1px solid var(--footer-line-strong); border-radius: 4px; font-weight: 600; }
.site-footer .footer-cta:hover { background: var(--footer-ink); color: var(--footer-bg); text-decoration: none; }
.footer-col h2 { font-family: var(--f-mono); font-size: var(--step--1); font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--footer-muted); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-label { display: block; color: var(--footer-muted); font-size: 0.8rem; }
.footer-note { color: var(--footer-muted); }
.footer-bottom { border-top: 1px solid var(--footer-line); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 2rem; padding-block: 1.25rem; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
@media (max-width: 860px) { .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-main { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Hero: text till vänster, löften i en lugn ruta till höger */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: center; }
.hero .stack { min-width: 0; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero { border-bottom: 1px solid var(--line); }
.promise { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 6px; padding: 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.promise h2 { font-size: var(--step-1); }

/* Lista med bockar */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.checks li { position: relative; padding-left: 1.7rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231d4c9e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}
@media (prefers-color-scheme: dark) {
  .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2393b4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}

/* Arbetsgång i fyra steg (en verklig ordningsföljd, därav numreringen) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1rem; border-top: 2px solid var(--ink); min-width: 0; }
.steps li::before { content: counter(step); font-family: var(--f-mono); font-size: var(--step--1); color: var(--brass); }
.steps h3 { font-size: var(--step-0); }
.steps p { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.panel h3 { font-size: var(--step-0); }

/* Projekt: bild ovanför, text under; tre i rad på bred skärm */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.project { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.project img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.project .stack { gap: 0.75rem; }
.project .kind { font-family: var(--f-mono); font-size: var(--step--1); color: var(--brass); }
.project .checks { font-size: var(--step--1); gap: 0.5rem; }
@media (max-width: 980px) { .projects { grid-template-columns: minmax(0, 1fr); max-width: 40rem; } }
.project p { font-size: 0.97rem; }

/* Teknik: loggor i enfärg som följer textfärgen (även i mörkt läge) */
.tech { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.tech-group { display: flex; flex-direction: column; gap: 1rem; min-width: 0; padding-top: 1rem; border-top: 2px solid var(--ink); }
.tech-group h3 { font-size: var(--step-0); }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.75rem; }
.logos li { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: var(--step--1); font-weight: 600; min-width: 0; }
.logo { flex: none; width: 1.6rem; height: 1.6rem; background: var(--muted); -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.logos li:hover .logo { background: var(--ink); }
.logo-saknas { visibility: hidden; }
.small { font-size: var(--step--1); }
@media (max-width: 860px) { .tech { grid-template-columns: minmax(0, 1fr); } }

/* Avtalsvillkor: en ruta, punkterna i två spalter på bred skärm */
.terms .panel { max-width: 52rem; }
.terms .checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 2rem; }
@media (max-width: 700px) { .terms .checks { grid-template-columns: minmax(0, 1fr); } }
