/* Divine-Lifecare — ruled-index system
   Canvas, rules, type and bare-word links: wired editorial index.
   Mono labels, status pill, solid CTA and midnight closing band: operational accents. */

:root {
  --paper: #ffffff;
  --ink: #0b0f1a;
  --ink-2: #4a5263;
  --hair: #d9dce3;
  --band: #f1f1f1;
  --midnight: #071233;
  --blue: #1f54e0;        /* primary action only */
  --blue-hover: #1743b8;
  --signal: #19c37d;      /* status dot only */
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1240px;
  --gutter: 24px;
  --rail: 220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, p, ol, ul, figure, address { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 20;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Type ---------- */
h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  font-weight: 400; line-height: 0.98; letter-spacing: -0.022em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400; line-height: 1.05; letter-spacing: -0.015em;
  text-wrap: balance;
}
h3 { font-size: 1.375rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.005em; }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.45; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.prose p { max-width: 38em; text-wrap: pretty; }
.prose p + p { margin-top: 1em; }
.muted { color: var(--ink-2); }
.label {
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; line-height: 1.5;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2);
}

/* ---------- Links and actions ---------- */
.link {
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: color .15s ease;
}
.link:hover { color: var(--blue); }
.link span { display: inline-block; transition: transform .2s ease; }
.link:hover span { transform: translateX(4px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 32px; border: 0; border-radius: 8px;
  background: var(--blue); color: #fff; font: 500 1rem/1.2 var(--sans);
  text-decoration: none; cursor: pointer; transition: background .15s ease;
}
.btn:hover { background: var(--blue-hover); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 36px; }

/* ---------- Wired masthead ---------- */
.mast { padding-top: 22px; }
.mast__in {
  border-top: 2px solid var(--ink);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
}
.mast__brand, .mast__nav a, .mast__toggle {
  position: relative; display: inline-block; padding: 16px 0 0 10px;
  text-decoration: none; color: var(--ink);
}
.mast__brand::before, .mast__nav a::before, .mast__toggle::before {
  content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 14px; background: var(--ink);
}
.mast__brand { font-size: 1.75rem; line-height: 0.95; letter-spacing: -0.02em; padding-top: 18px; }
.mast__brand::before { height: 46px; }
.mast__nav { display: flex; gap: 34px; }
.mast__nav a { font-size: 1.0625rem; line-height: 1.2; }
.mast__nav a:hover { color: var(--blue); }
.mast__nav a[aria-current="page"]::before { width: 8px; height: 8px; left: -3px; top: -5px; }
.mast__nav a[aria-current="page"] { font-weight: 500; }
.mast__nav .mast__tel { font-family: var(--mono); font-size: 0.875rem; letter-spacing: 0.02em; padding-top: 18px; }
.mast__toggle { display: none; background: none; border: 0; font: inherit; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 104px;
}
.status {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  padding: 6px 14px 6px 12px; border: 1px solid var(--hair); border-radius: 999px;
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--ink-2);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(25, 195, 125, .18); }
.hero .lede { margin-top: 28px; }
.proof { margin-top: 32px; display: grid; gap: 10px; }
.proof li { position: relative; padding-left: 26px; }
.proof li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 1px; background: var(--ink); }

.route { color: var(--ink); }
.route svg { width: 100%; height: auto; }
.route text { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; fill: var(--ink-2); text-transform: uppercase; }
.route .route__name { font-family: var(--sans); font-size: 26px; letter-spacing: -0.02em; fill: var(--ink); text-transform: none; }
.route .route__flow { stroke-dasharray: 5 7; animation: flow 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.route figcaption { margin-top: 14px; }

/* ---------- Page head (inner pages) ---------- */
.pagehead { padding-top: 72px; padding-bottom: 80px; }
.pagehead .label { margin-bottom: 22px; }
.pagehead .label a { text-decoration: none; }
.pagehead .label a:hover { color: var(--ink); }
.pagehead h1 { max-width: 15em; }
.pagehead .lede { margin-top: 28px; }

/* ---------- Ruled sections ---------- */
.sec {
  border-top: 1px solid var(--ink);
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 0 40px;
  padding-top: 22px; padding-bottom: 104px;
}
.sec__rail { position: relative; padding-left: 12px; }
.sec__rail::before { content: ""; position: absolute; left: 0; top: -22px; width: 1px; height: 40px; background: var(--ink); }
.sec__body > h2 { margin-bottom: 40px; max-width: 18em; }
.sec__body > h2 + .lede { margin-top: -16px; margin-bottom: 40px; }

/* Index rows */
.index { border-top: 1px solid var(--hair); }
.index__row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.3fr) 32px;
  gap: 24px; align-items: baseline; padding: 26px 12px 26px 0;
  border-bottom: 1px solid var(--hair); text-decoration: none;
  transition: background .15s ease, padding .2s ease;
}
.index__row:hover { background: var(--band); padding-left: 12px; }
.index__title { font-size: 1.625rem; line-height: 1.1; letter-spacing: -0.012em; }
.index__desc { color: var(--ink-2); }
.index__arrow { justify-self: end; transition: transform .2s ease; }
.index__row:hover .index__arrow { transform: translateX(4px); }

/* Trio */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trio > li { padding: 4px 32px 8px 24px; border-left: 1px solid var(--ink); }
.trio .label { display: block; margin-bottom: 44px; }
.trio h3 { margin-bottom: 10px; }
.trio p { color: var(--ink-2); }

/* Pulled statement */
.pull { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.18; letter-spacing: -0.015em; max-width: 24em; text-wrap: balance; }
.pull + .link { display: inline-block; margin-top: 32px; }

/* Dashed chronology */
.steps { border-left: 1px dashed var(--ink); margin-left: 5px; }
.steps > li { position: relative; padding: 0 0 48px 40px; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; }
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; background: var(--ink); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); max-width: 36em; }

/* Catalogue (medicines) */
.cat { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 0 40px; padding-bottom: 104px; }
.cat__rail { position: sticky; top: 24px; align-self: start; border-top: 1px solid var(--ink); padding-top: 22px; }
.cat__rail .label { display: block; margin-bottom: 18px; }
.cat__rail li + li { margin-top: 10px; }
.cat__rail a { text-decoration: none; }
.cat__rail a:hover { border-bottom: 1px solid currentColor; }
.entry {
  border-top: 1px solid var(--ink); display: grid; grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px; padding: 22px 0 72px; scroll-margin-top: 24px;
}
.entry h2 { margin-bottom: 18px; }
.entry p { max-width: 36em; color: var(--ink-2); }
.entry .link { display: inline-block; margin-top: 26px; }
.note { border: 1px solid var(--ink); padding: 36px; display: grid; gap: 22px; justify-items: start; }
.note p { max-width: 38em; color: var(--ink-2); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; padding-bottom: 104px; }
.details { border-top: 1px solid var(--ink); }
.details > div { padding: 22px 0 26px; border-bottom: 1px solid var(--hair); }
.details .label { display: block; margin-bottom: 10px; }
.details .big { font-size: 1.375rem; line-height: 1.3; }
.details .big a { text-decoration: none; border-bottom: 1px solid currentColor; }
.form { border-top: 1px solid var(--ink); padding-top: 22px; display: grid; gap: 24px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 8px; }
.field label, fieldset legend { font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--paper); color: var(--ink); font: inherit;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
fieldset legend { padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: block; padding: 10px 16px; border: 1px solid var(--ink); }
.chips input:checked + span { background: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__hint { font-size: 0.9375rem; color: var(--ink-2); max-width: 30em; }
.form__status { font-size: 0.9375rem; min-height: 1.5em; }
.form__status.is-ok, .form__status.is-error { padding-left: 14px; border-left: 2px solid var(--ink); }
.form__status.is-ok { border-left-color: var(--signal); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- Midnight closing band ---------- */
.band { position: relative; background: var(--midnight); color: #fff; overflow: hidden; }
.band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .34) 1px, transparent 1.6px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(100deg, transparent 38%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 38%, #000 100%);
}
.band__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: end; padding-top: 96px; padding-bottom: 96px; }
.band .label { color: rgba(255, 255, 255, .66); margin-bottom: 20px; }
.band h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; max-width: 12em; }
.band__lines { display: grid; gap: 6px; font-size: 1.25rem; }
.band__lines a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .5); justify-self: start; }
.band__lines a:hover { border-color: #fff; }
.band .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.foot { background: var(--band); font-size: 0.9375rem; }
.foot__in { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 0.8fr; gap: 40px; padding-top: 48px; padding-bottom: 40px; }
.foot .label { display: block; margin-bottom: 12px; }
.foot__brand { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; margin-bottom: 10px; }
.foot a { text-decoration: none; }
.foot a:hover { border-bottom: 1px solid currentColor; }
.foot li + li { margin-top: 6px; }
.foot__base { border-top: 1px solid var(--hair); padding-top: 18px; padding-bottom: 24px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --rail: 160px; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; padding-bottom: 72px; }
  .route { max-width: 520px; }
  .contact { grid-template-columns: 1fr; gap: 56px; }
  .band__in { grid-template-columns: 1fr; align-items: start; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .index__row { grid-template-columns: 48px minmax(0, 1fr) 24px; }
  .index__desc { grid-column: 2 / 3; grid-row: 2; }
  .index__arrow { grid-column: 3; grid-row: 1; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .mast__toggle { display: inline-block; font-size: 1.0625rem; }
  .mast__in { flex-wrap: wrap; }
  .mast__nav { display: none; flex-direction: column; gap: 0; width: 100%; border-top: 1px dashed var(--ink); margin-top: 16px; }
  .mast__nav.is-open { display: flex; }
  .mast__nav a { padding: 14px 0 14px 10px; border-bottom: 1px solid var(--hair); }
  .mast__nav a::before { height: 100%; width: 1px; }
  .mast__nav a[aria-current="page"]::before { width: 3px; height: 100%; left: 0; top: 0; }
  .mast__nav .mast__tel { padding-top: 14px; }
  .sec, .cat { grid-template-columns: 1fr; padding-bottom: 72px; }
  .sec__rail { margin-bottom: 28px; }
  .cat__rail { position: static; margin-bottom: 40px; padding-bottom: 8px; }
  .trio { grid-template-columns: 1fr; gap: 32px; }
  .trio .label { margin-bottom: 14px; }
  .steps > li { grid-template-columns: 1fr; gap: 6px; padding-left: 28px; }
  .entry { grid-template-columns: 1fr; gap: 8px; padding-bottom: 56px; }
  .form__row { grid-template-columns: 1fr; }
  .note { padding: 24px; }
  .pagehead { padding-top: 48px; padding-bottom: 56px; }
  .foot__in { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
