/* ==========================================================================
   Neopedia© Integrated Clinical Decision Support Ecosystem (CDeS) — Design System
   Preserved dark + emerald/teal palette · Self-hosted fonts · Strict CSP
   ========================================================================== */

/* ---------- Fonts (self-hosted, swap, unicode-range split) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plex-arabic-400.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/plex-arabic-600.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/plex-arabic-700.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ---------- Preserved Brand Tokens ---------- */
:root {
  --bg: hsl(214 45% 5%);
  --bg-2: hsl(214 40% 8%);
  --surface: hsl(213 40% 11% / 0.62);
  --surface-solid: hsl(213 38% 10%);
  --surface-hi: hsl(213 36% 15% / 0.72);
  --line: hsl(215 25% 65% / 0.13);
  --line-strong: hsl(215 25% 65% / 0.24);
  --text: hsl(210 33% 94%);
  --text-2: hsl(214 22% 78%);
  --muted: hsl(215 16% 62%);
  --teal: hsl(172 66% 50%);
  --teal-deep: hsl(174 72% 38%);
  --sky: hsl(199 89% 60%);
  --ok: hsl(158 64% 52%);
  --warn: hsl(43 96% 58%);
  --danger: hsl(0 84% 66%);
  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 24px;
  --shadow: 0 1px 0 hsl(0 0% 100% / 0.05) inset, 0 28px 64px -28px hsl(214 80% 2% / 0.88);
  --shadow-console: 0 1px 0 hsl(0 0% 100% / 0.07) inset, 0 40px 96px -34px hsl(214 80% 2% / 0.96);
  --font: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --container: 1120px;
  --header-h: 60px;
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(940px 560px at 50% -12%, hsl(172 66% 40% / 0.14), transparent 62%),
    radial-gradient(680px 500px at 10% 44%, hsl(199 89% 50% / 0.065), transparent 62%),
    var(--grain);
  background-repeat: no-repeat, no-repeat, repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

/* ---------- Utilities ---------- */
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -64px; z-index: 100;
  padding: 10px 18px; border-radius: 999px; background: var(--teal);
  color: hsl(214 45% 6%); font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; }
.ltr-island { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.text-teal { color: var(--teal); }
.text-ok { color: var(--ok); }
.text-sky { color: var(--sky); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .88rem; }

.h1 {
  font-size: clamp(2.05rem, 1.25rem + 3.4vw, 3.8rem);
  line-height: 1.07;
  letter-spacing: -0.036em;
  font-weight: 800;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(1.55rem, 1.15rem + 1.85vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.028em;
  font-weight: 750;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(1.1rem, 1.02rem + .38vw, 1.3rem);
  line-height: 1.28;
  letter-spacing: -0.018em;
  font-weight: 700;
}
html[lang="ar"] .h1,
html[lang="ar"] .h2,
html[lang="ar"] .h3 {
  letter-spacing: 0;
  line-height: 1.36;
}
.lead { font-size: clamp(.98rem, .94rem + .26vw, 1.12rem); color: var(--text-2); max-width: 64ch; line-height: 1.65; }

.section { padding-block: clamp(54px, 6.8vw, 100px); position: relative; }
.section-tight-top { padding-top: clamp(28px, 3.8vw, 48px); }
.section-compact { padding-block: clamp(28px, 4vw, 52px); }
.section-head { display: grid; gap: 12px; max-width: 780px; margin-bottom: clamp(26px, 3.8vw, 44px); }
.section-head.center { text-align: center; margin-inline: auto; justify-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: .95rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease-apple), background-color .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-pill { border-radius: 999px; }

.btn-primary {
  background: linear-gradient(180deg, hsl(172 66% 52%), hsl(174 72% 40%));
  color: hsl(214 50% 6%);
  box-shadow: 0 1px 0 hsl(0 0% 100% / .35) inset, 0 12px 30px -12px hsl(172 66% 45% / .6);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 hsl(0 0% 100% / .38) inset, 0 18px 38px -14px hsl(172 66% 45% / .76);
}

.btn-ghost {
  background: hsl(213 36% 15% / .52);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: hsl(213 36% 19% / .74);
  border-color: hsl(215 25% 70% / .36);
}

.btn-nav {
  min-height: 36px;
  padding: 7px 15px;
  font-size: .84rem;
  font-weight: 700;
  box-shadow: 0 1px 0 hsl(0 0% 100% / .3) inset, 0 8px 20px -10px hsl(172 66% 45% / .55);
}
.btn-hero {
  min-height: 52px;
  padding: 14px 28px;
  font-size: .98rem;
}

/* ---------- Surfaces & Badges ---------- */
.glass {
  background: linear-gradient(180deg, hsl(213 40% 13% / .64), hsl(213 42% 9% / .7)), var(--grain);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
}

.status-chip,
.badge-ok,
.badge-teal,
.badge-sky,
.badge-warn,
.badge-danger,
.pill-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.status-ok, .badge-ok { background: hsl(158 64% 52% / .13); color: var(--ok); border: 1px solid hsl(158 64% 52% / .26); }
.status-teal, .badge-teal, .pill-metric { background: hsl(172 66% 50% / .12); color: var(--teal); border: 1px solid hsl(172 66% 50% / .26); }
.badge-sky { background: hsl(199 89% 60% / .13); color: var(--sky); border: 1px solid hsl(199 89% 60% / .26); }
.badge-warn { background: hsl(43 96% 58% / .12); color: var(--warn); border: 1px solid hsl(43 96% 58% / .28); }
.badge-danger { background: hsl(0 84% 66% / .13); color: var(--danger); border: 1px solid hsl(0 84% 66% / .3); }

/* ---------- 1. Minimal Sticky Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: hsl(214 45% 5% / .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-name {
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.025em;
  color: var(--text);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}
.lang-toggle {
  min-height: 36px;
  min-width: 58px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: hsl(213 36% 14% / .62);
  color: var(--text);
  cursor: pointer;
  font-weight: 650;
  font-size: .82rem;
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease;
}
.lang-toggle:hover {
  background: hsl(213 36% 20% / .76);
  border-color: hsl(215 25% 70% / .36);
}
.lang-toggle svg { width: 15px; height: 15px; color: var(--teal); flex: none; }

/* ---------- 2. Hero Section ---------- */
.hero {
  padding-top: clamp(42px, 6.2vw, 84px);
  padding-bottom: clamp(18px, 2.5vw, 32px);
}
.hero-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 3.8vw, 40px);
  justify-items: center;
}
.hero-copy {
  display: grid;
  gap: 20px;
  justify-items: center;
  text-align: center;
  width: 100%;
  min-width: 0;
  max-width: 900px;
}
.hero-sub {
  font-size: clamp(1rem, .92rem + .38vw, 1.2rem);
  font-weight: 450;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 68ch;
  text-wrap: balance;
}
html[lang="ar"] .hero-sub {
  line-height: 1.82;
}
.hero-cta-wrap {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding-top: 4px;
  max-width: 100%;
}
.hero-meta {
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .01em;
}

/* ---------- 3. Horizontal Scrollable Segmented Tab Bar ---------- */
.view-tabs-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.view-tabs-scroll {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px;
}
.view-tabs-scroll::-webkit-scrollbar {
  display: none;
}
.view-tablist {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, hsl(213 42% 11% / .86), hsl(214 45% 7% / .92));
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 hsl(0 0% 100% / .06) inset, 0 18px 40px -22px hsl(214 80% 2% / .9);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.view-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  font-size: .9rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .24s var(--ease-apple), border-color .24s ease, color .24s ease, box-shadow .24s ease;
}
.view-tab svg {
  width: 16px;
  height: 16px;
  flex: none;
  opacity: .75;
  transition: opacity .2s ease, color .2s ease;
}
.view-tab:hover {
  color: var(--text);
  background: hsl(213 36% 16% / .52);
}
.view-tab[aria-selected="true"] {
  background: linear-gradient(180deg, hsl(172 66% 50% / .2), hsl(174 72% 38% / .14));
  border-color: hsl(172 66% 50% / .46);
  color: var(--text);
  box-shadow: 0 1px 0 hsl(0 0% 100% / .12) inset, 0 10px 24px -14px hsl(172 66% 45% / .55);
}
.view-tab[aria-selected="true"] svg {
  color: var(--teal);
  opacity: 1;
}

.view-panel[hidden] {
  display: none;
}

/* ---------- 4. Core Pillar Spotlight: Neopedia R (Integrated EHR) ---------- */
.role-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-bottom: clamp(24px, 3.2vw, 36px);
}
.role-chip {
  font-size: .8rem;
  font-weight: 650;
  padding: 6px 14px;
  border-radius: 999px;
  background: hsl(213 38% 12% / .78);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.role-sep {
  color: var(--teal);
  font-weight: 700;
  opacity: .7;
}
.telehealth-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: clamp(22px, 3vw, 34px);
  padding: 10px 18px;
  border-radius: 999px;
  background: hsl(172 66% 50% / .08);
  border: 1px solid hsl(172 66% 50% / .25);
  color: var(--text);
  font-size: .84rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.45;
}
.telehealth-banner svg {
  width: 17px;
  height: 17px;
  color: var(--teal);
  flex: none;
}

.ehr-grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 22px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .ehr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ehr-card {
  padding: clamp(22px, 2.6vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .24s var(--ease-apple), border-color .24s ease;
}
.ehr-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
.ehr-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ehr-index {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: .78rem;
  font-weight: 800;
  color: var(--teal);
  background: hsl(172 66% 50% / .11);
  border: 1px solid hsl(172 66% 50% / .25);
}
.ehr-desc {
  font-size: .92rem;
  color: var(--text-2);
  line-height: 1.62;
  flex: 1 1 auto;
}
.ehr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.ehr-tag {
  font-size: .74rem;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 999px;
  background: hsl(214 46% 6% / .82);
  border: 1px solid var(--line-strong);
  color: var(--teal);
}
.ehr-flow-pill {
  padding: 9px 12px;
  border-radius: 12px;
  background: hsl(199 89% 60% / .08);
  border: 1px solid hsl(199 89% 60% / .22);
  font-size: .78rem;
  font-weight: 650;
  color: var(--sky);
  line-height: 1.4;
}
.ehr-flow-ok {
  background: hsl(158 64% 52% / .09);
  border-color: hsl(158 64% 52% / .24);
  color: var(--ok);
}

/* ---------- 5. Razor-Sharp Interactive Clinical Console ---------- */
.console-shell {
  width: 100%;
  overflow: hidden;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-console);
}
.console-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 13px 20px;
  background: hsl(214 48% 6% / .85);
  border-bottom: 1px solid var(--line);
}
.console-brand-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.console-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px hsl(158 64% 52% / .65);
  flex: none;
}
.console-title { font-weight: 800; font-size: .88rem; color: var(--text); }
.console-sep { color: var(--muted); }
.console-unit { font-size: .82rem; color: var(--text-2); }
.console-status-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.console-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 10px;
  background: hsl(214 44% 7% / .72);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) {
  .console-tabs { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1020px) {
  .console-tabs { grid-template-columns: repeat(4, 1fr); }
}
.console-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  text-align: start;
  cursor: pointer;
  font-size: .83rem;
  font-weight: 600;
  line-height: 1.3;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.console-tab:hover {
  background: hsl(213 36% 15% / .56);
  color: var(--text);
}
.console-tab[aria-selected="true"] {
  background: hsl(172 66% 50% / .12);
  border-color: hsl(172 66% 50% / .38);
  color: var(--text);
}
.tab-code {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  color: var(--teal);
  flex: none;
}
.tab-text { min-width: 0; }

.console-panel {
  padding: clamp(18px, 2.8vw, 28px);
  display: grid;
  gap: 18px;
}
.console-panel[hidden] { display: none; }

.panel-split {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 920px) {
  .panel-split { grid-template-columns: minmax(0, 1fr) 290px; }
}
.panel-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.panel-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-kicker {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 3px;
}
html[lang="ar"] .panel-kicker { letter-spacing: 0; font-size: .82rem; }
.panel-h3 {
  font-size: clamp(1rem, .95rem + .3vw, 1.18rem);
  font-weight: 750;
  color: var(--text);
  line-height: 1.3;
}

/* Panel 1: Rx Table + Crisp Bedside Companion Frame */
.rx-table {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: hsl(214 46% 6% / .72);
}
.rx-row {
  display: grid;
  gap: 6px 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--text-2);
  align-items: center;
}
.rx-row:first-child { border-top: 0; }
.rx-head {
  display: none;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: hsl(213 38% 12% / .68);
}
.rx-drug { font-weight: 700; color: var(--text); }
@media (min-width: 680px) {
  .rx-row { grid-template-columns: 1.25fr 1.15fr 1.3fr auto; }
  .rx-head { display: grid; }
}

.phone-frame {
  padding: 16px;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, hsl(214 46% 8%), hsl(214 48% 5%));
  box-shadow: 0 1px 0 hsl(0 0% 100% / .08) inset, 0 22px 46px -24px hsl(214 80% 2% / .95);
  display: grid;
  gap: 14px;
}
.phone-notch {
  width: 68px;
  height: 5px;
  border-radius: 999px;
  background: hsl(215 25% 65% / .22);
  margin-inline: auto;
}
.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  font-weight: 750;
}
.phone-kpi-card {
  padding: 16px;
  border-radius: 16px;
  background: hsl(172 66% 50% / .09);
  border: 1px solid hsl(172 66% 50% / .25);
  display: grid;
  gap: 4px;
  text-align: center;
}
.phone-kpi-lbl { font-size: .74rem; font-weight: 650; color: var(--text-2); }
.phone-kpi-val { font-size: 2.15rem; font-weight: 850; line-height: 1.05; color: var(--teal); letter-spacing: -0.03em; }
.phone-kpi-sub { font-size: .74rem; color: var(--muted); }
.phone-mini-list { display: grid; gap: 8px; }
.phone-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 10px;
  background: hsl(213 38% 12% / .65);
  border: 1px solid var(--line);
  font-size: .78rem;
  color: var(--text-2);
}

/* Panel 2: EHR Clinical Telemetry + 6 Managerial Dashboards */
.telemetry-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .telemetry-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .telemetry-strip { grid-template-columns: repeat(4, 1fr); }
}
.tele-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: hsl(214 46% 6% / .72);
  border: 1px solid var(--line);
  display: grid;
  gap: 3px;
}
.tele-item span { font-size: .74rem; color: var(--muted); }
.tele-item strong { font-size: .84rem; font-weight: 700; color: var(--text); line-height: 1.38; }

.module-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .module-grid { grid-template-columns: repeat(3, 1fr); }
}
.module-card {
  padding: 15px;
  border-radius: 16px;
  background: hsl(213 38% 11% / .62);
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
  align-content: start;
}
.module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.module-idx {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
}
.module-card strong { font-size: .92rem; color: var(--text); }
.module-card p { font-size: .8rem; color: var(--text-2); line-height: 1.48; }

/* Panel 3: CDA Governance & 9 Quick Chips */
.cda-flow {
  display: grid;
  gap: 10px;
}
.cda-row {
  display: grid;
  gap: 8px 12px;
  padding: 13px 15px;
  border-radius: 14px;
  background: hsl(214 46% 6% / .72);
  border: 1px solid var(--line);
  align-items: center;
}
@media (min-width: 720px) {
  .cda-row { grid-template-columns: auto 1fr auto; }
}
.cda-desc { font-size: .85rem; color: var(--text-2); line-height: 1.45; }
.export-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: hsl(172 66% 50% / .08);
  border: 1px solid hsl(172 66% 50% / .22);
}
.export-strip strong { display: block; font-size: .9rem; color: var(--text); }
.export-strip p { font-size: .8rem; color: var(--text-2); }

.chips-panel {
  padding: 16px;
  border-radius: 18px;
  background: hsl(214 46% 6% / .72);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.chips-sub { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.q-chip {
  font-size: .76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: hsl(213 38% 14% / .85);
  border: 1px solid var(--line-strong);
  color: var(--text);
}

/* Panel 4: Active PV Engine & I-PASS Handoffs */
.pv-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .pv-grid { grid-template-columns: 1.2fr 1fr; }
}
.pv-box {
  padding: 18px;
  border-radius: 18px;
  background: hsl(214 46% 6% / .72);
  border: 1px solid var(--line);
  display: grid;
  gap: 14px;
  align-content: start;
}
.cluster-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cluster-pill {
  font-size: .76rem;
  font-weight: 650;
  padding: 5px 11px;
  border-radius: 999px;
  background: hsl(172 66% 50% / .1);
  border: 1px solid hsl(172 66% 50% / .25);
  color: var(--teal);
}
.pv-list {
  display: grid;
  gap: 9px;
  font-size: .84rem;
  color: var(--text-2);
  line-height: 1.55;
}
.pv-list strong { color: var(--text); }
.ops-metrics { display: grid; gap: 10px; }
.ops-card {
  padding: 13px 14px;
  border-radius: 14px;
  background: hsl(213 38% 11% / .72);
  border: 1px solid var(--line);
  display: grid;
  gap: 3px;
}
.ops-card span { font-size: .75rem; font-weight: 650; color: var(--teal); }
.ops-card strong { font-size: .86rem; font-weight: 650; color: var(--text); line-height: 1.4; }

/* ---------- 5B. Adaptive Hybrid Engine, CPC+5RC & Strict Anti-AI Safety ---------- */
.arch-shell {
  padding: clamp(24px, 3.4vw, 38px);
  display: grid;
  gap: clamp(20px, 2.8vw, 28px);
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, hsl(213 42% 13% / .78), hsl(214 46% 7% / .86)),
    var(--grain);
}
.arch-head {
  display: grid;
  gap: 10px;
  text-align: center;
  justify-items: center;
  max-width: 780px;
  margin-inline: auto;
}
.hybrid-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .hybrid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1020px) {
  .hybrid-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.hybrid-card {
  padding: 18px 18px 20px;
  border-radius: 16px;
  background: hsl(214 46% 6% / .78);
  border: 1px solid var(--line-strong);
  display: grid;
  gap: 8px;
  align-content: start;
  transition: transform .22s var(--ease-apple), border-color .22s ease;
}
.hybrid-card:hover {
  transform: translateY(-2px);
  border-color: hsl(172 66% 50% / .42);
}
.hybrid-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hybrid-num {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 800;
  color: var(--teal);
  padding: 3px 8px;
  border-radius: 8px;
  background: hsl(172 66% 50% / .12);
  border: 1px solid hsl(172 66% 50% / .26);
}
.hybrid-title {
  font-size: .98rem;
  font-weight: 750;
  color: var(--text);
  line-height: 1.32;
}
.hybrid-desc {
  font-size: .84rem;
  color: var(--text-2);
  line-height: 1.56;
}

.cpc-strip {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2.2vw, 22px);
  border-radius: 18px;
  background: hsl(199 89% 60% / .07);
  border: 1px solid hsl(199 89% 60% / .24);
  align-items: center;
}
@media (min-width: 860px) {
  .cpc-strip { grid-template-columns: minmax(0, 1fr) auto; gap: 22px; }
}
.cpc-copy { display: grid; gap: 6px; min-width: 0; }
.cpc-title { font-size: 1rem; font-weight: 750; color: var(--text); line-height: 1.35; }
.cpc-desc { font-size: .88rem; color: var(--text-2); line-height: 1.6; }
.cpc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.anti-ai-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 16px;
  align-items: start;
  padding: clamp(16px, 2.2vw, 22px);
  border-radius: 18px;
  background: linear-gradient(135deg, hsl(172 66% 50% / .11), hsl(214 48% 6% / .9));
  border: 1px solid hsl(172 66% 50% / .36);
}
.anti-ai-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: hsl(172 66% 50% / .14);
  border: 1px solid hsl(172 66% 50% / .34);
  color: var(--teal);
  flex: none;
}
.anti-ai-icon svg { width: 20px; height: 20px; }
.anti-ai-body { display: grid; gap: 6px; min-width: 0; }
.anti-ai-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.anti-ai-title {
  font-size: .98rem;
  font-weight: 750;
  color: var(--text);
  line-height: 1.35;
}
.anti-ai-text {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.62;
}
.anti-ai-compact {
  max-width: 940px;
  margin-inline: auto;
  margin-bottom: clamp(18px, 2.4vw, 24px);
}

/* Official Sub-Module Taxonomy Strip */
.taxonomy-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: clamp(22px, 3vw, 32px);
}
.tax-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: hsl(213 38% 12% / .78);
  border: 1px solid var(--line-strong);
  font-size: .78rem;
  color: var(--text-2);
  font-weight: 600;
}
.tax-pill strong {
  color: var(--teal);
  font-weight: 800;
}

/* ---------- 6. Second Sub-Headline & 9 Core Capabilities ---------- */
.cap-title { color: var(--text); }
.cap-grid {
  display: grid;
  gap: 12px;
  max-width: 1040px;
  width: 100%;
  margin-inline: auto;
}
.cap-card {
  padding: clamp(16px, 2.2vw, 22px);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  transition: border-color .22s ease, background-color .22s ease, transform .22s var(--ease-apple);
}
.cap-card:hover {
  border-color: var(--line-strong);
}
.cap-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 800;
  color: var(--teal);
  background: hsl(172 66% 50% / .11);
  border: 1px solid hsl(172 66% 50% / .25);
}
.cap-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.cap-name {
  font-size: clamp(.98rem, .94rem + .22vw, 1.08rem);
  font-weight: 750;
  color: var(--text);
  line-height: 1.35;
}
.cap-desc {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.62;
}
@media (min-width: 860px) {
  .cap-body {
    grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
    gap: 24px;
    align-items: baseline;
  }
}

/* ---------- 7. Proven Clinical Superiority Comparison Strip ---------- */
.compare-strip {
  overflow: hidden;
}
.compare-head {
  display: none;
  grid-template-columns: 1.05fr 1.25fr 1.15fr;
  gap: 20px;
  padding: 14px 24px;
  background: hsl(214 48% 6% / .82);
  border-bottom: 1px solid var(--line);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
html[lang="ar"] .compare-head { letter-spacing: 0; font-size: .84rem; }
.compare-row {
  display: grid;
  gap: 8px 20px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.compare-row:first-of-type { border-top: 0; }
.compare-metric {
  font-size: .95rem;
  font-weight: 750;
  color: var(--text);
}
.compare-neo {
  font-size: .92rem;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  background: hsl(172 66% 50% / .09);
  border: 1px solid hsl(172 66% 50% / .24);
}
.compare-neo strong { color: var(--teal); }
.compare-trad {
  font-size: .9rem;
  color: var(--muted);
  padding: 6px 4px;
}
.compare-trad strong { color: var(--text-2); }

@media (min-width: 780px) {
  .compare-head { display: grid; }
  .compare-row {
    grid-template-columns: 1.05fr 1.25fr 1.15fr;
    padding: 18px 24px;
  }
  .compare-row:first-of-type { border-top: 0; }
}

/* ---------- 8. Bi-Directional DTP ↔ PV Bridge & Benchmark CTA ---------- */
.bridge-strip {
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  gap: 22px;
}
.bridge-head {
  display: grid;
  gap: 8px;
}
.bridge-title {
  font-size: clamp(1.35rem, 1.08rem + 1.2vw, 1.95rem);
}
.bridge-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 840px) {
  .bridge-grid { grid-template-columns: repeat(3, 1fr); }
}
.bridge-node {
  padding: 18px 20px;
  border-radius: 16px;
  background: hsl(214 46% 6% / .72);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  align-content: start;
}
.bridge-dir {
  font-size: .78rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: .02em;
}
.bridge-card-title {
  font-size: .98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.bridge-node p {
  font-size: .87rem;
  color: var(--text-2);
  line-height: 1.58;
}

.bench-promo {
  margin-top: clamp(22px, 3vw, 32px);
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  border-color: hsl(172 66% 50% / .28);
  background: linear-gradient(135deg, hsl(172 66% 50% / .1), hsl(213 42% 9% / .76)), var(--grain);
}
.bench-promo-copy {
  display: grid;
  gap: 6px;
  max-width: 560px;
}
.bench-promo-desc {
  font-size: .92rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* ---------- 9. Interactive Clinical Benchmark Challenge (Tab 2) ---------- */
.bench-card {
  max-width: 940px;
  margin-inline: auto;
  overflow: hidden;
}
.bench-pane {
  padding: clamp(22px, 3.6vw, 40px);
  display: grid;
  gap: clamp(20px, 2.8vw, 28px);
}
.bench-pane[hidden] { display: none; }

.bench-lead {
  text-align: center;
  font-size: clamp(1rem, .95rem + .28vw, 1.12rem);
  color: var(--text-2);
  max-width: 58ch;
  margin-inline: auto;
  text-wrap: balance;
}
.bench-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.bench-stat {
  background: hsl(214 44% 7% / .85);
  padding: 16px 18px;
  display: grid;
  gap: 3px;
  text-align: center;
}
.bench-stat strong {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.bench-stat span { font-size: .8rem; color: var(--muted); }
@media (min-width: 640px) {
  .bench-stats { grid-template-columns: repeat(3, 1fr); }
}

.bench-selector-wrap { display: grid; gap: 12px; }
.bench-selector-label {
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
html[lang="ar"] .bench-selector-label { letter-spacing: 0; font-size: .9rem; }

.bench-case-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
@media (min-width: 540px) {
  .bench-case-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 820px) {
  .bench-case-grid { grid-template-columns: repeat(3, 1fr); }
}
.case-btn {
  display: grid;
  gap: 4px;
  text-align: start;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: hsl(213 38% 11% / .58);
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.case-btn:hover {
  background: hsl(213 36% 16% / .72);
  border-color: var(--line-strong);
}
.case-btn[aria-checked="true"] {
  background: hsl(172 66% 50% / .12);
  border-color: hsl(172 66% 50% / .46);
}
.case-btn-num {
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
}
html[lang="ar"] .case-btn-num { letter-spacing: 0; font-size: .82rem; }
.case-btn-name {
  font-size: .92rem;
  font-weight: 650;
  color: var(--text);
  line-height: 1.3;
}
.case-btn-unit { font-size: .76rem; color: var(--muted); }

.bench-case-preview {
  text-align: center;
  font-size: .88rem;
  color: var(--text-2);
  padding: 12px 16px;
  border-radius: 12px;
  background: hsl(214 44% 7% / .62);
  border: 1px solid var(--line);
}
.bench-ready-actions { display: flex; justify-content: center; }
.bench-back-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(22px, 3vw, 32px);
}

/* Active state */
.bench-live-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.bench-live-meta { display: grid; gap: 6px; min-width: 0; }
.bench-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: hsl(172 66% 50% / .12);
  color: var(--teal);
}
html[lang="ar"] .bench-badge { letter-spacing: 0; font-size: .82rem; }
.bench-active-title {
  font-size: clamp(1.06rem, 1rem + .4vw, 1.28rem);
  font-weight: 750;
  color: var(--text);
  line-height: 1.3;
}

.bench-timer-box {
  display: grid;
  justify-items: end;
  gap: 2px;
  padding: 10px 16px;
  border-radius: 14px;
  background: hsl(214 46% 6% / .82);
  border: 1px solid var(--line-strong);
  min-width: 152px;
}
html[dir="rtl"] .bench-timer-box { justify-items: start; }
.bench-timer-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
html[lang="ar"] .bench-timer-label { letter-spacing: 0; font-size: .78rem; }
.bench-timer {
  font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.bench-timer-hint { font-size: .74rem; color: var(--warn); min-height: 1.1em; }

.bench-case-brief {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: hsl(214 44% 7% / .72);
  border: 1px solid var(--line);
}
.bench-patient-text { font-size: .98rem; font-weight: 600; color: var(--text); line-height: 1.55; }
.bench-labs { display: flex; flex-wrap: wrap; gap: 8px; }
.bench-labs[hidden] { display: none; }
.bench-lab-chip {
  font-size: .82rem;
  font-weight: 650;
  padding: 5px 11px;
  border-radius: 999px;
  background: hsl(213 38% 14% / .85);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.bench-notes {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  font-size: .86rem;
  color: var(--text-2);
}
.bench-notes[hidden] { display: none; }
.bench-notes strong { color: var(--sky); font-weight: 700; }

.bench-orders-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.bench-directive { font-size: .92rem; font-weight: 700; color: var(--teal); }
.bench-scratch-note { font-size: .8rem; color: var(--muted); }

.bench-orders {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: hsl(214 44% 6% / .55);
}
.bench-milestone {
  padding: 11px 16px;
  font-size: .86rem;
  font-weight: 650;
  color: var(--warn);
  background: hsl(43 96% 58% / .07);
  border-top: 1px solid var(--line);
}
.bench-milestone:first-child { border-top: 0; }
.bench-subhead {
  padding: 11px 16px;
  font-size: .86rem;
  font-weight: 700;
  color: var(--sky);
  background: hsl(199 89% 60% / .07);
  border-top: 1px solid var(--line);
}
.bench-subhead:first-child { border-top: 0; }

.bench-order-row {
  display: grid;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.bench-order-row:first-child { border-top: 0; }
.bench-order-main {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: baseline;
}
.bench-order-num { font-size: .78rem; font-weight: 750; color: var(--muted); font-variant-numeric: tabular-nums; }
.bench-order-label { font-size: .93rem; color: var(--text); line-height: 1.45; }
.bench-input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: hsl(214 45% 5% / .88);
  color: var(--text);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.bench-input::placeholder { color: var(--muted); font-size: .84rem; }
.bench-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px hsl(172 66% 50% / .16);
}
@media (min-width: 720px) {
  .bench-order-row { grid-template-columns: 1fr 220px; gap: 16px; }
}

.bench-active-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding-top: 4px;
}
.bench-active-actions .btn { flex: 1 1 230px; max-width: 340px; white-space: normal; text-align: center; }

/* Result state */
.bench-result-head {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}
.bench-result-title { font-size: clamp(1.22rem, 1.05rem + .75vw, 1.6rem); }
.bench-result-sub { font-size: .94rem; color: var(--text-2); max-width: 56ch; }

.bench-compare {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2.5vw, 26px);
  border-radius: 18px;
  background: hsl(214 44% 7% / .72);
  border: 1px solid var(--line);
}
.bench-row {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.bench-row:first-child { padding-top: 0; border-top: 0; }
.bench-row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.bench-row-name { font-size: .92rem; font-weight: 600; color: var(--text-2); }
.bench-row-val { font-size: 1.08rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.bench-val-teal { color: var(--teal); }
.bench-row-meta { font-size: .8rem; color: var(--muted); }

/* Native <progress> meters — strict CSP compliant */
.bench-meter {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: hsl(213 38% 14%);
}
.bench-meter::-webkit-progress-bar { background: hsl(213 38% 14%); border-radius: 999px; }
.bench-meter::-webkit-progress-value { border-radius: 999px; transition: width .4s ease; }
.bench-meter::-moz-progress-bar { border-radius: 999px; }
.bench-meter-user::-webkit-progress-value { background: var(--sky); }
.bench-meter-user::-moz-progress-bar { background: var(--sky); }
.bench-meter-trad::-webkit-progress-value { background: hsl(215 18% 48%); }
.bench-meter-trad::-moz-progress-bar { background: hsl(215 18% 48%); }
.bench-meter-neo::-webkit-progress-value { background: var(--teal); }
.bench-meter-neo::-moz-progress-bar { background: var(--teal); }

.bench-takeaway {
  display: grid;
  gap: 8px;
  padding: clamp(16px, 2.4vw, 22px);
  border-radius: 16px;
  background: hsl(172 66% 50% / .06);
  border: 1px solid hsl(172 66% 50% / .22);
}
.bench-takeaway-title { font-size: .95rem; font-weight: 750; color: var(--teal); }
.bench-takeaway-body { font-size: .92rem; color: var(--text-2); line-height: 1.65; }

.bench-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.bench-result-actions .btn { min-width: 172px; }

/* ---------- 10. Minimal Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 34px 40px;
  background: hsl(214 46% 4% / .62);
}
.footer-minimal {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}
.footer-copy { font-size: .88rem; font-weight: 650; color: var(--text-2); }
.footer-disc { font-size: .78rem; color: var(--muted); max-width: 68ch; line-height: 1.55; }

/* ---------- 11. Slower, Silky Apple-Style Scroll-Reveal Motion ---------- */
.reveal-ready .hero-reveal,
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1150ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1150ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-ready .hero-reveal.is-visible,
.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Generous 110ms staggered increments (strict CSP — zero inline styles) */
.reveal-ready .d-1 { transition-delay: 0ms; }
.reveal-ready .d-2 { transition-delay: 110ms; }
.reveal-ready .d-3 { transition-delay: 220ms; }
.reveal-ready .d-4 { transition-delay: 330ms; }
.reveal-ready .d-5 { transition-delay: 440ms; }
.reveal-ready .d-6 { transition-delay: 550ms; }
.reveal-ready .d-7 { transition-delay: 660ms; }
.reveal-ready .d-8 { transition-delay: 770ms; }
.reveal-ready .d-9 { transition-delay: 880ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready .hero-reveal,
  .reveal-ready .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition-delay: 0ms !important;
  }
}

/* ---------- 404 Page ---------- */
.nf-wrap { min-height: calc(100vh - var(--header-h) - 100px); display: grid; place-items: center; padding-block: 48px; }
.nf-card { padding: clamp(28px, 5vw, 52px); max-width: 580px; text-align: center; display: grid; gap: 18px; justify-items: center; }
.nf-code { font-size: clamp(4rem, 3rem + 6vw, 6.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--teal); font-variant-numeric: tabular-nums; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Small Screens Fine-Tuning (<= 440px) ---------- */
@media (max-width: 440px) {
  .container { width: min(100% - 24px, var(--container)); }
  .brand { gap: 6px; }
  .brand svg { width: 24px; height: 24px; }
  .brand-name { font-size: .92rem; }
  .header-actions { gap: 6px; }
  .lang-toggle { min-width: 48px; padding: 0 8px; font-size: .76rem; }
  .btn-nav { padding: 7px 10px; font-size: .75rem; }
  .btn-hero { padding: 13px 18px; font-size: .9rem; white-space: normal; text-align: center; }
  .view-tablist { gap: 3px; padding: 4px; }
  .view-tab { min-height: 40px; padding: 8px 8px; gap: 4px; font-size: .7rem; }
  .view-tab svg { width: 13px; height: 13px; }
  .telehealth-banner { border-radius: 16px; padding: 12px 14px; font-size: .8rem; }
  .arch-shell { padding: 18px 14px; }
  .anti-ai-banner { grid-template-columns: 1fr; padding: 16px 14px; }
  .pill-metric { white-space: normal; text-align: start; }
  .console-topbar { padding: 12px 14px; }
  .console-panel { padding: 14px; }
  .bench-timer-box { width: 100%; justify-items: start; }
  .bench-promo { justify-content: center; text-align: center; }
  .bench-promo .btn-hero { width: 100%; }
  .role-sep { display: none; }
}
