/*
 * The pages served without the React app: the landing page (home.html) and
 * each clinic's public page (backend api/routes/public.py). Plain CSS with no
 * build step — Google and link previews read these pages exactly as the server
 * sends them. Colours are the app's brand-* teal (src/index.css), and sizes
 * follow its rules for older readers: body text 18px, nothing under 14px,
 * every button at least 48px tall, the language button 44px.
 */
@font-face {
  font-family: 'Urdu';
  src: local('Noto Nastaliq Urdu'), local('NotoNastaliqUrdu'), url('/fonts/noto-nastaliq-urdu.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011,
    U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --brand-50: #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-200: #99f6e4;
  --brand-300: #5eead4;
  --brand-400: #2dd4bf;
  --brand-600: #0d9488;
  --brand-700: #0f766e;
  --brand-800: #115e59;
  --brand-900: #134e4a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow: 0 1px 2px rgb(19 78 74 / 0.06), 0 18px 40px -12px rgb(19 78 74 / 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
html[lang='ur'] {
  font-size: 112.5%;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Urdu', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50) radial-gradient(at 50% 0%, var(--brand-100), transparent 70%) no-repeat;
  overflow-wrap: break-word;
}
:lang(ur) {
  line-height: 1.9;
  letter-spacing: normal;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  color: var(--gray-900);
  line-height: 1.25;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
a {
  color: var(--brand-700);
}
:focus-visible {
  outline: 3px solid var(--brand-700);
  outline-offset: 2px;
}

/* English, Urdu or both — site.js sets data-lang on <html>. "Both" puts the
   Urdu under the English, a little larger, as the app does. */
.bi {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}
.bi > [lang='ur'] {
  direction: rtl;
}
html[data-lang='en'] .bi > [lang='ur'],
html[data-lang='ur'] .bi > .en {
  display: none;
}
html[data-lang='both'] .bi > [lang='ur'] {
  font-size: 1.1em;
  padding-top: 0.3em;
}
.btn .bi,
.center .bi,
.site-footer > a .bi {
  align-items: center;
}

/* Icons from /icons.svg — the same set as the app's. Arrows point the way the page reads. */
.icon {
  flex: none;
  width: 1.5em;
  height: 1.5em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[dir='rtl'] .flip {
  transform: scaleX(-1);
}

/* The language button — the same as the app's (LanguageBar in src/i18n.tsx): a
   globe with the language in use to its left; site.js moves it on to the next.
   In px and left-to-right, so Urdu's larger page neither grows nor flips it. */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--gray-300);
  border-radius: 9999px;
  background: #fff;
  color: var(--gray-900);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.lang-toggle:hover {
  border-color: var(--brand-700);
  background: var(--brand-50);
}
.lang-toggle::before {
  content: 'EN';
}
html[data-lang='ur'] .lang-toggle::before {
  content: 'UR';
}
html[data-lang='both'] .lang-toggle::before {
  content: 'EN+UR';
}
.lang-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--brand-700);
  stroke-width: 2;
  stroke-linecap: round;
}

/* Logo and name, the language button beside them; on the landing page Log in
   and Create account go on a row of their own until there's room for all three.
   The language button stays in the same place in every language (the owner's
   wish): the header is dir="ltr" and in px, and the button sits in its top
   right corner, not centred on a name that wraps differently in each language. */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 16px;
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 14px 16px;
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-900);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}
.brand img {
  flex: none;
  width: 44px;
  height: 44px;
}
.nav {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.nav .btn {
  padding-inline: 14px;
}
.site-header .lang-toggle {
  align-self: start;
}
@media (min-width: 800px) {
  .site-header {
    grid-template-columns: 1fr;
    grid-auto-flow: column;
  }
  .nav {
    grid-column: auto;
    display: flex;
  }
  /* After Log in and Create account, whose width changes with the language. */
  .site-header .lang-toggle {
    order: 1;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 20px;
  border: 2px solid var(--brand-700);
  border-radius: 12px;
  background: var(--brand-700);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.btn:hover {
  border-color: var(--brand-800);
  background: var(--brand-800);
}
.btn .icon {
  width: 1.25em;
  height: 1.25em;
}
.btn-light {
  background: #fff;
  color: var(--brand-700);
}
.btn-light:hover {
  background: var(--brand-50);
  color: var(--brand-800);
}
.btn-big {
  min-height: 56px;
  padding: 10px 28px;
  font-size: 1.25rem;
  box-shadow: 0 10px 24px -12px rgb(15 118 110 / 0.7);
}
.btn-big.btn-light {
  box-shadow: none;
}
/* green-700: white text on it is 5:1, where WhatsApp's own green fails. */
.btn-whatsapp {
  border-color: #15803d;
  background: #15803d;
}
.btn-whatsapp:hover {
  border-color: #166534;
  background: #166534;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 8px 16px 48px;
}
.card {
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 25px -5px rgb(19 78 74 / 0.08);
}
.narrow {
  max-width: 40rem;
  margin: 16px auto 0;
}
.center > .badge-icon {
  margin: 0 auto 16px;
}
.center {
  text-align: center;
}
.center p {
  margin-top: 12px;
}
@media (min-width: 640px) {
  .card {
    padding: 32px;
  }
}

/* A clinic's page */
.card h1 {
  font-size: 1.875rem;
}
.lead {
  margin-top: 6px;
  font-size: 1.25rem;
  color: var(--gray-700);
}
.specialty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--brand-700);
  font-weight: 600;
}
.text {
  margin-top: 16px;
  color: var(--gray-700);
  white-space: pre-line;
}
.box {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--brand-200);
  border-radius: 12px;
  background: var(--brand-50);
}
.box h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-800);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.box .text {
  margin-top: 6px;
  color: var(--gray-800);
}
.box .actions {
  margin-top: 12px;
}

/* ---- The landing page ---- */
.home {
  background: var(--gray-50);
}
.home main {
  flex: 1;
}
.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 16px;
}
.kicker,
.center .kicker {
  margin: 0;
  color: var(--brand-700);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section {
  padding: 80px 0;
}
.section-head {
  max-width: 46rem;
  margin: 0 auto;
}
.section-head h2,
.split h2 {
  margin-top: 8px;
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-head p {
  font-size: 1.25rem;
  color: var(--gray-700);
}
.tint {
  background: linear-gradient(var(--brand-50), var(--gray-50));
}
/* On a phone the big buttons take the full width, one under the other. */
@media (max-width: 479px) {
  .hero .btn-big,
  .cta .btn-big {
    flex: 1 1 100%;
  }
}

/* The opening: what it is on one side, a picture of the app on the other, a heartbeat underneath. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 24px 0 96px;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero::before {
  background:
    radial-gradient(42rem 28rem at 85% 0%, rgb(153 246 228 / 0.6), transparent 70%),
    radial-gradient(34rem 24rem at 0% 75%, rgb(254 243 199 / 0.8), transparent 70%);
}
.hero::after {
  background: radial-gradient(var(--brand-200) 1.5px, transparent 1.5px) 0 0 / 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 70%);
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    padding-top: 24px;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border: 1px solid var(--brand-200);
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.85);
  color: var(--brand-800);
  font-size: 1rem;
  font-weight: 700;
}
.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
/* Nastaliq is tall: the Urdu headline is set a little smaller. */
html[data-lang='ur'] .hero h1,
html[data-lang='both'] .hero h1 {
  font-size: clamp(2rem, 5.5vw, 3rem);
}
.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--brand-700);
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  /* brand-600 is only 3.7:1 on white: enough for text this large, not for body text. */
  .hero h1 em {
    background: linear-gradient(90deg, var(--brand-600), var(--brand-900));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.hero .lead {
  max-width: 36rem;
  margin-top: 20px;
}
.hero .actions {
  margin-top: 32px;
}
.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}
.ticks li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticks .icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 9999px;
  background: var(--brand-100);
  color: var(--brand-800);
  stroke-width: 3;
}
.ecg {
  position: absolute;
  inset-inline: 0;
  bottom: 12px;
  z-index: -1;
  width: 100%;
  height: 72px;
  fill: none;
  stroke: var(--brand-300);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.ecg path {
  vector-effect: non-scaling-stroke;
}

/* Pictures of the app, built from the same parts as the app itself. */
.mock {
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  background: #fff;
  color: var(--gray-700);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.mock b {
  color: var(--gray-900);
}
.hero-art {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
}
.app {
  overflow: hidden;
  box-shadow: var(--shadow);
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
}
.app-bar img {
  width: 28px;
  height: 28px;
}
.app-tab {
  margin-inline-start: auto;
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 700;
}
.app-body {
  padding: 16px 16px 48px;
  background: var(--gray-50);
}
.app-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.app-stat {
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
}
.app-stat b {
  display: block;
  margin-top: 4px;
  font-size: 1.75rem;
  line-height: 1.1;
}
.app-h {
  margin: 16px 0 8px;
  color: var(--gray-900);
  font-weight: 700;
}
.app-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.app-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
}
.app-list .is-now {
  border-color: var(--brand-300);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.time {
  color: var(--brand-800);
  font-weight: 800;
  white-space: nowrap;
}
.who {
  display: grid;
}
.who small {
  color: var(--gray-600);
  font-size: 0.875rem;
}
@media (max-width: 479px) {
  .app-list li {
    grid-template-columns: auto 1fr;
  }
  .app-list .chip {
    grid-column: 2;
    justify-self: start;
  }
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}
/* Two lines tall in "both", where a pill's round ends would turn it into an oval. */
html[data-lang='both'] .chip {
  border-radius: 12px;
}
.chip-green {
  background: #dcfce7;
  color: #166534;
}
.chip-blue {
  background: #dbeafe;
  color: #1e40af;
}
.chip-amber {
  background: #fef3c7;
  color: #92400e;
}
.chip-red {
  background: #fee2e2;
  color: #991b1b;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: currentColor;
}
.float-rx {
  position: relative;
  width: min(20rem, 90%);
  margin-block-start: -36px;
  margin-inline-start: auto;
  padding: 14px 16px 16px;
  box-shadow: var(--shadow);
}
.rx-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--gray-900);
}
.rx {
  color: var(--brand-700);
  font: 700 1.75rem/1 Georgia, 'Times New Roman', serif;
}
.rx-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--gray-300);
}
.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--brand-700);
  color: #fff;
  font-weight: 700;
}
.mini-btn .icon {
  width: 1.125em;
  height: 1.125em;
}

/* Features: one tile each, the bigger ones with a picture. */
.bento {
  display: grid;
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .tile-wide,
  .tile:last-child {
    grid-column: span 2;
  }
}
@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }
  .tile:last-child {
    grid-column: auto;
  }
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}
.tile h3 {
  font-size: 1.375rem;
  font-weight: 800;
}
.tile p {
  color: var(--gray-700);
}
.tile .mock {
  margin-top: auto;
}
.badge-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--tint, var(--brand-50));
  color: var(--ink, var(--brand-700));
}
.badge-icon .icon {
  width: 30px;
  height: 30px;
}
.badge-icon.sm {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.badge-icon.sm .icon {
  width: 24px;
  height: 24px;
}
.t-blue {
  --tint: #eff6ff;
  --ink: #1d4ed8;
}
.t-rose {
  --tint: #fff1f2;
  --ink: #be123c;
}
.t-amber {
  --tint: #fffbeb;
  --ink: #b45309;
}
.t-violet {
  --tint: #f5f3ff;
  --ink: #6d28d9;
}
.t-orange {
  --tint: #fff7ed;
  --ink: #c2410c;
}
.t-green {
  --tint: #f0fdf4;
  --ink: #15803d;
}
.mini-patient,
.mini-print,
.mini-scan {
  padding: 16px;
  background: var(--gray-50);
}
.mini-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid var(--brand-200);
  border-radius: 12px;
  background: #fff;
}
.mini-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: #fff;
}
.mini-card .chip {
  margin-inline-start: auto;
}
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: var(--tint, var(--brand-100));
  color: var(--ink, var(--brand-800));
}
.vitals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-basis: 100%;
}
.vitals > span {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--gray-100);
  color: var(--gray-800);
  font-weight: 600;
}
.mini-week {
  padding: 14px;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  text-align: center;
  font-weight: 700;
}
.days li {
  position: relative;
  padding: 8px 0 14px;
  border-radius: 10px;
}
/* The calendar's own mark for a day with appointments (src/index.css). */
.days .has::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 9999px;
  background: var(--brand-600);
}
.days .today {
  background: var(--brand-700);
  color: #fff;
}
.days .today::after {
  background: #fff;
}
.paper {
  display: grid;
  gap: 8px;
  width: min(100%, 13rem);
  margin: 0 auto;
  padding: 14px 16px 10px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 20px -12px rgb(0 0 0 / 0.3);
}
.paper i {
  height: 6px;
  border-radius: 3px;
  background: var(--gray-200);
}
.paper i:nth-of-type(2) {
  width: 75%;
}
.paper i:nth-of-type(3) {
  width: 55%;
}
.sign {
  justify-self: end;
  width: 80px;
  height: 24px;
  fill: none;
  stroke: var(--brand-800);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.mini-print {
  text-align: center;
}
.mini-scan {
  display: grid;
  grid-template-columns: 88px minmax(0, 22rem);
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.doc {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  height: 116px;
  padding: 12px 10px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 18px -10px rgb(0 0 0 / 0.3);
}
.doc i {
  height: 5px;
  border-radius: 3px;
  background: var(--gray-300);
}
.doc i:nth-child(1) {
  width: 60%;
  background: var(--gray-400);
}
.doc i:nth-child(3),
.doc i:nth-child(6) {
  width: 75%;
}
.beam {
  position: absolute;
  inset-inline: 0;
  top: 45%;
  height: 4px;
  background: var(--brand-400);
  box-shadow: 0 0 14px 4px rgb(45 212 191 / 0.55);
}
.ocr-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #166534;
  font-weight: 700;
}
.ocr ul {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.875rem;
}
.ocr li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff;
}
@media (max-width: 479px) {
  .mini-scan {
    grid-template-columns: 1fr;
  }
  .doc {
    height: 84px;
  }
}
.mini-team {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  padding: 16px 8px;
  text-align: center;
  font-weight: 700;
}
.member {
  display: grid;
  justify-items: center;
  gap: 6px;
}
.member + .member .avatar {
  background: var(--gray-100);
  color: var(--gray-700);
}
.mini-remind {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px;
}
.mini-remind .chip .icon {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 3;
}
.mini-chart {
  padding: 16px;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 88px;
}
.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(var(--brand-400), var(--brand-700));
}
.mini-chart p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.mini-chart p b {
  font-size: 1.75rem;
  line-height: 1;
}

/* Two halves: words on one side, a picture on the other, swapping sides from section to section. */
.split {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
  .split.reverse > :first-child {
    order: 2;
  }
}
.split-lead {
  margin-top: 16px;
  font-size: 1.25rem;
  color: var(--gray-700);
}
.points {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.points li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: var(--gray-800);
}
.url {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 28px;
  padding: 10px 18px;
  border: 2px dashed var(--brand-300);
  border-radius: 14px;
  background: #fff;
  color: var(--gray-800);
  font-weight: 600;
}
.url .icon {
  color: var(--brand-700);
}
.url b {
  color: var(--brand-700);
}
.try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-weight: 700;
}

/* A phone showing a clinic's page — the real one's parts (api/routes/public.py). */
.phone {
  width: min(100%, 21rem);
  margin: 0 auto;
  padding: 10px;
  border-radius: 44px;
  background: var(--gray-900);
  box-shadow: 0 40px 70px -30px rgb(19 78 74 / 0.6);
}
.phone-screen {
  overflow: hidden;
  border-radius: 34px;
  background: var(--gray-50) radial-gradient(at 50% 0%, var(--brand-100), transparent 70%) no-repeat;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.phone-screen::before {
  content: '';
  display: block;
  width: 96px;
  height: 24px;
  margin: 10px auto 0;
  border-radius: 9999px;
  background: var(--gray-900);
}
.phone-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: var(--gray-900);
  font-weight: 800;
}
.phone-card {
  display: grid;
  gap: 4px;
  margin: 0 12px 22px;
  padding: 18px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: #fff;
}
.ph-name {
  color: var(--gray-900);
  font-size: 1.5rem;
  line-height: 1.2;
}
.ph-doc {
  color: var(--gray-700);
  font-size: 1.0625rem;
}
.ph-spec {
  color: var(--brand-700);
  font-weight: 700;
}
.ph-box {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--brand-200);
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--gray-800);
}
.ph-label {
  color: var(--brand-800);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.ph-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ph-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--brand-700);
  color: #fff;
  font-weight: 700;
}
.ph-btn .icon {
  width: 1.125em;
  height: 1.125em;
}
.ph-wa {
  background: #15803d;
}

/* One of the app's number cards in each of the three languages — the Urdu one mirrored, as the app is. */
.lang-demo {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
}
.demo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.demo-code {
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--gray-900);
  color: #fff;
  font: 700 0.875rem/1.2 ui-sans-serif, system-ui, sans-serif;
}
.demo-label {
  font-weight: 600;
}
.demo b {
  display: block;
  margin-top: 4px;
  font-size: 2.25rem;
  line-height: 1.1;
}
.pair {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}
.pair [lang='ur'] {
  font-size: 1.1em;
  padding-top: 0.3em;
}

/* Privacy: the dark band. */
.trust {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 80px 0;
  background: radial-gradient(40rem 20rem at 50% 0%, rgb(13 148 136 / 0.35), transparent 70%),
    linear-gradient(160deg, var(--brand-900), #0b3532);
  color: #fff;
}
.trust h2 {
  color: #fff;
}
.trust .section-head p {
  color: var(--brand-100);
}
.trust-icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 22px;
  background: rgb(255 255 255 / 0.1);
  color: var(--brand-200);
}
.trust-icon .icon {
  width: 40px;
  height: 40px;
}
.trust-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.06);
}
.trust-list .icon {
  width: 30px;
  height: 30px;
  color: var(--brand-300);
}

.steps {
  display: grid;
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .steps li {
    flex-direction: column;
  }
}
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  background: #fff;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  box-shadow: 0 0 0 6px var(--brand-100);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}
.steps h3 {
  font-size: 1.375rem;
  font-weight: 800;
}
.steps p {
  margin-top: 8px;
  color: var(--gray-700);
}

.cta-wrap {
  padding-bottom: 80px;
}
.cta {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 48px 24px 88px;
  border-radius: 28px;
  background: radial-gradient(30rem 16rem at 15% 0%, rgb(13 148 136 / 0.55), transparent 70%),
    linear-gradient(135deg, var(--brand-700), var(--brand-900));
  box-shadow: var(--shadow);
}
.cta-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 0 0 8px rgb(255 255 255 / 0.12), 0 20px 40px -10px rgb(0 0 0 / 0.45);
}
.cta h2 {
  margin-top: 24px;
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
}
.cta p {
  max-width: 36rem;
  margin: 12px auto 0;
  font-size: 1.25rem;
  color: var(--brand-50);
}
.cta .actions {
  justify-content: center;
  margin-top: 28px;
}
.cta .btn {
  border-color: #fff;
  background: #fff;
  color: var(--brand-800);
}
.cta .btn:hover {
  background: var(--brand-50);
}
.cta .btn-light {
  border-color: #fff;
  background: transparent;
  color: #fff;
}
.cta .btn-light:hover {
  background: rgb(255 255 255 / 0.12);
}
.cta .ecg {
  bottom: 8px;
  height: 56px;
  stroke: rgb(255 255 255 / 0.22);
}

.site-footer {
  padding: 16px;
  border-top: 1px solid var(--gray-200);
  background: #fff;
  font-size: 1rem;
  color: var(--gray-600);
  text-align: center;
}
.site-footer > a,
.credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: inherit;
  text-decoration: none;
}
.site-footer > a:hover,
.credit:hover {
  color: var(--gray-900);
  text-decoration: underline;
}
.site-footer img {
  width: auto;
  height: 32px;
}
.home-footer {
  padding: 32px 0;
  text-align: start;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer-grid .brand img {
  width: 40px;
  height: 40px;
}
.footer-grid p {
  margin-top: 8px;
  color: var(--gray-700);
}

/* Motion: once, on arrival — or tied to scrolling, so it only moves when the
   reader does — and none at all for anyone who has asked for less. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .hero-art {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-copy > :nth-child(2) {
    animation-delay: 0.08s;
  }
  .hero-copy > :nth-child(3) {
    animation-delay: 0.16s;
  }
  .hero-copy > :nth-child(4) {
    animation-delay: 0.24s;
  }
  .hero-copy > :nth-child(5),
  .hero-art {
    animation-delay: 0.32s;
  }
  .float-rx {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s both;
  }
  .ecg {
    animation: draw 2.4s ease-in-out 0.5s both;
  }
  .is-now .dot {
    animation: ping 1.4s ease-out 3;
  }
  @supports (animation-timeline: view()) {
    .tile,
    .steps li,
    .trust-list li,
    .demo,
    .phone {
      animation: lift linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }
    .beam {
      animation: scan linear both;
      animation-timeline: view();
      animation-range: cover 25% cover 75%;
    }
    .cta .ecg {
      animation: draw linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 50%;
    }
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes lift {
  from {
    transform: translateY(32px);
  }
}
/* Drawn left to right by uncovering it: a dash pattern would have to know the line's
   length on screen, which changes with the width it's stretched to. */
@keyframes draw {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0);
  }
}
@keyframes ping {
  from {
    box-shadow: 0 0 0 0 rgb(30 64 175 / 0.5);
  }
  to {
    box-shadow: 0 0 0 8px rgb(30 64 175 / 0);
  }
}
@keyframes scan {
  from {
    top: 4%;
  }
  to {
    top: 92%;
  }
}
