/* ============================================================
   Vår LifeScan — dedicated page styles (layers on top of styles.css)
   ============================================================ */

.ls-page { --font: "Inter", system-ui, sans-serif; }
.ls-page main { overflow-x: clip; }

/* Juridik-kolumnen är borttagen på denna sida -> 3 kolumner */
.ls-page .btn-primary,
.ls-page .btn-primary:hover { box-shadow: none; }
@media (max-width:820px){ .ls-page .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:480px){ .ls-page .footer-grid { grid-template-columns: 1fr; } }

/* ---------- HERO ---------- */
.ls-hero {
  position: relative;
  overflow: hidden;
  background: #0c0c0c;
  margin-inline: 1rem;
  margin-top: 1rem;
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  min-height: clamp(560px, 74vh, 780px);
  padding: clamp(96px, 12vw, 140px) 0 clamp(56px, 7vw, 84px);
}
.ls-hero-bg { position: absolute; inset: 0; z-index: 0;
  background: url("images/lifescan-hero.jpg") 50% 26% / cover no-repeat; }
@media (max-width: 680px) {
  .ls-hero-bg { background-size: auto 125%; background-position: 55% 92%; }
}
.ls-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(18, 12, 8, 0.88) 0%, rgba(18, 12, 8, 0.6) 42%, rgba(18, 12, 8, 0.18) 100%),
    linear-gradient(0deg, rgba(18, 12, 8, 0.5) 0%, rgba(18, 12, 8, 0) 38%);
}
.ls-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: left;
}
.ls-hero-copy { max-width: 880px; }
.ls-hero h1 {
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
}
.ls-hero h1 .em { color: var(--accent); }
.ls-hero-lead {
  margin-top: clamp(20px, 2.6vw, 26px);
  font-size: 21px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 1);
  max-width: 46ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}
.ls-hero-highlights {
  list-style: none;
  margin: clamp(24px, 3vw, 32px) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ls-hero-highlights li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: clamp(15px, 1.6vw, 16.5px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
}
.ls-hero-highlights svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--accent);
}
.ls-hero-actions {
  margin-top: clamp(28px, 3.4vw, 40px);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.ls-hero-actions .btn-primary,
.ls-hero-actions .btn-primary:hover { box-shadow: none; }
.ls-hero-actions .btn:hover { transform: none; }
.btn-outline-accent{background:transparent;border:1.5px solid var(--accent);color:var(--accent);box-shadow:none}
.btn-outline-accent:hover{background:var(--accent);color:#fff}
/* mobile: keep both hero buttons side by side on one row */
@media(max-width:520px){
  .ls-hero-actions{flex-wrap:nowrap;gap:10px}
  .ls-hero-actions .btn{flex:1 1 0;justify-content:center;padding-inline:14px;white-space:nowrap}
}
.ls-hero-actions .loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}
.ls-hero-actions .loc svg { width: 15px; height: 15px; color: var(--accent); }

/* stat strip */
.ls-hero-counts {
  margin-top: clamp(30px, 4vw, 44px);
  display: flex;
  gap: clamp(22px, 4vw, 48px);
  align-items: flex-end;
}
.ls-hero-counts .ci { display: flex; flex-direction: column; }
.ls-hero-counts .ci b {
  font-family: var(--font);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.ls-hero-counts .ci span {
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -0.01em;
}

@media (max-width: 880px) {
  .ls-hero { min-height: 0; }
  .ls-hero-counts { gap: 26px; }
}
@media (max-width: 460px) {
  .ls-hero-counts { flex-wrap: wrap; gap: 18px 26px; }
}
@media (max-width: 640px) {
  .ls-hero-lead br { display: none; }
  .ls-hero-lead { font-size: 17px; } /* match the För företag hero lead on mobile */
  .ls-hero-highlights li { line-height: 1.3; } /* tighten highlight list a touch on mobile */
  /* full-height hero with content bottom-aligned (matches the För företag hero) */
  .ls-hero {
    margin-top: 0;
    border-top-left-radius: 0; border-top-right-radius: 0;
    min-height: calc(100dvh - 72px);
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    padding-top: clamp(96px, 26vw, 140px);
    padding-bottom: clamp(40px, 11vw, 64px);
  }
  .ls-areas .ls-areas-intro h2 { font-size: clamp(30px, 8vw, 44px); line-height: 1.06; -webkit-hyphens: auto; hyphens: auto; }
  .ls-area .ls-area-body h3 { font-size: 40px; }
}

/* ---------- PROCESS ---------- */
.ls-process { background: var(--surface); }
.ls-section-head {
  max-width: 60ch;
  margin-bottom: clamp(40px, 5vw, 60px);
}
.ls-section-head.center { margin-inline: auto; text-align: center; }

.ls-process-cta { margin-top: clamp(36px, 4.4vw, 56px); display: flex; justify-content: center; }
.ls-section-head h2 {
  font-size: clamp(30px, 4.4vw, 50px);
  letter-spacing: -0.03em;
  margin-top: 16px;
  text-wrap: balance;
}
.ls-section-head p {
  margin-top: 16px;
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--ink-soft);
  line-height: 1.6;
}
.ls-section-head.center p { margin-inline: auto; }
@media (max-width: 640px) {
  .ls-process { padding-top: clamp(40px, 8vw, 64px); }
  .ls-process .ls-section-head.center { text-align: left; margin-inline: 0; }
  .ls-process .ls-section-head.center p { margin-inline: 0; }
}

/* ---------- DETAILED AREAS ---------- */
.ls-areas { background: var(--cream); margin: clamp(14px, 1.6vw, 22px) 1rem; border-radius: var(--r-xl); }
.ls-areas-intro { text-align: left; max-width: 60ch; margin: 0 0 clamp(8px, 1vw, 16px); }
.ls-areas-intro h2 { font-size: clamp(32px, 4.8vw, 56px); letter-spacing: -0.03em; }
.ls-areas-intro p {
  margin: 18px 0 0;
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--ink-soft);
  line-height: 1.6;
}

/* sticky jump bar */
.ls-jump-wrap {
  position: sticky;
  top: calc(var(--nav-h, 64px) + 12px);
  z-index: 40;
  max-width: var(--maxw);
  margin: clamp(30px, 4vw, 48px) auto 0;
  padding-inline: var(--gut);
}
.ls-jump {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  /* clip-path reliably clips the horizontally-scrolling chips to the rounded
     shape in Safari/iOS, where overflow:hidden + border-radius alone leaks the
     chips past the pill stroke at the rounded caps. */
  clip-path: inset(0 round var(--r-pill));
}
.ls-jump-fade {
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 56px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.ls-jump-fade.show { opacity: 1; }
.ls-jump-fade-r {
  right: calc(var(--gut) + 1px);
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96));
}
.ls-jump-fade-l {
  left: calc(var(--gut) + 1px);
  border-radius: var(--r-pill) 0 0 var(--r-pill);
  background: linear-gradient(270deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96));
}
/* mobile: solid pill so scrolling content doesn't bleed through the translucent
   background / border (backdrop-filter can render poorly on mobile) */
@media (max-width: 640px) {
  .ls-jump { background: #fff; }
}
.ls-jump-inner {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  justify-content: space-between;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  /* clip the chips on the SCROLLING element itself — iOS Safari fails to clip
     scrolling children against a rounded ancestor during momentum scroll, so
     the rounding must live on the scroll container too. */
  border-radius: var(--r-pill);
  clip-path: inset(0 round var(--r-pill));
}
.ls-jump-inner::-webkit-scrollbar { display: none; }
.ls-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--r-pill);
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.ls-chip svg { width: 17px; height: 17px; opacity: 0.7; }
.ls-chip:hover { background: var(--accent-tint); color: var(--accent-deep); }
.ls-chip.active {
  background: var(--accent);
  color: #fff;
}
.ls-chip.active svg { opacity: 1; }

/* area block */
.ls-area {
  scroll-margin-top: calc(var(--nav-h, 64px) + 80px);
  padding: clamp(48px, 6.5vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}
.ls-area:last-of-type { border-bottom: none; }
.ls-area-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.ls-area-grid > * { min-width: 0; }
.ls-area.flip .ls-area-media { order: 2; }
.ls-area-media {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ls-gallery-main {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.ls-gallery-main image-slot { width: 100%; height: 100%; display: block; }
/* same warm/orange tint as the area swipe cards */
.ls-gallery-main::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--accent); mix-blend-mode: soft-light; opacity: .2; border-radius: inherit; }
.ls-gallery-thumbs {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ls-gallery-extra {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  margin-top: 12px;
}
.ls-gallery-extra image-slot { width: 100%; height: 100%; display: block; }
.ls-gallery-small { display: flex; gap: 10px; margin-top: 12px; }
.ls-gallery-sm { position: relative; width: 84px; height: 84px; flex: none; border: none; padding: 0; background: none; cursor: pointer; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.ls-gallery-sm:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ls-gallery-sm image-slot { width: 100%; height: 100%; display: block; }
/* same warm/orange tint as the cards — thumbnails only; the lightbox shows the original */
.ls-gallery-sm::after, .ls-gallery-extra::after { content: ""; position: absolute; inset: 0; z-index: 1;
  pointer-events: none; background: var(--accent); mix-blend-mode: soft-light; opacity: .2; border-radius: inherit; }
.ls-sm-plus { position: absolute; top: 5px; right: 5px; z-index: 2; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.42); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; color: #fff; }
.ls-sm-plus svg { width: 13px; height: 13px; }
.ls-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12,12,12,.88);
  display: flex; align-items: center; justify-content: center; padding: 24px; }
.ls-lb-img { max-width: 92vw; max-height: 80vh; border-radius: 12px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.7); }
.ls-lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 92vw; }
.ls-lb-cap { color: rgba(255,255,255,.9); font-size: 15px; line-height: 1.45; text-align: center; max-width: 52ch; text-wrap: pretty; }
.ls-lb-close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.ls-lb-close:hover { background: rgba(255,255,255,.22); }
.ls-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ls-lb-nav:hover { background: rgba(255,255,255,.22); }
.ls-lb-nav.prev { left: 20px; }
.ls-lb-nav.next { right: 20px; }
.ls-gallery-thumb {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ls-gallery-thumb image-slot {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ls-gallery-cap {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--muted);
  text-align: center;
}
.ls-area-numbadge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  font-family: var(--font);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.ls-area-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}
.ls-area-mediaico {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}
.ls-area-mediaico svg { width: 30px; height: 30px; }
.ls-area-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  color: var(--accent-deep);
  flex: none;
}
.ls-area-ico svg { width: 24px; height: 24px; }
.ls-area-spec {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ls-area h3 {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.ls-area-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--r-pill);
  padding: 6px 14px;
}
.ls-area-lead {
  margin-top: 20px;
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}
.ls-area-detail {
  margin-top: clamp(26px, 3.2vw, 36px);
  display: flex;
  flex-direction: column;
}
.ls-measures-block .ls-detail-label { color: var(--accent); }
.ls-detail-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.ls-detail-count {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
/* spec sheet — term / value rows divided by hairlines */
.ls-measures {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.ls-measures li {
  display: grid;
  grid-template-columns: minmax(132px, 0.8fr) 1.5fr;
  gap: 24px;
  align-items: baseline;
  padding: 12px 2px;
  border-top: 1px solid var(--line);
}
.ls-measures li:last-child { border-bottom: 1px solid var(--line); }
.ls-measures .mterm {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ls-measures .mval {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: pretty;
}
/* why — frosted caption overlaid on the image */
.ls-media-why {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(40px, 7%, 64px) clamp(18px, 6%, 26px) clamp(18px, 5%, 24px);
  background: linear-gradient(to top, rgba(20, 14, 10, 0.92) 0%, rgba(20, 14, 10, 0.74) 46%, rgba(20, 14, 10, 0) 100%);
}
.ls-media-why-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 8px;
}
.ls-media-why p {
  font-size: clamp(14px, 1.45vw, 16px);
  line-height: 1.5;
  color: #fff;
  text-wrap: pretty;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
.ls-method {
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}
.ls-method svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }

@media (max-width: 880px) {
  .ls-area-grid { grid-template-columns: 1fr; gap: 32px; }
  .ls-area.flip .ls-area-media { order: 0; }
  .ls-gallery-main { aspect-ratio: 16 / 11; max-height: 420px; }
}
@media (max-width: 640px) {
  /* drop the separator lines; alternate the section background instead */
  .ls-area { border-bottom: none; }
  .ls-area:nth-of-type(even) { background: var(--surface); }
}
@media (max-width: 560px) {
  .ls-measures li { grid-template-columns: 1fr; gap: 3px; padding: 11px 2px; }
}

/* ---------- CTA BAND ---------- */
.ls-cta {
  background: transparent;
  color: var(--ink);
  text-align: center;
  padding: clamp(56px, 8vw, 100px) 0;
}
.ls-cta h2 {
  color: var(--ink);
  font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 18ch;
  margin-inline: auto;
}
.ls-cta p {
  margin: 20px auto 0;
  max-width: 48ch;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
}
.ls-cta-actions {
  margin-top: clamp(28px, 3.4vw, 38px);
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.ls-cta .btn-light {
  background: var(--accent);
  color: #fff;
}
.ls-cta .btn-light:hover { background: var(--accent-deep); transform: translateY(-2px); }
.ls-cta .btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.ls-cta .btn-outline:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--surface); }
.ls-cta .price {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- reveal (mirrors site behaviour) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 0.84, 0.44, 1),
    transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
}
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-show] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
