/* AfriMedlink Rwanda: public site (patients + pharmacies).
   Tokens mirror the platform design system (pharmacy.afrimedlink.health, DESIGN.md "The Open Dispensary").
   Logical properties throughout so the layout mirrors cleanly under dir="rtl". */

:root {
  --forest: #123C26;
  --forest-night: #0C2A1B;
  --forest-deep: #081F14;
  --green: #168A45;
  --green-ink: #127A3C;
  --green-bright: #22B65B;
  --leaf: #7CE0A2;
  --mint: #E8F7EE;
  --mint-2: #F3FAF5;
  --ivory: #FAFCF8;
  --white: #FFFFFF;
  --sage-track: #EEF3EF;
  --ink: #102019;
  --ink-2: #4B5E53;
  --ink-3: #5F7067;
  --line: rgba(18, 60, 38, .10);
  --line-2: rgba(18, 60, 38, .16);
  --on-dark: #F1F7F3;
  --on-dark-2: #B9CCC0;
  --line-dark: rgba(241, 247, 243, .14);
  --ok: #127A3C;  --ok-bg: #E3F4EA;
  --warn: #9A5B00; --warn-bg: #FDF1DC;
  --danger: #B42318; --danger-bg: #FDE8E6;
  --wa-head: #0B5E3B; --wa-wall: #ECE5DD; --wa-out: #D9FDD3;

  --font-display: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-text: 'Figtree', ui-sans-serif, system-ui, sans-serif;

  --sh-1: 0 1px 2px rgba(16,32,25,.05), 0 4px 14px -6px rgba(16,32,25,.10);
  --sh-2: 0 2px 6px rgba(16,32,25,.05), 0 18px 40px -18px rgba(18,60,38,.28);
  --sh-3: 0 4px 10px rgba(16,32,25,.06), 0 40px 80px -30px rgba(18,60,38,.38);
  --sh-dark: 0 6px 16px rgba(4,16,10,.30), 0 40px 90px -30px rgba(4,16,10,.70);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 10vw, 140px);
  --header-h: 72px;

  --z-media: 0; --z-content: 2; --z-header: 50; --z-menu: 60; --z-skip: 100;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--ivory);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--leaf); color: var(--forest-night); }
:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .night :focus-visible { outline-color: var(--leaf); }
html { scrollbar-color: #B7C7BD var(--ivory); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed; inset-block-start: 10px; inset-inline-start: 10px; z-index: var(--z-skip);
  background: var(--forest); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3, .display, .headline, .title {
  font-family: var(--font-display); color: var(--ink); text-wrap: balance;
}
.display { font-weight: 700; font-size: clamp(2.35rem, 1.3rem + 3.6vw, 4.2rem); line-height: 1.02; letter-spacing: -0.03em; }
.headline { font-weight: 700; font-size: clamp(2rem, 1.3rem + 2.2vw, 3.1rem); line-height: 1.06; letter-spacing: -0.026em; }
.title { font-weight: 600; font-size: clamp(1.12rem, 1rem + .4vw, 1.3rem); line-height: 1.25; letter-spacing: -0.012em; }
.display em, .headline em, .title em { font-style: normal; color: var(--green); }
.night .display em, .night .headline em, .on-dark .display em, .on-dark .headline em { color: var(--leaf); }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); line-height: 1.6; color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }
.prose { color: var(--ink-2); max-width: 65ch; text-wrap: pretty; }
.prose + .prose { margin-block-start: 1em; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }

/* ---------- buttons ---------- */
.btn {
  --btn-h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn .i { width: 20px; height: 20px; flex: none; }
.btn .i-arrow { transition: transform .25s var(--ease); }
.btn:hover .i-arrow { transform: translateX(3px); }
[dir="rtl"] .btn .i-arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .i-arrow { transform: scaleX(-1) translateX(3px); }
.btn-lg { --btn-h: 56px; padding: 0 28px; font-size: 1.04rem; }
.btn-primary {
  background: var(--green-ink); color: #fff;
  box-shadow: 0 8px 20px -10px rgba(18,122,60,.7), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { background: var(--forest); box-shadow: 0 14px 28px -12px rgba(18,122,60,.75), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--green); color: var(--forest); }
.btn-light { background: var(--ivory); color: var(--forest); }
.btn-light:hover { background: var(--mint); }
.btn-outline-dark { background: rgba(241,247,243,.06); color: #fff; border-color: rgba(241,247,243,.4); }
.btn-outline-dark:hover { background: rgba(241,247,243,.14); border-color: rgba(241,247,243,.7); }
.btn-wa .i-wa { width: 21px; height: 21px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
@media (max-width: 560px) {
  .btn { white-space: normal; }
  .cta-row .btn { width: 100%; }
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green-ink);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; text-decoration-thickness: 1.5px;
  transition: text-decoration-color .2s var(--ease);
}
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow .i { width: 18px; height: 18px; }
.on-dark .link-arrow, .night .link-arrow { color: var(--leaf); }

/* ---------- icons ---------- */
.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-fill { fill: currentColor; stroke: none; }
.well {
  width: 46px; height: 46px; border-radius: 14px; background: var(--mint); color: var(--green-ink);
  display: grid; place-items: center; flex: none;
}
.night .well { background: rgba(124,224,162,.12); color: var(--leaf); }

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; white-space: nowrap; line-height: 1;
}
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip-danger { background: var(--danger-bg); color: var(--danger); }
.chip-neutral { background: var(--sage-track); color: var(--ink-2); }
.tag-example {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .01em;
  background: var(--sage-track); color: var(--ink-2);
}
.night .tag-example, .on-dark .tag-example { background: rgba(241,247,243,.12); color: var(--on-dark-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 3px rgba(34,182,91,.2); flex: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset-inline: 0; inset-block-start: 0; z-index: var(--z-header);
  height: var(--header-h); color: #fff;
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-block-end: 1px solid transparent;
}
.site-header.is-solid, .site-header.menu-open {
  background: rgba(250,252,248,.86); color: var(--ink);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-block-end-color: var(--line); box-shadow: 0 10px 30px -24px rgba(18,60,38,.5);
}
.nav { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.site-header:not(.is-solid):not(.menu-open) .brand img { filter: brightness(0) invert(1); }
.brand small { font-family: var(--font-text); font-weight: 500; font-size: .78rem; letter-spacing: 0; opacity: .72; margin-inline-start: 2px; }

.seg {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--sage-track);
}
.seg > * {
  display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--ink-2); transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.seg > *:hover { color: var(--forest); }
.seg > [aria-current="page"], .seg > [aria-pressed="true"] { background: var(--white); color: var(--forest); box-shadow: 0 1px 2px rgba(16,32,25,.12); }
.site-header:not(.is-solid):not(.menu-open) .seg { background: rgba(241,247,243,.12); }
.site-header:not(.is-solid):not(.menu-open) .seg > * { color: rgba(255,255,255,.78); }
.site-header:not(.is-solid):not(.menu-open) .seg > *:hover { color: #fff; }
.site-header:not(.is-solid):not(.menu-open) .seg > [aria-current="page"],
.site-header:not(.is-solid):not(.menu-open) .seg > [aria-pressed="true"] { background: #fff; color: var(--forest); }
.seg-lang > * { min-width: 40px; padding: 0 10px; font-size: .82rem; }

.nav-audience { margin-inline-start: 8px; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-inline-start: auto; }
.nav-links a { position: relative; font-weight: 500; font-size: .97rem; opacity: .86; white-space: nowrap; }
.nav-links a::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: -6px; height: 2px; border-radius: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-header:not(.is-solid) .nav-links a::after { background: var(--leaf); }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 12px; }
.nav-tools .btn { --btn-h: 42px; padding: 0 18px; font-size: .94rem; }
.site-header:not(.is-solid):not(.menu-open) .nav-tools .btn-primary { background: #fff; color: var(--forest); box-shadow: none; }
.site-header:not(.is-solid):not(.menu-open) .nav-tools .btn-primary:hover { background: var(--mint); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; place-items: center; margin-inline-start: auto; }
.menu-btn .i { width: 24px; height: 24px; }
.menu-btn .i-close { display: none; }
.menu-open .menu-btn .i-menu { display: none; }
.menu-open .menu-btn .i-close { display: block; }

.mobile-menu {
  position: fixed; inset-inline: 0; inset-block-start: var(--header-h); z-index: var(--z-menu);
  background: var(--ivory); border-block-end: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(18,60,38,.4);
  padding: 18px var(--gutter) 22px; display: grid; gap: 18px;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu > .seg { display: none; }
.mobile-menu .seg { width: 100%; }
.mobile-menu .seg > * { flex: 1; min-height: 44px; }
.mobile-menu ul a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-block-end: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.mobile-menu .cta-row .btn { flex: 1; }
.mm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: .9rem; }

@media (max-width: 1279px) { .nav-links { display: none; } .nav-tools { margin-inline-start: auto; } }
@media (max-width: 860px) {
  .nav-tools .btn, .nav-tools .seg-lang { display: none; }
  .menu-btn { display: grid; margin-inline-start: 0; }
  .nav-tools { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  .brand small { display: none; }
  .nav { gap: 10px; }
  .nav-audience { margin-inline-start: auto; }
  .nav-audience > * { min-height: 32px; padding: 0 11px; font-size: .84rem; }
  .nav-tools { margin-inline-start: 0; }
}
@media (max-width: 400px) { .site-header .brand > span { display: none; } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: var(--section); }
.section-tight { padding-block: clamp(64px, 7vw, 100px); }
.night { background: var(--forest-night); color: var(--on-dark); }
.night h2, .night h3, .night .display, .night .headline, .night .title { color: #fff; }
.night .lead, .night .prose { color: var(--on-dark-2); }
.mint-band { background: var(--mint-2); }
.section-head { max-width: 760px; margin-block-end: clamp(40px, 5vw, 64px); }
.section-head .lead { margin-block-start: 18px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- cinematic hero (shared) ---------- */
.cine {
  position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark);
  min-height: clamp(640px, 100svh, 920px); background: var(--forest-deep);
  display: flex; align-items: center;
  padding-block: calc(var(--header-h) + clamp(40px, 6vh, 72px)) clamp(88px, 12vh, 120px);
}
.cine-media { position: absolute; inset: 0; z-index: -2; }
.cine-slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; }
.cine-slide.is-active { opacity: 1; visibility: visible; }
.cine-slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 50%; will-change: transform; }
.cine-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,31,20,.94) 0%, rgba(8,31,20,.82) 34%, rgba(8,31,20,.38) 64%, rgba(8,31,20,.18) 100%),
    linear-gradient(0deg, rgba(8,31,20,.85) 0%, rgba(8,31,20,0) 34%),
    linear-gradient(180deg, rgba(8,31,20,.55) 0%, rgba(8,31,20,0) 22%);
}
[dir="rtl"] .cine-scrim {
  background:
    linear-gradient(270deg, rgba(8,31,20,.94) 0%, rgba(8,31,20,.82) 34%, rgba(8,31,20,.38) 64%, rgba(8,31,20,.18) 100%),
    linear-gradient(0deg, rgba(8,31,20,.85) 0%, rgba(8,31,20,0) 34%),
    linear-gradient(180deg, rgba(8,31,20,.55) 0%, rgba(8,31,20,0) 22%);
}
.cine-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.cine-copy { max-width: 680px; }
.cine .display { color: #fff; font-size: clamp(2.25rem, 1.25rem + 3.1vw, 3.85rem); }
.cine .display em { color: var(--leaf); }
.cine .lead { color: var(--on-dark-2); margin-block: 22px 34px; max-width: 46ch; }
.cine-place { display: inline-flex; align-items: center; gap: 10px; margin-block-end: 22px; font-weight: 500; font-size: .95rem; color: var(--on-dark-2); }
.cine-aside { position: relative; justify-self: end; width: 100%; max-width: 440px; }

.cine-controls {
  position: absolute; inset-block-end: clamp(24px, 4vh, 40px); inset-inline-end: var(--gutter); z-index: var(--z-content);
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 999px;
  background: rgba(8,31,20,.42); border: 1px solid var(--line-dark);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.cine-controls .ctl { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: background-color .2s var(--ease); }
.cine-controls .ctl:hover { background: rgba(241,247,243,.14); }
.cine-controls .ctl .i { width: 16px; height: 16px; }
.cine-controls .i-play { display: none; }
.cine-controls.is-paused .i-play { display: block; }
.cine-controls.is-paused .i-pause { display: none; }
.dots { display: flex; align-items: center; gap: 2px; }
.dot { position: relative; width: 22px; height: 36px; display: grid; place-items: center; }
.dot span { position: relative; display: block; width: 8px; height: 8px; border-radius: 999px; background: rgba(241,247,243,.4); overflow: hidden; transition: width .4s var(--ease), background-color .3s; }
.dot[aria-current="true"] { width: 42px; }
.dot[aria-current="true"] span { width: 30px; background: rgba(241,247,243,.3); }
.dot span i { position: absolute; inset: 0; background: var(--leaf); transform: scaleX(0); transform-origin: left; }
.dot[aria-current="true"] span i { transform: scaleX(var(--p, 0)); }
.header-sentinel { position: absolute; inset-block-end: 0; inset-inline-start: 0; width: 1px; height: 1px; pointer-events: none; }
.cine-caption { position: absolute; inset-block-end: clamp(32px, 4.6vh, 48px); inset-inline-start: var(--gutter); z-index: var(--z-content); font-size: .82rem; color: var(--on-dark-2); max-width: 40ch; }

@media (max-width: 960px) {
  .cine { align-items: flex-end; min-height: auto; padding-block-end: 104px; }
  .cine-grid { grid-template-columns: minmax(0, 1fr); }
  .cine-aside { justify-self: start; max-width: 420px; }
  .cine-scrim {
    background:
      linear-gradient(0deg, rgba(8,31,20,.96) 0%, rgba(8,31,20,.86) 48%, rgba(8,31,20,.45) 78%, rgba(8,31,20,.55) 100%);
  }
  .cine-caption { display: none; }
  .cine-controls { inset-inline-end: auto; inset-inline-start: var(--gutter); }
}

/* floating product card on photography */
.float-card {
  background: var(--white); color: var(--ink); border-radius: 18px; box-shadow: var(--sh-dark);
  padding: 18px; font-size: .92rem;
}
.float-card .fc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 12px; }
.float-card .fc-title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.float-card .fc-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding-block: 10px; border-block-start: 1px solid var(--line); }
.float-card .fc-meta { color: var(--ink-2); font-size: .84rem; }
.float-card .fc-foot { display: flex; align-items: center; gap: 10px; padding-block-start: 12px; border-block-start: 1px solid var(--line); color: var(--ink-2); font-size: .86rem; }

/* ---------- reveal (content is visible by default; JS animates from hidden only when motion is allowed) ---------- */
.js-motion [data-reveal] { will-change: transform, opacity; }

/* ---------- accordion ---------- */
.acc { border-block-start: 1px solid var(--line-2); }
.acc-item { border-block-end: 1px solid var(--line-2); }
.acc-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 22px; text-align: start;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); letter-spacing: -0.012em; line-height: 1.3; color: var(--ink);
}
.acc-q:hover { color: var(--forest); }
.acc-ico {
  width: 34px; height: 34px; border-radius: 50%; background: var(--mint); color: var(--green-ink);
  display: grid; place-items: center; flex: none; transition: background-color .3s var(--ease), color .3s var(--ease), transform .4s var(--ease);
}
.acc-ico .i { width: 18px; height: 18px; }
.acc-q[aria-expanded="true"] .acc-ico { background: var(--green-ink); color: #fff; transform: rotate(180deg); }
.acc-a { overflow: hidden; }
.acc-a > div { padding-block-end: 24px; max-width: 68ch; color: var(--ink-2); }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field .req { color: var(--danger); }
.input {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 12px; background: var(--white);
  border: 1px solid #C5D2CA; font-size: 1rem; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input::placeholder { color: #6E7F75; }
.input:hover { border-color: #A4B6AB; }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(34,182,91,.16); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(180,35,24,.10); }
.field-hint { font-size: .85rem; color: var(--ink-3); }
.field-err { display: flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 500; color: var(--danger); }
.field-err[hidden] { display: none; }
.field-err .i { width: 16px; height: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { appearance: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #A4B6AB; background: #fff; flex: none; margin-block-start: 1px; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.check input::after { content: ""; width: 11px; height: 6px; border-inline-start: 2px solid #fff; border-block-end: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--green-ink); border-color: var(--green-ink); }
.check input:checked::after { opacity: 1; }
.check input[aria-invalid="true"] { border-color: var(--danger); }

/* ---------- footer (same as the platform's public site: dotted world map, Douala-Kigali arc, pulsing cities) ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: #0C2A1B; color: #E7F2EA; padding: 72px 0 32px; }
.footer-wrap { padding-inline: clamp(20px, 5vw, 96px); }
.footer-map { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease); }
.footer-map.is-loaded { opacity: .8; }
.footer-map svg { width: 100%; height: 100%; }
/* The world is wider than the footer is tall: let the map bleed past the top and bottom on wide screens. */
@media (min-width: 961px) { .footer-map svg { position: absolute; inset-inline-start: 0; inset-block-start: -22%; height: 144%; } }
@media (max-width: 960px) { .footer-map.is-loaded { opacity: .45; } }
.footer-map .land-world { stroke: rgba(210, 234, 219, .26); stroke-width: 3.1; stroke-linecap: round; fill: none; }
.footer-map .land-africa { stroke: rgba(111, 216, 154, .55); stroke-width: 3.4; stroke-linecap: round; fill: none; }
.footer-map .land-active { stroke: #7CF0AA; stroke-width: 4.2; stroke-linecap: round; fill: none; }
.footer-map .arc-solid { fill: none; stroke: url(#ft-arc-grad); stroke-width: 2; stroke-linecap: round; }
.footer-map .node-core { fill: #fff; }
.footer-map .node-ring { fill: none; stroke: #7CF0AA; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .footer-map .node-ring { animation: ft-ring 3.6s var(--ease) infinite; }
  .footer-map .node-ring.r2 { animation-delay: 1.8s; }
}
@keyframes ft-ring { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.footer-grid { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 40px; }
.footer-brand { max-width: 34ch; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-block-start: 16px; font-size: .95rem; color: rgba(231,242,234,.78); max-width: 32ch; }
.footer-col h2 { font-family: var(--font-text); font-size: .95rem; font-weight: 600; color: #fff; margin-block-end: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: rgba(231,242,234,.78); font-size: .95rem; }
.footer-col a:hover { color: #6FD89A; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #6FD89A; }
.footer-bottom { margin-block-start: 56px; padding-block-start: 24px; border-block-start: 1px solid rgba(231,242,234,.14); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: .9rem; color: rgba(231,242,234,.66); }
.footer-bottom .seg { background: rgba(231,242,234,.1); }
.footer-bottom .seg > * { color: rgba(231,242,234,.78); }
.footer-bottom .seg > *:hover { color: #fff; }
.footer-bottom .seg > [aria-pressed="true"] { background: #fff; color: var(--forest); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; justify-content: stretch; } .footer-brand { grid-column: 1 / -1; max-width: none; } }

/* ---------- utility layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

.photo { position: relative; overflow: hidden; border-radius: 24px; background: var(--mint); box-shadow: var(--sh-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { position: absolute; inset-inline: 14px; inset-block-end: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
