/* ChildHealthCard.com
   One family (Atkinson Hyperlegible, made for readers with low vision: clear on small, cheap screens).
   The design borrows from the 2023 paper card itself: pale-blue field rows, boxed date digits, the card blue. */

@font-face { font-family: "Atkinson"; src: url(/assets/fonts/atkinson-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(/assets/fonts/atkinson-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
/* Logo wordmark only (header, footer, hero lockup): Gochi Hand, Huerta Tipografica, SIL OFL 1.1 (assets/fonts/OFL-GochiHand.txt) */
@font-face { font-family: "Gochi Hand"; src: url(/assets/fonts/gochi-hand.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --blue: #2b5a9e;        /* card blue */
  --blue-deep: #1c3d6e;
  --warm: #e8765c;        /* the headscarf in the logo: shapes only, never small text */
  --warm-ink: #a8432b;    /* warm, dark enough for text on white */
  --green: #1f7a4a;       /* confirmed, WhatsApp, genuine */
  --ink: #16202b;
  --ink-2: #44546a;
  --soft: #e8eff9;        /* the card's field blue */
  --field-line: #bfd0ea;
  --paper: #ffffff;
  --mist: #f5f8fc;
  --r: 10px;
  --wrap: 72rem;
  --gutter: 1rem;
  --font: "Atkinson", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--font); color: var(--ink); background: var(--paper); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.012em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.6rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p, li { max-width: 68ch; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
small { font-size: .85rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 48rem) { :root { --gutter: 2rem; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Demo banner, switched by <html data-demo="on|off"> (site-config.js "demo") */
.demo-banner { background: var(--ink); color: #fff; font-size: .85rem; line-height: 1.4; padding: .45rem var(--gutter); text-align: center; }
html:not([data-demo="on"]) .demo-banner { display: none; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--field-line); position: relative; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 44px; height: 44px; margin: -4px -2px; }
.brand-name, .wordmark { font-family: "Gochi Hand", "Atkinson", system-ui, sans-serif; font-weight: 400; letter-spacing: .01em; line-height: 1.05; }
.brand-name { font-size: 1.6rem; }
.cobrand .wordmark { font-size: 1.55rem; }
.cobrand-footer strong.wordmark { font-size: 1.6rem; }
.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav-desktop a { display: block; padding: .45rem .6rem; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .98rem; }
.nav-desktop a:hover { background: var(--soft); }
.nav-desktop a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); border-radius: 0; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.lang { display: flex; font-size: .85rem; border: 1px solid var(--field-line); border-radius: 6px; overflow: hidden; }
.lang a { padding: .3rem .45rem; text-decoration: none; color: var(--ink-2); }
.lang a.on { background: var(--soft); color: var(--blue); font-weight: 700; }
.header-tools .check-btn { display: none; }

.nav-mobile { position: static; }
.nav-mobile summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .4rem; padding: .45rem .7rem; border: 1px solid var(--field-line); border-radius: 6px; font-size: .95rem; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; background: var(--ink); position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -5px; } .burger::after { top: 5px; }
.nav-mobile[open] summary { background: var(--soft); }
.nav-mobile nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--field-line); box-shadow: 0 12px 24px -12px rgba(22, 32, 43, .25); }
.nav-mobile ul { list-style: none; margin: 0; padding: .5rem var(--gutter) 1rem; }
.nav-mobile li { max-width: none; border-bottom: 1px solid var(--soft); }
.nav-mobile a { display: block; padding: .75rem 0; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.nav-mobile a[aria-current="page"] { color: var(--blue); font-weight: 700; }

@media (min-width: 76rem) {
  .nav-desktop { display: block; margin-left: .75rem; }
  .nav-mobile { display: none; }
  .header-tools .check-btn { display: inline-flex; }
}
@media (max-width: 23.5rem) { .brand-name { font-size: 1.4rem; } .lang a { padding: .3rem .35rem; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; padding: .7rem 1.25rem; border-radius: var(--r); font: 700 1.02rem/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: #17603a; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: var(--paper); }
.btn-outline:hover { background: var(--soft); }
.btn-small { min-height: 2.4rem; padding: .35rem .8rem; font-size: .92rem; }
.btn svg { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.btn.is-pending, a.is-pending { background: var(--mist); color: var(--ink-2); border: 2px dashed #9fb2cc; cursor: default; }
a.is-pending:not(.btn) { border: 0; background: none; text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }
.actions .btn { flex: 1 1 14rem; }
@media (min-width: 40rem) { .actions .btn { flex: 0 0 auto; } }

/* Sections */
.section { padding: 3.5rem 0; }
.section-soft { background: var(--soft); }
.section-mist { background: var(--mist); }
.section-ink { background: var(--blue-deep); color: #fff; }
.section-ink a { color: #fff; }
@media (min-width: 48rem) { .section { padding: 5rem 0; } }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 40rem; }
.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-head p { color: var(--ink-2); }
.note { font-size: .92rem; color: var(--ink-2); }
.page-head { padding: 2.75rem 0 2.25rem; background: var(--soft); border-bottom: 1px solid var(--field-line); }
.page-head .lead { margin-bottom: 0; }
@media (min-width: 48rem) { .page-head { padding: 4rem 0 3.25rem; } }
.crumb { font-size: .92rem; margin: 0 0 .75rem; }

/* Hero */
.hero { background: var(--soft); overflow: hidden; border-bottom: 1px solid var(--field-line); }
.hero-grid { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 3rem; align-items: center; }
.hero h1 { max-width: 13ch; }
.hero-art { position: relative; margin: 0 auto; width: 100%; max-width: 34rem; padding-bottom: 30%; }
.hero-card { width: 82%; border-radius: 4.5% / 7%; box-shadow: 0 18px 40px -18px rgba(28, 61, 110, .55); transform: rotate(-4deg); transform-origin: 30% 60%; }
.hero-phone { position: absolute; right: 0; bottom: 0; width: 27%; border-radius: 14px; border: 5px solid var(--ink); box-shadow: 0 16px 36px -16px rgba(22, 32, 43, .6); background: #fff; }
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; padding-top: 4.5rem; padding-bottom: 5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-card { animation: deal .9s cubic-bezier(.2, .7, .2, 1) both .1s; }
  .hero-phone { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both .45s; }
  @keyframes deal { from { transform: rotate(-11deg) translate(-6%, 8%); opacity: 0; } }
  @keyframes rise { from { transform: translateY(14%); opacity: 0; } }
}

/* Brand lockup */
.cobrand { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; margin-top: 2rem; font-size: .9rem; line-height: 1.35; color: var(--ink-2); }
.cobrand > span { display: flex; align-items: center; gap: .6rem; }
.cobrand-gov { padding-left: 1.25rem; border-left: 1px solid var(--field-line); }
.cobrand img { flex-shrink: 0; }
.gov-caveat { color: var(--ink-2); }
html:not([data-demo="on"]) .gov-caveat { display: none; }

/* Card-field block (from the paper card's identity block) */
.fields { background: var(--soft); border: 1px solid var(--field-line); border-radius: 6px; margin: 0; padding: 0; list-style: none; }
.section-soft .fields, .page-head .fields { background: var(--paper); }
.fields > li, .fields > div { display: grid; grid-template-columns: 1fr; gap: .15rem .9rem; padding: .85rem 1rem; border-top: 1px solid var(--field-line); max-width: none; }
.fields > :first-child { border-top: 0; }
.fields dt, .fields .k { font-size: .9rem; color: var(--ink-2); }
.fields dd, .fields .v { margin: 0; font-weight: 700; }
.fields .v-note { font-weight: 400; color: var(--ink-2); font-size: .95rem; display: block; }
.fields { container-type: inline-size; }
@container (min-width: 34rem) { .fields > li, .fields > div { grid-template-columns: minmax(9rem, 14rem) 1fr; align-items: baseline; } }

/* Boxed digits, like the 8 date-of-birth boxes on the card. Used only for real sequences. */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1.25rem; }
.steps > li { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; max-width: none; }
.digit { grid-row: span 2; display: inline-grid; place-items: center; width: 2.4rem; height: 2.9rem; border: 2px solid var(--blue); border-radius: 4px; color: var(--blue); font-weight: 700; font-size: 1.35rem; background: var(--paper); }
.steps h3 { margin: .2rem 0 .1rem; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--ink-2); }
.steps-row { grid-template-columns: 1fr; }
@media (min-width: 56rem) {
  .steps-row { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .steps-row > li { grid-template-columns: 1fr; }
  .steps-row .digit { grid-row: auto; margin-bottom: .5rem; }
}
.steps-long > li { padding: 1.1rem 0; border-top: 1px solid var(--field-line); }

/* Values: four promises, set as a ruled list, not cards */
.values { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.values > li { padding: 1.25rem 0; border-bottom: 1px solid var(--field-line); max-width: none; }
.values h3 { margin-bottom: .3rem; }
.values p { margin: 0; color: var(--ink-2); }
@media (min-width: 48rem) { .values { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }

/* Two-column text + figure */
.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split-wide { grid-template-columns: 1.3fr 1fr; } .split.center { align-items: center; } }

/* Screens */
.phones { display: flex; gap: 1rem; overflow-x: auto; padding: .5rem 0 1rem; scroll-snap-type: x mandatory; }
.phones figure { flex: 0 0 auto; width: 13rem; margin: 0; scroll-snap-align: start; }
.phone { border: 5px solid var(--ink); border-radius: 16px; overflow: hidden; background: #fff; }
.phones figcaption, .shot figcaption { font-size: .9rem; color: var(--ink-2); margin-top: .5rem; }
.shot { margin: 0; }
.shot img { border: 1px solid var(--field-line); border-radius: 8px; box-shadow: 0 10px 30px -18px rgba(22, 32, 43, .45); background: #fff; }

/* Doors on the home page */
.doors { display: grid; gap: 1px; background: var(--field-line); border: 1px solid var(--field-line); border-radius: var(--r); overflow: hidden; }
.door { background: var(--paper); padding: 1.5rem; text-decoration: none; color: var(--ink); display: block; }
.door:hover { background: var(--mist); }
.door h3 { color: var(--blue); margin-bottom: .35rem; }
.door p { margin: 0; color: var(--ink-2); }
@media (min-width: 48rem) { .doors { grid-template-columns: repeat(3, 1fr); } }

.table-scroll { overflow-x: auto; }

/* Feature list for clinics */
.features { display: grid; gap: 2rem 3rem; margin: 0; padding: 0; list-style: none; }
.features > li { max-width: none; padding-top: 1rem; border-top: 3px solid var(--blue); }
.features h3 { margin-bottom: .35rem; }
.features p { margin: 0; color: var(--ink-2); }
@media (min-width: 48rem) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .features { grid-template-columns: repeat(3, 1fr); } }

/* Card designs */
.designs { display: grid; gap: 2.5rem; }
.design { display: grid; gap: 1rem; }
.design-imgs { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 30rem) { .design-imgs { grid-template-columns: 1fr 1fr; } }
.design-imgs img { border-radius: 4% / 6.3%; box-shadow: 0 10px 24px -14px rgba(22, 32, 43, .5); }
.design h3 { margin: 0; }
.design p { margin: 0; color: var(--ink-2); }
@media (min-width: 56rem) { .design { grid-template-columns: 18rem 1fr; gap: 2rem; align-items: center; } }

.do-dont { display: grid; gap: 1.5rem; }
.do-dont > div { border-radius: var(--r); padding: 1.25rem 1.25rem .5rem; }
.do-dont .yes { background: #e7f3ec; border: 1px solid #b7dcc6; }
.do-dont .no { background: #fdece7; border: 1px solid #f2c4b6; }
.do-dont h3 { font-size: 1.1rem; }
@media (min-width: 48rem) { .do-dont { grid-template-columns: 1fr 1fr; } }

/* Trust labels */
.labels { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.labels li { display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; max-width: none; }
.tag { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .9rem; font-weight: 700; border: 1px solid; white-space: nowrap; }
.tag-1 { color: #7a4b00; background: #fff4dc; border-color: #ecd29b; }
.tag-2 { color: #6a3b8c; background: #f4ecfa; border-color: #d9c4ea; }
.tag-3 { color: var(--blue); background: var(--soft); border-color: var(--field-line); }
.tag-4 { color: var(--green); background: #e7f3ec; border-color: #b7dcc6; }

/* Stats sentence block */
.facts { display: grid; gap: 1.5rem; margin: 0; }
.facts > div { border-left: 4px solid var(--warm); padding-left: 1rem; }
.facts dt { font-size: 2.2rem; font-weight: 700; line-height: 1.1; color: var(--ink); }
.facts dd { margin: .25rem 0 0; color: var(--ink-2); }
@media (min-width: 48rem) { .facts { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--field-line); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 700; font-size: 1.08rem; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .8rem; font-size: 1.4rem; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1rem; color: var(--ink-2); }
.faq h2 { margin-top: 2.5rem; }

/* Callout */
.callout { border: 2px solid var(--blue); border-radius: var(--r); padding: 1.5rem; background: var(--paper); }
.callout h2, .callout h3 { margin-top: 0; }
.callout-warm { border-color: var(--warm); }
.seal { display: flex; gap: 1rem; align-items: center; border: 1.5px solid var(--ink); border-radius: 8px; padding: .9rem 1rem; max-width: 26rem; background: #fff; }
.seal img { width: 44px; height: 44px; }
.seal strong { display: block; }
.seal span { font-size: .88rem; color: var(--ink-2); }

.list-tight li { margin-bottom: .45rem; }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 1.6rem; position: relative; margin-bottom: .6rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .9rem; height: .5rem; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.crosses { list-style: none; padding: 0; }
.crosses li { padding-left: 1.6rem; position: relative; margin-bottom: .6rem; }
.crosses li::before, .crosses li::after { content: ""; position: absolute; left: .1rem; top: .75em; width: 1rem; height: 3px; background: var(--warm-ink); transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }

.dl-group { display: grid; gap: 1rem; }
.dl-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.5rem 0; border-top: 1px solid var(--field-line); }
.dl-item img { width: 64px; height: 64px; border-radius: 14px; }
.dl-item h3 { margin-bottom: .25rem; }
.dl-item .actions { margin-top: .75rem; }

.marks { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.marks img { height: 88px; width: auto; }

/* Footer */
.site-footer { background: var(--ink); color: #dfe6f0; padding: 3rem 0 2rem; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.cobrand-footer { margin: 0 0 2.5rem; color: #dfe6f0; }
.cobrand-footer strong { color: #fff; font-size: 1.05rem; }
.cobrand-footer .cobrand-gov { border-left-color: #3b4a5c; }
.cobrand-footer .cobrand-gov img { background: #fff; border-radius: 6px; padding: 3px; width: 52px; height: auto; }
.cobrand-footer .gov-caveat { color: #b8c4d4; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.footer-cols h2 { font-size: .95rem; color: #b8c4d4; font-weight: 700; margin-bottom: .6rem; letter-spacing: 0; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: .45rem; font-size: .98rem; }
@media (min-width: 48rem) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.fineprint { margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid #2e3b4b; font-size: .88rem; color: #b8c4d4; max-width: 60rem; }

@media print {
  .site-header, .site-footer, .demo-banner { display: none; }
}
.values.one-col { grid-template-columns: 1fr; max-width: 48rem; }
.cobrand-caveat { flex-basis: 100%; font-size: .82rem; }
@media (max-width: 39.99rem) { .cobrand-gov { padding-left: 0; border-left: 0; } }

/* ---------- Device mockups (drawn in CSS, no brand marks) ---------- */
.devices { display: flex; flex-wrap: wrap; gap: 2rem 1.5rem; align-items: flex-end; }
.devices-scroll { flex-wrap: nowrap; overflow-x: auto; padding: .5rem .25rem 1.25rem; scroll-snap-type: x mandatory; }
.devices-scroll > * { scroll-snap-align: start; flex: 0 0 auto; }
.device { margin: 0; }
.device figcaption { font-size: .9rem; color: var(--ink-2); margin-top: .75rem; max-width: 18rem; }
.device img { width: 100%; height: auto; display: block; }

.dev-phone { position: relative; width: 14rem; padding: .85rem .5rem .9rem; border-radius: 2.1rem; background: #1b222b; box-shadow: 0 20px 40px -22px rgba(22, 32, 43, .7), inset 0 0 0 2px #39434f; }
.dev-phone::before { content: ""; position: absolute; top: .38rem; left: 50%; width: .42rem; height: .42rem; margin-left: -.21rem; border-radius: 50%; background: #3f4a58; }
.dev-phone::after { content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 3.2rem; border-radius: 0 2px 2px 0; background: #2c3540; }
.dev-phone .screen { border-radius: 1.55rem; overflow: hidden; background: #fff; }
.dev-phone.sm { width: 12rem; }

.dev-tablet { position: relative; width: min(36rem, 100%); padding: .9rem; border-radius: 1.5rem; background: #1b222b; box-shadow: 0 22px 44px -24px rgba(22, 32, 43, .7), inset 0 0 0 2px #39434f; }
.dev-tablet::before { content: ""; position: absolute; left: .32rem; top: 50%; width: .38rem; height: .38rem; margin-top: -.19rem; border-radius: 50%; background: #3f4a58; }
.dev-tablet .screen { border-radius: .55rem; overflow: hidden; background: #fff; }
.dev-tablet.sm { width: min(26rem, 100%); }

.dev-laptop { width: min(40rem, 100%); padding: 0 1.5rem; }
.dev-laptop .lid { padding: .75rem .75rem 1.1rem; border-radius: .9rem .9rem 0 0; background: #1b222b; box-shadow: inset 0 0 0 2px #39434f; position: relative; }
.dev-laptop .lid::before { content: ""; position: absolute; top: .3rem; left: 50%; width: .3rem; height: .3rem; margin-left: -.15rem; border-radius: 50%; background: #3f4a58; }
.dev-laptop .screen { border-radius: .25rem; overflow: hidden; background: #fff; }
.dev-laptop .base { position: relative; height: .85rem; width: calc(100% + 3rem); margin-left: -1.5rem; border-radius: 0 0 1.2rem 1.2rem; background: linear-gradient(#d9dfe6, #a7b1bd); box-shadow: 0 16px 28px -16px rgba(22, 32, 43, .6); }
.dev-laptop .base::before { content: ""; position: absolute; top: 0; left: 50%; width: 18%; height: .35rem; margin-left: -9%; border-radius: 0 0 .5rem .5rem; background: #b9c2cc; }
.dev-laptop + figcaption, .dev-laptop figcaption { padding-left: 1.5rem; }

/* ---------- Chat mockup: a generic messaging layout, labelled "Mama's Card on WhatsApp" ---------- */
.chat { display: flex; flex-direction: column; height: 30rem; font-size: .8rem; line-height: 1.38; background: #e7ede4; }
.chat-top { display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; background: #17614a; color: #fff; }
.chat-top img { width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.chat-top b { display: block; font-size: .88rem; }
.chat-top small { font-size: .7rem; opacity: .85; }
.chat-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem; padding: .6rem .55rem; }
.msg { max-width: 86%; padding: .4rem .55rem .3rem; border-radius: .55rem; white-space: pre-line; box-shadow: 0 1px 0 rgba(22, 32, 43, .12); overflow-wrap: anywhere; }
.msg time { display: block; text-align: right; font-size: .64rem; color: #5f6b78; margin-top: .1rem; }
.msg.in { align-self: flex-start; background: #fff; border-top-left-radius: .1rem; }
.msg.out { align-self: flex-end; background: #d3f2c4; border-top-right-radius: .1rem; }
.msg b { font-weight: 700; }
.msg-wrap { align-self: flex-start; max-width: 86%; display: flex; flex-direction: column; gap: 2px; }
.msg-wrap .msg { max-width: none; }
.reply-btn { display: block; background: #fff; color: #1765a3; text-align: center; padding: .38rem .4rem; border-radius: .55rem; font-weight: 700; font-size: .78rem; box-shadow: 0 1px 0 rgba(22, 32, 43, .12); }
.day-pill { align-self: center; background: #fdfdf8; color: #55606d; font-size: .68rem; padding: .15rem .55rem; border-radius: .4rem; box-shadow: 0 1px 0 rgba(22, 32, 43, .1); }
.chat-input { display: flex; gap: .4rem; align-items: center; padding: .45rem .5rem; background: #e7ede4; }
.chat-input span { flex: 1; background: #fff; border-radius: 999px; padding: .38rem .7rem; color: #6b7785; font-size: .78rem; }
.chat-input i { width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #17614a; display: block; position: relative; }
.chat-input i::after { content: ""; position: absolute; left: .68rem; top: .55rem; border-left: .7rem solid #fff; border-top: .4rem solid transparent; border-bottom: .4rem solid transparent; }

/* The booking form (a Flow) that opens over the chat */
.flow { display: flex; flex-direction: column; height: 30rem; background: #fff; font-size: .82rem; line-height: 1.38; }
.flow-top { display: flex; align-items: center; gap: .6rem; padding: .75rem .8rem; border-bottom: 1px solid #e3e7ec; font-weight: 700; font-size: .92rem; }
.flow-top span { color: #55606d; font-weight: 400; font-size: 1.1rem; line-height: 1; }
.flow-body { flex: 1; padding: .8rem; }
.flow-body h4 { margin: 0 0 .2rem; font-size: .95rem; }
.flow-body p { margin: 0 0 .7rem; color: #44546a; }
.flow-body .lbl2 { font-weight: 700; margin: .6rem 0 .3rem; }
.radio { display: flex; align-items: center; gap: .55rem; padding: .55rem .2rem; border-bottom: 1px solid #eef1f4; }
.radio i { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid #8c97a4; flex-shrink: 0; }
.radio.on i { border-color: #17614a; box-shadow: inset 0 0 0 3px #fff; background: #17614a; }
.flow-foot { padding: .7rem .8rem .9rem; }
.flow-foot b { display: block; text-align: center; background: #17614a; color: #fff; border-radius: 999px; padding: .55rem; }
.flow-confirm { margin-top: .8rem; padding: .7rem; border-radius: .5rem; background: #f3f6f9; }

.chat-note { font-size: .88rem; color: var(--ink-2); }
.chat-label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: #17614a; font-size: .95rem; margin-bottom: .6rem; }
.chat-label::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; background: #17614a; }

/* ---------- Feature phone (USSD) ---------- */
.fphone { width: 11.5rem; padding: 1.1rem .85rem 1.2rem; border-radius: 1.6rem 1.6rem 2.2rem 2.2rem; background: linear-gradient(160deg, #36404c, #1b222b 60%); box-shadow: 0 20px 36px -20px rgba(22, 32, 43, .75), inset 0 0 0 2px #46515e; }
.fphone .ear { width: 2.6rem; height: .3rem; border-radius: 999px; background: #11161c; margin: 0 auto .7rem; }
.lcd { height: 10.5rem; padding: .5rem .55rem; border-radius: .35rem; background: #d5e3cd; color: #1c2a1c; font: 600 .74rem/1.4 Consolas, "Courier New", monospace; white-space: pre-line; overflow: hidden; box-shadow: inset 0 0 0 2px #9fb398; }
.lcd .bar { display: flex; justify-content: space-between; font-size: .62rem; opacity: .75; margin-bottom: .25rem; white-space: normal; }
.lcd .inp { display: block; margin-top: .35rem; border-top: 1px dashed #7d9176; padding-top: .25rem; }
.softkeys { display: flex; justify-content: space-between; color: #c8d0da; font-size: .66rem; padding: .35rem .2rem .45rem; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .32rem; }
.keypad span { display: grid; place-items: center; height: 1.45rem; border-radius: .45rem; background: #3a4552; color: #e6ebf1; font-size: .74rem; font-weight: 700; box-shadow: inset 0 -2px 0 #252d37; }
.navkey { width: 3rem; height: 1.6rem; margin: 0 auto .5rem; border-radius: .8rem; background: #2c3540; box-shadow: inset 0 0 0 2px #46515e; }
.badge-soon { display: inline-block; padding: .25rem .65rem; border-radius: 999px; background: #fff4dc; color: #7a4b00; border: 1px solid #ecd29b; font-weight: 700; font-size: .85rem; }

/* Ways to use it: four routes */
.ways { display: grid; gap: 2.5rem 2rem; }
.way h3 { margin: 1rem 0 .3rem; }
.way p { margin: 0; color: var(--ink-2); }
.way .art { min-height: 17rem; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 48rem) { .ways { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .ways { grid-template-columns: repeat(4, 1fr); } }
.way .dev-phone { width: 12rem; }
.way .dev-tablet { width: 100%; max-width: 20rem; }
.mini-chat .chat { height: 17.5rem; }
.way-block + .way-block { border-top: 1px solid var(--field-line); margin-top: 3.5rem; padding-top: 3.5rem; }
.way-block .section-head { margin-bottom: 2.25rem; }

/* refinements */
.nav-desktop a { white-space: nowrap; }
.way-block .chat, .way-block .flow { height: 33rem; }
.way-block .dev-phone { width: 14.5rem; }
.app-row .dev-phone { width: 12rem; }
@media (min-width: 64rem) { .devices-scroll { flex-wrap: wrap; overflow: visible; } }
.devices-clinic { display: grid; gap: 2.5rem 2rem; align-items: end; }
.devices-clinic .dev-tablet, .devices-clinic .dev-tablet.sm { width: 100%; }
@media (min-width: 56rem) { .devices-clinic { grid-template-columns: 1.4fr 1fr; } .devices-clinic .wide { grid-column: 1 / -1; justify-self: center; width: min(44rem, 100%); } .devices-clinic .wide .dev-laptop { width: 100%; } }
.device > figcaption { width: 0; min-width: 100%; max-width: none; }
.header-tools { flex-shrink: 0; }
.check-btn { white-space: nowrap; }
.devices.app-row, .devices-scroll { align-items: flex-start; }
.devices { align-items: flex-start; }
.way .art { height: 23rem; min-height: 0; align-items: flex-end; }
.way .fphone { width: 10.5rem; }
.way .lcd { height: 9rem; }
.mini-chat .chat { height: 19.5rem; font-size: .74rem; }
.mini-chat .chat-top small { display: none; }
@media (max-width: 47.99rem) { .way .art { height: auto; } }
.point h3 { margin: 1.4rem 0 .5rem; font-size: 1.1rem; }

/* One phone everywhere (owner, 20 Nov 2026): the drawn WhatsApp phone uses the same phone frame as the screenshots. */
.dev-phone { width: 11rem; aspect-ratio: 666 / 1400; padding: 0; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 18px 22px rgba(22, 32, 43, .28)); }
.dev-phone::before { display: none; }
.dev-phone::after { top: 0; right: 0; bottom: 0; left: 0; width: auto; height: auto; border-radius: 0; z-index: 2; pointer-events: none; background: url(/assets/img/phone-frame.webp) center / 100% 100% no-repeat; }
.dev-phone .screen { position: absolute; left: 5.05%; top: 2.07%; width: 89.49%; height: 95.87%; border-radius: 9% / 4%; z-index: 1; }
.dev-phone .screen .chat { height: 100%; }
.dev-phone .screen .chat-top { padding-top: 2.1rem; }
.dev-phone.sm { width: 9.6rem; }
.dev-phone .screen .chat { font-size: .64rem; }
.dev-phone .screen .chat-top { padding: 1.9rem .5rem .4rem; }
.dev-phone .screen .chat-top img { width: 22px; height: 22px; }
.dev-phone .screen .reply-btn { font-size: .66rem; padding: .3rem; }
