:root {
  --km-paper: #ffffff;
  --km-soft: #f7f6f3;
  --km-soft-green: #eef3f1;
  --km-soft-rose: #f6f1f3;
  --km-soft-blue: #f0f2f4;
  --km-ink: #242424;
  --km-muted: #686868;
  --km-line: #e7e6e2;
}

html { color: var(--km-ink); }

body.white_background {
  color: var(--km-ink);
  background: var(--km-paper);
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
  line-height: 1.72;
}

body p,
body .sofia,
body .sofia_light {
  color: var(--km-ink);
  font-family: "Open Sans", sans-serif;
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.72;
}

body h1,
body h2,
body h3,
body h4,
body .sofia_reg,
body .sofia_bold,
body .square_reg {
  color: var(--km-ink);
  font-family: "IM Fell Double Pica", serif;
  font-weight: 400;
  line-height: 1.08;
}

.ecosystem-header { border-color: var(--km-line); }

.ecosystem-header .ecosystem-brand,
.ecosystem-header .ecosystem-nav {
  font-family: "Open Sans", sans-serif;
}

/* Inledningen följer samma luftiga och neutrala formspråk som Fot++. */
.ecosystem-header + header {
  border-bottom: 0;
  background: var(--km-paper);
}

.ecosystem-header + header .container-fluid { padding: 76px 24px 38px; }

.ecosystem-header + header .col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 0 !important;
}

.ecosystem-header + header img {
  width: 150px !important;
  max-width: 36vw;
  margin: 0 auto 28px;
  border-radius: 32px;
}

.ecosystem-header + header h1.sofia_bold {
  margin: 0 0 8px;
  font-size: clamp(2.8rem, 5vw, 4rem);
}

.ecosystem-header + header h2 {
  margin: 0 0 34px;
  color: var(--km-muted);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.ecosystem-header + header .vrid {
  width: min(760px, 100%);
  margin: 0;
  color: var(--km-muted);
  transform: none;
  font-size: clamp(1.65rem, 3vw, 2.35rem) !important;
}

.ecosystem-header + header .product-intro {
  width: min(720px, 100%);
  margin: 34px auto 0;
  color: #4d4d4d;
  font-size: 1.08rem;
}

/* Köpytan blir en lugn del av sidan i stället för ett appfärgat band. */
body > .orange_background {
  padding: 0 24px 68px !important;
  border-bottom: 0;
  background: var(--km-paper);
}

body > .orange_background h4 {
  margin-bottom: 22px;
  color: var(--km-ink) !important;
  font-size: 1.35rem;
}

body > .orange_background a { display: inline-block; margin: 4px 6px; }
body > .orange_background a img { width: 160px; max-width: 42vw; }

/* Redaktionell produkttopp, byggd enligt samma princip som Fot++. */
.ecosystem-header + .product-hero .product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr);
  gap: clamp(54px, 8vw, 104px);
  align-items: center;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0 92px;
}

.ecosystem-header + .product-hero .product-hero-copy {
  display: block;
  padding: 0 !important;
}

.ecosystem-header + .product-hero .product-identity {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.ecosystem-header + .product-hero .product-icon {
  width: 100px !important;
  max-width: none;
  margin: 0;
  border-radius: 22px;
}

.product-hero .hero-eyebrow {
  margin: 0 0 10px;
  color: var(--km-muted);
  font-size: .78rem;
  font-weight: 300;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.product-hero .product-identity h1.sofia_bold {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.2rem);
}

.product-hero .product-subtitle {
  margin: 8px 0 0;
  color: var(--km-muted);
  font-size: .95rem;
}

.product-hero .product-description { margin-top: 48px; }

.product-hero .product-tagline {
  max-width: 650px;
  margin: 0 0 22px;
  color: var(--km-ink);
  font-size: clamp(2rem, 3.5vw, 3.15rem);
}

.ecosystem-header + .product-hero .product-intro {
  width: auto;
  max-width: 650px;
  margin: 0;
  color: #4d4d4d;
  font-size: 1.08rem;
  text-transform: none;
}

.product-store-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.product-store-links a,
.product-store-links img { display: block; }
.ecosystem-header + .product-hero .product-store-links img {
  width: 150px !important;
  max-width: 42vw;
  margin: 0 !important;
  border-radius: 0 !important;
}

.ecosystem-header + .product-hero .product-hero-media {
  display: grid;
  place-items: center;
  padding: 0 !important;
}

.ecosystem-header + .product-hero .product-hero-media img {
  width: min(285px, 100%) !important;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  filter: drop-shadow(0 18px 28px rgba(35, 34, 32, .13));
}

/* De fyra stegen har samma typografiska system och diskreta bakgrunder. */
body > .steps-section {
  padding: 0 !important;
  background: var(--km-paper);
}

body > .steps-section > .row {
  align-items: center;
  min-height: 500px;
  margin: 0;
  padding: 70px max(6%, calc((100% - 1120px) / 2));
  border-top: 1px solid var(--km-line);
}

body > .steps-section > .row:nth-child(1) { background: var(--km-soft); }
body > .steps-section > .row:nth-child(2) { background: var(--km-soft-green); }
body > .steps-section > .row:nth-child(3) { background: var(--km-soft-rose); }
body > .steps-section > .row:nth-child(4) { background: var(--km-soft-blue); }

body > .steps-section > .row > div:first-child {
  padding: 28px 4.5%;
  color: var(--km-ink) !important;
}

body > .steps-section > .row > div:first-child p:first-child {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 0 24px;
  border: 1px solid #747474;
  border-radius: 50%;
  background: var(--km-paper);
  font-size: 2.25rem !important;
  line-height: 1;
}

body > .steps-section > .row > div:first-child p:nth-child(2) {
  margin: 0 0 20px;
  text-align: left !important;
  font-size: clamp(1.9rem, 3.5vw, 3rem) !important;
}

body > .steps-section .white,
body > .steps-section .text-light { color: var(--km-ink) !important; }

body > .steps-section img {
  display: block;
  width: auto;
  max-width: min(100%, 300px);
  max-height: 540px;
  margin: 0 auto;
  object-fit: contain;
}

/* Fortsättningen behåller bilder och text men får samma luft och rubriker. */
body > .container:not(:empty) { max-width: 1120px; }

body > .container > .row.my-5 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 66px 0;
}

body > .container > .row.my-5 + .row.my-5 { border-top: 1px solid var(--km-line); }

body > .container h1 { font-size: clamp(2.2rem, 4vw, 3.8rem); }

body > .container .feature-symbols {
  justify-content: center;
  padding-top: 54px;
  padding-bottom: 54px;
}

body > .container .feature-symbols > div {
  width: min(22%, 210px);
}

body > .container .feature-symbols img {
  display: block;
  width: 100%;
  max-width: 180px;
  margin: 0 auto;
}

body > .container .about-copy h1 {
  margin-bottom: 24px;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
}

body > .teal_background.p-5 {
  padding: 72px 24px !important;
  border-top: 1px solid var(--km-line);
  background: var(--km-soft-green);
}

body > .teal_background.p-5 .white,
body > .teal_background.p-5 .text-light { color: var(--km-ink) !important; }

body > .pricing-section h1 {
  margin-bottom: 20px;
  font-family: "IM Fell Double Pica", serif !important;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 400;
}

body > .pricing-section p {
  max-width: 760px;
  margin: 0;
  font-family: "Open Sans", sans-serif !important;
  font-size: 1.02rem !important;
  font-weight: 300;
  line-height: 1.72;
}

.related-tools {
  padding: 104px 24px 118px;
  border-top: 1px solid var(--km-line);
  background: var(--km-paper);
}

.related-tools-inner { width: min(1120px, 100%); margin: 0 auto; }

.related-eyebrow {
  margin: 0 0 12px;
  color: var(--km-muted);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.related-tools h2 {
  max-width: 720px;
  margin: 0 0 48px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.related-apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.related-apps article {
  display: flex;
  min-height: 100%;
  padding: 30px;
  flex-direction: column;
  background: var(--km-soft);
  border: 1px solid var(--km-line);
}

.related-apps article > img {
  display: block;
  width: 150px;
  height: 150px;
  margin: 4px auto 30px;
  border-radius: 32px;
  object-fit: contain;
  box-shadow: 0 12px 30px rgba(24, 23, 22, .11);
}

.related-apps article > div { display: flex; flex: 1; flex-direction: column; }
.related-apps h3 { margin: 0 0 14px; font-size: 1.65rem; }
.related-apps p { margin: 0 0 24px; font-size: .96rem; }
.related-apps a { margin-top: auto; color: var(--km-ink); }

body > .black_background {
  padding: 72px 24px !important;
  border-top: 1px solid var(--km-line);
  background: var(--km-soft) !important;
}

body > .black_background .black_background { background: transparent !important; }
body > .black_background .white,
body > .black_background .text-light { color: var(--km-ink) !important; }

.ecosystem-footer {
  border-color: var(--km-line);
  color: var(--km-ink);
  background: var(--km-paper);
}

.ecosystem-footer a { color: var(--km-ink); }

@media (max-width: 767px) {
  .ecosystem-header + header .container-fluid { padding: 54px 22px 30px; }
  .ecosystem-header + header img { width: 118px !important; margin-bottom: 22px; border-radius: 27px; }
  .ecosystem-header + header h1.sofia_bold { font-size: 3.1rem; }
  .ecosystem-header + header h2 { margin-bottom: 26px; font-size: 1.3rem; }
  .ecosystem-header + header .vrid { font-size: 1.8rem !important; }
  .ecosystem-header + header .product-intro { margin-top: 28px; font-size: 1rem; }

  body > .orange_background { padding: 0 18px 50px !important; }

  .ecosystem-header + .product-hero .product-hero-grid {
    display: block;
    width: calc(100% - 44px);
    padding: 58px 0 66px;
  }

  .ecosystem-header + .product-hero .product-identity {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 17px;
  }

  .ecosystem-header + .product-hero .product-icon {
    width: 76px !important;
    border-radius: 17px;
  }

  .product-hero .product-identity h1.sofia_bold { font-size: clamp(2.05rem, 10vw, 2.55rem); }
  .product-hero .product-subtitle { font-size: .88rem; }
  .product-hero .product-description { margin-top: 44px; }
  .product-hero .product-tagline { font-size: 2.15rem; }
  .ecosystem-header + .product-hero .product-intro { font-size: 1rem; }
  .ecosystem-header + .product-hero .product-store-links img { width: 138px !important; }
  .ecosystem-header + .product-hero .product-hero-media { margin-top: 48px; }
  .ecosystem-header + .product-hero .product-hero-media img { width: min(220px, 72vw) !important; }

  body > .steps-section > .row {
    display: block;
    min-height: 0;
    padding: 58px 22px 64px;
  }

  body > .steps-section > .row:nth-child(2),
  body > .steps-section > .row:nth-child(3) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  body > .steps-section > .row > div {
    width: 100%;
    max-width: 100%;
  }

  body > .steps-section > .row > div:first-child {
    grid-column: 1 / -1;
    padding: 0 0 34px;
  }
  body > .steps-section > .row > div:first-child p:first-child { width: 58px; height: 58px; }
  body > .steps-section > .row > div:first-child p:nth-child(2) { font-size: 2rem !important; }

  body > .steps-section img {
    max-width: min(74vw, 250px);
    max-height: none;
    margin-top: 12px;
  }

  body > .steps-section > .row:nth-child(2) > div:not(:first-child),
  body > .steps-section > .row:nth-child(3) > div:not(:first-child) {
    padding: 0;
  }

  body > .steps-section > .row:nth-child(2) > div:not(:first-child) img,
  body > .steps-section > .row:nth-child(3) > div:not(:first-child) img {
    width: 100%;
    max-width: 190px;
    margin: 0 auto;
  }

  body > .container > .row.my-5 { padding: 52px 12px; }
  body > .container > .row.pb-5 { padding-bottom: 52px !important; }
  body > .container .feature-symbols { gap: 12px; padding: 42px 0 !important; }
  body > .container .feature-symbols > div { width: calc(33.333% - 8px); padding: 0 5px; }
  body > .container .feature-symbols img { max-width: 116px; }
  .related-tools { padding: 68px 22px 74px; }
  .related-tools h2 { margin-bottom: 34px; font-size: 2.15rem; }
  .related-apps { grid-template-columns: 1fr; gap: 16px; }
  .related-apps article {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
    padding: 21px;
  }
  .related-apps article > img {
    width: 82px;
    height: 82px;
    margin: 0;
    border-radius: 18px;
  }
  .related-apps h3 { font-size: 1.35rem; }
  .related-apps p { margin-bottom: 8px; font-size: .88rem; line-height: 1.55; }
  .related-apps a { font-size: .86rem; }
  body > .teal_background.p-5,
  body > .black_background { padding: 58px 24px !important; }
  .ecosystem-footer { padding: 28px 22px; font-size: .8rem; }
}

@media (max-width: 390px) {
  .product-store-links { align-items: flex-start; flex-direction: column; }
  .ecosystem-header + .product-hero .product-store-links img { width: 145px !important; max-width: 100%; }
}
