/* MedHandover landing — hand-rolled, no framework, no CDN, system fonts only.
   Organised-registrar aesthetic: calm, legible, black/white + one green accent. */
:root {
  --ink: #17171f;
  --ink-soft: #4c4c5a;
  --green: #0f6e56;
  --green-dark: #0b5946;
  --paper: #ffffff;
  --paper-2: #f5f8f7;
  --line: #e2e6e4;
  --amber-bg: #fff8ec;
  --amber-line: #e8c98a;
  --amber-ink: #7a5a17;
  --maxw: 960px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: .2px; }
p { color: var(--ink-soft); }
a { color: var(--green-dark); }

/* Skip link */
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 14px; border: 2px solid var(--green); z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 10px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 18px; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--green); display: inline-flex; align-items: center; justify-content: center; }
.brand .mark svg { width: 18px; height: 18px; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); margin: 0 0 16px; color: var(--ink); }
.hero .sub { font-size: clamp(17px, 2.4vw, 20px); max-width: 40ch; margin: 0 0 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust-strip { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-soft); }
.trust-strip li { position: relative; }
.hero-figure { margin: 30px 0 0; }

/* Placeholder blocks (imagery arrives post-B4 demo staging) */
.ph {
  border: 1.5px dashed var(--green);
  background: var(--paper-2);
  border-radius: 14px;
  color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 20px; font-size: 14px; font-weight: 600;
}
.ph-hero { aspect-ratio: 16 / 10; max-width: 560px; }
.ph-qr { width: 132px; height: 132px; font-size: 12px; }

/* Store badge placeholders (real official assets + hrefs at submission) */
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 15px;
  min-height: 48px;
}
.badge small { display: block; font-weight: 400; font-size: 11px; opacity: .8; line-height: 1; }
.badge b { font-size: 16px; line-height: 1.1; }
.badge svg { width: 22px; height: 22px; flex: none; }
.badge[data-placeholder]::after { content: "•"; color: var(--green); margin-left: 2px; }

/* Sections */
section { padding: 44px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(23px, 3.6vw, 30px); margin: 0 0 14px; color: var(--ink); max-width: 24ch; }
.lede { font-size: 17px; max-width: 62ch; }
.dry { font-style: italic; color: var(--ink-soft); margin-top: 14px; }

/* Three cards */
.cards { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--paper); }
.card h3 { margin: 0 0 8px; font-size: 18px; color: var(--green-dark); }
.card p { margin: 0; font-size: 15px; }

/* Ward staff + boundary */
.boundary {
  margin-top: 20px; background: var(--amber-bg); border: 1px solid var(--amber-line);
  border-left: 5px solid var(--amber-line); border-radius: 10px; padding: 14px 16px;
  color: var(--amber-ink); font-weight: 600;
}
.boundary strong { color: var(--amber-ink); }

/* Steps */
.steps { margin: 8px 0 0; padding-left: 22px; }
.steps li { margin: 8px 0; font-size: 16px; }

/* Trust list */
.trust-list { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
@media (min-width: 720px) { .trust-list { grid-template-columns: 1fr 1fr; } }
.trust-list li { padding-left: 26px; position: relative; font-size: 15px; color: var(--ink-soft); }
.trust-list li strong { color: var(--ink); }
.trust-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}

/* Final CTA */
.final { background: var(--green); color: #fff; border: 0; }
.final h2 { color: #fff; }
.final p { color: rgba(255,255,255,.9); }
.final .cta-row { margin-top: 20px; align-items: flex-start; }
.final .badge { background: #fff; color: var(--ink); }
.final .ph { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); color: #fff; }

/* Buttons/links */
.btn-text { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green-dark); text-decoration: none; min-height: 44px; }
.final .btn-text { color: #fff; }

/* Footer */
footer { padding: 30px 0 50px; font-size: 13px; color: var(--ink-soft); }
footer .wrap > * { margin: 6px 0; }
footer a { color: var(--green-dark); }
.final footer, .final + footer { }

/* Focus visibility */
a:focus-visible, .badge:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
