/* ==========================================================================
   webMDonline — design system
   Institutional / trust-and-authority. Navy primary, restrained accent.
   Multi-script: Latin, Devanagari, Arabic, Urdu (Noto family).
   ========================================================================== */

:root {
  /* --- Brand -------------------------------------------------------------- */
  --navy-900: #0B1B3A;
  --navy-800: #11284F;
  --navy-700: #16356A;
  --navy-600: #1E3A8A;
  --navy-500: #2B4DA8;
  --navy-100: #E7EDF8;
  --navy-050: #F3F6FC;

  --teal-600: #0E7490;   /* secondary — inherited from the old brand mark    */
  --teal-100: #E0F2F7;

  /* CTA accent. Clinical teal, not gold: doctors read this palette as medical,
     and 5.47:1 with white text clears AA. CTA ONLY — never decorative.      */
  --cta-700: #0F766E;
  --cta-800: #115E59;
  --cta-050: #ECFDF9;

  /* --- Neutrals ----------------------------------------------------------- */
  --ink-900: #0F172A;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748B;
  --line:    #D8E0EC;
  --line-soft: #E8EDF5;
  --paper:   #FFFFFF;
  --paper-2: #F7F9FC;
  --paper-3: #EFF3F9;

  --ok-700:  #15803D;
  --err-700: #B91C1C;
  --err-050: #FEF2F2;

  /* --- Type --------------------------------------------------------------- */
  --font-sans: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  /* Headings are a journal serif. Physicians read NEJM, JAMA and the Lancet;
     a serif display face reads "academic medicine" where a geometric sans
     reads "SaaS". Latin only — the per-language blocks at the end of this file
     keep Arabic, Urdu and Devanagari on their own Noto faces.               */
  --font-head: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui:   'Figtree', var(--font-sans);

  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.89rem);
  --step-0:  clamp(1rem, 0.96rem + 0.18vw, 1.09rem);
  --step-1:  clamp(1.19rem, 1.12rem + 0.33vw, 1.39rem);
  --step-2:  clamp(1.42rem, 1.30rem + 0.58vw, 1.78rem);
  --step-3:  clamp(1.69rem, 1.50rem + 0.94vw, 2.27rem);
  --step-4:  clamp(2.01rem, 1.72rem + 1.45vw, 2.90rem);
  --step-5:  clamp(2.39rem, 1.95rem + 2.18vw, 3.71rem);

  /* --- Space (8pt rhythm) ------------------------------------------------- */
  --s-1: 0.25rem; --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 5.5rem;  --s-10: 7rem;

  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  --shadow-1: 0 1px 2px rgba(11,27,58,.06), 0 1px 3px rgba(11,27,58,.05);
  --shadow-2: 0 4px 6px -1px rgba(11,27,58,.08), 0 2px 4px -2px rgba(11,27,58,.06);
  --shadow-3: 0 12px 24px -8px rgba(11,27,58,.16), 0 4px 8px -4px rgba(11,27,58,.08);

  --wrap: 1180px;
  --wrap-narrow: 760px;

  --z-header: 100;
  --z-overlay: 900;
  --z-drawer: 1000;

  color-scheme: light;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.18;
  letter-spacing: -0.008em;
  margin: 0 0 var(--s-4);
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--s-4); max-width: 68ch; }
img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-600); text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25em; }
li { margin-bottom: var(--s-2); }

:focus-visible {
  outline: 3px solid var(--navy-600);
  outline-offset: 2px;
  border-radius: 3px;
}

hr { border: 0; border-top: 1px solid var(--line-soft); margin: var(--s-7) 0; }

/* The header is sticky, so an anchor target must reserve room for it or the
   heading lands underneath the bar. */
:target, section[id], [id^="faq-"] { scroll-margin-top: 84px; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-5); }
.wrap-narrow { max-width: var(--wrap-narrow); }
@media (min-width: 768px) { .wrap { padding-inline: var(--s-6); } }

.section { padding-block: var(--s-8); }
@media (min-width: 768px) { .section { padding-block: var(--s-9); } }
.section--tight { padding-block: var(--s-7); }
.section--paper2 { background: var(--paper-2); }
.section--navy { background: var(--navy-900); color: #C9D6EC; }
.section--navy h2, .section--navy h3 { color: #fff; }

.grid { display: grid; gap: var(--s-5); }
@media (min-width: 720px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.stack > * + * { margin-top: var(--s-4); }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Eyebrow / section heading
   ========================================================================== */
.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin: 0 0 var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
/* The rule after a section label is a journal convention — it reads as a
   running head rather than a marketing kicker. */
.eyebrow::after {
  content: ""; flex: 1 1 auto; height: 1px; max-width: 120px;
  background: currentColor; opacity: .32;
}
.section--navy .eyebrow { color: #7FC6DC; }

.lede { font-size: var(--step-1); color: var(--ink-600); line-height: 1.6; max-width: 62ch; }
.section--navy .lede { color: #AFC1DD; }

/* ==========================================================================
   Skip link
   ========================================================================== */
.skip-link {
  position: absolute; left: var(--s-4); top: -100px;
  background: var(--navy-900); color: #fff;
  padding: var(--s-3) var(--s-5); border-radius: 0 0 var(--radius) var(--radius);
  z-index: 2000; font-weight: 600; text-decoration: none;
  transition: top .15s ease-out;
}
.skip-link:focus { top: 0; color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.header-bar { display: flex; align-items: center; gap: var(--s-5); min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; flex: 0 0 auto; min-height: 44px; }
.brand__mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-ui); font-weight: 700; font-size: 1.16rem;
  color: var(--navy-900); letter-spacing: -.02em;
}
.brand__name b { font-weight: 800; color: var(--teal-600); }
.brand__tag {
  font-size: .62rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-500); font-weight: 600;
}

.nav { margin-inline-start: auto; display: none; align-items: center; gap: var(--s-2); }
@media (min-width: 1040px) { .nav { display: flex; } }
.nav a {
  display: inline-block; padding: var(--s-2) var(--s-3);
  font-size: .94rem; font-weight: 600; color: var(--ink-700);
  text-decoration: none; border-radius: var(--radius-sm);
  transition: background .15s ease-out, color .15s ease-out;
}
.nav a:hover { background: var(--navy-050); color: var(--navy-700); }
.nav a[aria-current="page"] { color: var(--navy-700); background: var(--navy-100); }

.header-actions {
  margin-inline-start: auto; display: flex; align-items: center;
  gap: var(--s-3); flex: 0 0 auto;
}
@media (min-width: 1040px) { .header-actions { margin-inline-start: var(--s-4); } }
/* Below 560px the brand + CTA + menu button cannot all fit on one row and the
   document gains a horizontal scrollbar. Drop the CTA (the mobile nav and the
   hero both carry it) and let the brand shrink. */
@media (max-width: 559px) {
  .header-actions .btn { display: none; }
  .brand { min-width: 0; }
  .brand__name { font-size: 1.05rem; }
}
@media (max-width: 400px) { .brand__tag { display: none; } }
.header-bar { min-width: 0; }
.brand__text { min-width: 0; }

/* Mobile menu button */
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--radius-sm); cursor: pointer;
  color: var(--navy-900);
}
@media (min-width: 1040px) { .menu-btn { display: none; } }

.mobile-nav {
  display: none; border-top: 1px solid var(--line-soft);
  background: #fff; padding: var(--s-4) 0 var(--s-5);
}
.mobile-nav[data-open="true"] { display: block; }
@media (min-width: 1040px) { .mobile-nav { display: none !important; } }
.mobile-nav a {
  display: block; padding: var(--s-3) var(--s-4); font-weight: 600;
  color: var(--ink-900); text-decoration: none; border-radius: var(--radius-sm);
  min-height: 44px;
}
.mobile-nav a:hover { background: var(--navy-050); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: var(--s-3) var(--s-5);
  font-family: var(--font-ui); font-size: 1rem; font-weight: 600;
  border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background .18s ease-out, border-color .18s ease-out,
              color .18s ease-out, box-shadow .18s ease-out;
}
.btn--primary { background: var(--cta-700); color: #fff; box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--cta-800); color: #fff; box-shadow: var(--shadow-2); }
.btn--navy { background: var(--navy-700); color: #fff; }
.btn--navy:hover { background: var(--navy-800); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy-700); border-color: var(--line); }
.btn--ghost:hover { background: var(--navy-050); border-color: var(--navy-500); color: var(--navy-800); }
.btn--onnavy { background: #fff; color: var(--navy-900); }
.btn--onnavy:hover { background: var(--navy-100); color: var(--navy-900); }
.btn--wide { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn--sm { min-height: 40px; padding: var(--s-2) var(--s-4); font-size: .92rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; color: #DCE6F7;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 55%, #1A4A7A 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 90% at 82% 18%, rgba(56,163,196,.24), transparent 62%),
    radial-gradient(55% 70% at 8% 88%, rgba(30,58,138,.5), transparent 70%);
}
.hero__inner { position: relative; z-index: 1; padding-block: var(--s-8) var(--s-9); }
@media (min-width: 900px) {
  .hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s-8); align-items: center; }
}
.hero h1 { color: #fff; margin-bottom: var(--s-5); }
.hero__lede { font-size: var(--step-1); color: #C6D6EE; margin-bottom: var(--s-6); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-6); }
.hero__note { font-size: var(--step--1); color: #B4C9E4; }

.hero__badges { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-5); }
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--step--1); font-weight: 600; color: #B4C9E4;
}
.hero__badge svg { flex: 0 0 auto; color: #5FB3CE; }

/* Route selector card in hero */
.routecard {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  backdrop-filter: blur(6px);
}
.routecard h2 {
  color: #fff; font-size: var(--step-1); margin-bottom: var(--s-2);
}
.routecard p { color: #BACEE8; font-size: var(--step--1); margin-bottom: var(--s-4); }
.routecard__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.routecard__list a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  min-height: 52px; padding: var(--s-3) var(--s-4);
  background: rgba(255,255,255,.95); border-radius: var(--radius);
  color: var(--navy-900); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: background .15s ease-out, transform .15s ease-out;
}
.routecard__list a:hover { background: #fff; transform: translateX(2px); color: var(--navy-900); }
[dir="rtl"] .routecard__list a:hover { transform: translateX(-2px); }
.routecard__list svg { flex: 0 0 auto; color: var(--teal-600); }
[dir="rtl"] .routecard__list svg { transform: scaleX(-1); }

/* ==========================================================================
   ECG trace — the one visual cue every clinician reads instantly as medical.
   Drawn in CSS as an inline SVG data URI so it costs no request, and it is
   purely decorative (aria-hidden on the element that carries it).
   ========================================================================== */
.ecg {
  height: 34px;
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 34px;
  opacity: .5;
}
.ecg--onnavy {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='34' viewBox='0 0 240 34'%3E%3Cpath d='M0 17h26l5-9 5 18 6-26 7 34 6-17h24l5-6 5 12 6-18 7 24 6-12h24l5-9 5 18 6-26 7 34 6-17h24l5-6 5 12 6-18 7 24 6-12h30' fill='none' stroke='%237FD0E8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ecg--onlight {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='34' viewBox='0 0 240 34'%3E%3Cpath d='M0 17h26l5-9 5 18 6-26 7 34 6-17h24l5-6 5 12 6-18 7 24 6-12h24l5-9 5 18 6-26 7 34 6-17h24l5-6 5 12 6-18 7 24 6-12h30' fill='none' stroke='%230E7490' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* Hero trace sits along the bottom edge of the navy band. */
.hero__ecg {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34px;
  z-index: 1; pointer-events: none; opacity: .42;
}

/* A thin clinical rule that separates a section the way a journal figure
   caption is separated from its figure. */
.rule-clinical {
  border: 0; height: 3px; margin: 0;
  background: linear-gradient(90deg, var(--teal-600) 0 64px, var(--line-soft) 64px 100%);
}

/* "What is included" reads as a clinical summary panel, not a marketing card. */
.card--clinical {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal-600);
  border-radius: 4px;
}
.card--clinical h3 {
  font-family: var(--font-ui); font-size: .82rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--line-soft);
  margin-bottom: var(--s-4);
}
[lang="ar"] .card--clinical h3, [lang="ur"] .card--clinical h3,
[lang="hi"] .card--clinical h3 { text-transform: none; letter-spacing: 0; font-size: .95rem; }

/* Programme icons: a clinical chip rather than a soft rounded app icon. */
.card__icon {
  border-radius: 4px;
  background: var(--teal-100);
  color: var(--teal-600);
  border: 1px solid #BFE3EE;
}

/* ==========================================================================
   Stat band
   ========================================================================== */
.statband { background: var(--navy-050); border-block: 1px solid var(--line-soft); }
.statband__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5);
  padding-block: var(--s-6);
}
@media (min-width: 900px) { .statband__grid { grid-template-columns: repeat(4, 1fr); } }
.stat__num {
  font-family: var(--font-ui); font-size: var(--step-3); font-weight: 800;
  color: var(--navy-800); line-height: 1.1; font-variant-numeric: tabular-nums;
}
.stat__label { font-size: var(--step--1); color: var(--ink-600); margin-top: var(--s-1); }
.stat__src { font-size: .75rem; color: var(--ink-600); margin-top: var(--s-1); }
.stat__src a { display: inline-flex; align-items: center; min-height: 44px; }
.stat__src a { color: var(--ink-600); }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: var(--s-5);
  display: flex; flex-direction: column;
  transition: border-color .18s ease-out, box-shadow .18s ease-out, transform .18s ease-out;
}
.card--link:hover { border-color: var(--navy-500); box-shadow: var(--shadow-3); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card--link:hover { transform: none; } }
.card__icon {
  width: 46px; height: 46px; border-radius: var(--radius);
  background: var(--navy-100); color: var(--navy-700);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-4); flex: 0 0 auto;
}
.card h3 { font-size: var(--step-1); margin-bottom: var(--s-2); }
.card__list li, .card p { font-family: var(--font-sans); }
.card p { font-size: .95rem; margin-bottom: var(--s-3); }
.card__foot { margin-top: auto; padding-top: var(--s-3); }
.card__link {
  font-family: var(--font-ui); font-weight: 600; font-size: .94rem;
  color: var(--navy-600); text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px;   /* tap target */
}
.card__link:hover { color: var(--navy-800); text-decoration: underline; }
[dir="rtl"] .card__link svg { transform: scaleX(-1); }

.card__list { list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.card__list li {
  position: relative; padding-inline-start: 1.6em; margin-bottom: var(--s-2);
  font-size: .94rem; color: var(--ink-600);
}
.card__list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal-600);
}

/* Lists inside the navy band need light text — the default ink is dark-on-dark. */
.section--navy .card__list li { color: #C4D4EC; }
.section--navy .card__list li::before { background: #7FD0E8; }
.section--navy .notice { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #C4D4EC; }
.section--navy .notice strong { color: #fff; }



/* ==========================================================================
   Pricing
   ========================================================================== */
.price {
  font-family: var(--font-ui); font-size: var(--step-2); font-weight: 800;
  color: var(--navy-800); font-variant-numeric: tabular-nums;
}
.price small { font-size: .55em; font-weight: 600; color: var(--ink-500); }

/* ==========================================================================
   Steps / process
   ========================================================================== */
.steps { counter-reset: step; display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: var(--s-6); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; inset-inline-start: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-700); color: #fff;
  font-family: var(--font-ui); font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: var(--step-1); margin-bottom: var(--s-2); }
.step p { font-size: .94rem; margin: 0; }

/* ==========================================================================
   Accordion (FAQ)
   ========================================================================== */
.acc { border-top: 1px solid var(--line-soft); }
.acc__item { border-bottom: 1px solid var(--line-soft); }
.acc__btn {
  width: 100%; text-align: start; background: none; border: 0;
  padding: var(--s-5) var(--s-6) var(--s-5) 0; cursor: pointer;
  font-family: var(--font-head); font-size: var(--step-1); font-weight: 600;
  color: var(--navy-900); line-height: 1.35; position: relative; min-height: 48px;
}
[dir="rtl"] .acc__btn { padding: var(--s-5) 0 var(--s-5) var(--s-6); }
.acc__btn::after {
  content: ""; position: absolute; inset-inline-end: 4px; top: 50%;
  width: 11px; height: 11px; margin-top: -7px;
  border-right: 2.5px solid var(--navy-600); border-bottom: 2.5px solid var(--navy-600);
  transform: rotate(45deg); transition: transform .2s ease-out;
}
.acc__btn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -3px; }
.acc__btn:hover { color: var(--navy-600); }
.acc__panel { padding: 0 0 var(--s-5); }
.acc__panel p:last-child { margin-bottom: 0; }
.acc__panel[hidden] { display: none; }

/* ==========================================================================
   Forms
   ========================================================================== */
.formcard {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--s-5);
  box-shadow: var(--shadow-2);
}
@media (min-width: 768px) { .formcard { padding: var(--s-6); } }

.field { margin-bottom: var(--s-4); }
.field > label {
  display: block; font-family: var(--font-ui); font-weight: 600;
  font-size: .92rem; color: var(--navy-900); margin-bottom: var(--s-2);
}
.field .req { color: var(--err-700); margin-inline-start: 2px; }
.field .hint { display: block; font-size: .82rem; color: var(--ink-500); margin-top: var(--s-1); font-weight: 400; }

.input, .select, .textarea {
  width: 100%; min-height: 48px;
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-sans); font-size: 1rem; color: var(--ink-900);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease-out, box-shadow .15s ease-out;
}
.textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23475569' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem;
}
[dir="rtl"] .select { background-position: left 1rem center; padding-right: var(--s-4); padding-left: 2.6rem; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(30,58,138,.16);
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--err-700); background: var(--err-050);
}
.field__err { display: block; font-size: .85rem; color: var(--err-700); margin-top: var(--s-2); font-weight: 600; }
.field__err:empty { display: none; }

.checkrow { display: flex; align-items: flex-start; gap: var(--s-3); margin-bottom: var(--s-4); }
.checkrow input[type="checkbox"] { width: 24px; height: 24px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--navy-600); }
.checkrow label { font-size: .9rem; color: var(--ink-600); line-height: 1.5; }

/* Honeypot. Hidden with clip, NOT with a negative offset: `left:-9999px` is
   direction-relative and pushes the scroll origin in RTL, producing a
   horizontal scrollbar on the Arabic and Urdu pages. */
.hp-field {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.form-status { margin-top: var(--s-4); }
.form-status:empty { display: none; }
.alert { padding: var(--s-4); border-radius: var(--radius); font-size: .95rem; }
.alert--ok  { background: #F0FDF4; border: 1px solid #BBF7D0; color: #14532D; }
.alert--err { background: var(--err-050); border: 1px solid #FECACA; color: #7F1D1D; }

/* ==========================================================================
   Notice / disclosure
   ========================================================================== */
.notice {
  background: var(--paper-2); border: 1px solid var(--line-soft);
  border-inline-start: 4px solid var(--teal-600);
  border-radius: var(--radius); padding: var(--s-4) var(--s-5);
  font-size: .92rem; color: var(--ink-600);
}
.notice strong { color: var(--navy-900); }
.notice p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Founder / profile
   ========================================================================== */
.profile { display: grid; gap: var(--s-6); }
@media (min-width: 860px) { .profile { grid-template-columns: 300px 1fr; align-items: start; } }
.profile__img {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-soft); background: var(--paper-3);
}
.profile__img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.profile__role {
  font-family: var(--font-ui); font-size: var(--step--1); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--teal-600);
  margin-bottom: var(--s-2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-900); color: #93A9CC; padding-block: var(--s-8) var(--s-6); font-size: .93rem; }
.footer-grid { display: grid; gap: var(--s-6); margin-bottom: var(--s-7); }
@media (min-width: 720px)  { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer h3 {
  color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: var(--s-4); font-weight: 700;
}
.site-footer a { color: #B6C8E4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0; }
.footer-list a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: var(--s-5);
  display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between;
  font-size: .85rem; color: #7C92B6;
}
.footer-legal { max-width: 78ch; font-size: .82rem; color: #7C92B6; line-height: 1.6; margin-bottom: var(--s-5); }

/* Language switcher */
.langsw { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.langsw a {
  display: inline-flex; align-items: center; padding: 10px 14px; min-height: 44px; line-height: 20px;
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius-sm);
  font-size: .85rem; color: #B6C8E4; text-decoration: none;
}
.langsw a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.langsw a[aria-current="true"] { background: #fff; color: var(--navy-900); border-color: #fff; font-weight: 600; }

/* ==========================================================================
   Reveal — MUST fail visible. Content is visible by default; JS opts in.
   (A hidden tab throttles IntersectionObserver; never hide content in CSS.)
   ========================================================================== */
.js-reveal[data-reveal="armed"] { opacity: 0; transform: translateY(12px); }
.js-reveal[data-reveal="in"] {
  opacity: 1; transform: none;
  transition: opacity .5s ease-out, transform .5s ease-out;
}
/* The escape hatch. A hidden/background tab throttles transitions as well as
   IntersectionObserver, so "in" can leave an element stuck at opacity 0 —
   the transition never completes. "off" reaches the visible state with no
   transition at all, so it cannot be throttled. */
.js-reveal[data-reveal="off"] {
  opacity: 1 !important; transform: none !important; transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal[data-reveal="armed"] { opacity: 1; transform: none; }
  .js-reveal[data-reveal="in"] { transition: none; }
}

/* ==========================================================================
   RTL
   ========================================================================== */
[dir="rtl"] body { letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; }
[dir="rtl"] .hero__badge svg { transform: scaleX(-1); }

/* Urdu needs a Nastaliq face and far more line-height than Latin. */
[lang="ur"] body, [lang="ur"] .input, [lang="ur"] .textarea, [lang="ur"] .select {
  font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', var(--font-sans);
  line-height: 2.45;
}
[lang="ur"] h1, [lang="ur"] h2, [lang="ur"] h3, [lang="ur"] h4,
[lang="ur"] .brand__name, [lang="ur"] .btn, [lang="ur"] .eyebrow {
  font-family: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', var(--font-head);
  line-height: 1.9;
}
[lang="ur"] .acc__btn, [lang="ur"] .stat__num { line-height: 1.9; }

[lang="ar"] body, [lang="ar"] .input, [lang="ar"] .textarea, [lang="ar"] .select {
  font-family: 'Noto Sans Arabic', var(--font-sans);
  line-height: 1.95;
}
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4,
[lang="ar"] .brand__name, [lang="ar"] .btn, [lang="ar"] .eyebrow {
  font-family: 'Noto Sans Arabic', sans-serif; line-height: 1.5;
}

[lang="hi"] body, [lang="hi"] .input, [lang="hi"] .textarea, [lang="hi"] .select {
  font-family: 'Noto Sans Devanagari', var(--font-sans); line-height: 1.85;
}
[lang="hi"] h1, [lang="hi"] h2, [lang="hi"] h3, [lang="hi"] h4,
[lang="hi"] .brand__name, [lang="hi"] .btn, [lang="hi"] .eyebrow {
  font-family: 'Noto Sans Devanagari', sans-serif; line-height: 1.45;
}

/* The eyebrow's wide tracking + uppercase is a Latin-only device. */
[lang="ar"] .eyebrow, [lang="ur"] .eyebrow, [lang="hi"] .eyebrow {
  text-transform: none; letter-spacing: 0;
}
[lang="ar"] .site-footer h3, [lang="ur"] .site-footer h3, [lang="hi"] .site-footer h3 {
  text-transform: none; letter-spacing: 0; font-size: .95rem;
}
[lang="ar"] .brand__tag, [lang="ur"] .brand__tag, [lang="hi"] .brand__tag {
  text-transform: none; letter-spacing: 0;
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .site-header, .site-footer, .menu-btn, .mobile-nav, .hero__cta { display: none !important; }
  body { color: #000; }
  .hero { background: none; color: #000; }
  .hero h1 { color: #000; }
}
