/* EMS Relay — marketing site (emsrelay.co.za, D-079). Brand: navy #002060, red #E1251B (logo, primary button), amber #F5A800 (small accents). */
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url(/assets/fonts/barlow-condensed-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url(/assets/fonts/barlow-condensed-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 400; font-display: swap; src: url(/assets/fonts/public-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 600; font-display: swap; src: url(/assets/fonts/public-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 700; font-display: swap; src: url(/assets/fonts/public-sans-latin-700-normal.woff2) format('woff2'); }

:root {
  --navy: #002060;
  --navy-deep: #001645;
  --red: #E1251B;
  --red-hover: #C41E15;
  --amber: #F5A800;
  --ink: #0F1B33;
  --muted: #4A5874;
  --line: #DDE4F0;
  --soft: #F3F6FB;
  --tint: #E8EEF8;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -0.01em; margin: 0; }
h1, h2 { text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: #fff; color: var(--navy); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ── buttons ───────────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

.eyebrow { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.eyebrow-dark { color: var(--red); }

/* ── hero ─────────────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy); padding-bottom: 96px; }
.hero::after { /* the logo's chevrons, huge and faint */
  content: ''; position: absolute; right: -140px; top: 120px; width: 760px; height: 480px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 146 92'%3E%3Cg fill='%23fff' fill-opacity='.05'%3E%3Cpolygon points='0,0 26,0 58,46 26,92 0,92 32,46'/%3E%3Cpolygon points='44,0 70,0 102,46 70,92 44,92 76,46'/%3E%3Cpolygon points='88,0 114,0 146,46 114,92 88,92 120,46'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
.nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.nav-logo img { width: 190px; height: auto; }
.nav nav { display: flex; align-items: center; gap: 24px; }
.nav-link { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-link:hover { color: #fff; }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; padding-top: 48px; }
.hero h1 { font-size: clamp(2.9rem, 5.4vw, 4.6rem); margin-top: 14px; }
.lead { margin-top: 22px; font-size: 19px; line-height: 1.6; color: rgba(255,255,255,.86); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; font-size: 15px; color: rgba(255,255,255,.8); }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ''; width: 16px; height: 16px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5A800' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain; }

.hero-visual { position: relative; padding: 0 0 40px 40px; }
.browser { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
.browser-bar { display: flex; gap: 7px; align-items: center; height: 30px; padding: 0 14px; background: #E9EEF6; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #C6D0E0; }
.browser img { width: 100%; height: auto; }
.phone { margin: 0; width: 210px; border-radius: 34px; border: 9px solid #0B1020; background: #0B1020; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0,0,0,.55); }
.phone img { width: 100%; height: auto; border-radius: 25px; }
.phone-hero { position: absolute; left: 0; bottom: 0; width: 34%; max-width: 210px; }

/* ── sections ─────────────────────────────────────────────────────────────────── */
.section { padding: 104px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2, .split-text h2, .origin h2, .cta h2 { font-size: clamp(2.2rem, 3.6vw, 3.1rem); margin-top: 10px; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { padding: 28px 26px 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--navy); }
.card-icon svg, .sec-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-top: 22px; font-size: 26px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.also { margin-top: 32px; color: var(--muted); font-size: 16px; }
.also strong { color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: none; }
.steps li { position: relative; padding: 28px 26px; background: #fff; border-radius: 18px; border: 1px solid var(--line); }
.steps li:not(:last-child)::after { /* a chevron between the steps */
  content: ''; position: absolute; right: -17px; top: 50%; width: 14px; height: 22px; margin-top: -11px; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 92'%3E%3Cpolygon fill='%23E1251B' points='0,0 26,0 58,46 26,92 0,92 32,46'/%3E%3C/svg%3E") no-repeat center / contain;
}
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 800; font-size: 21px; }
.steps h3 { margin-top: 18px; font-size: 26px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 16px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.split-reverse { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }
.split-reverse .split-visual { order: 2; }
.split-visual-phone { display: grid; place-items: center; padding: 48px 0; border-radius: 24px; background: linear-gradient(160deg, var(--tint), #fff 70%); }
.split-visual-phone .phone { width: 250px; }
.split-text { max-width: 520px; }
.chev-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.chev-list li { position: relative; padding-left: 36px; font-size: 18px; }
.chev-list li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 22px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 146 92'%3E%3Cpolygon fill='%23C3D0EA' points='0,0 26,0 58,46 26,92 0,92 32,46'/%3E%3Cpolygon fill='%23002060' points='44,0 70,0 102,46 70,92 44,92 76,46'/%3E%3Cpolygon fill='%23E1251B' points='88,0 114,0 146,46 114,92 88,92 120,46'/%3E%3C/svg%3E") no-repeat center / contain;
}

.section-navy { background: var(--navy); color: #fff; }
.sec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sec { padding: 28px 26px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.sec-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(245,168,0,.14); color: var(--amber); }
.sec h3 { margin-top: 22px; font-size: 25px; }
.sec p { margin-top: 10px; color: rgba(255,255,255,.78); font-size: 16px; }

.origin { text-align: center; }
.origin-mark { width: 64px; height: auto; margin: 0 auto 22px; }
.origin p { margin: 20px auto 0; font-size: 19px; color: var(--muted); max-width: 640px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 22px 48px 22px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { /* a chevron that turns when the answer opens */
  content: ''; position: absolute; right: 8px; top: 50%; width: 12px; height: 18px; margin-top: -9px; transition: transform .2s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 92'%3E%3Cpolygon fill='%23E1251B' points='0,0 26,0 58,46 26,92 0,92 32,46'/%3E%3C/svg%3E") no-repeat center / contain;
}
.faq details[open] summary::after { transform: rotate(90deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); }

.section-soft + .cta-section { padding-top: 104px; }
.cta-section { padding-top: 0; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 56px 60px; border-radius: 24px; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta h2 { margin-top: 0; }
.cta p { margin-top: 12px; font-size: 18px; color: rgba(255,255,255,.82); }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: none; }
.cta-mail { color: rgba(255,255,255,.8); font-size: 15px; }

.footer { border-top: 1px solid var(--line); padding: 52px 0 36px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer img { width: 150px; height: auto; }
.footer p { color: var(--muted); font-size: 15px; }

/* ── the menu: a <details> element, so it opens without any script ──────────────── */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.85); font-weight: 600; font-size: 15px; }
.menu-btn:hover, .menu[open] > .menu-btn { color: #fff; }
.menu-btn::after { content: ''; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.menu[open] > .menu-btn::after { transform: translateY(2px) rotate(-135deg); }
.menu-all { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 16px); z-index: 20; display: grid; width: 290px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 30px 70px -20px rgba(0,0,0,.45), 0 0 0 1px rgba(0,32,96,.06); }
.menu-panel a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--soft); color: var(--navy); }
.menu-demo { display: none !important; }

/* ── a module page's header band ──────────────────────────────────────────────── */
.hero-page { padding-bottom: 80px; }
.page-hero { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding-top: 28px; }
.page-hero h1 { font-size: clamp(2.5rem, 4.6vw, 3.9rem); margin-top: 12px; }
.page-hero-visual { position: relative; }
.page-hero-visual .phone { width: 250px; margin: 0 auto; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 14px; color: rgba(255,255,255,.65); }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.hero-404 { grid-template-columns: minmax(0, 1fr); padding-bottom: 24px; }

.section-intro { margin-top: 16px; font-size: 18px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 600; color: var(--red); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link svg, .module-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.text-link:hover svg, .module-card:hover .module-more svg { transform: translateX(3px); }
.text-link-light { color: #fff; margin-top: 36px; }

/* ── feature tiles ─────────────────────────────────────────────────────────────── */
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat { display: flex; gap: 16px; padding: 24px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.feat-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--navy); }
.feat-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 22px; line-height: 1.05; }
.feat p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }

/* ── module cards (links to each page) ────────────────────────────────────────── */
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.module-card { display: flex; flex-direction: column; padding: 28px 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.module-card:hover { border-color: #B9C6DD; box-shadow: 0 22px 50px -28px rgba(0,32,96,.45); transform: translateY(-2px); }
.module-card h3 { margin-top: 20px; font-size: 26px; }
.module-card p { flex: 1; margin-top: 10px; color: var(--muted); font-size: 16px; }
.module-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--red); }

/* ── illustrations: the app's screens drawn in HTML (invented examples) ───────── */
.mock { max-width: 460px; margin: 0 auto; padding: 22px 22px 18px; border-radius: 20px; background: #fff; color: var(--ink); font-size: 14.5px; line-height: 1.45; box-shadow: 0 40px 90px -30px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.section .mock { box-shadow: 0 34px 80px -34px rgba(0,32,96,.45), 0 0 0 1px var(--line); }
.mock-narrow { max-width: 430px; }
.mock-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mock-kicker { font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.mock-title { margin-top: 4px; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; }
.mock-sub { margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pill svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pill-ok { background: #E3F4EA; color: #137A43; }
.pill-warn { background: #FFF2D6; color: #8A5800; }
.pill-bad { background: #FDE4E2; color: #B42318; }
.pill-neutral { background: var(--soft); color: var(--muted); }
.mock-log { display: grid; gap: 9px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; }
.mock-log li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.mock-log em { margin-left: auto; padding-left: 8px; color: var(--muted); font-size: 12.5px; font-style: normal; white-space: nowrap; }
.check-list { display: grid; margin: 14px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 600; }
.check-list small { display: block; margin-top: 2px; color: #B42318; font-size: 12.5px; }
.mock-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.mock-foot span, .seal { display: inline-flex; align-items: center; gap: 6px; }
.mock-foot svg, .seal svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tick-list { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.tick-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tick-list li::before { content: ''; flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 13px; }
.tick-list .tick-more { color: var(--muted); }
.tick-list .tick-more::before { background: var(--soft); }
.sig-box { margin-top: 16px; padding: 8px 14px 10px; border: 1.5px dashed #B9C6DD; border-radius: 12px; }
.sig-box svg { width: 100%; height: 54px; fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sig-box p { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.seal { margin-top: 14px; color: #137A43; font-size: 13px; font-weight: 600; }
.ob-list { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.ob-list li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 3px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ob-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.ob-list b { grid-row: span 2; font-family: var(--display); font-size: 20px; }
.ob-list p { font-size: 14px; }
.tag { justify-self: start; padding: 2px 8px; border-radius: 6px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 700; }
.tag-info { background: #E6F0FB; color: #1F5FA8; }
.tag-brand { background: var(--tint); color: var(--navy); }
.dose-list { display: grid; margin: 14px 0 0; padding: 0; list-style: none; }
.dose-list li { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.dose-list b { font-family: var(--display); font-size: 18px; }
.dose-list span { font-weight: 600; }
.dose-list small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }

/* ── footer ────────────────────────────────────────────────────────────────────── */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.footer-brand p { max-width: 380px; margin-top: 14px; color: var(--muted); font-size: 15px; }
.footer-links { display: grid; align-content: start; gap: 9px; }
.footer-links a { color: var(--ink); font-size: 15px; text-decoration: none; }
.footer-links a:hover { color: var(--red); }
.footer-head { margin-bottom: 4px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ── smaller screens ──────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .cards, .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 960px) {
  .nav-link { display: none; }
  .hero::after { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 24px; }
  .hero-visual { padding: 0 0 32px 24px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split-reverse .split-visual { order: 0; }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .cta-actions { align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { min-height: 72px; }
  .nav-logo img { width: 150px; }
  .hero { padding-bottom: 64px; }
  .lead { font-size: 17px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .cards, .sec-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li::after { display: none; }
  .phone-hero { width: 38%; }
  .split-visual-phone .phone { width: 220px; }
  .chev-list li { font-size: 17px; }
  .faq summary { font-size: 17px; padding-right: 36px; }
  .faq details p { padding-right: 0; }
  .section-soft + .cta-section { padding-top: 72px; }
  .cta { padding: 36px 24px; }
}
@media (max-width: 380px) {
  .nav-logo img { width: 128px; }
  .btn-sm { padding: 0 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
  .btn:hover { transform: none; }
}

/* ── the new pages on smaller screens (D-079) ─────────────────────────────────── */
@media (max-width: 1080px) {
  .module-grid, .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-main > .nav-link { display: none; }
}
@media (max-width: 960px) {
  .menu-more { display: none; }
  .menu-all { display: inline; }
  .menu-btn { min-height: 42px; padding: 0 16px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 10px; color: #fff; }
  .menu-btn::after { display: none; }
  .menu-btn::before { content: ''; width: 16px; height: 12px; background: linear-gradient(currentColor 0 0) top / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat; }
  .menu[open] > .menu-btn { border-color: #fff; }
  .page-hero { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 16px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav nav { gap: 10px; }
  .module-grid, .feat-grid { grid-template-columns: minmax(0, 1fr); }
  .feat { padding: 20px 18px; }
  .page-hero h1 { font-size: clamp(2.2rem, 9vw, 2.9rem); }
  .hero-page { padding-bottom: 56px; }
  .page-hero-visual .phone { width: 220px; }
  .mock { padding: 18px 16px 14px; }
  .mock-title { font-size: 26px; }
  .dose-list li { grid-template-columns: 42px minmax(0, 1fr); }
  .dose-list .pill { grid-column: 2; justify-self: start; }
  .menu-panel { position: fixed; left: 16px; right: 16px; top: 76px; width: auto; }
}
@media (max-width: 480px) {
  .nav-demo { display: none; }
  .menu-demo { display: block !important; margin-top: 4px; background: var(--red); color: #fff !important; text-align: center; }
  .menu-demo:hover { background: var(--red-hover) !important; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .module-card, .menu-btn::after, .text-link svg, .module-more svg { transition: none; }
  .module-card:hover { transform: none; }
}
@media (max-width: 640px) {
  .module-card { padding: 22px 20px; }
  .module-card .card-icon { width: 44px; height: 44px; border-radius: 12px; }
  .module-card .card-icon svg { width: 22px; height: 22px; }
  .module-card h3 { margin-top: 14px; font-size: 23px; }
  .module-card p { font-size: 15.5px; }
  .module-more { margin-top: 12px; }
}

/* ── devices, shown big (Zander, 2026-11-09: "add a tablet device"; "show the mockups nice and big on desktop") ─ */
.tablet { margin: 0; border-radius: 30px; border: 12px solid #0B1020; background: #0B1020; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }
.tablet img { width: 100%; height: auto; border-radius: 18px; }

/* the home page: the words centred on top, then a computer, a tablet and a phone across the page */
.hero-intro { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding-top: 40px; text-align: center; }
.hero-intro h1 { font-size: clamp(2.9rem, 6vw, 5rem); margin-top: 14px; }
.hero-intro .lead { max-width: 720px; margin: 22px auto 0; }
.hero-intro .hero-cta, .hero-intro .ticks { justify-content: center; }
.stage { position: relative; z-index: 1; margin-top: 64px; }
/* the computer on the left with its whole menu in view; the tablet and the phone step down to the right, over the dashboard's last
   column only (Zander, 2026-11-09: "show all the menu options … dont hide it behind a phone image", D-081) */
.stage-devices { position: relative; padding: 0 21% 92px 0; }
.stage-devices .browser { border-radius: 16px; }
.stage-tablet { position: absolute; right: 10.5%; bottom: 36px; width: 24%; }
.stage-phone { position: absolute; right: 0; bottom: 0; width: 15%; max-width: none; }
.stage-labels { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; margin: 34px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.75); font-size: 15px; }
.stage-labels li { display: inline-flex; align-items: center; gap: 8px; }
.stage-labels b { color: #fff; font-weight: 600; }
.stage-labels span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(245,168,0,.14); color: var(--amber); }
.stage-labels svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* a tablet with a phone in front of it */
.duo { position: relative; max-width: 560px; margin: 0 auto; padding: 0 0 36px 90px; }
.duo .tablet { width: 100%; }
.duo .phone { position: absolute; left: 0; bottom: 0; width: 36%; }

/* module pages: the picture larger; a computer screen spans the page under the words */
@media (min-width: 961px) { .page-hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.page-hero-visual .tablet { width: min(100%, 470px); margin: 0 auto; }
.page-hero-visual .phone { width: 280px; }
.page-hero-visual .duo .phone { width: 36%; }
.page-hero-visual .mock { max-width: 500px; }
.page-hero-wide { grid-template-columns: minmax(0, 1fr); gap: 48px; }
.page-hero-wide .page-hero-text { max-width: 760px; }
.page-hero-wide .page-hero-visual .browser { max-width: 1080px; margin: 0 auto; }
.split-visual .tablet { width: min(100%, 420px); margin: 0 auto; }

@media (max-width: 960px) {
  .stage { margin-top: 48px; }
  .stage-devices { padding-bottom: 64px; }
  .stage-tablet { bottom: 24px; }
  .page-hero-visual .tablet { width: min(100%, 420px); }
  .duo { max-width: 480px; padding-left: 70px; }
}
@media (max-width: 640px) {
  .hero-intro { padding-top: 16px; text-align: left; }
  .hero-intro .hero-cta, .hero-intro .ticks { justify-content: flex-start; }
  .stage { margin-top: 40px; }
  .stage-devices { padding: 0 22% 36px 0; }
  .stage-tablet { display: none; }
  .stage-phone { width: 30%; }
  .stage-labels { justify-content: flex-start; gap: 10px 20px; font-size: 14px; }
  .page-hero-visual .phone { width: 230px; }
  .duo { padding-left: 54px; }
  .tablet { border-width: 9px; border-radius: 24px; }
  .tablet img { border-radius: 14px; }
}
@media (min-width: 1200px) {
  .wrap.stage { max-width: 1440px; }
}

/* ── WhatsApp (D-081): a button in the closing band, a line in the footer and a round button on every page ──────── */
.btn .wa-glyph { width: 20px; height: 20px; margin-right: 10px; fill: #25D366; flex: none; }
.cta-actions .btn { align-self: stretch; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #1DA851; color: #fff; box-shadow: 0 14px 34px -10px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.18); transition: transform .15s, background .15s; }
.wa-float:hover { background: #178F44; transform: translateY(-2px); }
.wa-float .wa-glyph { width: 30px; height: 30px; fill: currentColor; }
@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .wa-float .wa-glyph { width: 28px; height: 28px; }
  .footer { padding-bottom: 92px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } .wa-float:hover { transform: none; } }
@media print { .wa-float { display: none; } }

/* ── scan and speak (D-082): the PRF's AI helpers, shown as they look on the phone ───────────────────────────── */
.ai-pill { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: linear-gradient(135deg, #2F5BD3, #6D3FE0); color: #fff; font-family: var(--body); font-weight: 700; font-size: 12px; line-height: 1.4; letter-spacing: .06em; text-transform: none; vertical-align: middle; }
.section-ai { background: radial-gradient(55% 35% at 92% 6%, rgba(109,63,224,.08), transparent 70%), radial-gradient(50% 35% at 4% 52%, rgba(47,91,211,.07), transparent 70%), #fff; }
.section-ai .wrap { max-width: 1320px; }
.show { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: center; margin-top: 64px; }
.show + .show { margin-top: 104px; }
.show-reverse { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.show-reverse .show-visual { order: 2; }
.show-kicker { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.show-kicker > span:first-child { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--tint); }
.show-kicker svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.show-text h3 { margin-top: 14px; font-size: clamp(1.9rem, 2.9vw, 2.5rem); }
.show-text .chev-list { margin-top: 22px; }
/* the photo the crew takes, and the phone reading it; the phone in front sets the height */
.show-scan, .show-speak { position: relative; }
.show-scan .phone, .show-speak .show-front { position: relative; z-index: 1; width: 44%; }
.show-scan .phone { margin: 0 2% 0 auto; }
.show-scan .snap { position: absolute; left: 0; top: 24%; width: 70%; }
.show-speak .show-front { margin: 10% 3% 0 auto; }
.show-speak .show-back { position: absolute; left: 3%; top: 0; width: 44%; }
.snap { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; transform: rotate(-4deg); box-shadow: 0 30px 60px -25px rgba(15,27,51,.5), 0 0 0 1px rgba(15,27,51,.06); }
.snap img { width: 100%; height: auto; }
.show-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.show-steps li { display: inline-flex; align-items: center; gap: 9px; }
.show-steps b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; }
.show-notes { margin-top: 104px; }
.show-notes .feat h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.show-link { display: flex; width: max-content; max-width: 100%; margin: 40px auto 0; }
/* module pages: a tablet with a phone, or with the sticker photo, in front of it */
.split-visual .duo { max-width: 540px; }
.split-visual .duo .tablet { width: 100%; }
.duo-snap .snap { position: absolute; left: 0; bottom: 0; width: 52%; z-index: 1; }
@media (max-width: 960px) {
  .show, .show-reverse { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 48px; }
  .show + .show { margin-top: 80px; }
  .show-reverse .show-visual { order: 0; }
  .show-visual { width: 100%; max-width: 560px; margin: 0 auto; }
  .show-notes { margin-top: 72px; }
}
