/* Pharma Remit — pharmaremit.com
   Palette taken from the product mark: steel blue and gold on marble white.
   Gold is decorative only, never text, because it cannot carry contrast.
   Red is reserved strictly for Schedule H warnings. Rows are ruled like a
   register book rather than floated as cards. */

:root {
  color-scheme: light;

  --paper:      #F5F6F4;
  --card:       #FFFFFF;
  --ink:        #17293A;
  --ink-soft:   #4F6071;
  --ink-faint:  #7E8D9A;
  --brand:      #35597C;
  --brand-deep: #23405C;
  --brand-tint: #E8EEF4;
  --gold:       #B8914E;
  --gold-soft:  #E2D2B2;
  --red:        #B3261E;
  --red-tint:   #FBEBEA;
  --rule:       #D5DBE0;
  --rule-soft:  #E7EBEE;

  --measure: 64ch;
  --page: 1140px;

  --step--1: 0.875rem;
  --step-0:  1.0625rem;
  --step-1:  1.3125rem;
  --step-2:  1.625rem;
  --step-3:  2.125rem;
  --step-4:  2.75rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark, .stat-figure {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.125rem, 1.4rem + 3.1vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, var(--step-3)); }
h3 { font-size: var(--step-1); letter-spacing: -0.012em; }

p { margin: 0 0 1em; max-width: var(--measure); }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-deep); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px; top: 12px;
  z-index: 10;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  border-radius: 3px;
}

/* ---------- Header ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: rgba(245, 246, 244, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  flex-wrap: wrap;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--step-1);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.025em;
}
.wordmark:hover { color: var(--ink); }
/* The product mark */
.mark {
  width: 28px; height: 28px;
  flex: none;
  border-radius: 6px;
  background: url("icon-256.png") center / cover no-repeat;
  box-shadow: 0 1px 3px rgba(23,41,58,0.2);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  font-size: var(--step--1);
  padding-block: 6px;
}
@media (max-width: 720px) {
  .masthead-inner { gap: 10px; min-height: 0; padding-block: 12px; }
  .nav { gap: 6px 16px; font-size: 0.8125rem; }
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: var(--step-0);
  padding: 13px 24px;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid var(--brand);
  transition: background 120ms ease;
}
.btn:hover { background: var(--brand-deep); color: #fff; }

.btn-quiet {
  background: transparent;
  color: var(--brand);
  border-color: var(--rule);
}
.btn-quiet:hover { background: var(--brand-tint); color: var(--brand-deep); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(40px, 7vw, 76px) clamp(36px, 6vw, 64px); }
.hero-grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}
.hero p.lead {
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 34ch;
  margin-top: 20px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-note {
  margin-top: 20px;
  font-size: var(--step--1);
  color: var(--ink-faint);
  max-width: 40ch;
}

/* ---------- The bill ---------- */

.bill-wrap { margin: 0; }
.bill {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  padding: 22px 22px 18px;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 1px 0 var(--rule-soft);
}
.bill-head { border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.bill-shop {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.bill-meta { color: var(--ink-faint); font-size: 11.5px; margin-top: 3px; }
.bill-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-weight: 600;
  font-size: 12px;
}
.bill-title span:last-child { color: var(--ink-faint); font-weight: 400; }

.bill table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.bill th {
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  color: var(--ink-faint);
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
}
.bill td { padding: 7px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.bill .num { text-align: right; white-space: nowrap; }
.bill .item { font-weight: 500; }
.bill .sub { color: var(--ink-faint); font-size: 11px; }
.bill .sub-stock { display: none; }

/* On a narrow screen the batch and expiry move under the item name */
@media (max-width: 580px) {
  .bill { padding: 18px 16px 14px; }
  .bill .sub-stock { display: block; }
  .bill .col-batch, .bill .col-exp { display: none; }
  .bill-totals { gap: 16px; flex-wrap: wrap; }
}

.rx {
  display: inline-block;
  background: var(--red-tint);
  color: var(--red);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: 1px;
}

.bill-totals {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  font-size: 11.5px;
  color: var(--ink-faint);
  padding-top: 10px;
}
.bill-grand {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px solid var(--ink);
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 18px;
}
.bill-foot {
  margin-top: 12px;
  font-size: 10.5px;
  color: var(--ink-faint);
}
.bill-caption {
  font-size: var(--step--1);
  color: var(--ink-faint);
  margin-top: 12px;
}

/* The bill fills itself in, the way it does at the counter.
   Driven by site.js; without script everything simply shows. */
.bill.anim tbody tr {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 360ms cubic-bezier(.2,.7,.3,1), transform 360ms cubic-bezier(.2,.7,.3,1);
}
.bill.anim tbody tr.in { opacity: 1; transform: none; }

.bill.anim .bill-totals,
.bill.anim .bill-foot {
  opacity: 0;
  transition: opacity 320ms ease;
}
.bill.anim .bill-totals.in,
.bill.anim .bill-foot.in { opacity: 1; }

.bill-grand .amount { display: inline-block; font-feature-settings: "tnum" 1; }
.bill.anim .bill-grand {
  opacity: 0.35;
  transition: opacity 300ms ease;
}
.bill.anim .bill-grand.in { opacity: 1; }

/* the cursor that walks down the bill while it is being written */
.bill-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--brand);
  margin-left: 3px;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .bill.anim tbody tr,
  .bill.anim .bill-totals,
  .bill.anim .bill-foot,
  .bill.anim .bill-grand { opacity: 1; transform: none; transition: none; }
  .bill-caret { display: none; }
}

/* a row answers when you point at it */
.ledger-row { transition: background-color 160ms ease; }
.ledger-row:hover { background-color: rgba(53, 89, 124, 0.035); }
@media (prefers-reduced-motion: reduce) {
  .ledger-row { transition: none; }
}

/* the calculator's headline acknowledges a change */
.headline-figure { transition: color 200ms ease; }
.headline-figure.bump { animation: bump 420ms cubic-bezier(.2,.7,.3,1); }
@keyframes bump {
  0%   { transform: translateY(3px); opacity: 0.4; }
  100% { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .headline-figure.bump { animation: none; }
}

/* ---------- Sections ---------- */

.band { padding-block: clamp(44px, 6vw, 72px); border-top: 1px solid var(--rule); }
.band-tint { background: var(--brand-tint); border-top-color: transparent; }
.band-ink { background: var(--ink); color: var(--paper); border-top-color: transparent; }
.band-ink h2 { color: #fff; }
.band-ink p { color: #C7D2CB; }
.band-ink a { color: #fff; }

.band > .shell > h2 { max-width: 20ch; }
.section-intro {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 54ch;
}

/* Ruled rows, like a register — not cards */
.ledger { margin-top: 36px; border-top: 1px solid var(--rule); }
.ledger-row {
  display: grid;
  gap: 6px 36px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 760px) {
  .ledger-row { grid-template-columns: 15.5rem 1fr; gap: 0 48px; }
}
.ledger-row h3 {
  color: var(--brand-deep);
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.ledger-row h3 svg {
  flex: none;
  width: 21px; height: 21px;
  margin-top: 2px;
  stroke: var(--brand);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pairs h3 {
  display: flex;
  gap: 9px;
  align-items: center;
}
.pairs h3 svg {
  flex: none;
  width: 18px; height: 18px;
  stroke: var(--brand);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Sections settle into place as you scroll past them */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms cubic-bezier(.2,.7,.3,1), transform 500ms cubic-bezier(.2,.7,.3,1);
}
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.ledger-row p { margin: 0; color: var(--ink-soft); }
.band-tint .ledger, .band-tint .ledger-row { border-color: #C9D8CE; }

.pairs {
  display: grid;
  gap: 28px 44px;
  margin-top: 36px;
}
@media (min-width: 720px) { .pairs { grid-template-columns: 1fr 1fr; } }
.pairs h3 { margin-bottom: 6px; }
.pairs p { margin: 0; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.6; }

.plain { padding-left: 0; list-style: none; margin: 24px 0 0; }
.plain li {
  padding: 11px 0 11px 26px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  max-width: var(--measure);
  color: var(--ink-soft);
}
.plain li::before {
  content: "";
  position: absolute;
  left: 3px; top: 17px;
  width: 6px; height: 11px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(42deg);
}

.callout {
  border-left: 3px solid var(--red);
  background: var(--red-tint);
  padding: 18px 20px;
  margin-top: 28px;
  max-width: var(--measure);
}
.callout p { margin: 0; font-size: var(--step--1); color: #6B2520; }
.callout strong { color: var(--red); }

/* ---------- Prose pages ---------- */

.prose { padding-block: clamp(36px, 5vw, 60px); }
.prose h2 { margin-top: 44px; }
.prose h3 { margin-top: 28px; margin-bottom: 4px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 20px; max-width: var(--measure); }
.prose li { margin-bottom: 7px; }
.prose .updated { color: var(--ink-faint); font-size: var(--step--1); }

/* ---------- Price ---------- */

.price-panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  padding: 32px;
  margin-top: 36px;
  max-width: 560px;
}
.price-figure {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: var(--step-4);
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-unit { color: var(--ink-faint); font-size: var(--step--1); margin-top: 8px; }

/* ---------- Footer ---------- */

.foot {
  border-top: 1px solid var(--rule);
  padding-block: 36px 48px;
  font-size: var(--step--1);
  color: var(--ink-faint);
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  justify-content: space-between;
}
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--brand); text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot p { margin: 0; max-width: 46ch; }

/* ---------- Margin calculator ---------- */

.calc {
  display: grid;
  gap: 28px;
  align-items: start;
}
@media (min-width: 880px) {
  .calc { grid-template-columns: 1fr 1fr; gap: 40px; }
}

.calc-h {
  font-size: var(--step-1);
  letter-spacing: -0.012em;
  margin-bottom: 20px;
}

.calc-form, .calc-out {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 26px 24px;
  display: block;
}
.calc-out { border-top: 3px solid var(--gold); }

.field { margin-bottom: 20px; }
.field label, .field legend {
  display: block;
  font-weight: 600;
  font-size: var(--step--1);
  margin-bottom: 7px;
  padding: 0;
}
.field label span, .field legend span {
  display: block;
  font-weight: 400;
  color: var(--ink-faint);
  font-size: 13px;
  margin-top: 1px;
}

.field input, .field select {
  width: 100%;
  font: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 10px 12px;
  font-feature-settings: "tnum" 1;
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

.scheme { border: 0; padding: 0; margin: 0 0 4px; }
.scheme-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--step-0);
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.scheme-row input { width: 5.5rem; text-align: center; }

.headline {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.headline-figure {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 2rem + 2.4vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brand);
  font-feature-settings: "tnum" 1;
}
.headline-figure.negative { color: var(--red); }
.headline-label {
  color: var(--ink-faint);
  font-size: var(--step--1);
  margin-top: 6px;
}

.rows { margin: 0; }
.rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.rows dt { color: var(--ink-soft); font-size: var(--step--1); }
.rows dd {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
  font-feature-settings: "tnum" 1;
}
.rows .total {
  border-bottom: 0;
  border-top: 2px solid var(--ink);
  margin-top: 6px;
  padding-top: 14px;
}
.rows .total dt { color: var(--ink); font-weight: 600; font-size: var(--step-0); }
.rows .total dd { font-size: var(--step-1); font-family: "Archivo", sans-serif; }

.calc-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* ---------- Questions that open ---------- */

.faq { margin-top: 32px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  padding: 18px 36px 18px 0;
  font-weight: 600;
  font-size: var(--step-0);
  color: var(--brand-deep);
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 180ms ease;
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq summary:hover { color: var(--brand); }
.faq .answer { padding: 0 0 20px; }
.faq .answer p { margin: 0; color: var(--ink-soft); max-width: var(--measure); }
@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}

/* ---------- Rotating banner ---------- */

.banner {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.banner-track { position: relative; }

.slide {
  display: block;
  padding-block: clamp(40px, 6vw, 74px);
  min-height: clamp(420px, 46vw, 520px);
  display: flex;
  align-items: center;
}
.slide[hidden] { display: none; }

.slide-inner {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  width: 100%;
}
@media (min-width: 900px) {
  .slide-inner { grid-template-columns: 1fr 1fr; }
  .slide-brand .slide-inner { grid-template-columns: 300px 1fr; }
  .slide-bill .slide-art { order: 2; }
}

.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.slide-h {
  font-size: clamp(1.75rem, 1.2rem + 2.3vw, 2.75rem);
  letter-spacing: -0.022em;
}
.slide .lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-top: 16px;
}
.slide .hero-actions { margin-top: 26px; }

/* slide one: the mark on its own finish, so the page carries the brand */
.slide-brand {
  background:
    radial-gradient(900px 420px at 12% 110%, rgba(200,163,101,0.16), transparent 62%),
    radial-gradient(900px 440px at 92% -15%, rgba(53,89,124,0.12), transparent 60%),
    linear-gradient(160deg, #FFFFFF 0%, #F2F4F7 55%, #EAEEF3 100%);
}
.slide-brand h1 {
  color: var(--brand-deep);
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.25rem);
  letter-spacing: -0.035em;
}
.slide-brand .lead { color: var(--ink-soft); max-width: 46ch; }
.slide-brand .eyebrow { color: #96701F; }

.big-logo {
  width: clamp(190px, 26vw, 300px);
  height: auto;
  display: block;
  margin-inline: auto;
  border-radius: 20px;
  box-shadow: 0 20px 44px rgba(23,41,58,0.20), 0 2px 6px rgba(23,41,58,0.10);
}
@media (prefers-reduced-motion: no-preference) {
  .slide-brand.is-active .big-logo { animation: logo-in 900ms cubic-bezier(.2,.8,.3,1) both; }
  @keyframes logo-in {
    from { opacity: 0; transform: translateY(14px) scale(0.94); }
    to   { opacity: 1; transform: none; }
  }
}

/* slide two: pale blue */
.slide-bill {
  background: linear-gradient(170deg, #EDF2F7 0%, #F7F9FB 60%, #FFFFFF 100%);
}

/* slide three: warm gold */
.slide-calc {
  background:
    radial-gradient(800px 380px at 88% 10%, rgba(200,163,101,0.22), transparent 62%),
    linear-gradient(170deg, #FDF8EE 0%, #FFFDF8 70%, #FFFFFF 100%);
}

.calc-peek {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  padding: 24px;
  max-width: 400px;
  margin-inline: auto;
  box-shadow: 0 14px 34px rgba(23, 41, 58, 0.09);
}
.peek-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.peek-row strong { color: var(--ink); font-feature-settings: "tnum" 1; }
.peek-out { padding-top: 18px; }
.peek-figure {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 2.75rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brand);
}
.peek-label { color: var(--ink-faint); font-size: var(--step--1); margin-top: 6px; }

/* gold and ghost buttons for the coloured slides */
.btn-gold {

  background: linear-gradient(180deg, #D4AC63 0%, #B8914E 100%);
  border-color: #A67F3C;
  color: #231704;
  font-weight: 700;
}
.btn-gold:hover { background: #C9A365; color: #231704; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* arrows and dots */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: rgba(255,255,255,0.86);
  cursor: pointer;
  display: none;
  z-index: 3;
  transition: background 150ms ease;
}
.banner-arrow:hover { background: #fff; }
.banner-arrow::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 9px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}
.banner-arrow.prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.banner-arrow.next::before { transform: translate(-65%, -50%) rotate(45deg); }
.banner-arrow.prev { left: 14px; }
.banner-arrow.next { right: 14px; }
@media (min-width: 1040px) { .banner-arrow { display: block; } }

.banner-dots {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 9px;
  z-index: 3;
}
.banner-dots button {
  width: 30px; height: 5px;
  border: 0;
  border-radius: 3px;
  background: rgba(23,41,58,0.22);
  cursor: pointer;
  padding: 0;
  transition: background 180ms ease, width 180ms ease;
}
.banner-dots button[aria-selected="true"] { background: var(--gold); width: 46px; }

.banner.on-dark .banner-dots button { background: rgba(255,255,255,0.38); }
.banner.on-dark .banner-dots button[aria-selected="true"] { background: #E7CE96; }

/* ---------- Figures at a glance ---------- */

.stats {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(26px, 3.4vw, 38px);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 28px;
}
@media (min-width: 820px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat-figure {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #E7CE96;
}
.stat-label {
  color: #B9C7D3;
  font-size: var(--step--1);
  margin-top: 8px;
  line-height: 1.4;
}


/* ---------- The screens ---------- */

.gallery { margin-top: 32px; }
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.gallery-tabs button {
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.gallery-tabs button:hover { border-color: var(--brand); color: var(--brand); }
.gallery-tabs button[aria-selected="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.gallery-stage { margin: 0; }
.gallery-stage img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23,41,58,0.14);
}
.gallery-stage figcaption {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: var(--step--1);
  max-width: 68ch;
  line-height: 1.55;
}
@media (prefers-reduced-motion: no-preference) {
  .gallery-stage img { transition: opacity 220ms ease; }
  .gallery-stage img.swapping { opacity: 0; }
}

.stat-figure { white-space: nowrap; }

/* anchored sections clear the sticky header */
[id] { scroll-margin-top: 86px; }

/* ---------- Two ways to install ---------- */

.routes {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}
@media (min-width: 820px) { .routes { grid-template-columns: 1fr 1fr; } }

.route {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--rule);
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
}
.route-store {
  border-top-color: var(--brand);
  box-shadow: 0 14px 34px rgba(23,41,58,0.10);
}

.route-badge {
  position: absolute;
  top: -11px; left: 26px;
  background: var(--brand);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 11px;
  border-radius: 999px;
}
.route-badge-quiet { background: var(--ink-faint); }

.route-icon {
  width: 30px; height: 30px;
  stroke: var(--brand);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 14px;
}
.route-h {
  font-size: var(--step-1);
  letter-spacing: -0.012em;
  margin-bottom: 10px;
}
.route p { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.6; }
.route-cta { margin-top: auto; padding-top: 18px; }
.route-cta .btn { width: 100%; text-align: center; }
.route-note {
  margin: 12px 0 0;
  color: var(--ink-faint);
  font-size: 13px;
}

/* ---------- Get in touch ---------- */

.contact {
  display: grid;
  gap: 26px;
  margin-top: 34px;
  align-items: start;
}
@media (min-width: 880px) { .contact { grid-template-columns: 1.35fr 1fr; gap: 40px; } }

.contact-form {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--brand);
  padding: 28px 26px;
}
.contact-form .field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 10px 12px;
  resize: vertical;
  min-height: 120px;
}
.contact-form .field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
.contact-form .btn { width: 100%; text-align: center; }
.contact-form .btn[disabled] { opacity: 0.6; pointer-events: none; }

.hp { position: absolute; left: -9999px; opacity: 0; }

.contact-status {
  margin: 14px 0 0;
  font-size: var(--step--1);
  line-height: 1.5;
}
.contact-status.ok   { color: #1C6B45; font-weight: 600; }
.contact-status.bad  { color: var(--red); font-weight: 600; }

.contact-aside h3 {
  font-size: var(--step-0);
  margin-top: 22px;
  margin-bottom: 4px;
}
.contact-aside h3:first-child { margin-top: 0; }
.contact-aside p { color: var(--ink-soft); font-size: var(--step--1); margin-bottom: 0; }
.contact-aside .plain { margin-top: 8px; }
.contact-aside .plain li { padding-block: 8px; font-size: var(--step--1); }

/* ---------- What a shop gets ---------- */

.feature-grid {
  display: grid;
  gap: 2px;
  margin-top: 36px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 680px)  { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feat {
  background: var(--card);
  padding: 26px 24px 24px;
  transition: background-color 160ms ease;
}
.feat:hover { background: #FBFCFD; }
.feat svg {
  width: 26px; height: 26px;
  stroke: var(--brand);
  stroke-width: 1.55;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 14px;
}
.feat h3 {
  font-size: var(--step-0);
  letter-spacing: -0.008em;
  color: var(--brand-deep);
  margin-bottom: 7px;
}
.feat p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) { .feat { transition: none; } }


/* Pharma Remit v10 — premium pharmacy technology refresh */
:root {
  --paper:#F5F9FC; --card:#FFFFFF; --ink:#10243D; --ink-soft:#53677F; --ink-faint:#7E90A5;
  --brand:#079C9A; --brand-deep:#087C80; --brand-tint:#E8F7F6; --gold:#0A9D9A; --gold-soft:#BDEBE6;
  --rule:#DCE7EF; --rule-soft:#EAF0F5;
}
body { background:#fff; color:var(--ink); }
.masthead { background:rgba(255,255,255,.94); border-bottom:1px solid #E4EDF3; box-shadow:0 4px 22px rgba(16,36,61,.045); }
.masthead-inner { min-height:76px; }
.wordmark { font-size:1.38rem; color:#102B4A; }
.mark { width:36px;height:36px;border-radius:10px; }
.nav { gap:8px 20px; }
.nav a { color:#425B76; font-weight:500; }
.nav a[aria-current="page"] { color:var(--brand-deep); border-bottom-color:var(--brand); }
.nav .nav-cta { color:#fff; background:linear-gradient(135deg,#0AA9A2,#087F85); border:0; padding:10px 17px; border-radius:999px; box-shadow:0 7px 18px rgba(8,156,151,.18); }
.nav .nav-cta:hover { color:#fff; background:#087C80; }
.slide { min-height:500px; padding-block:clamp(42px,6vw,78px); }
.slide-brand { background:radial-gradient(700px 360px at 88% 15%,rgba(13,169,164,.14),transparent 70%),linear-gradient(125deg,#F7FBFE 0%,#EDF7FA 54%,#F7FBFC 100%); }
.slide-brand .slide-inner { grid-template-columns: .92fr 1.08fr; gap:clamp(32px,5vw,68px); }
.slide-brand h1 { color:#10243D; font-size:clamp(2.6rem,4.4vw,4.3rem); line-height:1.06; letter-spacing:-.045em; }
.gradient-word { color:#079C9A; }
.slide-brand .eyebrow,.section-kicker { color:#078F91; font-size:.78rem; font-weight:700; letter-spacing:.11em; }
.slide-brand .lead { max-width:48ch; color:#4C637D; font-size:1.2rem; line-height:1.58; }
.hero-actions { gap:14px; }
.btn { border-radius:12px; padding:14px 22px; background:linear-gradient(135deg,#0AA9A2,#087F85); border-color:#079C9A; box-shadow:0 8px 18px rgba(8,156,151,.15); }
.btn:hover { background:#087C80; }
.btn-quiet { background:#fff; color:#087C80; border-color:#B9D7E1; box-shadow:none; }
.btn-quiet:hover { background:#EAF7F7; color:#087C80; }
.btn-gold { background:linear-gradient(135deg,#0AA9A2,#087F85); border-color:#079C9A; color:#fff; }
.btn-gold:hover { background:#087C80; color:#fff; }
.hero-dashboard-wrap { position:relative; padding:10px 0 24px; }
.hero-dashboard-frame { padding:9px; border:1px solid rgba(12,65,91,.14); border-radius:20px; background:#fff; box-shadow:0 28px 65px rgba(17,54,83,.19),0 5px 15px rgba(17,54,83,.08); transform:perspective(1200px) rotateY(-3deg) rotateX(1deg); }
.hero-dashboard { display:block; width:100%; height:auto; border-radius:12px; }
.hero-float-note { position:absolute; left:-22px; bottom:0; display:flex; gap:11px; align-items:center; background:#fff; border:1px solid #DCEBEF; border-radius:14px; padding:12px 17px; box-shadow:0 12px 30px rgba(17,54,83,.13); color:#163653; }
.hero-float-note strong,.hero-float-note small { display:block; }
.hero-float-note small { color:#71849A; font-size:.76rem; margin-top:2px; }
.hero-dot { width:10px;height:10px;border-radius:50%;background:#11B981;box-shadow:0 0 0 5px #E5F8F0; }
.hero-proof { display:flex; flex-wrap:wrap; gap:10px 18px; margin-top:22px; color:#49637D; font-size:.86rem; }
.hero-proof span::first-letter { color:#079C9A; }
.stats { background:#fff; border-block:1px solid #E6EEF3; }
.stats-grid { padding-block:24px; }
.stat-figure { color:#078F91; }
.band { border-top-color:#E7EEF3; }
.band-tint { background:#F0F8FA; }
.band-ink { background:#102B46; }
.feature-grid { gap:18px; }
.feat { border:1px solid #E3EDF2; border-radius:16px; padding:22px; background:#fff; box-shadow:0 8px 22px rgba(18,49,73,.045); }
.feat svg { color:#079C9A; }
.foot { background:#F5F9FC; border-top:1px solid #E1EAF0; }
@media(max-width:899px) {
 .slide-brand .slide-inner { grid-template-columns:1fr; }
 .hero-dashboard-wrap { margin:4px 12px 12px; }
 .hero-float-note { left:-8px; }
}
@media(max-width:580px) {
 .masthead-inner { align-items:flex-start; }
 .nav { gap:7px 12px; }
 .nav .nav-cta { padding:7px 11px; }
 .slide { padding-block:38px; }
 .slide-brand h1 { font-size:2.45rem; }
 .hero-proof { gap:8px 12px; font-size:.78rem; }
 .hero-float-note { position:relative; left:auto; bottom:auto; width:max-content; max-width:100%; margin:12px 0 0; }
}


/* Product screenshot gallery — v11 */
.app-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:30px}
.app-shot{margin:0;min-width:0;background:#fff;border:1px solid #dce6ee;border-radius:16px;overflow:hidden;box-shadow:0 12px 30px rgba(15,35,60,.07)}
.app-shot a{display:block;background:#eef3f8;overflow:hidden}
.app-shot img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:contain;transition:transform .25s ease}
.app-shot a:hover img{transform:scale(1.025)}
.app-shot figcaption{display:grid;gap:6px;padding:16px 18px 18px;color:#536579;font-size:.94rem;line-height:1.5}
.app-shot figcaption strong{color:#112c49;font-size:1rem}
@media(max-width:900px){.app-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.app-gallery-grid{grid-template-columns:1fr;gap:16px}.app-shot img{aspect-ratio:16/10}}
