/* MamaRinzi — Design system (Product Spec §2). Every screen uses these tokens. */
:root {
  --grad-top: #E0F7FA;     /* soft light blue */
  --grad-bottom: #F8BBD9;  /* soft warm pink */
  --bg: #F0F8FF;           /* inner screens */
  --teal: #0B5345;         /* primary */
  --teal-dark: #07372C;    /* primary dark */
  --gold: #F2C14E;         /* accent */
  --white: #FFFFFF;
  --ink: #1F2A24;          /* body text */
  --text: #111111;         /* headings, labels, links — black (founder request) */
  --muted: #5C6B64;        /* secondary text */
  --green: #27AE60;
  --amber: #E67E22;
  --red: #C0392B;
  --purple: #6A1B9A;       /* mental health */
  --navy: #1A237E;         /* clinician dashboard */
  --line: #D9E4E0;
  --soft: #E8F1EE;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(11, 83, 69, .08);
  --serif: Cambria, Georgia, 'Times New Roman', serif;
  --sans: Calibri, 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.45; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; color: var(--text); margin: .4em 0 .45em; line-height: 1.2; }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 18px; } h4 { font-size: 16px; }
a { color: var(--text); }
p { margin: .4em 0 .7em; }
code { background: var(--soft); padding: 1px 6px; border-radius: 6px; }
small, .small { font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }
.warn { color: var(--red); }
.err { color: var(--red); font-weight: 700; }
[hidden] { display: none !important; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 700 16px var(--sans); padding: 11px 18px; border-radius: 12px; border: 2px solid var(--teal); background: var(--white); color: var(--text); cursor: pointer; text-decoration: none; min-height: 46px; transition: transform .08s, box-shadow .15s; }
.btn:hover { box-shadow: var(--shadow); } .btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--teal); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--text); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.amber { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.mh { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn.ghost { background: transparent; }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn.small { font-size: 14px; padding: 6px 12px; min-height: 36px; border-radius: 10px; }
.btn.block { display: flex; width: 100%; margin: 8px 0; }
.btn.xl { font-size: 17px; min-height: 58px; padding: 14px 20px; }
.btn.round { width: 64px; height: 64px; border-radius: 50%; font-size: 26px; padding: 0; }
.btn.wa-btn { background: #25D366; border-color: #25D366; color: #fff; }
.link { background: none; border: none; color: var(--text); text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.row-between { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; margin: 8px 0; }
.row-center { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.center-col { display: flex; flex-direction: column; align-items: center; text-align: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

/* ---------- cards & misc ---------- */
.card { display: block; background: var(--white); border-radius: var(--radius); padding: 16px; margin: 12px 0; box-shadow: var(--shadow); border: 1px solid #EEF3F1; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--teal); }
.card.soft { background: var(--soft); box-shadow: none; }
.card.info { background: #FFF8E6; border-color: var(--gold); }
.card.prompt { background: #FFF8E6; border-left: 5px solid var(--gold); font-weight: 700; }
.card.wa { border-left: 5px solid #25D366; font-weight: 700; }
.badge { display: inline-block; font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.badge.risk-green, .badge.g { background: #DFF5E8; color: #1B7A43; } .badge.risk-amber, .badge.a { background: #FDEBD8; color: #A65410; } .badge.risk-red, .badge.r { background: #F8DEDA; color: var(--red); }
.badge.gold { background: var(--gold); color: var(--text); } .badge.p { background: #EDE0F5; color: var(--purple); }
.badge.urg-emergency { background: var(--red); color: #fff; } .badge.urg-urgent { background: var(--amber); color: #fff; } .badge.urg-routine { background: var(--soft); color: var(--text); }
.badge.st-confirmed, .badge.st-completed { background: #DFF5E8; color: #1B7A43; } .badge.st-awaiting_payment { background: #FDEBD8; color: #A65410; } .badge.st-in_session { background: var(--gold); color: var(--text); }
.cat-tag { display: inline-block; font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .04em; background: #F8DEDA; color: var(--red); padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.cat-tag.mh { background: #EDE0F5; color: var(--purple); }
.chip { display: inline-block; border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 5px 11px; margin: 3px 2px; font-size: 14px; cursor: default; }
button.chip { cursor: pointer; } .chip.on { background: var(--teal); color: #fff; border-color: var(--teal); } .chip.off { opacity: .4; text-decoration: line-through; }
.pill { font-size: 12px; background: rgba(255,255,255,.2); padding: 3px 8px; border-radius: 999px; } .pill.off { background: var(--amber); color: #fff; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #ccc; vertical-align: middle; }
.dot.risk-green { background: var(--green); } .dot.risk-amber { background: var(--amber); } .dot.risk-red { background: var(--red); }
.ticks { padding-left: 0; list-style: none; } .ticks li { padding-left: 26px; position: relative; margin: 6px 0; } .ticks li::before { content: '✔'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.demo-note { font-size: 13px; background: #FFF8E6; border: 1px dashed var(--gold); border-radius: 8px; padding: 6px 10px; color: #7A5A00; }
.note.warn { background: #FDEBD8; padding: 8px 12px; border-radius: 8px; }

/* Disclaimer (Spec §2.2: Calibri italic 11px, muted grey-green) */
.disclaimer { font: italic 11px/1.4 var(--sans); color: var(--muted); background: rgba(255,255,255,.7); border-radius: 8px; padding: 8px 10px; margin: 14px 0; display: flex; gap: 6px; align-items: flex-start; }
.disclaimer.prominent { font-size: 13px; border: 2px solid var(--red); color: var(--ink); background: #fff; }
.disclaimer.top { margin-top: 0; }
.disclaimer.light { background: rgba(255,255,255,.55); max-width: 640px; margin: 18px auto 0; }
.disclaimer .spk { width: 26px; height: 26px; font-size: 13px; flex: none; }

/* Speaker button — every label can be read aloud */
.spk { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--teal); background: var(--white); cursor: pointer; font-size: 15px; vertical-align: middle; padding: 0; flex: none; }
.spk.big { width: 54px; height: 54px; font-size: 24px; }
.phone.voice .spk { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,193,78,.35); }
/* Sound switched off by the woman: hide every speaker / replay button (the header 🔇 button stays to turn it back on) */
html.audio-off .spk, html.audio-off .replay { display: none !important; }
.hbtn.sound { display: inline-flex; align-items: center; gap: 4px; width: auto; padding: 0 7px; font-size: 15px; background: var(--white); border: 1.5px solid var(--teal); border-radius: 999px; }
.snd-sw { position: relative; width: 24px; height: 14px; border-radius: 7px; background: var(--teal); flex: none; transition: background .2s; }
.snd-sw::after { content: ''; position: absolute; top: 2px; left: 12px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: left .2s; }
html.audio-off .hbtn.sound { border-color: #9AA5A1; }
html.audio-off .snd-sw { background: #B8C0BD; }
html.audio-off .snd-sw::after { left: 2px; }
/* Location dropdowns + calculated pregnancy / postpartum age */
.geo select:disabled { opacity: .55; }
fieldset.reg-box { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.reg-box[disabled] { display: none; }
.badge.private { background: #EDE7F6; color: #4A2C82; }
.badge.green { background: #DFF3E6; color: #1B7A43; }
/* Mother + baby status side by side (home) */
.family-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 14px; }
.fam-tile { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 16px; background: var(--white); border: 2px solid var(--line); text-decoration: none; color: var(--text); box-shadow: 0 2px 8px rgba(7,55,44,.06); min-width: 0; }
.fam-tile b { font: 700 16px var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fam-tile small { font-size: 12.5px; color: var(--muted); }
.fam-tile .fam-ico { font-size: 26px; line-height: 1; }
.fam-tile.st-green { border-color: #27AE60; } .fam-tile.st-amber { border-color: #E67E22; } .fam-tile.st-red { border-color: var(--red); background: #FDF0EE; }
.fam-tile .fam-next { color: var(--teal); font-weight: 700; }
.baby-card h3 { margin-top: 0; }
.baby-item { align-items: center; gap: 8px; }
.baby-item.done span { opacity: .65; } .baby-item.late small { color: var(--red); font-weight: 700; }
/* Result screen: step 1 = MamaRinzi clinician online, step 2 = health facility */
.clin-first { position: relative; border: 2px solid var(--teal); }
.clin-first.mh { border-color: var(--purple); }
.clin-first h3 { margin-top: 0; padding-left: 34px; }
.clin-first .now-head { margin: 10px 0; }
.step-badge { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; font: 700 14px var(--sans); flex: none; }
.clin-first > .step-badge { position: absolute; top: 16px; left: 16px; }
.clin-first.mh > .step-badge { background: var(--purple); }
.clin-then { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; color: var(--text); margin: 4px 2px 12px; }
.clin-then .step-badge { background: var(--red); }
/* My Wellbeing */
.placeholder-tag { display: inline-block; background: #FFF4D6; color: #7A5300; border: 1px dashed #E0A82E; border-radius: 10px; padding: 6px 10px; font-size: 12.5px; font-weight: 700; margin: 0 0 8px; }
.helpline-card { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); border-left: 5px solid var(--purple); }
.helpline-card .hl-ico { font-size: 30px; } .helpline-card b { display: block; color: var(--purple); font-size: 17px; } .helpline-card small { color: var(--muted); }
.selfcare-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.selfcare-list li { display: flex; gap: 10px; align-items: flex-start; } .selfcare-list li span { font-size: 20px; flex: none; }
.mood-strip { display: flex; align-items: flex-end; gap: 4px; min-height: 90px; padding: 6px 0; overflow-x: auto; }
.mood-day { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1 0 22px; }
.mood-day i { display: block; width: 14px; border-radius: 7px; background: #A5D6A7; }
.mood-day.m1 i, .mood-day.m2 i { background: #CE93D8; } .mood-day.m3 i { background: var(--purple); }
.mood-day small { font-size: 9.5px; color: var(--muted); white-space: nowrap; }
/* Months 2–6: day without a scheduled check-in */
.next-ck { display: flex; flex-direction: column; gap: 4px; border-left: 5px solid var(--teal); }
.next-ck small { color: var(--muted); }
.btn.danger-soft { background: #FDF0EE; border-color: var(--red); color: var(--red); font-size: 17px; min-height: 64px; }
.btn.danger-soft small { color: var(--text); font-weight: 400; font-size: 13px; }
.hc-card { border-left: 5px solid var(--gold); }

/* ---------- logo ---------- */
.logo-circle { display: inline-flex; width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.logo-circle svg { width: 100%; height: 100%; }
.logo-circle { background: #fff; overflow: hidden; align-items: center; justify-content: center; }
.logo-circle img, .call-ava img { width: 82%; height: 82%; object-fit: contain; }
.brand-logo { margin: 8px 0 6px; line-height: 0; } .brand-logo img { width: min(220px, 60vw); height: auto; } .brand-logo.sm img { width: 150px; }
.logo-circle.big { width: 112px; height: 112px; } .logo-circle.sm { width: 48px; height: 48px; } .logo-circle.xs { width: 30px; height: 30px; box-shadow: none; }
.brand { font-family: var(--serif); font-size: 40px; color: var(--text); margin: 12px 0 4px; }
.tagline { font: italic 18px var(--serif); color: var(--text); } .tagline span { color: var(--muted); }

/* ---------- woman's app (phone frame) ---------- */
.app-wrap { min-height: 100vh; display: flex; justify-content: center; background: var(--bg); }
.app-wrap.grad, .grad { background: linear-gradient(180deg, var(--grad-top) 0%, var(--grad-bottom) 100%); }
.app-wrap.full { align-items: center; }
.phone { width: 100%; max-width: 480px; min-height: 100vh; display: flex; flex-direction: column; background: transparent; position: relative; }
@media (min-width: 640px) { .app-wrap { padding: 20px 0; } .phone { min-height: calc(100vh - 40px); border-radius: 26px; box-shadow: 0 10px 40px rgba(7,55,44,.18); overflow: hidden; background: var(--bg); } .app-wrap.grad .phone { background: transparent; } }
/* Light glass header (no dark green bar) */
.app-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--text); border-bottom: 1px solid rgba(11,83,69,.08); }
.app-title { flex: 1; color: var(--text); font-size: 19px; margin: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbtn { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; border-radius: 12px; color: var(--text); background: var(--soft); border: none; font-size: 22px; text-decoration: none; cursor: pointer; }
.hbtn.ghost { background: none; } .hbtn.lang { font: 700 13px var(--sans); padding: 0 10px; background: var(--gold); color: var(--text); }
.head-tools { display: flex; align-items: center; gap: 6px; } .head-tools .spk { width: 34px; height: 34px; background: var(--white); }
.head-tools .pill { background: var(--soft); color: var(--text); }
.app-main { flex: 1; padding: 14px 16px 90px; }
.app-nav { position: sticky; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--white); border-top: 1px solid var(--line); z-index: 5; }
.app-nav a { display: flex; flex-direction: column; align-items: center; padding: 7px 2px 8px; text-decoration: none; color: var(--muted); font-size: 11px; }
.app-nav a span { font-size: 21px; } .app-nav a.on { color: var(--text); font-weight: 700; border-top: 3px solid var(--gold); }
.app-nav small { font: 700 11px var(--sans); color: inherit; }

.splash { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.dots { display: flex; gap: 8px; margin-top: 26px; } .dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); animation: dot 1s infinite ease-in-out; } .dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { transform: scale(.6); opacity: .5; } 50% { transform: scale(1); opacity: 1; } }

.lang-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 16px; width: 100%; max-width: 520px; margin: 0 auto; }
.lang-screen h2 { font-size: 24px; } .lang-screen h2 span { color: var(--muted); font-size: 20px; }
.lang-opts { display: grid; gap: 14px; width: 100%; margin: 14px 0; }
.lang-opt { display: flex; gap: 10px; align-items: center; }
.lang-btn { flex: 1; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; border: 3px solid var(--teal); background: var(--white); cursor: pointer; font: 700 22px var(--serif); color: var(--text); box-shadow: var(--shadow); }
.lang-btn:hover { background: var(--teal); color: #fff; } .lang-flag { font-size: 32px; }

.disclaimer-card { margin-top: 10px; } .disclaimer-card .lead { font-size: 17px; }
.big-ico { font-size: 54px; text-align: center; }
.lead { font-size: 17px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; } .check input { width: 22px; height: 22px; flex: none; accent-color: var(--teal); }
.check.big { font-size: 17px; font-weight: 700; padding: 12px; background: var(--soft); border-radius: 12px; }

/* forms */
.field { display: block; margin: 12px 0; }
.lbl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--text); margin-bottom: 5px; }
.lbl .spk { width: 26px; height: 26px; font-size: 12px; } .req { color: var(--red); } .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.help { display: block; margin-top: 4px; }
input, select, textarea { width: 100%; font: 16px var(--sans); padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(11,83,69,.15); }
input[type=checkbox], input[type=radio] { width: auto; }
.row input { flex: 1; min-width: 140px; }
.ok-badge { color: var(--green); font-weight: 700; white-space: nowrap; }
.calc { background: var(--soft); padding: 8px 12px; border-radius: 10px; font-weight: 700; color: var(--text); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-o { flex: 1; min-width: 90px; } .seg-o input { position: absolute; opacity: 0; } .seg-o span { display: block; text-align: center; padding: 11px 8px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 700; background: var(--white); }
.seg-o input:checked + span { border-color: var(--teal); background: var(--teal); color: #fff; } .seg-o input:focus-visible + span { outline: 3px solid var(--gold); }
.tri-red input:checked + span, .urg-emergency input:checked + span { background: var(--red); border-color: var(--red); } .tri-amber input:checked + span, .urg-urgent input:checked + span { background: var(--amber); border-color: var(--amber); } .tri-green input:checked + span { background: var(--green); border-color: var(--green); }
.seg-b { flex: 1; padding: 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--white); font: 700 16px var(--sans); cursor: pointer; display: flex; flex-direction: column; align-items: center; } .seg-b.on { border-color: var(--teal); background: var(--teal); color: #fff; } .seg-b.on small { color: #fff; }
.stepper { display: flex; list-style: none; padding: 0; margin: 4px 0 8px; gap: 4px; }
.stepper li { flex: 1; text-align: center; font-size: 11px; color: var(--muted); } .stepper b { display: flex; width: 30px; height: 30px; margin: 0 auto 3px; align-items: center; justify-content: center; border-radius: 50%; background: var(--line); color: var(--muted); }
.stepper li.on b { background: var(--gold); color: var(--text); } .stepper li.done b { background: var(--teal); color: #fff; } .stepper li.on { color: var(--text); font-weight: 700; }
.otp { font-size: 28px; letter-spacing: 10px; text-align: center; margin: 10px 0; }
.fpick { position: relative; } .fpick-list { position: absolute; left: 0; right: 0; top: 100%; max-height: 240px; overflow: auto; background: var(--white); border: 1.5px solid var(--teal); border-radius: 10px; z-index: 20; box-shadow: var(--shadow); }
.fpick-list button { display: block; width: 100%; text-align: left; border: none; background: none; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; } .fpick-list button:hover { background: var(--soft); } .fpick-list small { display: block; }
fieldset { border: 1.5px solid var(--line); border-radius: 10px; margin: 12px 0; } legend { font-weight: 700; color: var(--text); }

/* progress ring */
.progress-ring { --p: 0; width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal) calc(var(--p) * 1%), var(--line) 0); margin: 10px auto; }
.progress-ring span { width: 84px; height: 84px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font: 700 24px var(--serif); color: var(--text); }
.progress-ring.sm { width: 76px; height: 76px; } .progress-ring.sm span { width: 58px; height: 58px; font-size: 18px; }

/* home */
.hello h2 { margin-bottom: 0; } .hello .status { color: var(--muted); font-weight: 700; margin-top: 2px; }
.risk-banner { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; text-decoration: none; color: #fff; margin: 12px 0; box-shadow: var(--shadow); }
.risk-banner.green { background: var(--green); } .risk-banner.amber { background: var(--amber); } .risk-banner.red { background: var(--red); animation: pulseBg 1.6s infinite; } .risk-banner.none { background: var(--white); color: var(--ink); border: 2px dashed var(--line); }
.risk-banner b { display: block; font: 700 22px var(--serif); } .risk-banner small { color: inherit; opacity: .9; } .rb-ico { font-size: 38px; }
@keyframes pulseBg { 50% { box-shadow: 0 0 0 8px rgba(192,57,43,.25); } }
.checkin-btn { flex-direction: column; font-size: 20px; min-height: 76px; } .checkin-btn small { color: var(--text); font-weight: 400; } .checkin-btn.done { background: var(--white); border-color: var(--green); color: var(--text); font-size: 16px; min-height: 52px; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.stat { background: var(--white); border-radius: 14px; padding: 12px 6px; text-align: center; box-shadow: var(--shadow); text-decoration: none; color: inherit; } .stat b { display: block; font: 700 22px var(--serif); color: var(--text); } .stat small { font-size: 12px; }
.med-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); } .med-row:last-child { border: none; } .med-row input[type=checkbox] { width: 26px; height: 26px; accent-color: var(--green); } .med-row span:nth-of-type(2) { flex: 1; } .med-row time { color: var(--muted); font-size: 14px; } .med-row input[type=time] { width: auto; } .med-ico { font-size: 20px; }
.weekly { background: linear-gradient(135deg, #fff, #FCEFF6); }
.banner { padding: 12px 14px; border-radius: 12px; margin: 10px 0; font-weight: 700; }
.banner.transfer { background: var(--navy); color: #fff; } .banner.transfer .link { color: var(--gold); }
.banner.red-soft { background: #F8DEDA; color: var(--red); } .banner.amber-soft { background: #FDEBD8; color: #8A4510; } .banner.mh { background: #EDE0F5; color: var(--purple); } .banner.info { background: #E3E7FA; color: var(--navy); }

/* check-in */
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; } .progress span { display: block; height: 100%; background: var(--gold); transition: width .3s; }
.q-meta { text-align: center; color: var(--muted); font-size: 13px; margin: 8px 0; }
.sec { padding: 2px 8px; border-radius: 6px; } .sec-physical { background: var(--soft); color: var(--text); } .sec-baby { background: #FFF3D6; color: #7A5A00; } .sec-mental { background: #EDE0F5; color: var(--purple); }
.question { text-align: center; background: var(--white); border-radius: 20px; padding: 20px 14px; box-shadow: var(--shadow); }
.question.mental { background: #FAF5FD; border: 2px solid #E2CFEF; }
.q-ico { font-size: 64px; line-height: 1.1; } .q-text { font-size: 24px; color: var(--ink); } .gentle { color: var(--purple); font-size: 15px; }
.replay { margin: 6px 0 14px; }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pic { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 18px; border: 3px solid var(--line); background: var(--white); cursor: pointer; font: 700 19px var(--sans); color: var(--ink); }
.pic svg { width: 84px; height: 84px; } .pic:hover { border-color: var(--teal); } .pic.sel { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242,193,78,.35); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; } .choice { font-size: 16px; } .pic-ico { font-size: 38px; } .choice.none { border-style: dashed; }
.mh-theme .app-head { background: rgba(250,245,253,.9); } .mh-theme .app-title { color: var(--purple); }

/* results */
.result { text-align: center; color: #fff; border-radius: 22px; padding: 26px 16px; margin: 6px 0 12px; }
.result h2 { color: #fff; font-size: 28px; } .result .r-ico { font-size: 70px; } .r-sub { font-size: 17px; }
.result.green { background: var(--green); } .result.amber { background: var(--amber); } .result.red { background: var(--red); }
.pulse { animation: pulse 1s infinite; } @keyframes pulse { 50% { transform: scale(1.12); } }
.red-card { border: 2px solid var(--red); } .red-card p { font-weight: 700; }
.mh-card { background: #FAF5FD !important; border: 2px solid #E2CFEF !important; color: var(--purple) !important; }
.mh-hero { text-align: center; background: linear-gradient(180deg, #F3E8FA, #FCEFF6); border-radius: 20px; padding: 18px; } .mh-hero h2 { color: var(--purple); }
.breathe { width: 140px; height: 140px; border-radius: 50%; margin: 10px auto; background: radial-gradient(circle, #E2CFEF, var(--purple)); display: grid; place-items: center; color: #fff; text-align: center; font-size: 13px; cursor: pointer; padding: 12px; }
.breathe.on { animation: breathe 14s infinite ease-in-out; } @keyframes breathe { 0% { transform: scale(.7); } 28% { transform: scale(1.1); } 57% { transform: scale(1.1); } 100% { transform: scale(.7); } }
.call { text-align: center; } .call-ava { width: 90px; height: 90px; margin: 0 auto; font-size: 50px; } .call-script { font-weight: 700; }
.modal.call-modal { background: var(--teal-dark); color: #fff; } .call-modal h3 { color: #fff; }
.clinic h3 { font-size: 17px; margin-bottom: 2px; }

/* QR */
.qr-card { border: 3px solid var(--gold); } .qr-box svg { width: 240px; height: 240px; } .pid { font-size: 18px; } .qr-fallback { font: 700 22px monospace; padding: 30px; border: 2px dashed var(--teal); }

/* library */
.search { display: flex; gap: 8px; } .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; background: var(--white); border-radius: 16px; box-shadow: var(--shadow); text-decoration: none; color: var(--text); text-align: center; } .tile span { font-size: 40px; } .tile.mh { color: var(--purple); }
.lib { display: flex; gap: 12px; } .lib-ico { font-size: 40px; flex: none; } .lib h3 { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.danger-grid .lib { border-left: 5px solid var(--red); }

/* premium */
.premium-hero { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); color: #fff; border-radius: 18px; padding: 18px; } .premium-hero h2 { color: var(--gold); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; } .tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; } .tbl th { font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #F7FAF9; }
.tbl tr.inactive { opacity: .5; } .nowrap { white-space: nowrap; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; } .list-row small { display: block; }
.pro-type, .pro { display: flex; align-items: center; gap: 12px; } .pt-ico { font-size: 36px; } .pro-type small, .pro small { display: block; } .pro-type > span:nth-child(2), .pro > span:nth-child(2) { flex: 1; }
.avatar { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--teal); color: #fff; font: 700 20px var(--serif); flex: none; } .avatar.big { width: 92px; height: 92px; font-size: 34px; }
.photo { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; } .dl dt { font: 700 12px var(--sans); text-transform: uppercase; color: var(--muted); letter-spacing: .04em; } .dl dd { margin: 0; }
.dl.cols { grid-template-columns: max-content 1fr max-content 1fr; }
.price { font: 700 34px var(--serif); color: var(--text); margin: 0; }
.pay-o { display: flex; align-items: center; gap: 10px; padding: 12px; border: 2px solid var(--line); border-radius: 12px; margin: 8px 0; cursor: pointer; font-weight: 700; } .pay-o:has(input:checked) { border-color: var(--teal); background: var(--soft); }
.pay-logo { display: inline-grid; place-items: center; width: 54px; height: 30px; border-radius: 6px; font: 700 12px var(--sans); } .pay-logo.mtn { background: #FFCC00; color: #000; } .pay-logo.airtel { background: #E40000; color: #fff; } .pay-logo.cash { background: var(--teal); color: #fff; }
.spinner { width: 48px; height: 48px; border: 5px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.consult-head { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: 14px; padding: 10px; box-shadow: var(--shadow); } .consult-head div { flex: 1; } .consult-head small { display: block; }
.timer { font: 700 22px monospace; color: var(--text); } .timer.low { color: var(--red); }
.chat { background: #EEF6F3; border-radius: 14px; padding: 10px; height: 300px; overflow-y: auto; margin: 10px 0; }
.msg { max-width: 82%; margin: 6px 0; padding: 8px 12px; border-radius: 14px; background: var(--white); } .msg.me { margin-left: auto; background: var(--teal); color: #fff; } .msg p { margin: 0; } .msg time { font-size: 11px; opacity: .7; }
.chat-in { display: flex; gap: 8px; position: sticky; bottom: 64px; } .chat-in input { flex: 1; }
.pro-panel { border: 2px dashed var(--navy); } .allergy { background: var(--red); color: #fff; padding: 6px 10px; border-radius: 8px; font-weight: 700; }
.mini-tl { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0; } .mini-tl.big .dot { width: 16px; height: 16px; }
.note-sum { border-bottom: 1px solid var(--line); padding: 8px 0; } .note-sum p { margin: 2px 0; }
.switch { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; } .switch input { width: 44px; height: 24px; accent-color: var(--teal); flex: none; }
.danger-zone { border: 2px solid #F3C6C0; }
.cal { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; } .cal-d { text-align: center; font-size: 12px; padding: 6px 0; border-radius: 6px; } .cal-d.yes { background: var(--green); color: #fff; } .cal-d.no { background: #F8DEDA; color: var(--red); }

/* WhatsApp */
.wa-entry .steps li { margin: 6px 0; }
.wa-chat { background: #ECE5DD; border-radius: 14px; padding: 10px; height: 380px; overflow-y: auto; }
.wa-msg { max-width: 85%; margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: #fff; font-size: 15px; } .wa-msg.user { margin-left: auto; background: #DCF8C6; } .wa-msg p { margin: 0; } .wa-msg time { font-size: 11px; color: var(--muted); }
.wa-disc { font: italic 11px var(--sans); color: var(--muted); border-top: 1px solid #eee; margin-top: 6px !important; padding-top: 4px; }
.wa-quick { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }

/* modal & toast */
.modal-back { position: fixed; inset: 0; background: rgba(7,55,44,.45); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { position: relative; background: var(--white); border-radius: 18px; padding: 22px; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { max-width: 760px; }
.modal-x { position: absolute; right: 10px; top: 10px; border: none; background: var(--soft); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.modal-msg { font-size: 17px; }
#toast-root { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--teal-dark); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; opacity: 0; transform: translateY(10px); transition: .25s; max-width: 90vw; box-shadow: var(--shadow); } .toast.show { opacity: 1; transform: none; } .toast.err { background: var(--red); }
#offline-banner { position: sticky; top: 0; z-index: 300; background: var(--amber); color: #fff; text-align: center; padding: 8px 12px; font-weight: 700; font-size: 14px; }

/* charts */
.chart svg { width: 100%; height: auto; } .chart .grid { stroke: var(--line); stroke-width: 1; } .chart .axis { font-size: 11px; fill: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; } .lg i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.bars { display: grid; gap: 8px; } .bar-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 48px; gap: 10px; align-items: center; font-size: 14px; } .bar-t { display: block; height: 12px; background: var(--soft); border-radius: 99px; overflow: hidden; } .bar-f { display: block; height: 100%; background: var(--teal); border-radius: 99px; } .bar-row b { text-align: right; }

/* ---------- clinician dashboard (navy) ---------- */
body.dashboard { background: #F3F5FB; }
.dash { display: grid; grid-template-columns: 240px 1fr; grid-template-rows: auto 1fr; min-height: 100vh; }
.dash-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; background: var(--navy); color: #fff; padding: 10px 18px; position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.dash-brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font: 700 20px var(--serif); } .dash-brand small { color: var(--gold); font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .06em; }
.dash-fac { flex: 1; font-weight: 700; opacity: .9; } .dash-user { font-size: 14px; }
.lang-toggle { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.menu-btn { display: none; }
.dash-nav { background: var(--white); border-right: 1px solid #E0E4F0; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 58px; height: calc(100vh - 58px); overflow-y: auto; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.dash-nav a:hover { background: #EEF0FA; } .dash-nav a.on { background: var(--navy); color: #fff; }
.dash-nav a.has-red span { animation: pulse 1s infinite; } .small-link { margin-top: auto; font-weight: 400 !important; color: var(--muted) !important; }
.count { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: #E3E7FA; color: var(--navy); font: 700 12px var(--sans); text-align: center; margin-left: auto; } .count.red { background: var(--red); color: #fff; }
.dash-main { padding: 18px 22px 60px; min-width: 0; }
.dash-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; } .dash-title h1 { color: var(--navy); margin: 4px 0 10px; }
body.dashboard h2, body.dashboard h3 { color: var(--navy); } body.dashboard .card { border-color: #E6E9F4; }
.dash-login { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, var(--navy), #3949AB); padding: 16px; }
.login-card { width: 100%; max-width: 460px; } .login-card h1 { color: var(--navy); margin: 6px 0 0; }
.fac-banner { background: #E3E7FA; color: var(--navy); padding: 10px 12px; border-radius: 10px; margin: 12px 0; text-align: center; }
.demo-accounts { margin-top: 12px; background: #FFF8E6; border-radius: 10px; padding: 8px 12px; } .demo-accounts summary { cursor: pointer; font-weight: 700; }
.role-card { display: block; width: 100%; text-align: left; padding: 14px; margin: 8px 0; border: 2px solid #E0E4F0; border-radius: 12px; background: #fff; cursor: pointer; font: 16px var(--sans); }
.role-card:hover { border-color: var(--navy); } .role-card small { display: block; } .role-card.disabled { opacity: .45; cursor: not-allowed; } .role-card em { font-size: 12px; color: var(--red); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; } .stat-grid.small { grid-template-columns: repeat(2, 1fr); }
.tile-stat { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; border-top: 4px solid var(--navy); }
.tile-stat b { font: 700 30px var(--serif); color: var(--navy); } .tile-stat span { font-size: 14px; color: var(--muted); font-weight: 700; } .tile-stat.wide { grid-column: span 1; } .live { color: var(--green); font-weight: 700; }
.tile-stat.g { border-color: var(--green); } .tile-stat.g b { color: var(--green); } .tile-stat.a { border-color: var(--amber); } .tile-stat.a b { color: var(--amber); } .tile-stat.r { border-color: var(--red); } .tile-stat.r b { color: var(--red); } .tile-stat.p { border-color: var(--purple); } .tile-stat.p b { color: var(--purple); }
.tile-stat.flash { animation: flash 1s infinite; } @keyframes flash { 50% { background: #FBE3E0; } }
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.cat-box { background: #F7F7F9; border-radius: 12px; padding: 12px; text-decoration: none; color: var(--muted); display: flex; flex-direction: column; gap: 4px; border: 2px solid transparent; }
.cat-box b { font: 700 26px var(--serif); } .cat-box.on { background: #FBE9E7; color: var(--red); border-color: #F3C6C0; } .cat-box.mh.on { background: #F3E8FA; color: var(--purple); border-color: #E2CFEF; } .cat-box span { font-weight: 700; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; } .filters input, .filters select { width: auto; min-width: 150px; padding: 8px 10px; } .filters label { font-size: 14px; }
.allergy-banner { position: sticky; top: 58px; z-index: 6; background: var(--red); color: #fff; font-weight: 700; padding: 10px 14px; border-radius: 10px; margin-bottom: 10px; }
.patient-head { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 14px; padding: 14px; box-shadow: var(--shadow); } .patient-head > div:nth-child(2) { flex: 1; } .patient-head h2 { margin: 0; } .patient-head h2 small { font: 13px monospace; color: var(--muted); }
.scan-ok { color: var(--green); font-weight: 700; margin: 0; }
.tabs { display: flex; gap: 4px; margin: 12px 0; border-bottom: 2px solid #E0E4F0; flex-wrap: wrap; } .tabs a { padding: 9px 14px; text-decoration: none; color: var(--muted); font-weight: 700; border-radius: 10px 10px 0 0; } .tabs a.on { background: var(--navy); color: #fff; }
.risk-edge-red { border-left: 6px solid var(--red); } .risk-edge-amber { border-left: 6px solid var(--amber); } .risk-edge-green { border-left: 6px solid var(--green); }
.mh-box { background: #FAF5FD; border: 1.5px solid #E2CFEF; border-radius: 10px; padding: 8px 10px; color: var(--purple); margin: 8px 0; }
.card.emergency { border-top: 4px solid var(--red); }
.allergy-inline { color: var(--red); font-weight: 700; }
.hist { border-left: 4px solid var(--line); padding: 6px 10px; margin: 8px 0; } .hist.red { border-color: var(--red); } .hist.amber { border-color: var(--amber); } .hist.green { border-color: var(--green); }
.cat-h { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.alert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.alert-card { background: #fff; border-radius: 14px; padding: 14px; box-shadow: var(--shadow); border-left: 6px solid var(--red); } .alert-card.mh { border-left-color: var(--purple); }
.alert-card.urgent { border: 3px solid var(--red); animation: flash 1.4s infinite; } .alert-card header { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.urgent-label { display: inline-block; background: var(--red); color: #fff; font: 700 12px var(--sans); padding: 3px 8px; border-radius: 6px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.dash-tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } .dash-tiles .tile { color: var(--navy); align-items: flex-start; text-align: left; }
.signoff { background: #FFF8E6; padding: 6px 10px; border-radius: 8px; }
.proto-steps li { margin: 8px 0; } .proto-steps.run { list-style: none; padding: 0; counter-reset: s; } .proto-steps.run li { counter-increment: s; background: #F7F8FC; border-radius: 10px; padding: 10px 12px; }
.proto-steps.run li label { display: flex; gap: 10px; cursor: pointer; } .proto-steps.run li label::before { content: counter(s); font-weight: 700; color: var(--navy); min-width: 18px; } .proto-steps.run input { width: 22px; height: 22px; flex: none; accent-color: var(--green); }
.proto-steps.run li.done { background: #E6F6EC; } .stamp { display: block; margin: 4px 0 0 50px; color: var(--green); font-weight: 700; }
.mh-section { border-top: 4px solid var(--purple); } .mh-section h2, .mh-section h3 { color: var(--purple) !important; }
.ref.urg-edge-emergency { border-left: 6px solid var(--red); } .ref.urg-edge-urgent { border-left: 6px solid var(--amber); } .ref.urg-edge-routine { border-left: 6px solid var(--navy); } .ref header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status-track { display: flex; list-style: none; padding: 0; gap: 4px; margin: 8px 0; } .status-track li { flex: 1; text-align: center; font-size: 12px; font-weight: 700; padding: 6px 4px; background: #EEF0F6; color: var(--muted); border-radius: 6px; } .status-track li.done { background: var(--navy); color: #fff; } .status-track small { display: block; color: inherit; }
.svc { display: inline-block; font-size: 11px; padding: 2px 6px; border-radius: 5px; margin: 1px; background: #F1F1F4; color: #aaa; text-decoration: line-through; } .svc.on { background: #E3E7FA; color: var(--navy); text-decoration: none; font-weight: 700; }
.note { border-bottom: 1px solid var(--line); padding: 10px 0; } .note header { font-size: 13px; color: var(--muted); } .note.urgent { background: #FFF4F2; border-left: 4px solid var(--red); padding-left: 10px; } .note.superseded > p { text-decoration: line-through; opacity: .6; }
.tag { display: inline-block; font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 5px; background: #E3E7FA; color: var(--navy); } .tag-mental { background: #EDE0F5; color: var(--purple); } .tag-emergency { background: #F8DEDA; color: var(--red); }
.timeline th, .timeline td { text-align: center; padding: 6px 4px; font-size: 13px; } .timeline th:first-child { text-align: left; white-space: nowrap; } .timeline td.hit { color: var(--amber); } .timeline td.persist { color: var(--red); background: #FBE9E7; }
.code { background: #0F1530; color: #E3E7FA; padding: 12px; border-radius: 10px; overflow-x: auto; font-size: 13px; }
.step-ed { display: grid; grid-template-columns: 24px 1fr 1fr 40px; gap: 8px; align-items: start; margin: 8px 0; }
.report h2 { color: var(--navy); }

/* ---------- USSD simulator ---------- */
body.ussd { background: #E9ECEF; }
.ussd-page { min-height: 100vh; }
.ussd-top { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: var(--teal-dark); color: #fff; } .ussd-top a { color: var(--gold); font-weight: 700; text-decoration: none; } .ussd-top h1 { color: #fff; flex: 1; margin: 0; font-size: 22px; }
.ussd-layout { display: grid; grid-template-columns: 360px 1fr; gap: 24px; padding: 20px; max-width: 1100px; margin: 0 auto; }
.feature-phone { background: #2B2D31; border-radius: 34px; padding: 22px 18px; box-shadow: 0 16px 40px rgba(0,0,0,.35); align-self: start; }
.fp-screen { background: #C9D8B6; color: #18230F; border-radius: 10px; min-height: 230px; padding: 12px; font: 15px/1.35 'Courier New', monospace; border: 4px solid #151619; overflow-wrap: anywhere; }
.fp-screen pre { white-space: pre-wrap; margin: 0; font: inherit; } .fp-idle { opacity: .7; }
.fp-meta { display: flex; justify-content: space-between; color: #9AA; font: 12px monospace; margin: 6px 4px; } .fp-meta .over { color: #FF6B6B; font-weight: 700; }
.fp-input { background: #111; color: #9F9; border: 2px solid #444; font: 18px monospace; text-align: center; margin: 6px 0; }
.fp-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; } .fp-keys button { padding: 12px 0; border-radius: 14px; border: none; background: #44474D; color: #fff; font: 700 20px var(--sans); cursor: pointer; } .fp-keys button:active { background: #666; }
.fp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .fp-call, .fp-end { padding: 12px; border: none; border-radius: 14px; font: 700 15px var(--sans); color: #fff; cursor: pointer; } .fp-call { background: var(--green); } .fp-end { background: var(--red); }
.sms-box { max-height: 360px; overflow-y: auto; } .sms { background: #F1F8E9; border-radius: 10px; padding: 8px 10px; margin: 6px 0; } .sms p { margin: 2px 0; font-size: 14px; }

/* ---------- public website ---------- */
body.site { background: var(--white); }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(11,83,69,.08); position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.site-brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font: 700 22px var(--serif); }
.site-head nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; } .site-head nav a { color: var(--text); text-decoration: none; font-weight: 700; } .site-head nav a:hover { color: var(--purple); }
.hero { padding: 50px 20px 40px; text-align: center; } .hero-in { max-width: 860px; margin: 0 auto; } .hero h1 { font-size: 46px; margin: 10px 0 0; } .hero .lead { font-size: 19px; max-width: 720px; margin: 12px auto; }
.site-sec { padding: 40px 20px; max-width: 1100px; margin: 0 auto; } .site-sec.alt { background: var(--bg); max-width: none; } .site-sec.alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; } .site-sec h2 { text-align: center; font-size: 30px; } .site-sec > p { text-align: center; max-width: 760px; margin: 0 auto 18px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; } .feat { background: var(--white); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); } .feat span { font-size: 32px; } .feat.mh { border-color: var(--purple); } .feat.mh h3 { color: var(--purple); }
.plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; } .plat { display: block; background: var(--teal); color: #fff; border-radius: 18px; padding: 20px; text-decoration: none; box-shadow: var(--shadow); } .plat h3 { color: var(--gold); } .plat span { font-size: 36px; } .plat.navy { background: var(--navy); } .plat.wa { background: #128C7E; }
.site-sec .cat-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } .site-sec .cat-box small { color: var(--ink); }
.site-sec.help { text-align: center; background: #FAF5FD; max-width: none; } .site-sec.help h2 { color: var(--purple); }
.site-foot { background: var(--teal-dark); color: #fff; text-align: center; padding: 28px 20px; } .site-foot a, .site-foot .link { color: var(--gold); } .site-foot .small { color: #CFE3DC; }
.doc-page { min-height: 100vh; background: var(--bg); } .doc { max-width: 820px; margin: 20px auto; padding: 26px; }

/* ---------- caring result + talk-to-someone ---------- */
.result.care { background: linear-gradient(135deg, #0E6B59, var(--teal-dark)); }
.result.care.mh { background: linear-gradient(135deg, #8E3BB8, var(--purple)); }
.result.care .r-sub { font-size: 16px; line-height: 1.5; }
.care-card { border: 2px solid #CFE3DC; } .care-card p { font-weight: 700; }
.talk-opts { border: 2px solid #E2CFEF; background: #FCF8FE; } .talk-opts h3 { color: var(--purple); }
.opt-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-bottom: 1px solid #EEE3F5; text-decoration: none; color: var(--ink); }
.opt-row:last-child { border: none; } .opt-row > span:first-child { font-size: 26px; width: 34px; text-align: center; flex: none; }
.opt-row > span:nth-child(2) { flex: 1; } .opt-row small { display: block; color: var(--muted); } .opt-row b { color: var(--purple); }
.opt-row .row { margin: 6px 0 0; } .opt-row form input { min-width: 120px; padding: 8px 10px; }
.comp-head { display: flex; gap: 12px; align-items: center; background: #FAF5FD; border: 1.5px solid #E2CFEF; border-radius: 16px; padding: 12px; }
.comp-head small { display: block; color: var(--muted); } .comp-ava { font-size: 34px; }
.chat.comp { background: #F6EFFA; } .chat.comp .msg.me { background: var(--purple); }
.auto-next { margin: 10px 0 0; color: var(--purple); font-weight: 700; font-size: 14px; animation: pulseTxt 1s infinite; }
@keyframes pulseTxt { 50% { opacity: .5; } }

/* ---------- check-in channel + simulated call ---------- */
.channel-pick .pay-o { align-items: center; } .ch-ico { font-size: 26px; }
.channel-card { border-left: 5px solid var(--gold); }
.call-screen .app-main { background: linear-gradient(180deg, #0B3D33, #07372C); min-height: 100vh; }
.call-screen .app-main .disclaimer { background: rgba(255,255,255,.9); }
.call-ui { text-align: center; color: #fff; padding: 20px 6px; }
.call-ui h2 { color: #fff; } .call-ui p { color: rgba(255,255,255,.9); }
.call-ui .call-ava { width: 110px; height: 110px; margin: 20px auto; border-radius: 50%; }
.call-ava.ring { animation: ping 1.4s infinite; }
.call-meta { font-weight: 700; color: var(--gold) !important; }
.call-say { background: rgba(255,255,255,.12); border-radius: 16px; padding: 18px; font: 700 20px var(--serif); margin: 12px 0; }
.call-hint { font-weight: 700; color: var(--gold) !important; }
.call-keys { max-width: 300px; margin: 14px auto; }

/* ---------- talk to a professional now ---------- */
.now-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(39,174,96,.6); animation: ping 1.6s infinite; flex: none; }
.now-dot.big { width: 16px; height: 16px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(39,174,96,.55); } 70% { box-shadow: 0 0 0 12px rgba(39,174,96,0); } 100% { box-shadow: 0 0 0 0 rgba(39,174,96,0); } }
.now-card { display: flex !important; align-items: center; gap: 12px; background: linear-gradient(120deg, #E8F8EF, #FFFFFF) !important; border: 2px solid #BFE8CF !important; }
.now-card small { display: block; color: #1B7A43; font-weight: 700; } .now-card > span:nth-child(2) { flex: 1; } .now-go { font-weight: 700; color: var(--text); white-space: nowrap; }
.now-hero { text-align: center; background: linear-gradient(135deg, #E8F8EF, #E0F7FA); border-radius: 20px; padding: 18px; } .now-hero b { color: #1B7A43; }
.chips-row { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; } .chips-row .chip { text-decoration: none; color: var(--text); white-space: nowrap; } .chips-row .chip.on { color: #fff; }
.now-head { display: flex; gap: 12px; align-items: center; } .now-head small { display: block; }
.ava-wrap { position: relative; display: inline-flex; flex: none; }
.st-dot { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; background: #B0BEC5; }
.st-dot.available { background: var(--green); } .st-dot.busy { background: var(--amber); }
.now-status { font-weight: 700; font-size: 14px; margin: 8px 0 4px; } .now-status.available { color: #1B7A43; } .now-status.busy { color: var(--amber); } .now-status.offline { color: var(--muted); }
.now-pro.st-offline { opacity: .75; }
.now-board { background: #fff; border-radius: 22px; box-shadow: 0 18px 50px rgba(7,55,44,.14); padding: 18px; display: grid; gap: 8px; text-align: left; }
.now-board-h { display: flex; align-items: center; gap: 10px; color: #1B7A43; padding: 4px 6px 10px; border-bottom: 1px solid var(--line); }
.now-row { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 12px; text-decoration: none; color: var(--ink); } .now-row:hover { background: var(--soft); }
.now-row > span:nth-child(2) { flex: 1; } .now-row small { display: block; color: var(--muted); }
.now-row em { font-style: normal; font: 700 12px var(--sans); padding: 4px 10px; border-radius: 999px; background: #ECEFF1; color: var(--muted); } .now-row em.available { background: #DFF5E8; color: #1B7A43; } .now-row em.busy { background: #FDEBD8; color: #A65410; }

/* ---------- modern landing (v2) ---------- */
body.site { background: #FBFDFD; overflow-x: hidden; }
.nav-glass { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 14px 28px; background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: background .25s, box-shadow .25s, padding .25s; }
.nav-glass.scrolled { background: rgba(255,255,255,.9); box-shadow: 0 6px 24px rgba(7,55,44,.08); border-color: rgba(11,83,69,.06); padding: 10px 28px; }
.nav-links { display: flex; gap: 4px; flex: 1; justify-content: center; flex-wrap: wrap; }
.nav-links a, .nav-drawer a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: background .15s; }
.nav-links a:hover { background: rgba(11,83,69,.08); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.lang-pill { border: 1.5px solid var(--teal); background: #fff; color: var(--text); border-radius: 999px; padding: 7px 12px; font: 700 13px var(--sans); cursor: pointer; }
.nav-app { border-radius: 999px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: none; background: var(--soft); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--teal); border-radius: 2px; transition: .2s; }
.nav-glass.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); } .nav-glass.open .burger span:nth-child(2) { opacity: 0; } .nav-glass.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-drawer { display: none; }
.hero2 { position: relative; overflow: hidden; padding: 30px 24px 110px; background: linear-gradient(180deg, var(--grad-top) 0%, #F3E5F0 55%, var(--grad-bottom) 100%); margin-top: -70px; padding-top: 100px; }
.blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; pointer-events: none; }
.blob.b1 { width: 380px; height: 380px; background: #B2EBF2; top: -80px; left: -80px; } .blob.b2 { width: 320px; height: 320px; background: #F48FB1; bottom: -100px; right: -60px; } .blob.b3 { width: 220px; height: 220px; background: var(--gold); top: 40%; left: 48%; opacity: .25; }
.hero2-grid { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 620px) 1fr; gap: 20px; align-items: end; max-width: 1280px; margin: 0 auto; }
.hero2-copy { text-align: center; padding-bottom: 10px; }
.hero2-copy h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; margin: 14px 0 8px; letter-spacing: -.01em; }
.grad-text { background: linear-gradient(90deg, #111111, var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-block; background: rgba(255,255,255,.75); border: 1px solid rgba(11,83,69,.12); color: var(--text); font: 700 13px var(--sans); padding: 7px 14px; border-radius: 999px; letter-spacing: .02em; }
.hero2-copy .lead { color: #33433C; max-width: 560px; margin: 10px auto 18px; }
.btn.glass { background: rgba(255,255,255,.7); border-color: rgba(11,83,69,.25); }
.btn.xl { border-radius: 16px; }
.trust { list-style: none; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; color: var(--text); font-weight: 700; font-size: 14px; margin: 14px 0 0; }
.hero-ill { margin: 0; text-align: center; animation: float 6s ease-in-out infinite; }
.hero-ill.right { animation-delay: -3s; }
.hero-ill svg { width: 100%; max-width: 300px; height: auto; filter: drop-shadow(0 18px 30px rgba(7,55,44,.15)); }
.hero-ill figcaption { display: inline-block; margin-top: 4px; background: rgba(255,255,255,.8); padding: 6px 14px; border-radius: 999px; font: 700 13px var(--sans); color: var(--text); box-shadow: var(--shadow); }
.hero-ill.right figcaption { color: var(--purple); }
@keyframes float { 50% { transform: translateY(-10px); } }
.scroll-hint { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.8); color: var(--text); font-size: 22px; cursor: pointer; animation: float 2.4s infinite; }
.stats-band { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; max-width: 1100px; margin: -36px auto 0; background: #fff; border-radius: 22px; box-shadow: 0 14px 40px rgba(7,55,44,.12); overflow: hidden; }
.stat2 { padding: 22px 14px; text-align: center; border-right: 1px solid var(--line); } .stat2:last-child { border: none; }
.stat2 b { display: block; font: 700 36px var(--serif); background: linear-gradient(90deg, #111111, var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat2 span { font-size: 13px; color: var(--muted); font-weight: 700; }
.sec2 { padding: 80px 24px; max-width: 1180px; margin: 0 auto; text-align: center; scroll-margin-top: 80px; }
.sec2.tint { max-width: none; background: linear-gradient(180deg, #F2FAFB, #FCF4F8); }
.sec2.tint > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.sec2 h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 6px 0 12px; } .sec2 h2.left { text-align: left; }
.kicker { display: inline-block; font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--purple); background: #F3E8FA; padding: 6px 12px; border-radius: 999px; }
.sec-lead { max-width: 720px; margin: 0 auto 26px !important; color: #44544D; font-size: 17px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; } .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero-ill, .scroll-hint { animation: none; } }
.feat-grid2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; text-align: left; }
.feat2 { background: #fff; border-radius: 22px; padding: 26px; box-shadow: 0 4px 20px rgba(7,55,44,.06); border: 1px solid #EEF3F1; transition: transform .2s, box-shadow .2s; }
.feat2:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(7,55,44,.12); }
.feat2 .ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--grad-top), #FCE4EF); font-size: 28px; margin-bottom: 8px; }
.feat2.mh .ico { background: #F3E8FA; } .feat2.mh h3 { color: var(--purple); }
.timeline2 { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.timeline2::before { content: ''; position: absolute; top: 30px; left: 10%; right: 10%; height: 3px; background: linear-gradient(90deg, var(--teal), var(--gold), var(--purple)); border-radius: 3px; }
.timeline2 li { position: relative; background: #fff; border-radius: 20px; padding: 70px 16px 18px; box-shadow: 0 4px 20px rgba(7,55,44,.06); }
.tl-dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 60px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); display: grid; place-items: center; font-size: 26px; box-shadow: var(--shadow); }
.timeline2 small { font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--purple); } .timeline2 h3 { font-size: 17px; margin: 4px 0 6px; } .timeline2 p { font-size: 14px; color: #4C5C55; }
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; text-align: left; }
.tool-card { background: #fff; border-radius: 22px; padding: 26px; box-shadow: 0 8px 30px rgba(7,55,44,.08); border-top: 5px solid var(--teal); } .tool-card.danger { border-top-color: var(--red); }
.dq-list { display: grid; gap: 8px; margin: 10px 0; } .dq { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 15px; } .dq:has(input:checked) { border-color: var(--red); background: #FDF0EE; } .dq input { width: 20px; height: 20px; accent-color: var(--red); }
.tool-out { margin-top: 10px; } .calc-res { display: flex; flex-direction: column; gap: 8px; background: var(--soft); border-radius: 14px; padding: 14px; } .calc-res b { font: 700 18px var(--serif); color: var(--text); } .calc-res.bad { background: #FDF0EE; } .calc-res.bad b { color: var(--red); } .calc-res.ok b { color: #1B7A43; } .calc-res .btn { align-self: flex-start; }
.plat-grid2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; text-align: left; }
.plat2 { display: flex; flex-direction: column; gap: 4px; padding: 26px; border-radius: 22px; color: #fff; text-decoration: none; min-height: 250px; transition: transform .2s, box-shadow .2s; box-shadow: 0 10px 30px rgba(7,55,44,.12); }
.plat2:hover { transform: translateY(-5px); } .plat2 span { font-size: 38px; } .plat2 h3 { color: #fff; } .plat2 p { color: rgba(255,255,255,.88); flex: 1; } .plat2 em { font-style: normal; font-weight: 700; color: var(--gold); }
.plat2.teal { background: linear-gradient(150deg, #0E6B59, var(--teal-dark)); } .plat2.navy { background: linear-gradient(150deg, #3949AB, var(--navy)); } .plat2.dark { background: linear-gradient(150deg, #37474F, #1F2A24); } .plat2.wa { background: linear-gradient(150deg, #25D366, #128C7E); }
.alert-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; }
.alert-tile { background: #fff; border-radius: 18px; padding: 18px 18px 18px 22px; border-left: 6px solid var(--red); box-shadow: 0 4px 18px rgba(7,55,44,.06); } .alert-tile b { display: block; color: var(--red); font: 700 18px var(--serif); } .alert-tile small { color: #4C5C55; font-size: 14px; } .alert-tile.mh { border-color: var(--purple); } .alert-tile.mh b { color: var(--purple); }
.pro-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 16px; text-align: left; }
.pro2 { display: flex; flex-direction: column; background: #fff; border-radius: 20px; padding: 20px; text-decoration: none; color: var(--ink); box-shadow: 0 4px 18px rgba(7,55,44,.06); transition: transform .2s; } .pro2:hover { transform: translateY(-4px); } .pro2 span { font-size: 32px; } .pro2 h3 { font-size: 17px; } .pro2 p { font-size: 14px; color: #4C5C55; flex: 1; } .pro2 em { font-style: normal; font-weight: 700; color: var(--text); font-size: 14px; } .pro2.mh { background: #FAF5FD; } .pro2.mh h3 { color: var(--purple); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; text-align: left; }
.mock { background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(26,35,126,.18); overflow: hidden; transform: perspective(1000px) rotateY(-6deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--navy); } .mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); } .mock-bar span { color: #fff; font-size: 12px; margin-left: 8px; opacity: .8; }
.mock-body { padding: 16px; display: grid; gap: 10px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .mock-stats span { border-radius: 12px; padding: 10px; font: 700 26px var(--serif); text-align: center; } .mock-stats small { display: block; font: 700 11px var(--sans); }
.mock-stats .g { background: #DFF5E8; color: #1B7A43; } .mock-stats .a { background: #FDEBD8; color: #A65410; } .mock-stats .r { background: #F8DEDA; color: var(--red); animation: flash 1.4s infinite; }
.mock-row { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: #FBE9E7; color: var(--red); font-size: 14px; } .mock-row.mh { background: #F3E8FA; color: var(--purple); }
.mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 80px; padding-top: 6px; } .mock-chart i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #7986CB, var(--navy)); }
.faq { max-width: 820px; margin: 24px auto 0; text-align: left; display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 16px; padding: 4px 20px; box-shadow: 0 4px 16px rgba(7,55,44,.05); border: 1px solid #EEF3F1; }
.faq summary { cursor: pointer; font: 700 17px var(--serif); color: var(--text); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; } .faq summary::after { content: '+'; font: 700 22px var(--sans); color: var(--purple); transition: transform .2s; } .faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 14px; color: #44544D; }
.help-band { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: linear-gradient(120deg, var(--purple), #8E3BB8 60%, #C2185B); color: #fff; border-radius: 26px; padding: 34px 40px; }
.help-band h2 { color: #fff; margin: 0 0 6px; } .help-band p { margin: 0; opacity: .92; max-width: 640px; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.contact-card { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; border-radius: 20px; padding: 24px; text-decoration: none; color: var(--ink); box-shadow: 0 4px 18px rgba(7,55,44,.06); transition: transform .2s; } .contact-card:hover { transform: translateY(-4px); } .contact-card span { font-size: 30px; } .contact-card b { color: var(--text); }
.foot2 { background: #F4F8F7; border-top: 1px solid var(--line); padding: 50px 28px 24px; }
.foot-cols { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.foot-cols h4 { color: var(--text); font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: .1em; margin: 6px 0 12px; }
.foot-cols a, .foot-cols .link { display: block; color: #44544D; text-decoration: none; padding: 4px 0; font-size: 15px; text-align: left; } .foot-cols a:hover { color: var(--purple); }
.foot-brand .site-brand { padding: 0; } .foot-brand p { color: #44544D; }
.foot-bottom { max-width: 1180px; margin: 30px auto 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--teal); color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 8px 20px rgba(7,55,44,.25); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; } .to-top.show { opacity: 1; pointer-events: auto; }
.ussd-top { background: #fff; border-bottom: 1px solid var(--line); } .ussd-top h1 { color: var(--text); } .ussd-top a { color: var(--purple); }
@media (max-width: 1100px) {
  .nav-links { display: none; } .burger { display: inline-flex; } .nav-glass { justify-content: space-between; }
  .nav-glass.open .nav-drawer { display: flex; flex-direction: column; position: absolute; top: 100%; left: 12px; right: 12px; background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 18px 40px rgba(7,55,44,.18); }
  .nav-drawer hr { width: 100%; border: none; border-top: 1px solid var(--line); }
  .hero2-grid { grid-template-columns: 1fr 1fr; } .hero2-copy { grid-column: 1 / -1; grid-row: 1; } .hero-ill svg { max-width: 220px; }
  .feat-grid2, .alert-tiles { grid-template-columns: 1fr 1fr; } .timeline2 { grid-template-columns: 1fr 1fr 1fr; } .timeline2::before { display: none; }
  .plat-grid2, .contact-grid { grid-template-columns: 1fr 1fr; } .pro-grid { grid-template-columns: repeat(3, 1fr); } .stats-band { grid-template-columns: repeat(3, 1fr); } .stat2:nth-child(3) { border-right: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-glass { padding: 10px 16px; } .nav-app { display: none; }
  .hero2 { padding: 90px 16px 60px; } .hero-ill svg { max-width: 150px; }
  .feat-grid2, .alert-tiles, .tools-grid, .plat-grid2, .pro-grid, .contact-grid, .split, .timeline2 { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; margin: -30px 16px 0; } .stat2 { border-right: none; border-bottom: 1px solid var(--line); }
  .sec2 { padding: 56px 16px; } .help-band { margin: 0 16px; padding: 26px; } .foot-cols { grid-template-columns: 1fr; } .mock { transform: none; }
}

/* ---------- responsive (phone width, 16px gutter, no horizontal scroll) ---------- */
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex; }
  .dash-nav { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; height: 100vh; z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: 4px 0 20px rgba(0,0,0,.2); padding-top: 70px; }
  .dash.nav-open .dash-nav { transform: none; }
  .dash-fac, .dash-user { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); } .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .grid4 { grid-template-columns: repeat(2, 1fr); } .dl.cols { grid-template-columns: max-content 1fr; }
  .ussd-layout { grid-template-columns: 1fr; padding: 16px; }
  .dash-main { padding: 14px 16px 60px; }
  .allergy-banner { top: 56px; }
}
@media (max-width: 520px) {
  .grid2, .grid3 { grid-template-columns: 1fr; } .grid4 { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); } .hero h1 { font-size: 36px; } .step-ed { grid-template-columns: 1fr; }
  .q-text { font-size: 21px; } .pic svg { width: 70px; height: 70px; }
  .site-head nav { gap: 10px; font-size: 14px; }
}

/* ---------- print (QR card, monthly report PDF) ---------- */
@media print {
  .app-head, .app-nav, .dash-head, .dash-nav, .no-print, .site-head, #offline-banner, .tabs, .btn { display: none !important; }
  body, .dash, .phone, .app-wrap { background: #fff !important; box-shadow: none !important; display: block; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}

/* ---------- monthly plans ---------- */
.plan-card { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); border-left: 5px solid var(--muted); }
.plan-card.regular { border-left-color: var(--teal); } .plan-card.premium { border-left-color: var(--gold); background: linear-gradient(90deg, #FDF3D9, #fff 60%); }
.plan-card .plan-ico { font-size: 28px; } .plan-card small { display: block; color: var(--muted); }
.plan-box { border-top: 5px solid var(--teal); } .plan-box.premium { border-top-color: var(--gold); } .plan-box.on { box-shadow: 0 0 0 3px var(--gold), var(--shadow); }
.plan-box .price { font-size: 26px; margin: 4px 0 10px; }

/* ---------- risk algorithm v2: results, 912, "I feel unwell now", breathing timer ---------- */
.unwell-btn { position: sticky; bottom: 70px; display: block; margin: 8px 12px; padding: 12px 16px; border-radius: 999px; background: #fff; border: 2px solid var(--red); color: var(--red); font-weight: 700; text-align: center; text-decoration: none; box-shadow: var(--shadow); z-index: 5; }
.recheck-banner { display: block; margin: 8px 12px; padding: 12px 14px; border-radius: 12px; background: #FDEBD8; color: #8f4a07; font-weight: 700; text-decoration: none; }
.result.v2 { border-radius: 18px; padding: 18px; margin-bottom: 14px; color: #fff; }
.result.v2 h2 { color: #fff; margin: 4px 0 10px; }
.result.v2 .r-who { margin: 0; opacity: .9; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.result.v2.emergency { background: #A52A1C; } .result.v2.emergency.mh { background: var(--purple); }
.result.v2.urgent { background: #C0392B; } .result.v2.urgent.mh { background: #7B3FA0; }
.result.v2.amber { background: #E67E22; } .result.v2.green { background: #1E9E57; }
.result.v2 .ticks li, .result.v2 .may-be li { color: #fff; } .result.v2 .btn.ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.result.v2 .call-912 { font-size: 22px; padding: 18px; background: #fff; color: #A52A1C; }
.unsure { margin-top: 8px; }
.breath-timer { text-align: center; } .bt-clock { font: 700 48px var(--serif); color: var(--teal); } .bt-count { font: 700 64px var(--serif); margin: 6px 0 12px; }
.num-form input { font-size: 28px; padding: 12px; width: 60%; text-align: center; border-radius: 12px; border: 2px solid var(--line); margin-bottom: 10px; }
.call-digits { font: 700 28px var(--serif); text-align: center; }
.tiny { font-size: 12px; } .muted { color: var(--muted); }

/* ---- website pages (home + one page per topic) ---- */
.nav-links a.on { background: rgba(11,83,69,.12); color: var(--teal-dark); }
.nav-glass.solid { background: rgba(255,255,255,.95); box-shadow: 0 6px 24px rgba(7,55,44,.08); }
.nav-dash { white-space: nowrap; }
.page-head { max-width: 900px; margin: 0 auto; padding: 56px 24px 8px; text-align: center; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); margin: 10px 0 12px; text-wrap: balance; }
.steps3 { list-style: none; padding: 0; margin: 28px auto 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; max-width: 1000px; }
.steps3 li { background: #fff; border-radius: 20px; padding: 22px; box-shadow: 0 4px 20px rgba(7,55,44,.06); }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 26px; text-align: left; }
.explore-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: 20px; padding: 22px; text-decoration: none; color: var(--ink); border: 1px solid #EEF3F1; box-shadow: 0 4px 20px rgba(7,55,44,.06); transition: transform .2s, box-shadow .2s; }
.explore-card:hover, .explore-card:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(7,55,44,.12); }
.explore-card .ico { font-size: 28px; } .explore-card h3 { margin: 0; font-size: 19px; } .explore-card p { margin: 0; color: #44544D; font-size: 15px; flex: 1; }
.explore-card em { font-style: normal; font-weight: 700; color: var(--teal); }
.plans-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; justify-content: center; text-align: left; }
.plan-card { background: #fff; border-radius: 22px; padding: 26px; border: 2px solid #EEF3F1; box-shadow: 0 4px 20px rgba(7,55,44,.06); display: flex; flex-direction: column; gap: 8px; }
.plan-card.premium { border-color: var(--gold); } .plan-card .price { font: 700 26px var(--serif); margin: 0; color: var(--teal-dark); } .plan-card .ticks { flex: 1; }
@media (max-width: 760px) {
  .steps3, .plans-grid { grid-template-columns: 1fr; }
  .page-head { padding: 36px 16px 4px; }
  .nav-dash { display: none; }
}

/* ---- facility notice on the clinician dashboard ---- */
.scope-note { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: #E8F4F1; color: var(--teal-dark); font-size: 14px; }
.scope-note.all { background: #F3E8FA; color: var(--purple); }

/* ---- the three ways to use MamaRinzi; blog ---- */
.plat-grid2.three { grid-template-columns: repeat(3, 1fr); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; text-align: left; max-width: 1100px; margin: 0 auto; }
.blog-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: 20px; padding: 22px; text-decoration: none; color: var(--ink); border: 1px solid #EEF3F1; box-shadow: 0 4px 20px rgba(7,55,44,.06); }
.blog-card .ico { font-size: 30px; } .blog-card small { color: var(--muted); } .blog-card h3 { margin: 0; } .blog-card p { margin: 0; color: #44544D; flex: 1; } .blog-card em { font-style: normal; font-weight: 700; color: var(--teal); }
.blog-post { max-width: 720px; margin: 0 auto; text-align: left; font-size: 17px; line-height: 1.7; }
.blog-post .ico { display: block; font-size: 44px; margin: 14px 0 4px; } .blog-post h1 { margin: 0 0 4px; text-wrap: balance; } .blog-post .lead { font-size: 19px; color: #44544D; }
.blog-form .blog-two { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.blog-form textarea { width: 100%; } .blog-form input.short { max-width: 120px; }
@media (max-width: 760px) { .plat-grid2.three, .blog-form .blog-two { grid-template-columns: 1fr; } }

/* ---- why an alert fired, in plain words ---- */
.why-line { margin: 2px 0 6px; font-size: 14px; color: var(--ink); }
details.tech { margin-top: 4px; font-size: 12px; color: var(--muted); } details.tech code { white-space: normal; }

/* ---- check-in: greeting by name and "last time you told us about this" ---- */
.greet { margin: 0 0 4px; font-weight: 700; color: var(--teal-dark); }
.followup-last { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: #FFF4E0; color: #7a4b00; font-size: 15px; }

/* ---- weekly wellbeing audio ---- */
.wb-audio audio { width: 100%; margin-top: 6px; }

/* ---------- top navigation dropdowns (Home · Learn · Ask MamaRinzi AI · Sign in) ---------- */
.main-nav { align-items: center; }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 6px; font: 700 15px var(--sans); color: var(--text); background: none; border: none; padding: 8px 12px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.dd-btn:hover, .dd.open .dd-btn, .dd-btn.on { background: rgba(11,83,69,.08); }
.dd-btn:focus-visible, .dd-menu a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.dd .caret { font-size: 11px; transition: transform .15s; }
.dd.open .caret { transform: rotate(180deg); }
.dd-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 18px 40px rgba(7,55,44,.18); border: 1px solid rgba(11,83,69,.08); z-index: 40; }
.dd.right .dd-menu { left: auto; right: 0; }
.dd.wide .dd-menu { min-width: 300px; }
.dd-menu::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; } /* keeps hover across the gap */
.dd.open .dd-menu { display: block; }
@media (hover: hover) and (pointer: fine) { .dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; } .dd:hover .caret { transform: rotate(180deg); } }
.dd-menu a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; }
.dd-menu a:hover, .dd-menu a.on { background: rgba(11,83,69,.08); }
.dd-menu a small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.dd-ico { font-size: 20px; line-height: 1.2; }
.nav-cta .signin .dd-btn { border: 1.5px solid var(--teal); padding: 6px 14px; min-height: 36px; font-size: 14px; }
.drawer-h { margin: 10px 12px 2px; font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
@media (max-width: 1100px) { .nav-cta .signin { display: none; } }

/* ---------- homepage photos (MR.DATA.heroPhotos) ---------- */
.hero-photo { display: block; width: min(260px, 100%); margin: 0 auto; border-radius: 28px; overflow: hidden; box-shadow: 0 18px 40px rgba(7,55,44,.18); aspect-ratio: 3 / 4; background: #fff; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-ill:has(.hero-photo) { animation: none; }
.photo-credit { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ---------- Ask MamaRinzi (#/ask) ---------- */
.ask-wrap { max-width: 820px; margin: 0 auto; }
.ask-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; justify-content: space-between; }
.field.inline { margin: 0; } .field.inline select { min-width: 200px; }
.ask-log { min-height: 160px; max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 16px; margin: 12px 0; }
.ask-log:empty::before { content: '💬'; font-size: 40px; opacity: .3; margin: auto; }
.ask-msg { max-width: 92%; padding: 12px 14px; border-radius: 16px; line-height: 1.5; }
.ask-msg p { margin: 4px 0; }
.ask-msg.me { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 4px; }
.ask-msg.me .who { display: block; font-size: 12px; opacity: .8; }
.ask-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ask-msg.bot.err { border-color: #E6B0AA; background: #FDEDEC; }
.ask-msg.pending .dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.ask-msg.pending .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: dot 1s infinite; }
.ask-msg.pending .dots i:nth-child(2) { animation-delay: .2s; } .ask-msg.pending .dots i:nth-child(3) { animation-delay: .4s; }
.ask-item + .ask-item { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.ask-item h3 { font-size: 17px; margin: 4px 0; }
.ask-danger { border-left: 5px solid var(--red, #C0392B); padding-left: 10px; }
.ask-danger h3 { color: var(--red, #C0392B); margin: 2px 0 6px; }
.ask-danger ul { padding-left: 18px; margin: 6px 0; }
.ask-voice { display: flex; gap: 6px; margin-top: 8px; }
html.audio-off .ask-voice { display: none; }
.ask-form textarea { width: 100%; font: 16px var(--sans); padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); resize: vertical; min-height: 56px; }
.ask-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.btn.mic.on { background: var(--red, #C0392B); color: #fff; border-color: var(--red, #C0392B); animation: pulseBg 1.2s infinite; }
.btn.mic:disabled { opacity: .5; cursor: not-allowed; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Sign up (#/signup) ---------- */
.su-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto 18px; }
.su-card h2 { font-size: 22px; margin-top: 0; }
.col-gap { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.banner.danger-soft { background: #FDEDEC; border: 1px solid #E6B0AA; border-radius: 14px; padding: 12px 14px; max-width: 980px; margin: 0 auto; }

/* ---------- natural look (October 2026): drawn icons instead of emoji, no glow or blur, same colours ---------- */
.ic { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
.spk .ic { width: 17px; height: 17px; color: var(--teal); } .spk.big .ic { width: 26px; height: 26px; } .disclaimer .spk .ic { width: 14px; height: 14px; }
.btn .ic { margin: 0 2px; }
.dd-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--soft); color: var(--teal); }
.dd-ico .ic { width: 19px; height: 19px; }
.dd .caret { display: inline-flex; } .dd .caret .ic { width: 14px; height: 14px; }
.feat2 .ico { color: var(--teal); background: var(--soft); border-radius: 12px; } .feat2 .ico .ic { width: 28px; height: 28px; } .feat2.mh .ico { color: var(--purple); }
.explore-card .ico { color: var(--teal); } .explore-card .ico .ic { width: 28px; height: 28px; }
.explore-card em .ic, .plat2 em .ic, .blog-card em .ic { width: 16px; height: 16px; }
.plat2 span .ic { width: 38px; height: 38px; }
.contact-card span { color: var(--teal); } .contact-card span .ic { width: 30px; height: 30px; }
.tl-dot { font: 700 22px var(--serif); color: var(--teal-dark); }
.to-top .ic, .scroll-hint .ic { width: 22px; height: 22px; }
.accent { color: var(--purple); }
.blob { display: none; }
.nav-glass, .nav-glass.scrolled, .nav-glass.solid { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
.trust { gap: 6px 22px; font-weight: 600; }
.ask-danger h3 .ic { color: var(--red); }

/* Ask MamaRinzi launcher: bottom left; opens out on hover or keyboard focus to show its full name */
.ask-fab { position: fixed; left: 18px; bottom: 18px; z-index: 45; display: flex; align-items: center; height: 60px; max-width: 60px; padding: 0; border-radius: 30px; background: var(--teal); color: #fff; text-decoration: none; overflow: hidden; box-shadow: 0 6px 18px rgba(7,55,44,.22); transition: max-width .35s ease, box-shadow .2s; }
.ask-fab-mark { flex: none; display: grid; place-items: center; width: 60px; height: 60px; }
.ask-fab-mark .logo-mark { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 3px; border: 2px solid var(--gold); }
.ask-fab-text { display: flex; flex-direction: column; justify-content: center; padding: 0 20px 0 4px; white-space: nowrap; opacity: 0; transition: opacity .2s .1s; }
.ask-fab-text b { font: 700 16px var(--serif); color: #fff; }
.ask-fab-text small { font-size: 12.5px; color: rgba(255,255,255,.85); }
.ask-fab:hover, .ask-fab:focus-visible { max-width: 460px; box-shadow: 0 10px 26px rgba(7,55,44,.3); }
.ask-fab:hover .ask-fab-text, .ask-fab:focus-visible .ask-fab-text { opacity: 1; }
.ask-fab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 640px) { .ask-fab { left: 12px; bottom: 12px; height: 54px; max-width: 54px; } .ask-fab-mark { width: 54px; height: 54px; } .ask-fab-mark .logo-mark { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .ask-fab, .ask-fab-text { transition: none; } }
.help-band { background: var(--purple); }
.ticks li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); top: .55em; left: 6px; }
.ask-log:empty::before { content: none; }
.ic-wrap { display: inline-flex; vertical-align: -0.18em; margin: 0 .15em; color: inherit; } .ic-wrap .ic { width: 1.1em; height: 1.1em; }
.big-ico .ic-wrap .ic, .tile .ic-wrap .ic, .pic .ic-wrap .ic { width: 1.6em; height: 1.6em; }
.lvl-dot { display: inline-block; width: .62em; height: .62em; border-radius: 50%; margin: 0 .3em 0 .1em; vertical-align: .05em; background: currentColor; }
.lvl-dot.g { background: var(--green); } .lvl-dot.a { background: var(--amber); } .lvl-dot.r { background: var(--red); } .lvl-dot.o { background: transparent; border: 1.5px solid currentColor; }

/* check-in: a picture of what is asked on the Yes / No buttons (No = the same picture crossed out) */
.yn-pic .qp { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: #EAF4F0; color: var(--teal); }
.yn-pic .qp .ic { width: 52px; height: 52px; stroke-width: 1.6; }
.yn-pic.tone-blood .qp { background: #FBE9E7; color: #B3261E; } .yn-pic.tone-blood .pic-yes .qp .ic path { fill: #D93025; stroke: #B3261E; }
.yn-pic.tone-water .qp { background: #E3F0FB; color: #1C5FA8; } .yn-pic.tone-urine .qp { background: #FDF3D7; color: #9A6B00; }
.yn-pic.tone-mood .qp { background: #F1E8F7; color: var(--purple); }
.yn-pic .pic-no .qp { opacity: .55; filter: grayscale(.4); }
.yn-pic .qp-x { position: absolute; left: 12%; right: 12%; top: 50%; height: 4px; border-radius: 2px; background: #333; transform: rotate(-45deg); }
.ck-done .r-ico .ic { width: 56px; height: 56px; }
/* logo: larger in the menu bar and footer so it can be seen */
.site-brand .logo-circle.xs { width: 68px; height: 68px; border-radius: 12px; background: transparent; box-shadow: none; }
.site-brand .logo-circle.xs img { width: 100%; height: 100%; }
.site-brand { font-size: 26px; }
.foot-brand .site-brand .logo-circle.xs { width: 96px; height: 96px; }
@media (max-width: 640px) { .site-brand .logo-circle.xs { width: 54px; height: 54px; } }
/* homepage photos: soft edges so they sit in the page instead of looking pasted on */
.hero-photo { border-radius: 46% 46% 32px 32px / 32% 32% 32px 32px; box-shadow: 0 24px 50px -18px rgba(7,55,44,.35); border: 6px solid rgba(255,255,255,.85); }
.hero-photo img { filter: saturate(.92) contrast(.98); }
.stat2 b.word { font-size: 26px; line-height: 43px; }
.stat2.emergency b { background: none; color: #B3261E; -webkit-text-fill-color: #B3261E; }
.stats-band { grid-template-columns: repeat(6, 1fr); } .stat2.emergency { text-decoration: none; }
@media (max-width: 900px) { .stats-band { grid-template-columns: repeat(3, 1fr); } .stat2:nth-child(3) { border-right: none; } }
@media (max-width: 640px) { .stats-band { grid-template-columns: 1fr 1fr; } }
.hero-emergency { margin: 10px 0 0; } .hero-emergency a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #FBE9E7; color: #B3261E; font-weight: 800; text-decoration: none; }
.calc-res .talk-mh { margin-top: 8px; }
.hero-logo { margin: 0 auto 14px; } .hero-logo .logo-full { display: block; width: 220px; height: auto; margin: 0 auto; filter: drop-shadow(0 8px 18px rgba(7,55,44,.12)); }
@media (max-width: 640px) { .hero-logo .logo-full { width: 170px; } }
/* landing: who it is for, no smartphone, price, privacy, safety line */
.for-grid, .priv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 980px; margin: 0 auto; }
.priv-grid { grid-template-columns: repeat(4, 1fr); max-width: 1100px; }
.for-card, .priv-card, .price-card { background: #fff; border-radius: 20px; padding: 22px; box-shadow: 0 8px 24px rgba(7,55,44,.07); text-align: left; }
.for-card .ico, .priv-card .ico { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; background: #EAF4F0; color: var(--teal); align-items: center; justify-content: center; }
.for-card .ico .ic, .priv-card .ico .ic { width: 28px; height: 28px; }
.for-card h3, .priv-card h3, .price-card h3 { margin: 12px 0 6px; } .for-card p, .priv-card p { margin: 0; color: #44544D; }
.sec-lead.left { text-align: left; margin-left: 0; }
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps-list li { background: #fff; border-radius: 16px; padding: 14px 16px; display: grid; gap: 4px; box-shadow: 0 6px 18px rgba(7,55,44,.06); }
.steps-list b { display: flex; align-items: center; gap: 8px; } .steps-list span { color: #44544D; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1000px; margin: 0 auto 14px; }
.price-card .price { font: 700 24px var(--serif); margin: 0 0 8px; } .price-card.free { border: 2px solid var(--teal); }
.safety-line { max-width: 1000px; margin: 30px auto; padding: 22px; border-radius: 20px; background: #FBE9E7; text-align: center; }
.safety-line p { margin: 0 0 12px; font-size: 17px; }
@media (max-width: 900px) { .priv-grid { grid-template-columns: 1fr 1fr; } .price-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .for-grid, .priv-grid { grid-template-columns: 1fr; } .safety-line { margin: 20px 16px; } }
/* "I don't feel well": the help she can get now */
.help-head { text-align: center; margin: 4px 0 12px; } .help-head h2 { margin: 0 0 4px; } .help-head p { margin: 0; color: #44544D; }
.help-opt { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 0 0 10px; border-radius: 16px; background: #fff; border: 2px solid var(--line); color: var(--text); text-decoration: none; }
.help-opt > .ic:last-child { margin-left: auto; opacity: .5; }
.help-opt b { display: block; } .help-opt small { color: #5B6B64; }
.help-opt .ho-ico { flex: none; display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; background: #EAF4F0; color: var(--teal); }
.help-opt.danger { border-color: #E8A39B; background: #FDF1EF; } .help-opt.danger .ho-ico { background: #B3261E; color: #fff; }
.help-opt.mh .ho-ico { background: #F1E8F7; color: var(--purple); }
.help-signs { margin-top: 6px; }
/* Rinzi Care Fund and Mama Circles */
.fc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.fc-tile { display: grid; gap: 4px; text-decoration: none; color: var(--text); margin: 0; }
.fc-tile .ico { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center; background: #EAF4F0; color: var(--teal); }
.fc-tile small { color: #5B6B64; }
.rcf-bal-l { margin: 8px 0 0; font-weight: 700; color: #5B6B64; } .rcf-bal { font: 700 34px var(--serif); margin: 0 0 8px; }
.rcf-code { font: 700 24px ui-monospace, monospace; letter-spacing: 2px; text-align: center; padding: 10px; border: 2px dashed var(--line); border-radius: 12px; }
.mc-card.mine { border: 2px solid var(--teal); } .mc-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 6px 0; } .mc-dl dt { font-weight: 700; color: #5B6B64; } .mc-dl dd { margin: 0; }
.give-form { max-width: 560px; margin: 0 auto; }
/* Nov 2026: larger, easier-to-read text everywhere (team feedback: "the words are very small") */
body { font-size: 17px; }
small, .small { font-size: 14.5px; }
.lead, .sec-lead, .r-sub { font-size: 19px !important; }
.hero2-copy .lead { font-size: 20px; line-height: 1.5; }
.tagline { font-size: 22px; }
.trust { font-size: 16px; }
.stat2 span { font-size: 15px; }
.hero-ill figcaption { font-size: 15px; }
.feat2 p, .tool-card p, .faq details p, .for-card p, .priv-card p, .steps-list span, .price-card li, .help-band p { font-size: 17px; }
.nav-links a, .nav-drawer a { font-size: 16.5px; }
.foot-cols a, .foot-cols .link { font-size: 16px; }
.lbl { font-size: 14px; }
.tbl { font-size: 15.5px; }
.app-nav a, .app-nav small { font-size: 12.5px; }
.stepper li { font-size: 12.5px; }
.stat small { font-size: 13.5px; }
.chip { font-size: 15px; }
.disclaimer, .disclaimer.prominent { font-size: 14.5px; }
.btn.small { font-size: 15px; }
.tag { font-size: 12px; }
/* the two women of the logo on the homepage */
.hero-fig { display: block; }
.hero-fig img { display: block; width: 100%; max-width: 250px; height: auto; margin: 0 auto; filter: drop-shadow(0 16px 26px rgba(30,60,90,.18)); }
.hero-ill.right .hero-fig img { max-width: 210px; }
@media (max-width: 900px) { .hero-fig img { max-width: 160px; } .hero-ill.right .hero-fig img { max-width: 135px; } }

/* care plans (js/care.js) */
.cp-ring{--p:0;flex:none;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--teal,#2a9d8f) calc(var(--p)*1%),#e6ecef 0)}
.cp-ring b{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#fff;font-size:13px}
.cp-links{margin:6px 0 2px}
.cp-sum th{text-align:left;width:40%;font-weight:600;color:#4a5a66}
.cp-sum .card{margin-bottom:10px}
.tbl tr.row-red td{background:#fdecec}
body.cp-loss .weekly, body.cp-loss .fc-row, body.cp-loss .baby-arrived, body.cp-loss .family-row{display:none}
@media print{.dash-nav,.dash-head,.app-nav,.app-top,.btn,.chips{display:none !important}.cp-sum .card{break-inside:avoid;box-shadow:none;border:1px solid #ccc}}
.badge.red { background: #FDE2E2; color: #A61B1B; }
.badge.amber { background: #FFF1D6; color: #8A5300; }

/* ---------- light / dark switch (js/theme.js) ---------- */
.theme-sw { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--muted); cursor: pointer; flex: none; }
.theme-sw span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; transition: background .2s, color .2s; }
.theme-sw.small span { width: 26px; height: 26px; }
.theme-sw[data-on="light"] .ts-sun, .theme-sw[data-on="dark"] .ts-moon { background: var(--teal); color: #fff; }
.dash-head .theme-sw { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }

/* ---------- "coming soon" phone app badges (hero) ---------- */
.store-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 18px 0 4px; }
.store-b { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 8px 14px; border-radius: 12px; background: #111; color: #fff; min-width: 172px; cursor: default; opacity: .92; }
.store-b small { display: block; font-size: 11px; color: #d6d6d6; line-height: 1.1; }
.store-b b { display: block; font: 600 19px/1.15 var(--sans); }
.store-tag { position: absolute; top: -10px; left: 12px; background: var(--red); color: #fff; font: 700 10.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }

/* ---------- dark colours ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --grad-top: #0E1F1C; --grad-bottom: #2A1724;
  --bg: #0E1714; --white: #16231F; --ink: #E3ECE8; --text: #F4F8F6; --muted: #A2B4AD;
  --line: #2B3C36; --soft: #1D2D28; --teal-dark: #052A22;
  --shadow: 0 2px 12px rgba(0,0,0,.35);
}
html[data-theme="dark"] body, html[data-theme="dark"] body.site, html[data-theme="dark"] body.dashboard, html[data-theme="dark"] .dash, html[data-theme="dark"] .phone { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] :is(.lead, .sec-lead, .r-sub, p, li, figcaption, .hero2 .lead) { color: var(--ink); }
html[data-theme="dark"] :is(.hero2 h1 .accent, .accent) { color: #D1A3F0; }
html[data-theme="dark"] .btn.glass { background: rgba(255,255,255,.08); color: var(--text); border-color: var(--line); }
html[data-theme="dark"] .nav-links a.on { background: rgba(159,227,207,.12); color: #9FE3CF; }
html[data-theme="dark"] :is(.logo-full, .hero-logo img) { background: #F4F8F6; border-radius: 18px; padding: 8px 14px; }
html[data-theme="dark"] .hero-emergency a { background: #3A1A1D; color: #FFD7D7; }
html[data-theme="dark"] :is(.card, .card.info, .card.prompt, .pill, .demo-note, .disclaimer, .disclaimer.light, .disclaimer.prominent, .app-head, .role-card, .tile-stat, .cat-box,
  .table-wrap, .tbl-wrap, .patient-head, .alert-card, .signoff, .svc, .site-head, .talk-opts, .comp-head, .wa-msg, .now-board, .lang-pill, .eyebrow, .kicker, .feat2, .tool-card,
  .alert-tile, .pro2, .mock, .mock-row, .faq details, .contact-card, .steps3 li, .explore-card, .plan-card, .blog-card, .dd-menu, .ask-msg.bot, .placeholder-tag, .cat-tag, .scope-note,
  .stats-band, .stat, .stat2, .timeline2 li, .scroll-hint, .followup-last, .fam-tile, .question, .now-card, .weekly, .ussd-top, .demo-accounts, .help-band, .mh-box, .mh-card) {
  background: var(--white) !important; color: var(--ink);
}
html[data-theme="dark"] :is(.card, .table-wrap, .tbl-wrap, .faq details, .disclaimer, .pill, .lang-pill, .contact-card, .blog-card, .plan-card, .explore-card, .feat2, .tool-card, .role-card, .question, .help-band, .fam-tile, .cat-box:not(.on)) { border-color: var(--line) !important; }
html[data-theme="dark"] .cat-box.on { background: #3A1A1D !important; color: #FFB4B4; border-color: #6B2A2E !important; }
html[data-theme="dark"] .cat-box.mh.on { background: #2E1A3A !important; color: #E2B8F5; border-color: #5A3570 !important; }
html[data-theme="dark"] :is(.nav-glass, .nav-glass.scrolled, .nav-glass.solid) { background: rgba(14,23,20,.94) !important; border-color: var(--line); }
html[data-theme="dark"] .nav-glass.open .nav-drawer { background: var(--bg); }
html[data-theme="dark"] :is(.hero2, .sec2.tint, .grad, .app-wrap.grad, .mh-hero, .now-hero) { background: linear-gradient(180deg, #10221E 0%, #1A1C26 55%, #26182A 100%) !important; }
html[data-theme="dark"] .hero-fig img { filter: brightness(1.25) saturate(.9); }
html[data-theme="dark"] .logo-circle { background: #fff; }
html[data-theme="dark"] :is(.grad-text, .stat2 b) { background: linear-gradient(90deg, #F4F8F6, #D7A4F0); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="dark"] :is(input, select, textarea) { background: #0F1A17; color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] :is(.tbl th, .tbl td, .cp-sum th) { border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .tbl tr.row-red td { background: #3A1A1A; }
html[data-theme="dark"] :is(.banner.red-soft, .banner.danger-soft, .btn.danger-soft, .unwell-btn, .recheck-banner, .note.warn, .ask-msg.bot.err) { background: #3A1A1D !important; color: #FFD7D7 !important; border-color: #6B2A2E !important; }
html[data-theme="dark"] :is(.banner.ok, .badge.green) { background: #163A27; color: #BDF0D0; }
html[data-theme="dark"] .badge.red { background: #4A1C1C; color: #FFC9C9; }
html[data-theme="dark"] .badge.amber { background: #44310F; color: #FFDFA3; }
html[data-theme="dark"] .badge.muted { background: #22302B; color: var(--muted); }
html[data-theme="dark"] .card.soft, html[data-theme="dark"] .soft { background: var(--soft) !important; }
html[data-theme="dark"] .app-nav { background: #121D19; border-color: var(--line); }
html[data-theme="dark"] .dash-nav { background: #121D19; border-color: var(--line); }
html[data-theme="dark"] .dash-nav a { color: var(--ink); }
html[data-theme="dark"] .dash-nav a.on { background: var(--navy); color: #fff; }
html[data-theme="dark"] .foot2 { background: #0A1210 !important; color: var(--ink); }
html[data-theme="dark"] .theme-sw { background: #0F1A17; }
html[data-theme="dark"] .store-b { background: #000; box-shadow: 0 0 0 1px #3a4a44; }
html[data-theme="dark"] .cp-ring b { background: var(--white); }
html[data-theme="dark"] .risk-banner.none { background: var(--white); color: var(--ink); }
html[data-theme="dark"] :is(h1, h2, h3, h4, .dash-title, body.dashboard h2, body.dashboard h3, .report h2, .greet) { color: var(--text); }
html[data-theme="dark"] :is(.tile-stat:not(.g):not(.a):not(.r):not(.p) b, .kicker, .sec, .tag, .scope-note, .scope-note b, .fam-tile .fam-next, .mock-row, .timeline2 small, .opt-row > span:nth-child(2), .auto-next,
  .explore-card em, .blog-card .ico, .spk .ic, .dd-ico, .feat2 .ico, .explore-card .ico, .contact-card span, .fc-tile .ico, .help-opt .ho-ico, .q-ico, .hero-ill figcaption, .foot-cols a, .foot-cols .link, .fac-banner) { color: #9FE3CF; }
html[data-theme="dark"] :is(.fc-tile .ico, .feat2 .ico, .explore-card .ico, .blog-card .ico) { background: #1D3A33; }
html[data-theme="dark"] .spk { background: transparent; border-color: var(--line); }
html[data-theme="dark"] :is(.btn.gold, .btn.gold *, .nav-app, .hbtn.lang) { color: #111 !important; }

/* ---------- mother app on a computer: a web page, not a phone frame ---------- */
.app-brand { display: none; }
@media (min-width: 1024px) {
  .app-wrap { padding: 0; }
  .phone { max-width: none; border-radius: 0; box-shadow: none; overflow: visible; min-height: 100vh; }
  .phone:has(.app-nav) { display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
  .app-head { grid-column: 1 / -1; padding: 12px 28px; }
  .app-brand { display: inline-flex; align-items: center; gap: 10px; font: 700 20px var(--serif); color: var(--text); text-decoration: none; margin-right: 18px; }
  .app-brand .logo-circle.xs { width: 40px; height: 40px; }
  .app-title { text-align: left; font-size: 21px; }
  .app-title.is-default { visibility: hidden; }
  .app-main { grid-column: 2; grid-row: 2; width: 100%; max-width: 980px; margin: 0 auto; padding: 28px 40px 40px; }
  .phone:not(:has(.app-nav)) .app-main { max-width: 720px; }
  .phone:has(.app-nav) .unwell-btn { grid-column: 2; grid-row: 3; position: sticky; bottom: 16px; max-width: 900px; width: calc(100% - 80px); margin: 0 auto 16px; }
  .app-nav { grid-column: 1; grid-row: 2 / span 2; position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); display: flex; flex-direction: column; gap: 4px;
    padding: 18px 12px; border-top: none; border-right: 1px solid var(--line); background: var(--white); }
  .app-nav a { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 11px 14px; border-radius: 12px; font-size: 16px; border-top: none !important; }
  .app-nav a span { font-size: 20px; }
  .app-nav a small, .app-nav small { font-size: 16px !important; }
  .app-nav a.on { background: var(--soft); color: var(--text); box-shadow: inset 4px 0 0 var(--gold); }
  .app-nav a:hover { background: var(--soft); }
  .fc-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats3 { max-width: 640px; }
}

/* partners (home page): logos in assets/partners/; the name shows until a logo file is added */
.partner-row { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }
.partner { display: grid; place-items: center; width: 220px; height: 110px; padding: 16px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; }
.partner img { max-width: 100%; max-height: 72px; object-fit: contain; }
.partner b { font: 700 22px var(--serif); color: #1F2A24; }

/* features 42 to 45 (js/engage.js) */
.eg-tip { border-left: 4px solid var(--gold); }
.eg-tip audio { width: 100%; margin: 6px 0; }
.eg-ms { background: var(--soft) !important; font-weight: 600; }
.eg-opts { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.eg-rv { min-width: 220px; } .eg-rv-tbl td { vertical-align: top; }
.eg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eg-pt { margin: 6px 0 10px; }

/* ---- blog editor (owner → Blog) and formatted posts ---- */
.blog-ed-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.blog-settings { position: sticky; top: 12px; } .blog-settings h4 { margin-top: 0; } .blog-settings .field small { display: block; margin-top: 3px; font-size: 12.5px; }
.blog-settings input, .blog-settings textarea { width: 100%; }
.blog-cover img { width: 100%; max-height: 160px; object-fit: cover; border-radius: 10px; margin: 4px 0; }
.blog-actions { margin-top: 12px; }
.be-wrap { border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); overflow: hidden; }
.be-bar { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; padding: 6px; border-bottom: 1px solid var(--line); background: #F6F9F8; position: sticky; top: 0; z-index: 1; }
.be-b { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 32px; padding: 0 6px; border: 0; background: transparent; border-radius: 8px; font-size: 15px; cursor: pointer; color: var(--ink); }
.be-b:hover, .be-b:focus-visible { background: #E3EEEA; }
.be-sel { width: auto; flex: 0 0 auto; height: 32px; border-radius: 8px; border: 1px solid var(--line); padding: 0 6px; margin-right: 4px; }
.be-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.be-area { min-height: 260px; max-height: 70vh; overflow-y: auto; padding: 14px 16px; line-height: 1.65; font-size: 16px; outline: none; }
.be-area:focus { box-shadow: inset 0 0 0 2px var(--teal); }
.be-area h2 { font-size: 22px; margin: 14px 0 6px; } .be-area h3 { font-size: 18px; margin: 12px 0 4px; }
.blog-body blockquote, .be-area blockquote { margin: 12px 0; padding: 6px 14px; border-left: 4px solid var(--teal); color: #44544D; font-style: italic; }
.be-fig, .blog-body .be-fig { margin: 14px 0; } .be-fig img { max-width: 100%; height: auto; border-radius: 10px; display: inline-block; }
.be-fig figcaption { font-size: 14px; color: var(--muted); margin-top: 4px; }
.be-area .be-fig { outline: 1px dashed var(--line); }
.blog-body hr, .be-area hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.blog-body h2 { margin: 22px 0 6px; } .blog-body h3 { margin: 18px 0 4px; }
.blog-body a { color: var(--teal); text-decoration: underline; }
.blog-labels { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; } .blog-labels .chip { font-size: 13px; padding: 3px 10px; margin: 0; }
.blog-filter { max-width: 1100px; margin: 0 auto 12px; text-align: left; }
.blog-card.has-img { padding-top: 0; overflow: hidden; } .blog-card-img { width: calc(100% + 44px); margin: 0 -22px 8px; height: 170px; object-fit: cover; display: block; }
.blog-cover-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; margin: 10px 0; }
@media (max-width: 900px) { .blog-ed-grid { grid-template-columns: 1fr; } .blog-settings { position: static; } }
html[data-theme="dark"] .be-bar { background: #16302A; } html[data-theme="dark"] .be-b:hover { background: #1D3A33; }
html[data-theme="dark"] .blog-body blockquote, html[data-theme="dark"] .be-area blockquote { color: #C9D8D2; }
/* captions in italic (like Blogger); videos keep a 16:9 frame */
.be-fig figcaption, .be-vid figcaption { font-style: italic; }
.be-vid { margin: 14px 0; } .be-vid-box { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.be-vid-box iframe, .be-vid-box img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.be-vid-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.be-area figure { cursor: pointer; } .be-area .be-vid { outline: 1px dashed var(--line); }

/* ---- slogan: "Mama, Rinzi Sees You." ("Mama" in colour with a hand-drawn underline) ---- */
.hero2-copy h1.slogan { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.08; }
.slogan .mama { position: relative; display: inline-block; font-style: italic; padding-right: .08em;
  background: linear-gradient(100deg, #6A1B9A 0%, #C2185B 55%, #E9A23B 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.slogan .mama-swoosh { position: absolute; left: 2%; right: 6%; bottom: -.12em; width: 92%; height: .28em; overflow: visible; }
.slogan .mama-swoosh path { fill: none; stroke: #F2C14E; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: mamaDraw 1.1s .3s ease-out forwards; }
@keyframes mamaDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .slogan .mama-swoosh path { animation: none; stroke-dashoffset: 0; } }
.slogan-sub { font-size: clamp(17px, 2vw, 22px); }
html[data-theme="dark"] .slogan .mama { background: linear-gradient(100deg, #D7A4F0 0%, #F48FB1 55%, #F2C14E 100%); -webkit-background-clip: text; background-clip: text; }

/* ---- top bar: the Learn pages sit on the bar when there is room, in the Learn menu otherwise ---- */
.nav-inline { display: none; }
@media (min-width: 1340px) {
  .nav-inline { display: contents; }
  .main-nav .dd.learn { display: none; }
  .main-nav { flex-wrap: nowrap; gap: 0; } .main-nav > a, .main-nav .nav-inline a, .main-nav .dd-btn { font-size: 15px; padding: 8px 9px; white-space: nowrap; }
  .nav-glass { gap: 12px; padding-left: 20px; padding-right: 20px; }
}
@media (min-width: 1340px) and (max-width: 1439px) { .nav-glass .site-brand .logo-circle.xs { width: 44px; height: 44px; } .nav-glass .site-brand { font-size: 22px; } }
.hero2-copy h1.slogan { text-wrap: balance; }
.lang-pill .short { display: none; }
@media (max-width: 560px) {
  .nav-glass { gap: 8px; padding: 10px 12px; }
  .nav-glass .site-brand { font-size: 18px; min-width: 0; gap: 6px; }
  .nav-cta { gap: 6px; }
  .lang-pill .long { display: none; } .lang-pill .short { display: inline; }
  .nav-cta .lang-pill { padding: 6px 10px; }
  .theme-sw span { width: 26px; height: 26px; }
}
@media (max-width: 360px) { .nav-glass .site-brand { font-size: 0; } }

/* ---- partners at the bottom left (footer) ---- */
.foot-partners { margin-top: 18px; } .foot-partners h4 { margin-bottom: 8px; }
.partner-row.small { justify-content: flex-start; gap: 10px; }
.partner-row.small .partner { width: 130px; height: 64px; padding: 8px 12px; border-radius: 12px; box-shadow: none; }
.partner-row.small .partner img { max-height: 44px; }

/* ---- "i" notes: tap to read ---- */
.info-tip { margin: 14px 0; } .info-tip summary { cursor: pointer; font-weight: 700; color: var(--teal); list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.info-tip summary::-webkit-details-marker { display: none; }
.info-i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; font: italic 700 14px Georgia, serif; }
.info-tip p { background: var(--soft); border-radius: 12px; padding: 10px 14px; margin: 8px 0 0; }
.stat2.mh { text-decoration: none; } .stat2.mh:hover b, .stat2.emergency:hover b { text-decoration: underline; }
@media (min-width: 901px) { .stats-band { grid-template-columns: repeat(5, 1fr); } }
.nav-cta > *, .nav-cta .dd-btn { white-space: nowrap; flex: none; }
/* private mode lock screen */
.pm-lock { gap: 14px; padding: 40px 20px; min-height: 80vh; justify-content: center; }
.pm-form { width: 100%; max-width: 280px; display: grid; gap: 8px; text-align: center; }
.pm-code { font-size: 28px; letter-spacing: .5em; text-align: center; padding: 10px; border-radius: 14px; border: 1.5px solid var(--line); width: 100%; }
/* private mode lock screen */
.pm-lock { gap: 14px; padding: 40px 20px; min-height: 80vh; justify-content: center; }
.pm-form { width: 100%; max-width: 280px; display: grid; gap: 8px; text-align: center; }
.pm-code { font-size: 28px; letter-spacing: .5em; text-align: center; padding: 10px; border-radius: 14px; border: 1.5px solid var(--line); width: 100%; }
.pm-code { -webkit-text-security: disc; }
.lang-select { appearance: auto; cursor: pointer; padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--teal); background: var(--white); font-weight: 700; font-size: 13px; color: var(--text); }

/* language list (24 Nov): never wider than the header allows */
.lang-select { max-width: 11em; text-overflow: ellipsis; }
@media (max-width: 560px) { .nav-cta .lang-select { max-width: 7.5em; padding: 6px 6px; font-size: 12px; } }
