:root {
  --bg: #f8fafc;
  --bg-soft: #e7efe9;
  --surface: #ffffff;
  --ink: #15212b;
  --ink-soft: #243341;
  --brand: #005b8f;
  --brand-strong: #003c61;
  --accent: #0f9f6e;
  --line: #c8d4dc;
  --danger: #b12f44;
  --danger-bg: #fdecef;
  --warn: #8f5f00;
  --warn-bg: #fff6df;
  --ok: #16694c;
  --ok-bg: #e8f8f0;
  --shadow: 0 24px 42px rgba(10, 26, 36, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
}

body.medication-hub {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  line-height: 1.45;
  background: var(--bg);
}

body.medication-hub > main {
  flex: 1 0 auto;
}

body.medication-hub h1,
body.medication-hub h2,
body.medication-hub h3,
body.medication-hub h4,
body.medication-hub .font-display {
  margin: 0;
  font-family: 'Sora', 'Source Sans 3', sans-serif;
  letter-spacing: 0;
}

body.medication-hub p { margin: 0; }

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(21, 33, 43, 0.12);
  background: #ffffff;
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.03rem;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(15, 159, 110, 0.14);
}

.top-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(0, 91, 143, 0.1);
  color: var(--brand-strong);
  outline: none;
}

.btn {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn:focus-visible,
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible,
.check:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.btn-primary {
  color: #fff;
  background: var(--brand-strong);
  box-shadow: 0 12px 24px rgba(0, 60, 97, 0.24);
}

.btn-primary:hover { box-shadow: 0 16px 28px rgba(0, 60, 97, 0.29); }

.btn-muted {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.btn-ghost-light {
  color: #ecf6ff;
  border-color: rgba(236, 246, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(0, 91, 143, 0.25);
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

.hero {
  padding: 50px 0 38px;
}

.hub-hero {
  width: 100%;
  padding: 0;
}

.hub-hero-shell {
  display: grid;
  min-height: calc(100vh - 74px);
  border-top: 1px solid rgba(21, 33, 43, 0.16);
  border-bottom: 1px solid rgba(21, 33, 43, 0.16);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hub-hero-art {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #071421;
}

.hub-hero-art::before,
.hub-hero-art::after { display: none; }

.hub-hero-art > * {
  position: relative;
  z-index: 1;
}

.hub-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #d9efff;
}

.hub-hero-art h1 {
  margin: 12px 0 8px;
  font-size: clamp(1.8rem, 4.4vw, 2.7rem);
  line-height: 1.12;
  max-width: 14ch;
  color: #f8fafc;
}

.hub-hero-art p {
  max-width: 35ch;
  color: #f1f5f9;
}

.hub-hero-body {
  display: grid;
  gap: 10px;
  align-content: center;
}

.hub-hero-body h2 {
  font-size: clamp(1.45rem, 3.3vw, 2.2rem);
  line-height: 1.15;
}

.hub-hero-body p {
  color: var(--ink-soft);
  max-width: 48ch;
}

.hero-grid,
.split-grid,
.problem-grid,
.fit-grid,
.timeline {
  display: grid;
  gap: 14px;
}

.hero-grid { gap: 28px; align-items: start; }

.hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.04;
  max-width: 16ch;
}

.hero p,
.section-sub,
.small-note,
.card p,
.list li,
.timeline-step p {
  color: #243341;
}

.hero p { font-size: 1.12rem; max-width: 60ch; }

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.hero-note { margin-top: 14px; color: #4b5b67; font-size: 0.95rem; max-width: 60ch; }

.section { padding: 24px 0; }

.hub-section {
  padding-top: clamp(5rem, 8vw, 7rem);
  padding-bottom: clamp(5rem, 8vw, 7rem);
}

.section-impact {
  background: #fff7ed;
}

.section-current {
  background: #eef4f8;
}

.section-product {
  background: #edf7f0;
}

.hub-section-full {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
}

.hub-section-full .hub-content {
  width: 100%;
}

#problem,
#solution,
#features {
  scroll-margin-top: 74px;
}

.section-title { font-size: clamp(1.55rem, 4.2vw, 2.2rem); }

.section-sub { margin-top: 10px; max-width: 68ch; }

.card-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  border: 1px solid rgba(143, 95, 0, 0.22);
  background: #fffbeb;
  color: #7a4d00;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.problem-card {
  display: grid;
  align-content: start;
  min-height: 265px;
}

.insight-band {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid rgba(143, 95, 0, 0.3);
  border-left: 6px solid var(--warn);
  border-radius: var(--radius-md);
  background: #fffbeb;
  padding: clamp(1rem, 2vw, 1.25rem);
  color: #3d2b00;
}

.insight-band strong {
  flex: 0 0 auto;
  color: #2d2100;
}

.hub-content {
  max-width: 1280px;
  padding-left: clamp(18px, 4vw, 42px);
  padding-right: clamp(18px, 4vw, 42px);
}

.hub-card-grid,
.hub-solution-grid,
.hub-feature-grid {
  display: grid;
}

.hub-card-grid .card,
.hub-solution-grid .card,
.hub-feature-grid .card {
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.2vw, 2rem);
}

.compact-list li {
  padding: 9px 12px;
  font-size: 0.94rem;
}

.solution-flow {
  display: grid;
  gap: 12px;
}

.flow-step {
  position: relative;
  min-height: 190px;
  border: 1px solid rgba(21, 33, 43, 0.12);
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: clamp(1.1rem, 2vw, 1.45rem);
  box-shadow: 0 14px 30px rgba(10, 26, 36, 0.06);
}

.flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #064e5d;
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
}

.flow-step h3 {
  margin-top: 16px;
  font-size: 1.12rem;
}

.flow-step p {
  margin-top: 8px;
  color: var(--ink-soft);
}

.feature-list,
.hub-benefit-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.feature-list li,
.hub-benefit-list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px 11px;
  color: var(--ink-soft);
}

.hub-benefit-list strong {
  color: var(--ink);
}

.discovery-cta {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(0, 91, 143, 0.25);
  border-radius: var(--radius-lg);
  background: #08314d;
  color: #f8fbff;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 20px 38px rgba(3, 35, 55, 0.22);
}

.discovery-cta h3 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.discovery-cta p {
  margin-top: 8px;
  max-width: 68ch;
  color: #dcecf7;
}

.discovery-cta .hero-actions {
  margin-top: 0;
  justify-content: flex-start;
}

.panel,
.card,
.form-card,
.info-card,
.timeline-step,
.governance {
  background: var(--surface);
  border: 1px solid rgba(21, 33, 43, 0.12);
  border-radius: var(--radius-md);
  padding: 18px;
}

.panel { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.card h3 { font-size: 1.08rem; }

.card p,
.timeline-step p { margin-top: 8px; }

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.list li {
  border-left: 4px solid var(--brand);
  background: #f7fbff;
  border-radius: 8px;
  padding: 10px 12px;
}

.pilot-steps {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.pilot-steps li {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: #f8fbfd;
}

.pilot-steps strong { display: block; font-size: 0.95rem; }

.pilot-steps span { font-size: 0.92rem; color: var(--ink-soft); }

.kpi-strip { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }

.kpi-chip {
  border-radius: 999px;
  border: 1px solid #86cbb2;
  background: #e7f6ef;
  padding: 6px 11px;
  font-weight: 700;
  font-size: 0.8rem;
  color: #0a6e4d;
}

.timeline {
  margin-top: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 91, 143, 0.24);
  background: #f8fcff;
  padding: 20px;
}

.governance { margin-top: 16px; border-radius: var(--radius-lg); }

.final-cta {
  margin: 28px 0 40px;
  border-radius: 28px;
  padding: 24px;
  background: #08314d;
  color: #eff7ff;
  box-shadow: 0 20px 40px rgba(3, 35, 55, 0.32);
}

.final-cta h2 { font-size: clamp(1.45rem, 4vw, 2rem); }

.final-cta p { margin-top: 10px; max-width: 60ch; color: #f3f8fc; }

.final-cta .btn-wrap { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

.form-section { padding: 38px 0; }

.split-grid { align-items: start; }

.form-card,
.info-card { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.form-title { font-size: clamp(1.6rem, 4vw, 2.2rem); }

.small-note { margin-top: 8px; }

.help {
  color: #243341;
}

.stack-top-sm { margin-top: 12px; }

.stack-top-md { margin-top: 16px; }

.stack-top-lg { margin-top: 18px; }

.btn-block { width: 100%; }

.nav-link-inline {
  display: inline;
  padding: 0;
  font-weight: 700;
}

.shell-narrow { max-width: 760px; }

.text-center { text-align: center; }

.section-sub-center {
  margin-left: auto;
  margin-right: auto;
}

.hero-actions.center-actions { justify-content: center; }

.captcha-client-error[hidden] { display: none; }

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

.form-grid {
  display: grid;
  gap: 12px;
}

.field { display: grid; gap: 6px; }
.org-lookup { position: relative; }
.suggestion-list {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  right: 0;
  z-index: 25;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 28px rgba(10, 26, 36, 0.16);
  max-height: 240px;
  overflow-y: auto;
}
.suggestion-list[hidden] {
  display: none;
}
.suggestion-option {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  padding: 8px 10px;
  font-size: 0.9rem;
  cursor: pointer;
}
.suggestion-option:hover,
.suggestion-option:focus-visible {
  border-color: rgba(0, 91, 143, 0.24);
  background: #f2f8fc;
  outline: none;
}

.label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #223443;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid #b8c8d3;
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  font-size: 0.96rem;
}

.textarea { min-height: 120px; resize: vertical; }

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

.checkbox-wrap {
  border: 1px solid rgba(21, 33, 43, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: #f8fbff;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.check-text { color: var(--ink-soft); font-size: 0.95rem; }

.alert {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 0.92rem;
}

.alert-error {
  border-color: #efc0c8;
  background: var(--danger-bg);
  color: var(--danger);
}

.alert-warn {
  border-color: #efddab;
  background: var(--warn-bg);
  color: var(--warn);
}

.alert-ok {
  border-color: #b8e4d2;
  background: var(--ok-bg);
  color: var(--ok);
}

.help {
  font-size: 0.84rem;
  color: #000000;
  background: #ffffff;
}

.error {
  font-size: 0.82rem;
  color: var(--danger);
}

.info-card h3,
.info-card h2 { font-size: 1.2rem; }

.info-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  display: grid;
  gap: 8px;
}

.info-list li strong { color: var(--ink); }

.footer {
  margin-top: auto;
  border-top: 1px solid rgba(21, 33, 43, 0.12);
  background: #ffffff;
  font-size: 0.86rem;
  color: #334454;
}

.footer-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: riseIn 0.55s ease forwards;
}

.d-1 { animation-delay: 0.08s; }
.d-2 { animation-delay: 0.18s; }
.d-3 { animation-delay: 0.28s; }

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 860px) {
  .hub-hero-shell {
    grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  }

  .hub-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .solution-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hub-solution-grid,
  .hub-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .split-grid,
  .problem-grid,
  .fit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .form-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .form-grid.name-grid {
    grid-template-columns: minmax(108px, 0.7fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .form-grid.organisation-grid {
    grid-template-columns: minmax(158px, 0.85fr) minmax(220px, 1.35fr) minmax(160px, 1fr);
  }

  .final-cta {
    display: grid;
    grid-template-columns: 1.4fr auto;
    gap: 16px;
    align-items: center;
  }

  .discovery-cta {
    grid-template-columns: minmax(0, 1.4fr) auto;
  }
}

@media (max-width: 859px) {
  .hub-hero-shell { min-height: calc(100vh - 64px); }
  .hub-section-full { min-height: calc(100vh - 64px); }
  #problem,
  #solution,
  #features {
    scroll-margin-top: 64px;
  }
  .topbar-inner { min-height: 64px; }
  .topbar .nav-link { display: none; }
  .insight-band { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .btn {
    animation: none;
    transition: none;
    transform: none;
  }
}

.policy-shell {
  max-width: 880px;
}

.policy-content {
  display: grid;
  gap: 14px;
}

.policy-content h2 {
  margin-top: 6px;
  font-size: 1.08rem;
}

.policy-content p,
.policy-content li {
  color: var(--ink-soft);
}

.policy-content ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.policy-content code {
  font-size: 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #f7fbff;
  padding: 1px 6px;
}

.policy-content .policy-lead {
  color: var(--ink);
  font-size: 1rem;
}

.policy-meta {
  font-size: 0.86rem;
}

.cookie-notice {
  z-index: 45;
  border-bottom: 1px solid rgba(21, 33, 43, 0.18);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(10, 26, 36, 0.08);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  padding-top: 10px;
  padding-bottom: 10px;
}

.cookie-notice-text {
  color: #111827;
  background: #ffffff;
  font-size: 0.9rem;
  margin: 0;
}

.cookie-notice-links,
.inline-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cookie-notice-links a,
.inline-link-list a {
  color: var(--brand-strong);
  font-weight: 700;
  text-decoration: underline;
}

.cookie-notice-btn {
  flex-shrink: 0;
}

@media (max-width: 740px) {
  .cookie-notice-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

.privacy-inline {
  margin: 2px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7fbff;
  color: #111827;
  font-size: 0.84rem;
  line-height: 1.4;
  padding: 10px 12px;
}

.privacy-inline p {
  margin: 0 0 8px;
}

.privacy-inline .nav-link {
  display: inline;
  padding: 0;
  font-weight: 700;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -56px;
  z-index: 60;
  border-radius: 10px;
  border: 1px solid var(--brand-strong);
  background: #ffffff;
  color: var(--brand-strong);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 10px 12px;
  box-shadow: 0 10px 20px rgba(0, 60, 97, 0.18);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 10px;
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
