/* Shared by medmissionmode.org and givetoindia.org (the second folder holds a copy; edit here, then copy).
   Colors and type follow the app (prototype/app.css): cream page, forest green, one font. Spacing: 4 8 12 16 24 32 48 64. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(./fonts/plex-sans-latin.woff2) format('woff2');
}
/* Oswald sets the word MODE in the logo only (logo handoff, 26 October). */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./fonts/oswald-latin.woff2) format('woff2');
}
:root {
  --bg: #F7F5EF;
  --surface: #FDFCF9;
  --line: #DDD9CC;
  --ink: #101A16;
  --ink-2: #4B5B52;
  --green-900: #244A37;
  --green-700: #3A7653;
  --green-100: #E9EEE3;
  --on-dark: #F7F5EF;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --measure: 62ch;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--green-700); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 720px) { .wrap { padding: 0 var(--s6); } }

.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; flex-wrap: wrap; padding-top: var(--s2); padding-bottom: var(--s2); }
.brand { font-weight: 700; font-size: 18px; letter-spacing: 0.01em; color: var(--green-900); text-decoration: none; }
.nav { display: flex; gap: 0 var(--s5); flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; padding: var(--s2) 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green-900); text-decoration: underline; }

/* Top and bottom only: the hero sits on .wrap, which owns the side gutter. */
.hero { padding-top: var(--s7); padding-bottom: var(--s7); }
@media (min-width: 720px) { .hero { padding-top: var(--s8); padding-bottom: var(--s8); } }
.eyebrow { margin: 0 0 var(--s3); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-700); }
h1 { overflow-wrap: anywhere; margin: 0 0 var(--s4); font-size: clamp(32px, 5.4vw, 52px); line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; color: var(--green-900); max-width: 18ch; text-wrap: balance; }
h2 { margin: 0 0 var(--s4); font-size: clamp(24px, 3.2vw, 30px); line-height: 1.2; font-weight: 700; color: var(--green-900); }
h3 { margin: 0 0 var(--s2); font-size: 18px; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 var(--s4); max-width: var(--measure); }
.lede { font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.status { display: inline-block; margin: 0 0 var(--s5); padding: var(--s2) var(--s3); background: var(--green-100); color: var(--green-900); border-radius: 6px; font-size: 15px; }
.btn { display: inline-block; padding: var(--s3) var(--s5); background: var(--green-700); color: var(--on-dark); border-radius: 8px; font-weight: 600; text-decoration: none; transition: background-color 160ms ease-out, transform 160ms ease-out; }
.btn:hover { background: var(--green-900); color: var(--on-dark); }
.btn:active { transform: scale(0.98); }

section { padding: var(--s7) 0; border-top: 1px solid var(--line); }
.muted { color: var(--ink-2); }

/* The stations a Patient passes, in order. Wraps to as many rows as the width needs. */
.flow { list-style: none; margin: var(--s5) 0 var(--s4); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(168px, 100%), 1fr)); gap: var(--s2); counter-reset: st; }
.flow li { counter-increment: st; display: flex; align-items: baseline; gap: var(--s3); padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-weight: 500; }
.flow li::before { content: counter(st); font-size: 13px; font-weight: 600; color: var(--green-700); font-variant-numeric: tabular-nums; min-width: 2ch; }

.cols { display: grid; gap: var(--s5); margin-top: var(--s5); }
@media (min-width: 720px) { .cols { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.cols > div { padding-top: var(--s4); border-top: 3px solid var(--green-700); }
.cols p { margin: 0; color: var(--ink-2); font-size: 16px; }

.facts { margin: var(--s5) 0 0; padding: 0; list-style: none; max-width: var(--measure); }
.facts li { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts strong { font-weight: 600; }

.foot { border-top: 1px solid var(--line); background: var(--surface); padding: var(--s6) 0; font-size: 15px; color: var(--ink-2); }
.foot p { margin: 0 0 var(--s2); max-width: none; }

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

/* ---------- full site (16 November): app screens, feature rows, phone frames, questions ---------- */
.hero-2 { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 960px) { .hero-2 { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s7); } }
.actions { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; margin: 0; }
.btn-2 { background: transparent; color: var(--green-900); border: 1px solid var(--green-700); }
.btn-2:hover { background: var(--green-100); color: var(--green-900); }

/* A screen of the app: a plain frame, no device chrome to go out of date. */
.screen { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 1px 2px rgba(16, 26, 22, 0.06), 0 12px 32px rgba(16, 26, 22, 0.08); }
.screen img { display: block; width: 100%; height: auto; }
.screen figcaption, .phone figcaption { padding: var(--s2) var(--s4); font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); background: var(--surface); }

.band { background: var(--green-900); color: var(--on-dark); border-top: 0; }
.band h2 { color: var(--on-dark); }
.band p { color: #D5DFCB; }
.band .btn { background: var(--on-dark); color: var(--green-900); }
.band .btn:hover { background: #FFFFFF; color: var(--green-900); }
.stats { display: grid; gap: var(--s5); margin: var(--s6) 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stats b { display: block; font-size: 40px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats span { font-size: 15px; color: #D5DFCB; }

/* One feature beside its screen; every second row swaps sides on wide screens. */
.row { display: grid; gap: var(--s5); align-items: center; padding: var(--s6) 0; }
.row + .row { border-top: 1px solid var(--line); }
@media (min-width: 960px) {
  .row { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s7); padding: var(--s7) 0; }
  .row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .row.flip > :first-child { order: 2; }
}
.row ul, .list { margin: 0; padding-left: 20px; color: var(--ink-2); max-width: var(--measure); }
.row li, .list li { margin: 0 0 var(--s2); }

.phones { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); margin-top: var(--s5); }
.phone { margin: 0; max-width: 300px; justify-self: center; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--surface); box-shadow: 0 12px 32px rgba(16, 26, 22, 0.08); }
.phone img { display: block; width: 100%; height: auto; }

.grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); margin-top: var(--s5); }
.card { padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.card p, .card ul { margin: 0; color: var(--ink-2); font-size: 16px; }
.card ul { padding-left: 20px; }
.card li { margin-bottom: var(--s1); }

.steps { margin: var(--s5) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s5); counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding-top: var(--s4); border-top: 3px solid var(--green-700); color: var(--ink-2); font-size: 16px; }
.steps li::before { content: 'Step ' counter(step); display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-700); margin-bottom: var(--s1); }
.steps strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: var(--s1); }

.faq { max-width: 760px; margin-top: var(--s4); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: var(--s4) 0; font-weight: 600; font-size: 18px; list-style-position: outside; }
.faq summary:focus-visible { outline: 3px solid var(--green-700); outline-offset: 3px; border-radius: 4px; }
.faq details p { color: var(--ink-2); padding-bottom: var(--s4); margin: 0; }

.page-head { padding-top: var(--s7); padding-bottom: var(--s6); }
.note { font-size: 15px; color: var(--ink-2); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s4); top: var(--s2); background: var(--surface); padding: var(--s2) var(--s3); z-index: 2; }

/* The logo is the Drive lockup (direction 2b), inline so its two words use the bundled fonts. Never restyled. */
.logo { display: block; height: 52px; width: auto; }
.logo-lg { height: 72px; margin-bottom: var(--s4); }
.brand { display: inline-flex; align-items: center; }
