/* ==========================================================================
   Xvo – designsystem
   ========================================================================== */

:root {
  --navy: #10264b;
  --navy-deep: #0a1b38;
  --navy-hover: #183a6f;
  --blue: #1455b8;
  --blue-bright: #2a6fdb;
  --blue-soft: #eaf2ff;
  --blue-softer: #f3f7fe;
  --surface: #f5f8fd;
  --surface-footer: #eef4fc;
  --white: #ffffff;
  --text: #10264b;
  --muted: #5b6b84;
  --line: #e1e8f3;
  --line-strong: #cbd7ea;
  --success: #16a34a;
  --success-soft: #e6f6ec;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(16, 38, 75, .05);
  --shadow-card: 0 1px 2px rgba(16, 38, 75, .04), 0 22px 44px -30px rgba(16, 38, 75, .28);
  --shadow-float: 0 2px 6px rgba(16, 38, 75, .06), 0 22px 44px -16px rgba(16, 38, 75, .3);
  --shadow-hover: 0 2px 6px rgba(16, 38, 75, .05), 0 30px 60px -30px rgba(16, 38, 75, .38);

  --header-h: 84px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 800; letter-spacing: -.03em; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid rgba(20, 85, 184, .45);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Knappar och länkar
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .25s ease, transform .25s var(--ease);
}

.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-pill { border-radius: 999px; }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 22px -12px rgba(16, 38, 75, .55);
}
.btn-primary:hover {
  background: var(--navy-hover);
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -14px rgba(16, 38, 75, .6);
}

.btn-outline {
  background: rgba(255, 255, 255, .7);
  border-color: var(--line-strong);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--white);
  border-color: var(--navy);
  transform: translateY(-1px);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45);
}
.btn-light:hover { background: var(--blue-soft); transform: translateY(-1px); }

.arrow {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform .25s var(--ease);
}
.btn:hover .arrow,
.text-link:hover .arrow { transform: translateX(3px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 700;
  font-size: 15.5px;
}
.text-link:hover { color: var(--navy); }

/* --------------------------------------------------------------------------
   Gemensamma element
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::after {
  content: "";
  width: 40px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .55;
}
.eyebrow--center::before {
  content: "";
  width: 40px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .55;
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue);
}
.icon-tile svg { width: 28px; height: 28px; }
.icon-tile--sm { width: 40px; height: 40px; border-radius: 12px; }
.icon-tile--sm svg { width: 21px; height: 21px; }

.section { padding: 104px 0; }

.section-head { margin-bottom: 48px; }
.section-head h2,
.services-copy h2 {
  font-size: clamp(2rem, 1.35rem + 1.9vw, 2.75rem);
  line-height: 1.14;
}
.section-head--center { text-align: center; }

.section-lead {
  margin-top: 18px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.fine-print {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 248, 253, .92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(16, 38, 75, .4);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: none; }
.logo { width: auto; height: 38px; }
.logo-text {
  height: auto;
  color: #0E2B5E;
  font-family: "Poppins", "Plus Jakarta Sans", sans-serif;
  font-size: 54px;
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.055em;
}

.header-divider {
  width: 1px;
  height: 30px;
  margin: 0 30px 0 28px;
  background: var(--line-strong);
  flex: none;
}

.main-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-list { display: flex; align-items: center; gap: 6px; }
.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--navy);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.nav-link:hover,
.nav-item.is-open > .nav-link { background: rgba(20, 85, 184, .07); color: var(--blue); }

.chevron {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.nav-item.is-open .chevron { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 300px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-float);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s var(--ease), visibility .2s;
}
.submenu::before {
  content: "";
  position: absolute;
  inset: -12px 0 auto;
  height: 12px;
}
.nav-item.is-open > .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.submenu a {
  display: grid;
  gap: 2px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  transition: background-color .2s ease;
}
.submenu a:hover { background: var(--blue-softer); }
.submenu strong { color: var(--navy); font-size: 15px; font-weight: 700; }
.submenu span { color: var(--muted); font-size: 13.5px; }

@media (hover: hover) and (min-width: 1021px) {
  .has-menu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .has-menu:hover > .nav-link { background: rgba(20, 85, 184, .07); color: var(--blue); }
  .has-menu:hover .chevron { transform: rotate(180deg); }
}

.header-cta { height: 46px; padding: 0 22px; }

.menu-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .25s var(--ease), opacity .2s ease, top .25s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: clamp(580px, 44vw, 660px);
}

.hero-copy {
  max-width: 700px;
  padding: 64px 0 96px;
}

.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(20, 85, 184, .12);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}
.pill-label svg { width: 16px; height: 16px; }

.hero h1 {
  font-size: clamp(2.15rem, 1.2rem + 3vw, 3.85rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.hero-lead {
  margin-top: 26px;
  max-width: 29rem;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero-media {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 1;
  width: min(60%, 1120px);
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-media img {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 80%, transparent 100%);
}

@media (min-width: 1280px) {
  .hero-media {
    left: calc(max(24px, 50% - var(--container) / 2) + 560px);
    width: auto;
    max-width: 1120px;
  }
}

/* --------------------------------------------------------------------------
   Produkter
   -------------------------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: center;
  gap: 12px;
  min-height: 330px;
  padding: 40px 32px 40px 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 95% at 88% 52%, #dce9ff 0%, rgba(226, 237, 255, .65) 38%, rgba(255, 255, 255, 0) 72%),
    var(--white);
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: #d3def0;
  box-shadow: var(--shadow-hover);
}

.product-body h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 26px;
  font-size: 25px;
  line-height: 1.2;
}
.product-body p {
  margin-top: 12px;
  max-width: 27ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.product-body .text-link { margin-top: 24px; }

.product-body--onboarding {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-content: center;
  column-gap: 16px;
}
.product-body--onboarding .icon-tile {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 64px;
  height: 64px;
  border-radius: 17px;
}
.product-body--onboarding .icon-tile svg { width: 38px; height: 38px; }
.product-body--onboarding h3 { grid-column: 2; margin-top: 0; font-size: 23px; }
.product-body--onboarding p,
.product-body--onboarding .text-link { grid-column: 2; }
.product-body--onboarding p { margin-top: 12px; }
.product-body--onboarding .text-link { margin-top: 22px; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #f3dcae;
  border-radius: 999px;
  background: #fff7e8;
  color: #8a5300;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e59a1d;
}

.product-visual {
  position: relative;
  height: 100%;
  min-height: 230px;
}

/* Onboarding-illustration */
.product-visual--onboarding { min-height: 230px; }
.product-visual--onboarding::before {
  position: absolute;
  top: -38%;
  left: 2%;
  width: 150%;
  height: 170%;
  border: 1px solid rgba(204, 222, 251, .65);
  border-radius: 50%;
  background: radial-gradient(ellipse at 68% 52%, rgba(207, 225, 255, .8), rgba(226, 238, 255, .25) 56%, transparent 72%);
  content: "";
}

.mock-toast {
  position: absolute;
  top: 7%;
  right: 3%;
  bottom: 7%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 82%;
  padding: 14px 12px;
  border: 1px solid rgba(225, 232, 243, .9);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-float);
  text-align: center;
  transform: rotate(-3deg);
}
.mock-toast strong { display: block; color: var(--navy); font-size: 14px; font-weight: 800; line-height: 1.35; }
.mock-toast div > span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.mock-check {
  display: grid;
  place-items: center;
  margin: 0;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--success);
  color: var(--white);
  box-shadow: 0 0 0 5px var(--success-soft);
}
.mock-check svg { width: 20px; height: 20px; }

/* Integrations-illustration */
.tile-connector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.tile-connector path {
  fill: none;
  stroke: var(--blue-bright);
  stroke-width: 1.6;
  stroke-dasharray: 5 6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: .75;
  animation: dash 18s linear infinite;
}

.system-tile {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 150px;
  height: 64px;
  padding: 0 24px;
  border: 1px solid rgba(225, 232, 243, .9);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-float);
}
.system-tile--fortnox { top: 14%; left: 2%; }
.system-tile--visma { right: 2%; bottom: 12%; }

.wordmark-fortnox {
  color: #13341f;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.035em;
}
.wordmark-visma {
  color: #1d1d4f;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .1em;
}

/* --------------------------------------------------------------------------
   Tjänster
   -------------------------------------------------------------------------- */

.services { background: var(--surface); }

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 72px;
}

.check-list {
  display: grid;
  gap: 16px;
  margin: 32px 0 40px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  font-size: 16.5px;
  font-weight: 600;
}
.check-dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
}
.check-dot svg { width: 14px; height: 14px; }

.services-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hover);
  aspect-ratio: 16 / 10;
}
.services-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.services-media:hover img { transform: scale(1.03); }

/* --------------------------------------------------------------------------
   Varför Xvo
   -------------------------------------------------------------------------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.why-grid li {
  padding: 8px 32px;
  text-align: center;
}
.why-grid li + li { border-left: 1px solid var(--line); }

.why-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 22px;
  color: var(--blue);
}
.why-grid h3 { font-size: 18.5px; line-height: 1.3; letter-spacing: -.02em; }
.why-grid p {
  margin: 10px auto 0;
  max-width: 24ch;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.cta-section { padding: 8px 0 104px; }

.cta-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 60px 64px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 120% at 100% 100%, rgba(42, 111, 219, .45) 0%, rgba(42, 111, 219, 0) 60%),
    linear-gradient(115deg, var(--navy-deep) 0%, var(--navy) 50%, #153873 100%);
  color: var(--white);
  box-shadow: 0 30px 60px -34px rgba(10, 27, 56, .7);
}

.cta-waves {
  position: absolute;
  inset: 0 0 0 auto;
  width: 70%;
  height: 100%;
  pointer-events: none;
}
.wave-fill { fill: rgba(42, 111, 219, .22); }
.wave-fill--light { fill: rgba(96, 165, 250, .16); }
.wave-line { fill: none; stroke: rgba(125, 178, 255, .38); stroke-width: 1.4; }
.wave-line--faint { stroke: rgba(125, 178, 255, .18); }

.cta-copy { position: relative; max-width: 36rem; }
.cta-copy h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.15;
}
.cta-copy p {
  margin-top: 14px;
  color: rgba(255, 255, 255, .78);
  font-size: 17.5px;
  line-height: 1.6;
}
.cta-panel .btn { position: relative; flex: none; }

/* --------------------------------------------------------------------------
   Undersidor
   -------------------------------------------------------------------------- */

.page-hero {
  padding: 80px 0 72px;
  background:
    radial-gradient(50% 90% at 100% 0%, #dfeaff 0%, rgba(223, 234, 255, 0) 70%),
    var(--surface);
}
.page-hero h1 {
  font-size: clamp(2.3rem, 1.4rem + 2.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.page-hero a { color: var(--blue); font-weight: 600; text-decoration: underline; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.service-card {
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service-card h2 { margin-top: 24px; font-size: 22px; }
.service-card p { margin-top: 10px; color: var(--muted); }

.legal-content {
  max-width: 760px;
  padding: 56px 0 104px;
}
.legal-content h2 { margin: 36px 0 10px; font-size: 22px; }
.legal-content p { margin-bottom: 14px; color: var(--muted); font-size: 17px; }
.legal-content a { color: var(--blue); font-weight: 600; text-decoration: underline; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 40px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--surface-footer);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}

.footer-brand { display: flex; align-items: center; }
.footer-brand .logo { height: 32px; }
.footer-brand .logo-text { height: auto; font-size: 36px; }
.footer-brand .header-divider { height: 28px; margin: 0 22px; }
.footer-brand p { color: var(--muted); font-size: 15px; font-weight: 500; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 36px; margin-left: auto; }
.footer-nav a { color: var(--navy); font-size: 15px; font-weight: 600; transition: color .2s ease; }
.footer-nav a:hover { color: var(--blue); }

.footer-social {
  display: flex;
  gap: 10px;
  padding-left: 32px;
  border-left: 1px solid var(--line-strong);
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}
.footer-legal a:hover { color: var(--navy); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Animationer
   -------------------------------------------------------------------------- */

@keyframes dash {
  to { stroke-dashoffset: -220; }
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.product-grid [data-reveal]:nth-child(2),
.services-grid [data-reveal]:nth-child(2),
.service-grid [data-reveal]:nth-child(2) { transition-delay: .1s; }
.service-grid [data-reveal]:nth-child(3) { transition-delay: .2s; }

/* --------------------------------------------------------------------------
   Responsivt
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .product-card { grid-template-columns: 1fr; padding: 36px; }
  .product-visual { min-height: 220px; margin-top: 12px; }
  .product-body p { max-width: 40ch; }
  .nav-link { padding: 10px 10px; }
  .header-divider { margin: 0 18px; }
}

@media (max-width: 1020px) {
  :root { --header-h: 72px; }

  .logo { height: 32px; }
  .logo-text { height: auto; font-size: 44px; }
  .site-header > .container > .header-divider { display: none; }

  .menu-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-height: calc(100vh - var(--header-h));
    padding: 12px 24px 24px;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 24px 40px -24px rgba(16, 38, 75, .35);
  }
  .main-nav.is-open { display: flex; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link {
    justify-content: space-between;
    width: 100%;
    padding: 14px 12px;
    font-size: 17px;
  }
  .submenu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 8px 8px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .submenu::before { display: none; }
  .nav-item.is-open > .submenu { display: block; }
  .header-cta { width: 100%; height: 52px; }

  .hero-grid { display: block; min-height: 0; }
  .hero-copy { max-width: 640px; padding: 56px 0 40px; }
  .hero-media {
    position: static;
    width: auto;
    max-width: 900px;
    margin: 0 auto 48px;
    transform: none;
  }

  .section { padding: 80px 0; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }

  .services-grid { grid-template-columns: 1fr; gap: 48px; }

  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 0; }
  .why-grid li:nth-child(3) { border-left: 0; }

  .cta-panel { flex-direction: column; align-items: flex-start; padding: 48px 40px; }

  .service-grid { grid-template-columns: 1fr; }

  .footer-nav { margin-left: 0; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 40px, var(--container)); }

  .hero-copy { padding-top: 44px; }
  .hero-lead { font-size: 17.5px; }
  .hero-actions .btn { width: 100%; }
  .hero-media { margin-bottom: 40px; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .section-lead { font-size: 17px; }

  .product-card { grid-template-columns: 1fr; padding: 30px 24px; }
  .product-visual { min-height: 210px; }
  .system-tile { min-width: 132px; height: 58px; }

  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .why-grid li { padding: 0 8px; }
  .why-grid li + li { border-left: 0; padding-top: 36px; border-top: 1px solid var(--line); }

  .cta-section { padding-bottom: 72px; }
  .cta-panel { padding: 40px 28px; border-radius: var(--radius-lg); }
  .cta-panel .btn { width: 100%; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-brand { flex-wrap: wrap; gap: 12px 0; }
  .footer-social { padding-left: 0; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
