/* ─────────────────────────────────────────────────────────────
   Lipio info-page v3 — shared styles
   Healthcare-SaaS riktning. Inspiration: kry.se, doktor.se, yazen.com
   Cream bg, white cards, fet sans, sticky sidebar, accordion FAQ.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #F5F0E8;
  --bg-soft: #FAF6EE;
  --bg-warm: #EBE2D0;
  --surface: #FFFFFF;
  --text: #161B1E;
  --text-dim: #4A5248;
  --text-mute: #7A8278;
  --line: #E5DFD0;
  --line-soft: #EFEAE0;
  --sage: #2D5A3F;
  --sage-hover: #1B3D2A;
  --sage-soft: #E6EFE9;
  --sage-tint: #DCE7DF;
  --accent: #C8875A;
  --accent-soft: #F4E3D2;
  --danger-soft: #F0E4DD;
  --rose: #D4726A;
  --shadow-card: 0 1px 2px rgba(20, 30, 25, 0.04), 0 4px 16px rgba(20, 30, 25, 0.05);
  --radius-card: 16px;
  --radius-pill: 999px;
  --container: 1180px;
  --gutter: clamp(48px, 7.5vw, 80px);
}

html, body { overflow-x: hidden; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--sage); text-decoration: none; }
a:hover { color: var(--sage-hover); text-decoration: underline; }
section[id] { scroll-margin-top: 96px; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── SITE NAV ── */
.v3-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: saturate(160%) blur(8px);
}
.v3-nav__inner {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 16px var(--gutter);
  max-width: 1280px;
  margin: 0 auto;
}
.v3-nav__logo {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--sage-hover);
  line-height: 1;
  position: relative;
}
.v3-nav__logo:hover { text-decoration: none; color: var(--sage-hover); }
.v3-nav__logo-io { font-style: italic; }
.v3-nav__logo-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--rose);
  border-radius: 50%;
  margin-left: 3px;
  vertical-align: super;
  position: relative;
  top: -2px;
}
.v3-nav__logo:hover .v3-nav__logo-dot {
  animation: v3LogoPulse 0.6s ease-in-out;
}
@keyframes v3LogoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.6); }
}
.v3-nav__links { display: flex; gap: 32px; flex: 1; }
.v3-nav__links a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
.v3-nav__links a:hover { color: var(--sage); }
.v3-nav__right { display: flex; align-items: center; gap: 16px; }
.v3-nav__login {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
.v3-nav__cta {
  background: var(--sage);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s;
}
.v3-nav__cta:hover { background: var(--sage-hover); color: #fff; text-decoration: none; }

/* ── ACUTE BANNER ── */
.v3-acute {
  background: var(--sage);
  color: #fff;
  font-size: 14.5px;
  line-height: 1.5;
  padding: 14px var(--gutter);
  text-align: center;
}
.v3-acute a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.v3-acute strong { font-weight: 600; }

/* ── BREADCRUMBS ── */
.v3-crumbs {
  padding: 32px 0 0;
  font-size: 14px;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.v3-crumbs a { color: var(--sage); font-weight: 500; }
.v3-crumbs__sep { opacity: 0.5; }
.v3-crumbs [aria-current="page"] { color: var(--text); font-weight: 500; }

/* ── HERO 2-COL ── */
.v3-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 64px;
}
.v3-hero h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 24px;
  max-width: 16ch;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.v3-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  font-size: 14px;
  color: var(--text-mute);
  margin: 0 0 16px;
}
.v3-hero__divider { width: 1px; height: 12px; background: var(--line); }
.v3-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  background: var(--sage-soft);
  color: var(--sage-hover);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 28px;
}
.v3-hero__badge svg { width: 18px; height: 18px; flex-shrink: 0; }
.v3-hero__lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
  max-width: 58ch;
}

/* ── HERO SIDEBAR CARD ── */
.v3-hero__card {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px;
  border: 1px solid var(--line-soft);
}
.v3-hero__card-deco {
  height: 96px;
  margin: -28px -28px 24px;
  background: var(--sage-soft);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
}
.v3-hero__card h2 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--text);
  margin: 0 0 10px;
}
.v3-hero__card-wait {
  font-size: 14.5px;
  color: var(--text-dim);
  margin: 0 0 20px;
}
.v3-hero__card-wait strong { color: var(--text); font-weight: 600; }
.v3-hero__card-cta {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: var(--sage);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15.5px;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
}
.v3-hero__card-cta:hover { background: var(--sage-hover); color: #fff; text-decoration: none; }
.v3-hero__card-divider {
  height: 1px;
  background: var(--line-soft);
  margin: 24px 0 20px;
}
.v3-hero__card-list { list-style: none; margin: 0; padding: 0; }
.v3-hero__card-list-title {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  margin: 0 0 12px;
}
.v3-hero__card-list li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-dim);
}
.v3-hero__card-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--sage);
}

/* ── FEATURES 3-COL ── */
.v3-features { padding-top: 56px; padding-bottom: 56px; }
.v3-features__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.v3-features__head h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--text);
  margin: 0 0 14px;
}
.v3-features__head p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}
.v3-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.v3-feature {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}
.v3-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--sage-soft);
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px;
}
.v3-feature__icon svg { width: 24px; height: 24px; }
.v3-feature h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 8px;
}
.v3-feature p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

/* ── STEPS ── */
.v3-steps { padding-top: 32px; padding-bottom: 56px; }
.v3-steps > h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--text);
  margin: 0 0 12px;
}
.v3-steps__sub {
  font-size: 17px;
  color: var(--text-dim);
  margin: 0 0 32px;
  max-width: 64ch;
}
.v3-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.v3-step-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: 32px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 200px;
  gap: 32px;
  align-items: start;
  box-shadow: var(--shadow-card);
}
.v3-step-card:nth-child(even) {
  background: var(--sage-soft);
  border-color: var(--sage-tint);
}
.v3-step-card:nth-child(even) .v3-step-card__meta {
  background: rgba(255, 255, 255, 0.7);
}
.v3-step-card__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.v3-step-card__body h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--text);
  margin: 4px 0 12px;
}
.v3-step-card__body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 12px;
}
.v3-step-card__bullets { list-style: none; margin: 16px 0 0; padding: 0; }
.v3-step-card__bullets li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
}
.v3-step-card__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sage-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='m4 7 2 2 4-4' stroke='%232D5A3F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.v3-step-card__bullets li strong { color: var(--text); font-weight: 600; }
.v3-step-card__meta {
  padding: 16px 20px;
  background: var(--bg-soft);
  border-radius: 10px;
  align-self: stretch;
}
.v3-step-card__meta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 8px;
}
.v3-step-card__meta-value {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}
.v3-step-card__body a {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── FULL-BLEED WRAPPERS ── */
.v3-bleed { width: 100%; }
.v3-bleed--warm { background: var(--bg-warm); }
.v3-bleed--sage-soft { background: var(--sage-soft); }
.v3-bleed--sage { background: var(--sage); color: #fff; }
.v3-bleed--sage a { color: #fff; }

/* ── DOCTOR QUOTE BAND ── */
.v3-doctor { padding-top: 72px; padding-bottom: 72px; color: #fff; }
.v3-doctor__inner {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 32px;
  align-items: center;
}
.v3-doctor__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: #fff;
}
.v3-doctor__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 14px;
}
.v3-doctor__quote {
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: #fff;
  margin: 0 0 18px;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}
.v3-doctor__cite {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
  display: block;
}
.v3-doctor__cite strong { color: #fff; font-weight: 600; font-style: normal; }

/* ── COMPARE ── */
.v3-compare { padding-top: 72px; padding-bottom: 72px; }
.v3-compare > h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 28px;
}
.v3-compare__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.v3-compare-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.v3-compare-card h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--text);
}
.v3-compare-card ul { list-style: none; margin: 0; padding: 0; }
.v3-compare-card li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
  align-items: flex-start;
}
.v3-compare-card li:first-child { border-top: none; padding-top: 0; }
.v3-compare-card li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.v3-compare-card--yes li svg { color: var(--sage); }
.v3-compare-card--no li svg { color: var(--accent); }

/* ── CALLOUT ── */
.v3-callout { margin-top: 32px; padding-top: 48px; padding-bottom: 48px; }
.v3-callout__inner {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: 48px;
  box-shadow: var(--shadow-card);
  max-width: 900px;
  margin: 0 auto;
}
.v3-callout__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 12px;
}
.v3-callout__text {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  font-weight: 400;
}

/* ── SUBS 3-COL ── */
.v3-subs {
  padding-top: 72px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.v3-bleed--sage-soft .v3-sub-card {
  background: var(--surface);
  border-color: rgba(45, 90, 63, 0.12);
}
.v3-sub-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}
.v3-sub-card h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 12px;
}
.v3-sub-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 10px;
}
.v3-sub-card ul { list-style: none; margin: 12px 0 0; padding: 0; }
.v3-sub-card li {
  padding: 6px 0 6px 18px;
  position: relative;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-dim);
}
.v3-sub-card li::before {
  content: "·";
  position: absolute;
  left: 4px;
  top: 4px;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
}

/* ── FAQ ── */
.v3-faq { padding-top: 56px; padding-bottom: 56px; }
.v3-faq__head {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}
.v3-faq__head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--text);
  margin: 0 0 12px;
}
.v3-faq__head p {
  font-size: 17px;
  color: var(--text-dim);
  margin: 0;
}
.v3-faq__list {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.v3-faq__item { border-top: 1px solid var(--line-soft); }
.v3-faq__item:first-child { border-top: none; }
.v3-faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.15s;
}
.v3-faq__item summary::-webkit-details-marker { display: none; }
.v3-faq__item summary:hover { color: var(--sage); }
.v3-faq__chev {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-mute);
  transition: transform 0.2s;
}
.v3-faq__item[open] .v3-faq__chev { transform: rotate(180deg); }
.v3-faq__answer {
  padding: 0 28px 24px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-dim);
}
.v3-faq__answer p { margin: 0 0 10px; }
.v3-faq__answer p:last-child { margin-bottom: 0; }

/* ── CTA BAND ── */
.v3-cta-band { padding-top: 56px; padding-bottom: 64px; }
.v3-cta-band__inner {
  background: var(--sage);
  color: #fff;
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(45, 90, 63, 0.18);
}
.v3-cta-band__inner h2 {
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin: 0 auto 14px;
  max-width: 22ch;
}
.v3-cta-band__inner p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 28px;
  max-width: 56ch;
}
.v3-cta-band__btn {
  display: inline-block;
  background: #fff;
  color: var(--sage);
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.v3-cta-band__btn:hover {
  background: var(--bg);
  color: var(--sage-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── RELATED ── */
.v3-related { padding-top: 48px; padding-bottom: 80px; }
.v3-related > h2 {
  font-size: clamp(24px, 2.8vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 24px;
}
.v3-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.v3-related-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-card);
}
.v3-related-card:hover {
  border-color: var(--sage);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 30, 25, 0.08), 0 12px 32px rgba(20, 30, 25, 0.06);
  text-decoration: none;
  color: var(--text);
}
.v3-related-card__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.v3-related-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.v3-related-card__arrow {
  margin-top: 12px;
  color: var(--sage);
  font-weight: 600;
  font-size: 15px;
}

/* ── FOOTER ── */
.v3-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
  padding: 32px var(--gutter);
  text-align: center;
  font-size: 13.5px;
  color: var(--text-mute);
}
.v3-footer p { margin: 0 0 12px; }
.v3-footer nav { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.v3-footer nav a { color: var(--text-mute); }
.v3-footer nav a:hover { color: var(--sage); }

/* ── PREVIEW PILL ── */
.v3-preview-pill {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.v3-preview-pill a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
}
.v3-preview-pill a:hover { color: var(--sage); text-decoration: none; }
.v3-preview-pill a.active { background: var(--sage); color: #fff; }
.v3-preview-pill a.active:hover { color: #fff; }

/* ── TABLET (between phone and small desktop) ── */
@media (min-width: 601px) and (max-width: 980px) {
  :root { --gutter: clamp(56px, 10vw, 96px); }
}

/* Uncarded content blocks need extra inner padding so they feel as
   inset as the carded sections. Applies on all viewports. */
.v3-hero__main,
.v3-doctor__inner,
.v3-steps > h2,
.v3-steps__sub,
.v3-compare > h2,
.v3-related > h2,
.v3-features__head,
.v3-faq__head {
  padding-left: 16px;
  padding-right: 16px;
}
@media (max-width: 980px) {
  .v3-hero__main,
  .v3-doctor__inner,
  .v3-steps > h2,
  .v3-steps__sub,
  .v3-compare > h2,
  .v3-related > h2,
  .v3-features__head,
  .v3-faq__head {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (max-width: 600px) {
  .v3-hero__main,
  .v3-doctor__inner,
  .v3-steps > h2,
  .v3-steps__sub,
  .v3-compare > h2,
  .v3-related > h2,
  .v3-features__head,
  .v3-faq__head {
    padding-left: 32px;
    padding-right: 32px;
  }
  .v3-hero__lead,
  .v3-hero h1,
  .v3-hero__meta,
  .v3-hero__badge { padding-right: 8px; }
}

/* Centrerade textblock (FAQ-stil) — endast narrow viewport, desktop bibehålls */
@media (max-width: 980px) {
  .v3-hero__main { text-align: center !important; }
  .v3-hero h1 { margin-left: auto !important; margin-right: auto !important; text-align: center !important; }
  .v3-hero__meta { justify-content: center !important; }
  .v3-hero__badge { margin-left: auto !important; margin-right: auto !important; }
  .v3-hero__lead { margin-left: auto !important; margin-right: auto !important; text-align: center !important; }
  .v3-steps > h2 { text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; }
  .v3-steps__sub { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
  .v3-compare > h2 { text-align: center; }
  .v3-related > h2 { text-align: center; }
  .v3-callout__eyebrow { text-align: center; }
  .v3-callout__text { text-align: center; }
}

/* ── MOBILE ── */
@media (max-width: 980px) {
  .v3-nav__links { display: none; }
  .v3-nav__inner { gap: 16px; justify-content: space-between; }
  .v3-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; padding-bottom: 48px; }
  .v3-hero__main { max-width: 720px; margin-left: auto; margin-right: auto; }
  .v3-hero__card { position: static; }
  .v3-features__grid { grid-template-columns: 1fr; }
  .v3-step-card {
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 24px;
  }
  .v3-step-card__num { width: 40px; height: 40px; font-size: 14px; }
  .v3-step-card__meta { grid-column: 1 / -1; margin-top: 8px; }
  .v3-compare__grid { grid-template-columns: 1fr; }
  .v3-callout__inner { padding: 32px 24px; }
  .v3-subs { grid-template-columns: 1fr; }
  .v3-cta-band__inner { padding: 40px 28px; }
  .v3-related__grid { grid-template-columns: 1fr; }
  .v3-nav__login { display: none; }
  .v3-doctor { padding-top: 48px; padding-bottom: 48px; }
  .v3-doctor__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .v3-doctor__quote { margin-left: auto; margin-right: auto; }
  .v3-doctor__avatar { width: 64px; height: 64px; font-size: 22px; }
}

@media (max-width: 600px) {
  :root { --gutter: clamp(40px, 10vw, 64px); }
  .v3-hero h1 {
    font-size: clamp(24px, 6vw, 30px);
    max-width: none;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    margin-bottom: 18px;
  }
  .v3-hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .v3-hero__divider { display: none; }
  .v3-hero__lead { font-size: 17px; }
  .v3-nav__cta { padding: 10px 16px; font-size: 14px; }
  .v3-nav__inner { padding: 12px var(--gutter); }
  .v3-acute { font-size: 13.5px; padding: 12px var(--gutter); }
  .v3-crumbs { font-size: 13px; padding-top: 24px; }
  .v3-hero__card { padding: 22px; }
  .v3-hero__card-deco { margin: -22px -22px 20px; height: 80px; }
  .v3-faq__item summary { padding: 18px 20px; font-size: 15.5px; }
  .v3-faq__answer { padding: 0 20px 20px; }
  .v3-callout__inner { padding: 28px 20px; }
  .v3-callout__text { font-size: 17px; }
  .v3-cta-band__inner { padding: 36px 22px; }
  .v3-step-card { padding: 22px 18px; }
  .v3-preview-pill {
    bottom: 12px;
    right: 12px;
    padding: 4px;
  }
  .v3-preview-pill a {
    padding: 6px 11px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }
}
