/* ==========================================================================
   Driviqo – stilmall
   --------------------------------------------------------------------------
    1. Tokens              7. Vardagen (problemet)   13. Pris
    2. Bas                 8. Tjänster               14. FAQ
    3. Layout              9. Konkret exempel        15. Kontakt & formulär
    4. Komponenter        10. Så fungerar det        16. Sidfot
    5. Sidhuvud & meny    11. Räkneexempel           17. Juridiska dialoger
    6. Hero               12. Branscher              18. Animationer
   ========================================================================== */


/* 1. Tokens
   ========================================================================== */

:root {
  /* Ytor */
  --paper: #FAFAF8;
  --white: #FFFFFF;
  --surface: #F3F3EF;
  --line: #E7E7E2;
  --line-strong: #D9D9D3;

  /* Text och mörka ytor. ink-400 klarar WCAG AA för liten text, ink-300 endast för stor text. */
  --ink-950: #0B0C0E;
  --ink-900: #141518;
  --ink-800: #202226;
  --ink-700: #34363B;
  --ink-600: #494B51;
  --ink-500: #5F6168;
  --ink-400: #717379;
  --ink-300: #8E9096;
  --ink-200: #C4C5C9;
  --ink-100: #ECECEA;

  /* Text på mörk bakgrund */
  --on-dark: #FFFFFF;
  --on-dark-2: #B9BAC0;
  --on-dark-3: #8C8E95;
  --dark-line: rgb(255 255 255 / .1);

  /* Accent – används sparsamt */
  --accent: #2B4EFF;
  --accent-hover: #1E3DE3;
  --accent-soft: #EEF1FF;
  --accent-soft-2: #DCE3FF;
  --accent-on-dark: #8298FF;

  --danger: #C2331F;

  /* Typografi */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Manrope", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", Menlo, Consolas, monospace;

  /* Form */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-2xl: 34px;

  --shadow-xs: 0 1px 2px rgb(16 17 20 / .05);
  --shadow-sm: 0 1px 2px rgb(16 17 20 / .04), 0 4px 12px -4px rgb(16 17 20 / .08);
  --shadow-md: 0 2px 4px rgb(16 17 20 / .03), 0 18px 44px -18px rgb(16 17 20 / .2);
  --shadow-lg: 0 4px 10px rgb(16 17 20 / .04), 0 36px 90px -30px rgb(16 17 20 / .32);

  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Layout */
  --container: 1200px;
  --gutter: 20px;
  --header-h: 64px;
}

@media (min-width: 560px) {
  :root { --gutter: 28px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 32px; --header-h: 72px; }
}


/* 2. Bas
   ========================================================================== */

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

html:has(dialog[open]) {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

strong {
  font-weight: 600;
}

::selection {
  background: var(--accent-soft-2);
  color: var(--ink-950);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink-950);
  color: var(--on-dark);
  font-weight: 600;
  font-size: 14px;
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
}

.skip-link:focus {
  transform: none;
}


/* 3. Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(84px, 11vw, 140px);
}

.section-white {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink-500);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft-2);
}

.section-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2rem, 1.45rem + 2.3vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--ink-950);
}

.section-lead {
  max-width: 640px;
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-500);
}

.section-head--center .section-lead {
  margin-inline: auto;
}


/* 4. Komponenter
   ========================================================================== */

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Knappar */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding-inline: 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s var(--ease);
}

.btn:active {
  transform: scale(.98);
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn .icon-arrow {
  transition: transform .3s var(--ease);
}

.btn-sm {
  --btn-h: 40px;
  padding-inline: 17px;
  font-size: 14px;
}

.btn-lg {
  --btn-h: 54px;
  padding-inline: 26px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* Smala skärmar: långa knapptexter får radbrytas i stället för att tränga ut layouten */
@media (max-width: 479px) {
  .btn {
    height: auto;
    min-height: var(--btn-h);
    padding-block: 10px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }
}

.btn-primary {
  background: var(--accent);
  color: var(--on-dark);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 1px 2px rgb(16 17 20 / .12), 0 10px 24px -12px rgb(43 78 255 / .7);
}

.btn-secondary {
  background: var(--white);
  border-color: var(--line-strong);
  color: var(--ink-900);
  box-shadow: var(--shadow-xs);
}

.btn-light {
  background: var(--white);
  color: var(--ink-950);
}

@media (hover: hover) {
  .btn:hover .icon-arrow { transform: translateX(3px); }
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-secondary:hover { border-color: var(--ink-300); box-shadow: var(--shadow-sm); }
  .btn-light:hover { background: var(--ink-100); }
}

.icon-btn {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-600);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.icon-btn .icon {
  width: 15px;
  height: 15px;
}

@media (hover: hover) {
  .icon-btn:hover { color: var(--ink-950); border-color: var(--line-strong); }
}

.icon-btn--dark {
  width: 40px;
  height: 40px;
  border-color: var(--dark-line);
  background: rgb(255 255 255 / .05);
  color: var(--on-dark);
}

.icon-btn--dark .icon {
  width: 18px;
  height: 18px;
}

@media (hover: hover) {
  .icon-btn--dark:hover { color: var(--on-dark); border-color: rgb(255 255 255 / .28); background: rgb(255 255 255 / .1); }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink-950);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
  transition: text-decoration-color .2s ease;
}

.text-link .icon {
  width: 16px;
  height: 16px;
  transition: transform .3s var(--ease);
}

@media (hover: hover) {
  .text-link:hover { text-decoration-color: currentColor; }
  .text-link:hover .icon { transform: translateX(3px); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-600);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge .icon {
  width: 14px;
  height: 14px;
}

.badge--auto {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge--dark {
  background: var(--ink-950);
  color: var(--on-dark);
}

.badge--outline {
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-700);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .02em;
}

.avatar .icon {
  width: 18px;
  height: 18px;
}

.avatar--sm {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.avatar--dark {
  border-color: var(--ink-950);
  background: var(--ink-950);
  color: var(--on-dark);
}

.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--accent-soft-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.spinner--light {
  width: 16px;
  height: 16px;
  border-width: 2px;
  border-color: rgb(255 255 255 / .35);
  border-top-color: var(--on-dark);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-950);
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.025em;
}


/* 5. Sidhuvud & meny
   ========================================================================== */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgb(16 17 20 / .07);
  background-color: rgb(250 250 248 / .84);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled { background-color: rgb(250 250 248 / .97); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  display: block;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--ink-500);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .2s ease, background-color .2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="true"] {
  color: var(--ink-950);
}

.main-nav a[aria-current="true"] {
  background: rgb(16 17 20 / .05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-900);
  transition: border-color .2s ease;
}

@media (hover: hover) {
  .menu-toggle:hover { border-color: var(--ink-300); }
}

@media (min-width: 560px) {
  .header-cta { display: inline-flex; }
}

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
}

/* Mobilmeny (native <dialog>) */
.mobile-menu {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink-900);
}

.mobile-menu[open] {
  display: flex;
  flex-direction: column;
  animation: menu-in .35s var(--ease);
}

.mobile-menu::backdrop {
  background: var(--paper);
}

.mobile-menu-head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line);
}

.mobile-nav {
  padding: 8px var(--gutter);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -.025em;
  color: var(--ink-950);
}

.mobile-nav .icon {
  color: var(--ink-300);
}

.mobile-menu[open] .mobile-nav li {
  animation: fade-up .5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 40ms + 80ms);
}

.mobile-menu-foot {
  display: grid;
  gap: 18px;
  margin-top: auto;
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
}

.mobile-menu-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  color: var(--ink-500);
  font-size: 15px;
}


/* 6. Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(36px, 6vw, 72px) clamp(76px, 9vw, 124px);
}

.hero-bg {
  position: absolute;
  top: -80px;
  right: -12%;
  width: 72%;
  height: 130%;
  background-image:
    linear-gradient(to right, rgb(16 17 20 / .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(16 17 20 / .055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / .75);
  box-shadow: var(--shadow-xs);
  color: var(--ink-600);
  font-size: 13.5px;
  font-weight: 500;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  animation: ping 2.6s var(--ease) infinite;
}

.hero-title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.5rem, 1.55rem + 3.7vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.042em;
  color: var(--ink-950);
}

.hero-title-muted {
  color: var(--ink-300);
}

.hero-lead {
  max-width: 560px;
  margin-top: 26px;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-500);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 32px;
  color: var(--ink-500);
  font-size: 14px;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  stroke-width: 2.2;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% 6% 4%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(43 78 255 / .12), transparent);
  filter: blur(24px);
}

@media (max-width: 479px) {
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 359px) {
  .hero-eyebrow { padding-right: 12px; font-size: 12.5px; }
}

@media (max-width: 1023px) {
  .hero-bg { top: auto; right: -30%; bottom: -10%; left: -30%; width: auto; height: 70%; }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; }
  .hero-copy { max-width: none; }
  /* Rubriken delas i en mörk och en ljus del, var och en på egna rader */
  .hero-title { font-size: clamp(2.75rem, 4.15vw, 3.6rem); line-height: 1.04; }
  .hero-title-muted { display: block; }
}

@media (min-width: 1200px) {
  .hero-grid { gap: 64px; }
}

/* Arbetsflödeskortet i hero */
.flow-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.flow-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.flow-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.flow-card-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink-950);
  color: var(--on-dark);
}

.flow-card-icon .icon {
  width: 18px;
  height: 18px;
}

.flow-card-name {
  color: var(--ink-950);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}

.flow-card-sub {
  color: var(--ink-400);
  font-size: 12.5px;
  line-height: 1.35;
}

.flow-card-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .3s ease, color .3s ease;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.flow-card[data-status="running"] .status-dot {
  animation: blink 1.4s ease-in-out infinite;
}

.flow-card[data-status="paused"] .status-pill {
  background: var(--surface);
  color: var(--ink-500);
}

.flow-card[data-status="done"] .status-pill {
  background: var(--ink-950);
  color: var(--on-dark);
}

.flow-steps {
  padding: 10px 10px 6px;
}

.flow-step {
  position: relative;
}

/* Linjen mellan stegen, och den blå fyllnaden när ett steg är klart */
.flow-step:not(:last-child)::before,
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 45px;
  left: 27.5px;
  width: 1px;
  height: calc(100% - 36px);
  background: var(--line-strong);
}

.flow-step:not(:last-child)::after {
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .5s var(--ease);
}

.flow-step[data-state="done"]::after {
  transform: none;
}

.flow-step-btn {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 14px;
  text-align: left;
  transition: background-color .3s ease;
}

.flow-step[data-state="active"] .flow-step-btn {
  background: var(--paper);
}

@media (hover: hover) {
  .flow-step-btn:hover { background: var(--paper); }
}

.flow-node {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink-300);
  transition: background-color .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease;
}

.flow-node .icon {
  width: 17px;
  height: 17px;
}

.flow-step[data-state="done"] .flow-node {
  border-color: var(--accent-soft-2);
  background: var(--accent-soft);
  color: var(--accent);
}

.flow-step[data-state="active"] .flow-node {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-dark);
  box-shadow: 0 0 0 5px rgb(43 78 255 / .12);
}

.flow-card[data-status="running"] .flow-step[data-state="active"] .flow-node::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: ring 1.6s var(--ease) infinite;
}

.flow-step-title {
  display: block;
  color: var(--ink-950);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  transition: color .3s ease;
}

.flow-step-meta {
  display: block;
  margin-top: 2px;
  color: var(--ink-400);
  font-size: 12.5px;
  line-height: 1.35;
}

.flow-step[data-state="pending"] .flow-step-title {
  color: var(--ink-400);
}

.flow-step-status {
  display: flex;
  justify-content: flex-end;
  min-width: 20px;
  color: var(--ink-400);
  font-family: var(--font-mono);
  font-size: 11.5px;
  white-space: nowrap;
}

.flow-step-status > span {
  display: none;
}

.flow-step[data-state="done"] .flow-time,
.flow-card:not([data-status="running"]) .flow-step[data-state="active"] .flow-time,
.flow-step[data-state="pending"] .flow-wait {
  display: inline;
}

.flow-card[data-status="running"] .flow-step[data-state="active"] .flow-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-family: var(--font-sans);
  font-weight: 600;
}

.flow-wait {
  color: var(--ink-300);
}

.flow-detail {
  position: relative;
  height: 118px;
  margin: 4px 16px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.flow-detail-item {
  position: absolute;
  inset: 0;
  padding: 13px 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
}

.flow-detail-item[data-active] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s;
}

.detail-label {
  color: var(--ink-400);
  font-size: 12px;
  font-weight: 600;
}

.detail-quote {
  margin-top: 6px;
  color: var(--ink-800);
  font-size: 14px;
  line-height: 1.5;
}

.detail-meta {
  margin-top: 6px;
  color: var(--ink-400);
  font-size: 12.5px;
}

.detail-summary {
  margin-top: 6px;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.5;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chip-row li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-800);
  font-size: 12.5px;
  font-weight: 500;
}

.chip-row li.is-accent {
  border-color: var(--accent-soft-2);
  background: var(--accent-soft);
  color: var(--accent);
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.detail-row .badge {
  margin-left: auto;
}

.detail-doc {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.detail-doc .icon {
  width: 16px;
  height: 16px;
}

.detail-strong {
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.detail-muted {
  color: var(--ink-400);
  font-size: 12.5px;
  line-height: 1.4;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.detail-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-800);
  font-size: 13.5px;
}

.detail-list .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  stroke-width: 2.1;
}

.detail-list span {
  margin-left: auto;
  color: var(--ink-400);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.flow-card-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.flow-stat {
  padding: 14px 18px 16px;
}

.flow-stat + .flow-stat {
  border-left: 1px solid var(--line);
}

.flow-stat-label {
  display: block;
  color: var(--ink-400);
  font-size: 12px;
}

.flow-stat-value {
  display: block;
  margin-top: 3px;
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.flow-toast {
  position: absolute;
  top: 78px;
  right: 14px;
  z-index: 5;
  display: none;
  align-items: center;
  gap: 11px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px) scale(.97);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}

.flow-toast .avatar {
  width: 34px;
  height: 34px;
  font-size: 11.5px;
}

.flow-toast-title {
  color: var(--ink-950);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}

.flow-toast-meta {
  color: var(--ink-400);
  font-size: 12px;
  line-height: 1.3;
}

.flow-card[data-toast="true"] .flow-toast {
  opacity: 1;
  transform: none;
}

@media (min-width: 640px) {
  .flow-toast { display: flex; }
}

@media (min-width: 1360px) {
  .flow-toast { right: -36px; }
}

@media (max-width: 419px) {
  .flow-card-head { padding: 14px; }
  .flow-card-controls .status-pill { display: none; }
  .flow-steps { padding-inline: 6px; }
  .flow-step:not(:last-child)::before,
  .flow-step:not(:last-child)::after { left: 23.5px; }
  .flow-step-btn { gap: 12px; }
  .flow-live-text,
  .flow-wait { display: none !important; }
  .flow-detail { height: 132px; margin-inline: 12px; }
  .flow-stat { padding-inline: 14px; }
}


/* 7. Vardagen (problemet)
   ========================================================================== */

.problem-grid {
  display: grid;
  gap: 48px;
}

.stat-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 22px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.stat-number {
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.4rem + 2.5vw, 4.25rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.05em;
  white-space: nowrap;
}

.stat-number span {
  margin-left: 2px;
  color: var(--ink-500);
  font-size: .38em;
  font-weight: 600;
  letter-spacing: -.02em;
}

.stat-text {
  max-width: 270px;
  color: var(--ink-500);
  font-size: 15px;
  line-height: 1.5;
}

.task-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.task-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.task-card-title {
  color: var(--ink-950);
  font-size: 15px;
  font-weight: 600;
}

.task-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-counter {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.task-list {
  padding: 4px 8px;
}

.task {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
}

.task + .task {
  border-top: 1px solid var(--line);
}

.task-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line-strong);
  border-radius: 7px;
  background: var(--white);
  color: transparent;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.task-check .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

.task.is-done .task-check {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-dark);
  animation: pop .45s var(--ease);
}

.task-name {
  display: block;
  color: var(--ink-900);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.task-freq {
  display: block;
  color: var(--ink-400);
  font-size: 13px;
  line-height: 1.4;
}

.task-tag {
  display: inline-grid;
}

.task-tag > span {
  grid-area: 1 / 1;
  justify-self: end;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity .35s ease, transform .35s var(--ease);
}

.tag-manual {
  background: var(--surface);
  color: var(--ink-500);
}

.tag-auto {
  background: var(--accent-soft);
  color: var(--accent);
  opacity: 0;
  transform: translateY(5px);
}

.task.is-done .tag-manual {
  opacity: 0;
  transform: translateY(-5px);
}

.task.is-done .tag-auto {
  opacity: 1;
  transform: none;
}

.task-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-600);
  font-size: 14px;
}

.task-card-foot .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

@media (min-width: 1024px) {
  .problem-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
  .problem-copy { position: sticky; top: calc(var(--header-h) + 48px); }
}


/* 8. Tjänster
   ========================================================================== */

.services-grid {
  display: grid;
  gap: 16px;
  margin-top: 56px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink-900);
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.service-card h3 {
  margin-top: 22px;
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.service-card p {
  margin-top: 10px;
  color: var(--ink-500);
  font-size: 15px;
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 24px;
}

.tags li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-600);
  font-size: 12.5px;
  font-weight: 500;
}

@media (hover: hover) {
  .service-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
  .service-card:hover .service-icon { border-color: var(--accent); background: var(--accent); color: var(--on-dark); }
}

/* Offert & leads: flödet */
.pipeline {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.pipeline li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .3s ease, background-color .3s ease, color .3s ease;
}

.pipeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 19.5px;
  width: 1px;
  height: 11px;
  background: var(--line-strong);
}

.pipeline-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-200);
  transition: background-color .3s ease, box-shadow .3s ease;
}

.pipeline li.is-final {
  border-color: var(--accent-soft-2);
  background: var(--accent-soft);
  color: var(--accent);
}

.pipeline li.is-final .pipeline-dot {
  background: var(--accent);
}

.pipeline li:nth-child(2),
.pipeline li:nth-child(2) .pipeline-dot { transition-delay: .08s; }
.pipeline li:nth-child(3),
.pipeline li:nth-child(3) .pipeline-dot { transition-delay: .16s; }

@media (hover: hover) {
  .service-card:hover .pipeline li:not(.is-final) { border-color: var(--line-strong); background: var(--white); color: var(--ink-950); }
  .service-card:hover .pipeline-dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft-2); }
}

/* Integrationer: anslutna flöden */
.connections {
  margin-top: 26px;
  padding: 14px 16px 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.connections-title {
  color: var(--ink-400);
  font-size: 12.5px;
  font-weight: 600;
}

.connections li {
  display: grid;
  grid-template-columns: auto 14px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: var(--ink-800);
  font-size: 14px;
  font-weight: 500;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.connections li + li {
  border-top: 1px solid var(--line);
}

.connections .icon {
  width: 14px;
  height: 14px;
  color: var(--ink-300);
}

.toggle {
  position: relative;
  justify-self: end;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
}

.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 2px rgb(0 0 0 / .2);
}

.services-more {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 16px;
  padding: 24px 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-xl);
}

.services-more p {
  max-width: 620px;
  color: var(--ink-500);
  font-size: 15.5px;
}

.services-more strong {
  color: var(--ink-950);
}

@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card--wide { grid-column: span 2; }
  .services-more { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 720px) and (max-width: 1023px) {
  .service-card--wide .pipeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .service-card--wide .pipeline li { flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 14px; }
  .service-card--wide .pipeline li:not(:last-child)::after { top: 50%; left: 100%; width: 16px; height: 1px; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-card--wide,
  .service-card--wide-lg {
    display: grid;
    grid-column: span 2;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 36px;
    align-items: center;
    padding: 32px;
  }
  .service-card--wide .pipeline,
  .service-card--wide-lg .connections { margin-top: 0; }
}


/* 9. Konkret exempel (mörk sektion)
   ========================================================================== */

.section-dark {
  overflow: clip;
  isolation: isolate;
  background: var(--ink-950);
  color: var(--on-dark);
}

.dark-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 50% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 50% at 50% 0%, #000 0%, transparent 78%);
}

.dark-bg::after {
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  width: min(960px, 120%);
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(43 78 255 / .26), transparent);
}

.section-dark .eyebrow {
  color: var(--on-dark-2);
}

.section-dark .eyebrow::before {
  background: var(--accent-on-dark);
  box-shadow: 0 0 0 3px rgb(130 152 255 / .18);
}

.section-dark .section-title {
  color: var(--on-dark);
}

.section-dark .section-lead {
  color: var(--on-dark-2);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 28px;
  color: var(--on-dark-2);
  font-size: 14px;
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.actor-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-on-dark);
}

.actor-dot[data-actor="customer"] {
  background: var(--on-dark-3);
}

.actor-dot[data-actor="team"] {
  background: var(--on-dark);
}

.demo {
  display: grid;
  gap: 24px;
  margin-top: 56px;
}

/* Stegväljaren: horisontella flikar på mobil, vertikal lista på desktop */
.demo-steps {
  position: relative;
  display: flex;
  gap: 8px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 2px var(--gutter) 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.demo-steps::-webkit-scrollbar {
  display: none;
}

.demo-step {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 15px 0 13px;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  color: var(--on-dark-2);
  font-size: 14px;
  font-weight: 500;
  scroll-snap-align: center;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.demo-step[aria-selected="true"] {
  border-color: var(--on-dark);
  background: var(--on-dark);
  color: var(--ink-950);
}

.demo-step-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0;
}

.demo-step-title,
.demo-step-time,
.demo-step-desc {
  display: none;
}

.demo-step:focus-visible {
  outline-color: var(--accent-on-dark);
}

.demo-caption {
  margin-bottom: 16px;
}

.demo-caption-step {
  color: var(--on-dark-3);
  font-family: var(--font-mono);
  font-size: 12px;
}

.demo-caption-title {
  margin-top: 6px;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.demo-caption-desc {
  margin-top: 4px;
  color: var(--on-dark-2);
  font-size: 15px;
}

.demo-panel:focus-visible {
  outline-color: var(--accent-on-dark);
  outline-offset: 6px;
  border-radius: 30px;
}

.demo-frame {
  padding: 8px;
  border: 1px solid rgb(255 255 255 / .08);
  border-radius: 30px;
  background: rgb(255 255 255 / .04);
}

.demo-window {
  position: relative;
  overflow: hidden;
  border-radius: 23px;
  background: var(--white);
  color: var(--ink-900);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / .7);
}

.demo-window-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-100);
}

.demo-window-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 600;
}

.demo-window-title .icon {
  width: 16px;
  height: 16px;
  color: var(--ink-500);
}

.actor-pill {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.actor-pill[data-actor="customer"] {
  background: var(--surface);
  color: var(--ink-600);
}

.actor-pill[data-actor="team"] {
  background: var(--ink-950);
  color: var(--on-dark);
}

.demo-timer {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
  transition: opacity .3s ease;
}

.demo-timer > span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.demo-timer > span.is-animating {
  animation: progress var(--demo-duration, 6s) linear forwards;
}

.demo[data-running="false"] .demo-timer > span {
  animation-play-state: paused;
}

.demo[data-playing="false"] .demo-timer {
  opacity: 0;
}

.demo-screens {
  position: relative;
  height: 430px;
}

.demo-screen {
  position: absolute;
  inset: 0;
  padding: 20px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
}

.demo-screen[data-active="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s;
}

.demo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.demo-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-counter {
  margin-left: 6px;
  color: var(--on-dark-3);
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.demo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 14px;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  color: var(--on-dark-2);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.demo-toggle .icon {
  width: 15px;
  height: 15px;
}

@media (hover: hover) {
  .demo-step:not([aria-selected="true"]):hover { border-color: rgb(255 255 255 / .28); color: var(--on-dark); }
  .demo-toggle:hover { border-color: rgb(255 255 255 / .28); color: var(--on-dark); }
}

.demo-stats {
  display: grid;
  gap: 1px;
  margin-top: 64px;
  overflow: hidden;
  border: 1px solid var(--dark-line);
  border-radius: 24px;
  background: var(--dark-line);
}

.demo-stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding: 24px 26px;
  background: var(--ink-950);
}

.demo-stats dt {
  color: var(--on-dark-3);
  font-size: 14.5px;
}

.demo-stats dd {
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.demo-note {
  max-width: 680px;
  margin: 28px auto 0;
  color: var(--on-dark-3);
  font-size: 15px;
  text-align: center;
}

@media (min-width: 720px) {
  .demo-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 560px) {
  .demo-screens { height: 410px; }
  .demo-screen { padding: 24px; }
}

@media (min-width: 1024px) {
  .demo {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: start;
  }

  .demo-steps {
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .demo-step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: start;
    gap: 0 12px;
    height: auto;
    padding: 14px 16px;
    border: 0;
    border-radius: 16px;
    color: var(--on-dark-2);
    font-size: 15.5px;
    text-align: left;
  }

  .demo-step[aria-selected="true"] {
    background: rgb(255 255 255 / .07);
    color: var(--on-dark);
  }

  .demo-step-num {
    padding-top: 3px;
    color: var(--on-dark-3);
    font-size: 12px;
  }

  .demo-step[aria-selected="true"] .demo-step-num {
    color: var(--on-dark);
  }

  .demo-step-short {
    display: none;
  }

  .demo-step-title {
    display: block;
    font-weight: 550;
    line-height: 1.4;
  }

  .demo-step-time {
    display: block;
    padding-top: 3px;
    color: var(--on-dark-3);
    font-family: var(--font-mono);
    font-size: 12px;
    white-space: nowrap;
  }

  .demo-step-desc {
    display: block;
    grid-column: 2 / 4;
    max-height: 0;
    overflow: hidden;
    color: var(--on-dark-3);
    font-size: 14px;
    line-height: 1.5;
    opacity: 0;
    transition: max-height .4s var(--ease), opacity .3s ease, margin-top .4s var(--ease);
  }

  .demo-step[aria-selected="true"] .demo-step-desc {
    max-height: 3.2em;
    margin-top: 4px;
    opacity: 1;
  }

  .demo-caption {
    display: none;
  }

  .demo-screens {
    height: 420px;
  }

  @media (hover: hover) {
    .demo-step:not([aria-selected="true"]):hover { background: rgb(255 255 255 / .035); color: var(--on-dark); }
  }
}

/* Gränssnittsexempel i demon */
.mock {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  color: var(--ink-700);
  font-size: 14px;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mock-who {
  min-width: 0;
}

.mock-strong {
  color: var(--ink-950);
  font-weight: 600;
  line-height: 1.35;
}

.mock-muted {
  color: var(--ink-400);
  font-size: 13px;
  line-height: 1.4;
}

.mock-time {
  margin-left: auto;
  color: var(--ink-400);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.mock-stack {
  display: grid;
  gap: 12px;
}

.mock-subject {
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.mock-text {
  color: var(--ink-600);
  font-size: 14.5px;
  line-height: 1.6;
}

.mock-text p + p {
  margin-top: 10px;
}

.attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 500;
}

.attachment .icon {
  width: 15px;
  height: 15px;
  color: var(--ink-400);
}

.mock-label {
  color: var(--ink-400);
  font-size: 12.5px;
  font-weight: 600;
}

.mock-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  color: var(--ink-500);
  font-size: 13px;
}

.mock-foot .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  stroke-width: 2.1;
}

.mock-foot-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.fields {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.fields > div {
  display: grid;
  grid-template-columns: minmax(96px, 36%) 1fr;
  gap: 12px;
  padding: 9px 14px;
  font-size: 14px;
}

.fields > div + div {
  border-top: 1px solid var(--line);
}

.fields dt {
  color: var(--ink-400);
}

.fields dd {
  color: var(--ink-950);
  font-weight: 600;
}

.fields--grid {
  grid-template-columns: 1fr 1fr;
}

.fields--grid > div {
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 10px 14px;
}

.fields--grid > div + div {
  border-top: 0;
}

.fields--grid > div:nth-child(even) {
  border-left: 1px solid var(--line);
}

.fields--grid > div:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.fields--grid dt {
  font-size: 12.5px;
}

.stages {
  display: flex;
  gap: 6px;
}

.stages li {
  flex: 1;
  padding: 7px 4px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-400);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.stages li.is-done {
  background: var(--accent-soft);
  color: var(--accent);
}

.stages li.is-current {
  background: var(--accent);
  color: var(--on-dark);
}

.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.mock-table th {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-400);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.mock-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-800);
}

.mock-table th:last-child,
.mock-table td:last-child {
  padding-left: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.notice {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.notice-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-dark);
}

.notice-body > p:not(.notice-actions) {
  margin-top: 6px;
  color: var(--ink-600);
  font-size: 14px;
  line-height: 1.55;
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mock-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-800);
  font-size: 13px;
  font-weight: 600;
}

.mock-btn--primary {
  border-color: var(--ink-950);
  background: var(--ink-950);
  color: var(--on-dark);
}

.mini-checks {
  display: grid;
  gap: 10px;
}

.mini-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-800);
  font-size: 14px;
}

.mini-checks .icon {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  stroke-width: 2.4;
}

.timeline {
  position: relative;
  display: grid;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0 11px 24px;
  font-size: 14px;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 29px;
  bottom: -14px;
  left: 5px;
  width: 1px;
  background: var(--line-strong);
}

.timeline li.is-done::before {
  border-color: var(--ink-950);
  background: var(--ink-950);
}

.timeline li.is-auto::before {
  border-color: var(--accent);
  background: var(--accent);
}

.timeline li.is-task::before {
  border-color: var(--accent);
}

.tl-time {
  color: var(--ink-400);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
}

.tl-text {
  color: var(--ink-800);
  font-weight: 500;
}

.timeline li.is-muted .tl-text {
  color: var(--ink-400);
  font-weight: 400;
}

.log li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-800);
  font-size: 13.5px;
}

.log li:last-child {
  border-bottom: 0;
}

.log-time {
  color: var(--ink-400);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
}

/* Innehållet i ett aktivt exempel tonar in i tur och ordning */
.stagger > * {
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.demo-screen:not([data-active="true"]) .stagger > * {
  opacity: 0;
  transform: translateY(6px);
}

.demo-screen[data-active="true"] .stagger > :nth-child(1) { transition-delay: .12s; }
.demo-screen[data-active="true"] .stagger > :nth-child(2) { transition-delay: .19s; }
.demo-screen[data-active="true"] .stagger > :nth-child(3) { transition-delay: .26s; }
.demo-screen[data-active="true"] .stagger > :nth-child(4) { transition-delay: .33s; }
.demo-screen[data-active="true"] .stagger > :nth-child(5) { transition-delay: .40s; }
.demo-screen[data-active="true"] .stagger > :nth-child(6) { transition-delay: .47s; }
.demo-screen[data-active="true"] .stagger > :nth-child(7) { transition-delay: .54s; }
.demo-screen[data-active="true"] .stagger > :nth-child(8) { transition-delay: .61s; }


/* 10. Så fungerar det
   ========================================================================== */

.process {
  display: grid;
  gap: 40px;
  margin-top: 64px;
}

.process-step {
  position: relative;
  padding-left: 72px;
}

/* Kopplingslinjer mellan stegen (vertikala på mobil, horisontella på desktop) */
.process-step:not(:last-child)::before,
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 48px;
  bottom: -40px;
  left: 23.5px;
  width: 1px;
  background: var(--line-strong);
}

.process-step:not(:last-child)::after {
  background: var(--accent);
  transform-origin: top;
  transition: transform .4s var(--ease);
  transition-delay: calc(var(--i, 0) * .5s + .2s);
}

.js .process:not([data-revealed]) .process-step::after {
  transform: scaleY(0);
}

.process-num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-xs);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  transition: border-color .4s ease, color .4s ease;
  transition-delay: calc(var(--i, 0) * .5s + .1s);
}

.js .process:not([data-revealed]) .process-num {
  border-color: var(--line-strong);
  color: var(--ink-950);
}

.process-step h3 {
  padding-top: 10px;
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.process-step p {
  margin-top: 10px;
  color: var(--ink-500);
  font-size: 15px;
}

.process-step .process-result {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 500;
}

.process-result .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  stroke-width: 2.2;
}

@media (min-width: 1024px) {
  .process {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }

  /* Resultatraderna hamnar på samma höjd i alla fyra kolumner */
  .process-step {
    display: flex;
    flex-direction: column;
    padding-left: 0;
  }

  .process-step p:not(.process-result) {
    margin-bottom: 18px;
  }

  .process-step .process-result {
    margin-top: auto;
  }

  .process-step:not(:last-child)::before,
  .process-step:not(:last-child)::after {
    top: 23.5px;
    right: -32px;
    bottom: auto;
    left: 48px;
    width: auto;
    height: 1px;
  }

  .process-step:not(:last-child)::after {
    transform-origin: left;
  }

  .js .process:not([data-revealed]) .process-step::after {
    transform: scaleX(0);
  }

  .process-num {
    position: relative;
  }

  .process-step h3 {
    padding-top: 26px;
  }
}


/* 11. Räkneexempel
   ========================================================================== */

.roi {
  display: grid;
  margin-top: 56px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.roi-inputs {
  display: grid;
  gap: 34px;
  align-content: center;
  padding: clamp(24px, 4.5vw, 52px);
}

.roi-field-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

.roi-field label {
  color: var(--ink-900);
  font-size: 15px;
  font-weight: 600;
}

.roi-field-value {
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.roi-hint {
  margin-top: 2px;
  color: var(--ink-400);
  font-size: 13px;
}

.range {
  --fill: 50%;
  display: block;
  width: 100%;
  height: 28px;
  margin: 12px 0 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.range:focus-visible {
  outline: none;
}

.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) 0 var(--fill), var(--ink-100) var(--fill) 100%);
}

.range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--ink-100);
}

.range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.range::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 2px rgb(16 17 20 / .1), 0 4px 12px -2px rgb(16 17 20 / .22);
  transition: transform .15s var(--ease), box-shadow .15s ease, border-color .15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 2px rgb(16 17 20 / .1), 0 4px 12px -2px rgb(16 17 20 / .22);
  transition: transform .15s var(--ease), box-shadow .15s ease, border-color .15s ease;
}

.range:active::-webkit-slider-thumb {
  transform: scale(1.12);
}

.range:active::-moz-range-thumb {
  transform: scale(1.12);
}

.range:focus-visible::-webkit-slider-thumb {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(43 78 255 / .25), 0 1px 2px rgb(16 17 20 / .1);
}

.range:focus-visible::-moz-range-thumb {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(43 78 255 / .25), 0 1px 2px rgb(16 17 20 / .1);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--ink-400);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.roi-result {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4.5vw, 52px);
  background: var(--ink-950);
  color: var(--on-dark);
}

.roi-label {
  color: var(--on-dark-3);
  font-size: 14px;
  font-weight: 500;
}

.roi-big {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.3rem + 2.6vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}

.roi-unit {
  color: var(--on-dark-2);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.roi-sub {
  margin-top: 12px;
  color: var(--on-dark-2);
  font-size: 15px;
}

.roi-divider {
  height: 1px;
  margin: 28px 0;
  background: var(--dark-line);
}

.roi-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.roi-mid {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.roi-mid--accent {
  color: var(--accent-on-dark);
}

.roi-per {
  margin-top: 4px;
  color: var(--on-dark-3);
  font-size: 14px;
}

.roi-disclaimer {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  color: var(--on-dark-3);
  font-size: 13.5px;
  line-height: 1.55;
}

.roi-disclaimer .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.roi-cta {
  align-self: flex-start;
  margin-top: 24px;
}

@media (max-width: 559px) {
  .roi-field-head { flex-direction: column; align-items: flex-start; gap: 2px; }
}

@media (max-width: 479px) {
  .roi-cta { align-self: stretch; }
}

@media (min-width: 1024px) {
  .roi { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
}


/* 12. Branscher
   ========================================================================== */

.industries {
  display: grid;
  gap: 16px;
  margin-top: 56px;
}

.industry {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease;
}

.industry-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink-900);
  transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}

.industry h3 {
  margin-top: 20px;
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.industry p {
  margin-top: 8px;
  color: var(--ink-500);
  font-size: 14.5px;
  line-height: 1.55;
}

.industry--cta {
  border-color: var(--ink-950);
  background: var(--ink-950);
}

.industry--cta .industry-icon {
  border-color: var(--dark-line);
  background: rgb(255 255 255 / .06);
  color: var(--on-dark);
}

.industry--cta h3 {
  color: var(--on-dark);
}

.industry--cta p {
  color: var(--on-dark-2);
}

.industry-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--on-dark);
  font-size: 14.5px;
  font-weight: 600;
}

.industry-link .icon {
  width: 16px;
  height: 16px;
  transition: transform .3s var(--ease);
}

@media (hover: hover) {
  .industry:not(.industry--cta):hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
  .industry:not(.industry--cta):hover .industry-icon { border-color: var(--accent-soft-2); background: var(--accent-soft); color: var(--accent); }
  .industry-link:hover .icon { transform: translateX(3px); }
}

@media (min-width: 620px) {
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .industries { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* 13. Pris
   ========================================================================== */

.pricing-grid {
  display: grid;
  gap: 48px;
}

.small-heading {
  margin-top: 40px;
  color: var(--ink-950);
  font-size: 15px;
  font-weight: 650;
}

.factor-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.factor-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-600);
  font-size: 15.5px;
}

.factor-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink-800);
}

.factor-icon .icon {
  width: 18px;
  height: 18px;
}

.price-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.price-block {
  padding: clamp(24px, 3.5vw, 40px);
}

.price-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-head h3 {
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.price-tag {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-600);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 18px;
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}

.price-from {
  color: var(--ink-500);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}

.price-per {
  margin-left: -6px;
  color: var(--ink-500);
  font-size: .45em;
  font-weight: 600;
  letter-spacing: -.01em;
}

.price-note {
  margin-top: 10px;
  color: var(--ink-500);
  font-size: 14.5px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-700);
  font-size: 15px;
}

.check-list .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--accent);
  stroke-width: 2.2;
}

.price-divider {
  position: relative;
  height: 1px;
  margin-inline: clamp(24px, 3.5vw, 40px);
  background: var(--line);
}

.price-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink-500);
  transform: translate(-50%, -50%);
}

.price-divider .icon {
  width: 16px;
  height: 16px;
}

.price-foot {
  display: grid;
  gap: 18px;
  justify-items: start;
  padding: clamp(24px, 3.5vw, 40px);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.price-foot p {
  color: var(--ink-500);
  font-size: 14px;
}

@media (max-width: 479px) {
  .price-foot .btn { width: 100%; }
}

@media (min-width: 1024px) {
  .pricing-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
  .pricing-copy { position: sticky; top: calc(var(--header-h) + 48px); }
}


/* 14. FAQ
   ========================================================================== */

.faq-grid {
  display: grid;
  gap: 40px;
}

.faq-intro .text-link {
  margin-top: 24px;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line-strong);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 0;
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.02em;
  text-align: left;
}

.faq-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-700);
  transition: transform .4s var(--ease), background-color .3s ease, border-color .3s ease, color .3s ease;
}

.faq-icon .icon {
  width: 16px;
  height: 16px;
}

.faq-item.is-open .faq-icon {
  border-color: var(--ink-950);
  background: var(--ink-950);
  color: var(--on-dark);
  transform: rotate(45deg);
}

@media (hover: hover) {
  .faq-q:hover .faq-icon { border-color: var(--ink-400); }
  .faq-item.is-open .faq-q:hover .faq-icon { border-color: var(--ink-950); }
}

.faq-a {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .4s var(--ease);
}

.js .faq-item:not(.is-open) .faq-a {
  grid-template-rows: 0fr;
}

.faq-a-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-a p {
  max-width: 620px;
  padding: 0 56px 26px 0;
  color: var(--ink-500);
  font-size: 16px;
  line-height: 1.65;
}

@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
  .faq-intro { position: sticky; top: calc(var(--header-h) + 48px); }
}


/* 15. Kontakt & formulär
   ========================================================================== */

.contact-section {
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(64px, 8vw, 104px);
}

.contact-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(32px, 6vw, 80px) clamp(20px, 5.5vw, 72px);
  border-radius: clamp(24px, 3vw, 40px);
  background: var(--ink-950);
  color: var(--on-dark);
}

.contact-panel::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  z-index: -1;
  width: 70%;
  height: 90%;
  background: radial-gradient(closest-side, rgb(43 78 255 / .22), transparent);
}

.contact-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.contact-line-accent {
  animation: dash 6s linear infinite;
}

.contact-grid {
  display: grid;
  gap: 48px;
}

.contact-grid > * {
  min-width: 0;
}

/* På mobil går den mörka panelen kant i kant för att ge formuläret mer plats */
@media (max-width: 559px) {
  .contact-panel {
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    border-radius: 0;
  }
}

.contact-panel .eyebrow {
  color: var(--on-dark-2);
}

.contact-panel .eyebrow::before {
  background: var(--accent-on-dark);
  box-shadow: 0 0 0 3px rgb(130 152 255 / .18);
}

.contact-title {
  margin-top: 18px;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -.04em;
}

.contact-lead {
  max-width: 520px;
  margin-top: 20px;
  color: var(--on-dark-2);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
}

.contact-jump {
  margin-top: 32px;
}

.next-steps {
  display: grid;
  gap: 20px;
  margin-top: 44px;
}

.next-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
}

.next-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgb(255 255 255 / .18);
  border-radius: 50%;
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.next-steps p {
  color: var(--on-dark-3);
  font-size: 15px;
}

.next-steps .next-title {
  color: var(--on-dark);
  font-weight: 600;
}

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--dark-line);
}

.contact-direct a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-dark);
  font-weight: 500;
  transition: color .2s ease;
}

.contact-direct .icon {
  width: 18px;
  height: 18px;
  color: var(--on-dark-3);
}

@media (hover: hover) {
  .contact-direct a:hover { color: var(--accent-on-dark); }
}

.form-card {
  padding: clamp(22px, 3.5vw, 36px);
  border-radius: 24px;
  background: var(--white);
  color: var(--ink-900);
  box-shadow: 0 40px 100px -40px rgb(0 0 0 / .65);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.form-title {
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.form-sub {
  margin-top: 6px;
  color: var(--ink-500);
  font-size: 15px;
}

.form-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.field label,
.topics legend {
  display: block;
  margin-bottom: 7px;
  padding: 0;
  color: var(--ink-800);
  font-size: 14px;
  font-weight: 600;
}

.optional {
  color: var(--ink-400);
  font-weight: 400;
}

.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink-950);
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

textarea.input {
  height: auto;
  min-height: 108px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

.input::placeholder {
  color: var(--ink-400);
}

.input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px rgb(43 78 255 / .14);
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
}

.input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgb(194 51 31 / .14);
}

@media (hover: hover) {
  .input:hover:not(:focus):not([aria-invalid="true"]) { border-color: var(--ink-300); }
}

.field-error {
  margin-top: 6px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
}

.field-error:empty {
  display: none;
}

.topics {
  min-width: 0;
  margin-top: 22px;
  padding: 0;
  border: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.chip .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.chip-check,
.chip input:checked + span .chip-plus {
  display: none;
}

.chip input:checked + span .chip-check {
  display: block;
}

.chip input:checked + span {
  border-color: var(--ink-950);
  background: var(--ink-950);
  color: var(--on-dark);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (hover: hover) {
  .chip input:not(:checked) + span:hover { border-color: var(--ink-400); color: var(--ink-950); }
}

.field--message {
  margin-top: 18px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  margin-top: 22px;
}

.form-submit .spinner {
  display: none;
}

.form-submit.is-loading .spinner {
  display: inline-block;
}

.form-submit.is-loading .icon-arrow {
  display: none;
}

.form-submit[disabled] {
  cursor: progress;
  opacity: .85;
}

.form-status {
  margin-top: 12px;
  color: var(--danger);
  font-size: 14px;
  line-height: 1.5;
}

.form-status:empty {
  display: none;
}

.form-legal {
  margin-top: 14px;
  color: var(--ink-400);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.form-legal a {
  color: var(--ink-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-success {
  padding: 36px 8px 28px;
  text-align: center;
}

.form-success:focus {
  outline: none;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  animation: pop .55s var(--ease);
}

.success-icon .icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.4;
}

.form-success h3 {
  margin-top: 22px;
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -.025em;
}

.form-success > p {
  max-width: 360px;
  margin: 10px auto 0;
  color: var(--ink-500);
}

.form-success .demo-notice {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-600);
  font-size: 13.5px;
}

.form-success .text-link {
  margin-top: 24px;
}

@media (min-width: 560px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 64px; align-items: start; }
  .contact-jump { display: none; }
}


/* 16. Sidfot
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-grid {
  display: grid;
  gap: 40px;
  padding-block: 64px 48px;
}

.footer-brand p {
  max-width: 380px;
  margin-top: 18px;
  color: var(--ink-500);
  font-size: 15px;
}

.footer-heading {
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 650;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.footer-col a {
  color: var(--ink-500);
  font-size: 15px;
  transition: color .2s ease;
}

.footer-col a:hover {
  color: var(--ink-950);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  color: var(--ink-400);
  font-size: 13.5px;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a:hover {
  color: var(--ink-950);
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
}


/* 17. Juridiska dialoger
   ========================================================================== */

.legal-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: min(86vh, 900px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: var(--white);
  color: var(--ink-900);
  box-shadow: var(--shadow-lg);
}

.legal-dialog[open] {
  animation: dialog-in .35s var(--ease);
}

.legal-dialog::backdrop {
  background: rgb(11 12 14 / .45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.legal-inner {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}

.legal-head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.legal-head h2 {
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.legal-head .icon-btn {
  width: 38px;
  height: 38px;
}

.legal-body {
  padding: 8px 24px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.prose h3 {
  margin-top: 26px;
  color: var(--ink-950);
  font-size: 16px;
  font-weight: 650;
}

.prose p,
.prose li {
  color: var(--ink-600);
  font-size: 15px;
  line-height: 1.65;
}

.prose p {
  margin-top: 10px;
}

.prose ul {
  margin-top: 8px;
  padding-left: 20px;
  list-style: disc;
}

.prose li + li {
  margin-top: 4px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose-meta {
  color: var(--ink-400) !important;
  font-size: 13.5px !important;
}


/* 18. Animationer
   ========================================================================== */

@keyframes fade-up {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@keyframes ping {
  0% { transform: scale(1); opacity: .6; }
  80%, 100% { transform: scale(2.8); opacity: 0; }
}

@keyframes ring {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes blink {
  50% { opacity: .3; }
}

@keyframes pop {
  0% { transform: scale(.6); }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes dash {
  to { stroke-dashoffset: -150; }
}

/* Intro i hero och avslöjande vid scroll. Aktiveras bara med JavaScript och utan önskemål om minskad rörelse. */
@media (prefers-reduced-motion: no-preference) {
  .js .intro {
    animation: fade-up .9s var(--ease) both;
    animation-delay: calc(var(--d, 0) * 90ms + 60ms);
  }

  .js [data-reveal]:not([data-revealed]),
  .js [data-reveal-stagger]:not([data-revealed]) > * {
    opacity: 0;
  }

  .js [data-reveal][data-revealed] {
    animation: fade-up .9s var(--ease) backwards;
  }

  .js [data-reveal-stagger][data-revealed] > * {
    animation: fade-up .8s var(--ease) backwards;
  }

  .js [data-reveal-stagger][data-revealed] > :nth-child(2) { animation-delay: 70ms; }
  .js [data-reveal-stagger][data-revealed] > :nth-child(3) { animation-delay: 140ms; }
  .js [data-reveal-stagger][data-revealed] > :nth-child(4) { animation-delay: 210ms; }
  .js [data-reveal-stagger][data-revealed] > :nth-child(5) { animation-delay: 280ms; }
  .js [data-reveal-stagger][data-revealed] > :nth-child(6) { animation-delay: 350ms; }
  .js [data-reveal-stagger][data-revealed] > :nth-child(7) { animation-delay: 420ms; }
  .js [data-reveal-stagger][data-revealed] > :nth-child(8) { animation-delay: 490ms; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }

  .demo-timer {
    display: none;
  }
}
