/* A1 Health HMIS — the public web site. Teal of the A1 Health brand; system fonts; no external files. */
:root { --teal: #0f766e; --teal-dark: #0b5952; --teal-ink: #083f3a; --teal-soft: #e6f6f3; --teal-line: #b9e3dc; --ink: #14201f; --text: #2c3a38; --muted: #5d6b69;
  --bg: #fff; --alt: #f5f8f7; --line: #dfe7e5; --amber: #b45309; --radius: 14px; --shadow: 0 1px 2px rgba(8,63,58,.06), 0 8px 28px rgba(8,63,58,.08);
  --font: -apple-system, 'Segoe UI', Roboto, Inter, Helvetica, Arial, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.03em; }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 6px; }
.s-wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.s-eyebrow { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--teal); margin: 0 0 10px; }
.s-sub { font-size: 17.5px; color: var(--muted); max-width: 760px; margin-bottom: 28px; }

/* top bar */
.s-top { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.s-bar { display: flex; align-items: center; gap: 18px; height: 64px; }
.s-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.s-brand b { color: var(--teal); }
.s-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.s-nav { display: flex; gap: 4px; margin-left: auto; }
.s-nav a { padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.s-nav a:hover { background: var(--teal-soft); color: var(--teal-ink); }
.s-btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 10px; background: var(--teal); color: #fff; font-weight: 600; font-size: 14.5px; text-decoration: none;
  border: 1.5px solid var(--teal); cursor: pointer; font-family: inherit; white-space: nowrap; transition: background .15s, transform .15s; }
.s-btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.s-btn:active { transform: translateY(1px); }
.s-btn-lg { padding: 13px 22px; font-size: 16px; }
.s-btn-ghost { background: transparent; color: var(--teal-dark); border-color: var(--teal-line); }
.s-btn-ghost:hover { background: var(--teal-soft); color: var(--teal-ink); border-color: var(--teal); }
.s-btn-light { background: #fff; color: var(--teal-ink); border-color: #fff; } .s-btn-light:hover { background: var(--teal-soft); border-color: var(--teal-soft); }

/* hero */
.s-hero { background: linear-gradient(180deg, var(--teal-soft), #fff 78%); padding: 60px 0 48px; }
.s-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: center; }
.s-lead { font-size: 18.5px; color: var(--text); max-width: 600px; }
.s-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 22px; }
.s-ticks { list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--muted); }
.s-ticks li { padding-left: 26px; position: relative; margin: 6px 0; }
.s-ticks li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 12px; height: 6px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.s-shot { margin: 0; }
.s-shot img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; width: 100%; }
.s-shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.s-shot figcaption b { color: var(--ink); }

/* facts band */
.s-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.s-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.s-facts > div { padding: 22px 18px; border-left: 1px solid var(--line); }
.s-facts > div:first-child { border-left: 0; padding-left: 0; }
.s-facts b { display: block; font-size: 20px; color: var(--teal-ink); letter-spacing: -.01em; }
.s-facts span { font-size: 14px; color: var(--muted); }

.s-sec { padding: 72px 0; }
.s-alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* walkthrough */
.s-steps-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; position: sticky; top: 64px; z-index: 20; background: #fff; padding: 10px 0; border-bottom: 1px solid var(--line); box-shadow: 0 6px 10px -8px rgba(8,63,58,.25); }
.s-steps-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--alt); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 500; }
.s-steps-nav a:hover { border-color: var(--teal); color: var(--teal-ink); background: var(--teal-soft); }
.s-steps-nav i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.s-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.s-steps::before { content: ''; position: absolute; left: 23px; top: 10px; bottom: 30px; width: 2px; background: var(--teal-line); }
.s-steps > li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 22px; padding-bottom: 26px; position: relative; scroll-margin-top: 150px; }
.s-step-no { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); color: var(--teal-ink); display: grid; place-items: center; font-weight: 800; font-size: 18px; z-index: 1; }
.s-steps > li:target .s-step-no { background: var(--teal); color: #fff; }
.s-step-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: 0 1px 2px rgba(8,63,58,.04); }
.s-steps > li:target .s-step-body { border-color: var(--teal); box-shadow: var(--shadow); }
.s-desk { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); margin: 0 0 4px; }
.s-step-body h3 { font-size: 20px; }
.s-step-body ul, .s-card ul, .s-group ul { margin: 0; padding: 0; list-style: none; }
.s-step-body ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; }
.s-step-body li, .s-card li { padding-left: 20px; position: relative; font-size: 15px; }
.s-step-body li::before, .s-card li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-line); border: 1.5px solid var(--teal); }

/* screens */
.s-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; align-items: start; }
.s-shots .s-shot:first-child { grid-column: 1 / -1; }

/* cards */
.s-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.s-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.s-card p:last-child { margin-bottom: 0; }
.s-card p { font-size: 15.5px; }
.s-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.s-card-lg { padding: 28px 30px; border-top: 4px solid var(--teal); }
.s-card-lg h3 { font-size: 22px; }
.s-for { color: var(--muted); }
.s-card-lg li { margin: 7px 0; }
.s-note { margin: 24px 0 0; padding: 14px 18px; background: var(--teal-soft); border: 1px solid var(--teal-line); border-radius: 10px; color: var(--teal-ink); font-size: 15.5px; }

/* modules */
.s-groups { columns: 3 300px; column-gap: 22px; }
.s-group { break-inside: avoid; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px; }
.s-group h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.s-group h3 span { font-size: 12.5px; font-weight: 700; color: var(--teal-ink); background: var(--teal-soft); border-radius: 999px; padding: 2px 9px; }
.s-group p { font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.s-group li { font-size: 14.5px; padding: 6px 0; border-top: 1px solid var(--line); }

/* standards */
.s-std { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 36px; }
.s-std > div { border-top: 2px solid var(--teal); padding-top: 14px; margin-top: 14px; }
.s-std p { font-size: 15.5px; }

/* closing band and footer */
.s-final { background: var(--teal-ink); color: #d9efeb; padding: 64px 0; text-align: center; }
.s-final h2 { color: #fff; } .s-final p { max-width: 640px; margin: 0 auto 24px; font-size: 17.5px; }
.s-foot { background: #0a2a27; color: #a9c7c2; padding: 44px 0 22px; font-size: 14.5px; }
.s-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; }
.s-foot .s-brand { color: #fff; margin-bottom: 12px; } .s-foot .s-brand b { color: #7fd6c9; }
.s-foot h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.s-foot a { display: block; color: #a9c7c2; text-decoration: none; padding: 3px 0; } .s-foot a:hover { color: #fff; text-decoration: underline; }
.s-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; font-size: 13px; }

/* sign-up form */
.s-form-sec { background: linear-gradient(180deg, var(--teal-soft), #fff 420px); padding: 48px 0 72px; }
.s-form-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.s-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 32px; }
.s-form fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.s-form legend { font-size: 18px; font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 4px; }
.s-form .s-hint { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.s-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.s-f { min-width: 0; } .s-f.wide { grid-column: 1 / -1; }
.s-f label, .s-f .s-lab { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.s-f small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.s-f input[type=text], .s-f input[type=tel], .s-f input[type=email], .s-f input[type=number], .s-f select, .s-f textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 10px 12px;
  border: 1.5px solid #c9d5d2; border-radius: 9px; background: #fff; }
.s-f input, .s-f select { min-height: 46px; }
.s-f textarea { min-height: 88px; resize: vertical; }
.s-f input:focus, .s-f select:focus, .s-f textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.s-f.bad input, .s-f.bad select { border-color: #b42318; background: #fff6f5; }
.s-req { color: #b42318; }
.s-opt { font-weight: 400; color: var(--muted); }
.s-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.s-choice { display: flex; gap: 11px; align-items: flex-start; border: 1.5px solid #c9d5d2; border-radius: 11px; padding: 13px 15px; cursor: pointer; background: #fff; }
.s-choice:hover { border-color: var(--teal); }
.s-choice:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.s-choice input, .s-check input { min-height: 0; }
.s-choice input { margin: 4px 0 0; accent-color: var(--teal); width: 17px; height: 17px; flex: none; }
.s-choice b { display: block; color: var(--ink); font-size: 15px; } .s-choice span span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.s-check { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.s-check input { margin: 4px 0 0; accent-color: var(--teal); width: 17px; height: 17px; flex: none; }
.s-alert { padding: 13px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 15px; background: #fff6f5; border: 1px solid #f1b8b2; color: #7a1a12; }
.s-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.s-aside { position: sticky; top: 88px; }
.s-aside ol { margin: 0; padding: 0; list-style: none; counter-reset: n; }
.s-aside ol li { counter-increment: n; position: relative; padding: 0 0 18px 44px; font-size: 15.5px; }
.s-aside ol li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.s-aside ol b { display: block; color: var(--ink); }
.s-done { max-width: 640px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px 36px; }
.s-done .s-ok { width: 60px; height: 60px; border-radius: 50%; background: var(--teal-soft); border: 2px solid var(--teal); margin: 0 auto 18px; position: relative; }
.s-done .s-ok::after { content: ''; position: absolute; left: 18px; top: 19px; width: 22px; height: 11px; border-left: 3.5px solid var(--teal); border-bottom: 3.5px solid var(--teal); transform: rotate(-45deg); }
.s-ref { display: inline-block; font: 600 18px/1 ui-monospace, Menlo, Consolas, monospace; background: var(--alt); border: 1px solid var(--line); border-radius: 8px; padding: 9px 14px; color: var(--ink); margin: 6px 0 18px; }

@media (max-width: 980px) {
  .s-nav { display: none; } .s-bar .s-btn { margin-left: auto; }
  .s-hero-grid, .s-form-grid, .s-two { grid-template-columns: minmax(0, 1fr); }
  .s-cards, .s-std { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .s-facts > div { border-left: 0; padding-left: 0; }
  .s-aside { position: static; }
  .s-foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .s-sec { padding: 52px 0; } .s-hero { padding: 40px 0 36px; }
  .s-cards, .s-std, .s-shots, .s-fields, .s-choices, .s-step-body ul { grid-template-columns: minmax(0, 1fr); }
  .s-shots .s-shot:first-child { grid-column: auto; }
  .s-steps-nav { position: static; }
  .s-steps > li { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; } .s-step-no { width: 36px; height: 36px; font-size: 15px; } .s-steps::before { left: 17px; }
  .s-form { padding: 22px 18px; } .s-bar .s-btn { padding: 8px 12px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .s-btn { transition: none; } }

/* ── DHA certification: the strip above every public page and the banner under the headline ──
   Colours are the Digital Health Agency's own, read from dha.go.ke on 8 Oct 2026: its blue #1A9BD2 (darker #1589B8,
   lighter #42B5E7), black and white. The left of the banner is a deeper shade of the same blue so the white text
   keeps its contrast. */
.s-cert-strip { display: block; background: #000; color: #fff; text-decoration: none; font-size: 14px; }
.s-cert-strip:hover, .s-cert-strip:focus-visible { background: #10171b; }
.s-cert-strip-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; max-width: 1160px; margin: 0 auto; padding: 9px 22px; text-align: center; }
.s-cert-strip svg { color: #1a9bd2; flex: none; }
.s-cert-strip b { letter-spacing: .08em; color: #42b5e7; }
.s-cert-strip-no { border: 1px solid #1a9bd2; border-radius: 999px; padding: 2px 12px; font-weight: 600; white-space: nowrap; }
.s-cert { background: radial-gradient(circle at 88% 10%, rgba(66,181,231,.55) 0 230px, transparent 231px), radial-gradient(circle at 97% 94%, rgba(0,0,0,.22) 0 190px, transparent 191px), linear-gradient(120deg, #0c729d 0%, #1589b8 48%, #1a9bd2 100%); color: #fff; padding: 54px 0; }
.s-cert-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 34px; align-items: center; }
.s-cert-badge { width: 118px; height: 118px; border-radius: 50%; background: #000; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(0,0,0,.18); }
.s-cert-eyebrow { margin: 0 0 6px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #000; font-size: 15px; }
.s-cert-eyebrow span { display: block; letter-spacing: 0; text-transform: none; color: #fff; font-weight: 700; font-size: 19px; margin-top: 2px; }
.s-cert h2 { margin: 0; color: #fff; font-size: clamp(40px, 5.6vw, 74px); line-height: .98; font-weight: 900; letter-spacing: -.01em; }
.s-cert-product { margin: 8px 0 0; font-size: clamp(26px, 3.6vw, 44px); font-weight: 800; color: #000; line-height: 1.1; }
.s-cert-product b { color: #fff; }
.s-cert-lead { margin: 14px 0 0; max-width: 620px; font-size: 18px; line-height: 1.5; color: #fff; font-weight: 500; }
.s-cert-side { display: flex; flex-direction: column; gap: 14px; align-items: stretch; text-align: center; }
.s-cert-logo { display: block; background: #fff; border-radius: 16px; padding: 18px 22px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.s-cert-logo img { display: block; width: 100%; max-width: 250px; height: auto; margin: 0 auto; }
.s-cert-no { background: #000; color: #fff; border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 17px; white-space: nowrap; }
.s-cert-btn { background: #fff; border-color: #fff; color: #000; }
.s-cert-btn:hover { background: #000; border-color: #000; color: #fff; }
.s-ticks a { color: inherit; }
@media (max-width: 980px) { .s-cert-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; } .s-cert-badge { width: 92px; height: 92px; } .s-cert-side { align-items: flex-start; } .s-cert-logo { align-self: flex-start; } }
@media (max-width: 640px) { .s-cert { padding: 38px 0; } .s-cert-strip-in > span:not(.s-cert-strip-no) { display: none; } }
/* the maker's logo in the footer: in its own colours on its own white shape (the shape is part of the artwork, so no
   card is drawn around it); the picture is twice the shown size so it stays sharp on dense screens */
.s-foot a.s-foot-wd { display: inline-flex; flex-direction: column; gap: 10px; margin-top: 18px; padding: 0; text-decoration: none; }
.s-foot a.s-foot-wd:hover, .s-foot a.s-foot-wd:focus-visible { text-decoration: none; }
.s-foot a.s-foot-wd span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #a9c7c2; }
.s-foot a.s-foot-wd img { display: block; width: 230px; height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); transition: transform .15s; }
.s-foot a.s-foot-wd:hover img, .s-foot a.s-foot-wd:focus-visible img { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .s-foot a.s-foot-wd img { transition: none; } }
