/* Dktor Flagship Website & Legal Hub: "Porcelain & Pulse" 3D Clinical Design System.
   Matches lib/design/tokens.dart & lib/design/widgets/orb.dart.
   Logical properties throughout so English (LTR), Arabic (RTL) and Kurdish (RTL)
   mirror seamlessly. Bundled fonts & screenshots, zero scripts, strict CSP. */

@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('fonts/Manrope-Regular.ttf') format('truetype'); unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('fonts/Manrope-Bold.ttf') format('truetype'); unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url('fonts/Manrope-ExtraBold.ttf') format('truetype'); unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'Noto Sans Arabic'; font-weight: 400; font-display: swap; src: url('fonts/NotoSansArabic-Regular.ttf') format('truetype'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Noto Sans Arabic'; font-weight: 700; font-display: swap; src: url('fonts/NotoSansArabic-Bold.ttf') format('truetype'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Noto Sans Arabic'; font-weight: 800; font-display: swap; src: url('fonts/NotoSansArabic-ExtraBold.ttf') format('truetype'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  color-scheme: light;
  --canvas: #f4f1eb;
  --canvas-deep: #e8e2d6;
  --surface: #ffffff;
  --surface-hi: #fcfbf8;
  --surface-tint: #eef5f2;
  --text: #0b201d;
  --text-dim: #3f524e;
  --text-faint: #62736e;
  --pine: #0d5c50;
  --pine-deep: #073b33;
  --pine-soft: #ddefea;
  --mint: #52cbae;
  --mint-hi: #6be3c6;
  --coral: #f2603f;
  --coral-deep: #c23f22;
  --volt: #0d5c50;
  --on-volt: #ffffff;
  --accent-text: #0d5c50;
  --hairline: rgba(11, 32, 29, 0.09);
  --hairline-strong: rgba(11, 32, 29, 0.18);
  --bevel-top: rgba(255, 255, 255, 0.92);
  --bevel-lip: rgba(11, 32, 29, 0.08);
  --shadow: rgba(14, 42, 37, 0.14);
  --shadow-strong: rgba(9, 30, 26, 0.24);
  --glow-a: rgba(82, 203, 174, 0.22);
  --glow-b: rgba(242, 96, 63, 0.1);
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --sans: 'Manrope', 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --measure: 52rem;
  --container: 78rem;
  --r-card: 24px;
  --r-lg: 32px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --canvas: #0b1715;
    --canvas-deep: #07100e;
    --surface: #12221f;
    --surface-hi: #172b27;
    --surface-tint: #152925;
    --text: #eaf2ef;
    --text-dim: #a8bab5;
    --text-faint: #7b908a;
    --pine: #198271;
    --pine-deep: #0b4a40;
    --pine-soft: rgba(107, 227, 198, 0.14);
    --volt: #6be3c6;
    --on-volt: #07100e;
    --accent-text: #6be3c6;
    --hairline: rgba(255, 255, 255, 0.09);
    --hairline-strong: rgba(255, 255, 255, 0.18);
    --bevel-top: rgba(255, 255, 255, 0.12);
    --bevel-lip: rgba(0, 0, 0, 0.45);
    --shadow: rgba(0, 0, 0, 0.5);
    --shadow-strong: rgba(0, 0, 0, 0.68);
    --glow-a: rgba(107, 227, 198, 0.12);
    --glow-b: rgba(242, 96, 63, 0.09);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(64rem 34rem at 12% -4%, var(--glow-a), transparent 68%),
    radial-gradient(52rem 28rem at 92% 4%, var(--glow-b), transparent 68%),
    var(--canvas);
  background-attachment: fixed;
  overflow-x: hidden;
}
:lang(ar) body, :lang(ckb) body { line-height: 1.85; }
::selection { background: var(--volt); color: var(--on-volt); }

a { color: var(--accent-text); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--volt);
  color: var(--on-volt);
  font-weight: 800;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* ── top navigation bar ── */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--canvas) 84%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-block-end: 1px solid var(--hairline);
}
.top__in {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  box-shadow: 0 8px 20px -6px var(--shadow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.top__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin-inline-start: auto;
}
.top__nav a {
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 700;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.top__nav a:hover {
  color: var(--text);
  background: var(--hairline);
}
.top__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.top__portal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #167a6a 0%, #0d5c50 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 3px 0 #063830,
    0 10px 22px -6px rgba(13, 92, 80, 0.45);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.top__portal:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 4px 0 #063830,
    0 14px 26px -6px rgba(13, 92, 80, 0.55);
}
.ico-ext {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}
:dir(rtl) .ico-ext {
  transform: scaleX(-1);
}
.pulse-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: #6be3c6;
  box-shadow: 0 0 0 4px rgba(107, 227, 198, 0.24);
  flex-shrink: 0;
}
.langs {
  display: inline-flex;
  padding: 0.18rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 var(--bevel-top);
}
.langs a {
  padding: 0.24rem 0.72rem;
  border-radius: 999px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
}
.langs a:hover { color: var(--text); }
.langs a[aria-current] {
  color: var(--on-volt);
  background: var(--volt);
  box-shadow: 0 2px 8px -2px var(--shadow);
}

/* ── main layout containers ── */
.page {
  flex: 1;
  width: 100%;
  margin-inline: auto;
}
.page--doc {
  max-width: var(--measure);
  padding: clamp(2.2rem, 5vw, 4rem) 1.5rem 4.5rem;
}
.page--home {
  max-width: var(--container);
  padding: clamp(1.75rem, 4vw, 3.25rem) 1.5rem 5rem;
}

/* ── shared typography & pills ── */
.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-text);
}
:lang(ar) .eyebrow, :lang(ckb) .eyebrow {
  font-family: var(--sans);
  letter-spacing: 0;
  font-size: 0.92rem;
}
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-block-end: 1.15rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  box-shadow: inset 0 1px 0 var(--bevel-top), 0 8px 20px -10px var(--shadow);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent-text);
}
:lang(ar) .eyebrow-pill, :lang(ckb) .eyebrow-pill {
  font-family: var(--sans);
  letter-spacing: 0;
  font-size: 0.86rem;
}
.eyebrow-pill--dark {
  border-color: rgba(107, 227, 198, 0.28);
  background: rgba(7, 24, 21, 0.55);
  color: #6be3c6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ── HERO SECTION & 3D STUDIO STAGE ── */
.hero-stage {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4rem);
  padding-block: clamp(1rem, 2.5vw, 2.2rem) clamp(3rem, 6vw, 5rem);
}
.hero-title {
  margin: 0 0 1.1rem;
  font-size: clamp(2.35rem, 4.8vw, 3.85rem);
  line-height: 1.07;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--text);
}
:lang(ar) .hero-title, :lang(ckb) .hero-title {
  line-height: 1.28;
  letter-spacing: 0;
}
.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 56ch;
  font-size: clamp(1.06rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-dim);
}

/* ── 3D Tactile App Store & Google Play Buttons ── */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-block-end: 1rem;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 13.5rem;
  padding: 0.78rem 1.25rem;
  border-radius: 18px;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease;
}
.store-btn--apple {
  background: linear-gradient(180deg, #1b312d 0%, #0b1917 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 0 #050c0b,
    0 18px 34px -12px rgba(7, 20, 18, 0.45);
}
.store-btn--google {
  background: linear-gradient(180deg, var(--surface-hi) 0%, var(--surface) 100%);
  color: var(--text);
  border: 1px solid var(--hairline-strong);
  box-shadow:
    inset 0 1px 0 var(--bevel-top),
    0 4px 0 var(--canvas-deep),
    0 18px 34px -12px var(--shadow);
}
.store-btn:hover {
  transform: translateY(-3px);
}
.store-btn:active {
  transform: translateY(1px);
}
.store-btn__icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}
.store-btn__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}
.store-btn__txt small {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.78;
}
.store-btn__txt strong {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.store-btn__txt em {
  font-style: normal;
  font-size: 0.72rem;
  opacity: 0.68;
  margin-block-start: 0.1rem;
}

/* ── Portal Ribbon Callout in Hero ── */
.portal-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 31rem;
  padding: 0.7rem 1rem;
  margin-block-end: 1.75rem;
  border-radius: 20px;
  border: 1px solid var(--hairline-strong);
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  box-shadow:
    inset 0 1px 0 var(--bevel-top),
    0 3px 0 var(--bevel-lip),
    0 14px 28px -14px var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.portal-ribbon:hover {
  transform: translateY(-2px);
  border-color: var(--volt);
}
.portal-ribbon__orb {
  width: 2.8rem;
  height: 2.8rem;
  flex-shrink: 0;
}
.portal-ribbon__orb .orb-svg {
  width: 100%;
  height: 100%;
}
.portal-ribbon__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  flex: 1;
}
.portal-ribbon__txt strong {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
}
.portal-ribbon__txt small {
  font-size: 0.83rem;
  color: var(--text-dim);
}
.portal-ribbon__go {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pine-soft);
  color: var(--accent-text);
}

/* ── Hero Stats Bar ── */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
.stat-pill {
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: inset 0 1px 0 var(--bevel-top);
  display: flex;
  flex-direction: column;
}
.stat-pill__val {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--accent-text);
}
.stat-pill__lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  line-height: 1.3;
}

/* ── 3D SPATIAL DEVICE STAGE ── */
.stage-3d {
  position: relative;
  min-height: 39rem;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1500px;
}
.stage-3d__halo {
  position: absolute;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(82, 203, 174, 0.34), rgba(13, 92, 80, 0.14) 52%, transparent 72%);
  filter: blur(12px);
  z-index: 0;
}
.stage-3d__plinth {
  position: absolute;
  bottom: 0.5rem;
  width: 25rem;
  height: 4.2rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(9, 32, 28, 0.28) 0%, rgba(9, 32, 28, 0.08) 55%, transparent 75%);
  z-index: 0;
}

/* Machined 3D Titanium Phone Chassis */
.phone-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.phone-3d__bezel {
  position: relative;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(145deg, #273d38 0%, #0d1a17 52%, #060d0b 100%);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.38),
    inset 0 -2px 2px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(11, 32, 29, 0.5),
    10px 16px 0 -2px #071311,
    0 36px 65px -18px rgba(6, 22, 19, 0.55);
}
:dir(rtl) .phone-3d__bezel {
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.38),
    inset 0 -2px 2px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(11, 32, 29, 0.5),
    -10px 16px 0 -2px #071311,
    0 36px 65px -18px rgba(6, 22, 19, 0.55);
}
.phone-3d__island {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: #040807;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  z-index: 3;
}
.phone-3d__bezel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
  background: #f4f1eb;
}
.phone-3d--front {
  width: 17.2rem;
  z-index: 3;
  transform: rotateY(-12deg) rotateX(4deg) translateZ(20px);
  margin-inline-end: 3.5rem;
}
.phone-3d--back {
  position: absolute;
  width: 14.8rem;
  z-index: 2;
  inset-inline-end: 1.2rem;
  top: 2.2rem;
  opacity: 0.94;
  transform: rotateY(-18deg) rotateX(6deg) translateZ(-30px);
}
:dir(rtl) .phone-3d--front {
  transform: rotateY(12deg) rotateX(4deg) translateZ(20px);
}
:dir(rtl) .phone-3d--back {
  transform: rotateY(18deg) rotateX(6deg) translateZ(-30px);
}
.stage-3d:hover .phone-3d--front {
  transform: rotateY(-7deg) rotateX(2deg) translateY(-4px) translateZ(26px);
}
:dir(rtl) .stage-3d:hover .phone-3d--front {
  transform: rotateY(7deg) rotateX(2deg) translateY(-4px) translateZ(26px);
}

/* Floating 3D Spatial Clinical Cards */
.float-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.95rem 0.65rem 0.7rem;
  border-radius: 20px;
  border: 1px solid var(--hairline-strong);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 var(--bevel-top),
    0 4px 0 var(--bevel-lip),
    0 20px 38px -12px var(--shadow-strong);
}
.float-card__orb {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}
.float-card__orb .orb-svg {
  width: 100%;
  height: 100%;
}
.float-card__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.22;
}
.float-card__txt small {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}
:lang(ar) .float-card__txt small, :lang(ckb) .float-card__txt small {
  font-family: var(--sans);
  letter-spacing: 0;
  font-size: 0.74rem;
}
.float-card__txt strong {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text);
}
.float-card__txt span {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.float-card--fee {
  top: 2.4rem;
  inset-inline-start: -0.5rem;
}
.float-card--pharm {
  bottom: 8.5rem;
  inset-inline-end: -0.5rem;
}
.float-card--visit {
  bottom: 1.6rem;
  inset-inline-start: 0.25rem;
}

/* ── SECTIONS & BENTO GRID ── */
.sect {
  margin-block-start: clamp(4rem, 7vw, 6.5rem);
  scroll-margin-top: 5.5rem;
}
.sect__head {
  max-width: 46rem;
  margin-block-end: 2.4rem;
}
.sect__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -0.028em;
  font-weight: 800;
}
:lang(ar) .sect__title, :lang(ckb) .sect__title {
  line-height: 1.35;
  letter-spacing: 0;
}
.sect__lead {
  margin: 0;
  font-size: 1.12rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}
.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--r-card);
  border: 1px solid var(--hairline-strong);
  background: linear-gradient(180deg, var(--surface-hi) 0%, var(--surface) 100%);
  box-shadow:
    inset 0 1px 0 var(--bevel-top),
    0 5px 0 var(--bevel-lip),
    0 22px 44px -20px var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--volt);
}
.bento-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 1.15rem;
}
.orb-wrap {
  width: 4.1rem;
  height: 4.1rem;
  flex-shrink: 0;
}
.orb-wrap--sm {
  width: 3.3rem;
  height: 3.3rem;
}
.orb-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.bento-tag {
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  background: var(--pine-soft);
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 800;
}
.bento-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 800;
}
.bento-card p {
  margin: 0 0 1.25rem;
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.6;
  flex: 1;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  padding: 0.28rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--surface-tint);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ── APP SCREENSHOTS GALLERY ── */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.screen-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-card);
  border: 1px solid var(--hairline-strong);
  background: linear-gradient(180deg, var(--surface-hi) 0%, var(--surface) 100%);
  box-shadow:
    inset 0 1px 0 var(--bevel-top),
    0 5px 0 var(--bevel-lip),
    0 22px 44px -20px var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease;
}
.screen-card:hover {
  transform: translateY(-5px);
}
.screen-card__stage {
  padding: 1.35rem 1.35rem 0.9rem;
  background:
    radial-gradient(circle at 50% 25%, var(--glow-a), transparent 70%),
    var(--surface-tint);
  border-block-end: 1px solid var(--hairline);
  display: flex;
  justify-content: center;
}
.device-frame {
  position: relative;
  width: 100%;
  max-width: 13.5rem;
  padding: 7px;
  border-radius: 32px;
  background: linear-gradient(145deg, #273d38 0%, #0b1715 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.32),
    0 4px 0 #060e0c,
    0 18px 32px -12px rgba(7, 22, 19, 0.45);
}
.device-frame__island {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  border-radius: 999px;
  background: #040807;
  z-index: 2;
}
.device-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 25px;
}
.screen-card__body {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.screen-badge {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
:lang(ar) .screen-badge, :lang(ckb) .screen-badge {
  font-family: var(--sans);
  letter-spacing: 0;
  font-size: 0.82rem;
}
.screen-card__body h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.3;
}
.screen-card__body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ── NABD CLINIC & PHARMACY PORTAL VAULT ── */
.nabd-vault {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 4.5vw, 3.5rem);
  border-radius: var(--r-lg);
  color: #eaf2ef;
  background:
    radial-gradient(45rem 25rem at 90% 10%, rgba(107, 227, 198, 0.18), transparent 70%),
    radial-gradient(35rem 25rem at 10% 95%, rgba(242, 96, 63, 0.16), transparent 70%),
    linear-gradient(145deg, #0e584d 0%, #083730 52%, #06211d 100%);
  border: 1px solid rgba(107, 227, 198, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 0 #041714,
    0 34px 68px -20px rgba(5, 22, 19, 0.6);
}
.nabd-vault__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #ffffff;
}
:lang(ar) .nabd-vault__title, :lang(ckb) .nabd-vault__title {
  line-height: 1.35;
  letter-spacing: 0;
}
.nabd-vault__lead {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #bfe0d9;
}
.nabd-feats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-block-end: 2rem;
}
.nabd-feat {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 25, 22, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.nabd-feat__num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: #6be3c6;
  letter-spacing: 0.1em;
}
.nabd-feat h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}
.nabd-feat p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #b4d4cd;
}
.nabd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Tactile 3D CTA Buttons */
.btn-tactile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.btn-tactile:hover {
  transform: translateY(-2px);
}
.btn-tactile--coral {
  background: linear-gradient(180deg, #ff7657 0%, #f2603f 55%, #d94b2b 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 4px 0 #962c14,
    0 16px 30px -8px rgba(242, 96, 63, 0.55);
}
.btn-tactile--glass {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-tactile--tonal {
  background: linear-gradient(180deg, #167a6a 0%, #0d5c50 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 3px 0 #063830,
    0 12px 24px -8px rgba(13, 92, 80, 0.4);
}

/* Nabd Console 3D Stage */
.console-3d {
  border-radius: 26px;
  border: 1px solid rgba(107, 227, 198, 0.26);
  background: linear-gradient(180deg, rgba(16, 46, 41, 0.92), rgba(7, 22, 19, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 28px 56px -16px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}
.console-3d__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-block-end: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 16, 14, 0.6);
  font-size: 0.76rem;
}
.console-dots {
  display: inline-flex;
  gap: 0.35rem;
}
.console-dots i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}
.console-dots i:first-child { background: #f2603f; }
.console-dots i:nth-child(2) { background: #eba334; }
.console-dots i:nth-child(3) { background: #52cbae; }
.console-url {
  font-family: var(--mono);
  color: #bfe0d9;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.console-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(107, 227, 198, 0.14);
  color: #6be3c6;
  font-weight: 800;
  white-space: nowrap;
}
.console-3d__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  background:
    radial-gradient(circle at 50% 35%, rgba(107, 227, 198, 0.18), transparent 70%);
}
.console-3d__pulse {
  width: 100%;
  padding: 0.45rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(107, 227, 198, 0.18);
  background: rgba(5, 16, 14, 0.55);
}
.console-3d__pulse svg {
  display: block;
  width: 100%;
  height: 2rem;
}
.phone-3d--ws {
  width: 15.2rem;
}

/* ── CONTACT & ONBOARDING SECTION ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-block-end: 1.5rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  padding: 1.65rem;
  border-radius: var(--r-card);
  border: 1px solid var(--hairline-strong);
  background: linear-gradient(180deg, var(--surface-hi) 0%, var(--surface) 100%);
  box-shadow:
    inset 0 1px 0 var(--bevel-top),
    0 5px 0 var(--bevel-lip),
    0 22px 44px -20px var(--shadow);
}
.contact-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-block-end: 1rem;
}
.contact-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
}
.contact-card p {
  margin: 0 0 1.4rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}
.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface-tint);
  box-shadow: inset 0 1px 0 var(--bevel-top);
}
.contact-strip__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.contact-strip__lbl {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
:lang(ar) .contact-strip__lbl, :lang(ckb) .contact-strip__lbl {
  font-family: var(--sans);
  letter-spacing: 0;
  font-size: 0.84rem;
}
.contact-strip__val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

/* ── LEGAL DOCUMENT PAGES (/privacy/, /terms/, /delete-account/) ── */
h1 { margin: 0 0 0.6rem; font-size: clamp(2.1rem, 6vw, 3.1rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
:lang(ar) h1, :lang(ckb) h1 { line-height: 1.35; letter-spacing: 0; }
.meta { margin: 0 0 1.4rem; color: var(--text-faint); font-size: 0.92rem; }
.lead { margin: 0 0 1.4rem; font-size: 1.18rem; line-height: 1.6; color: var(--text-dim); }
.lang-note { margin: 0 0 1.4rem; padding: 0.75rem 1rem; border-radius: 12px; background: var(--hairline); color: var(--text-dim); font-size: 0.95rem; }

.doc__head { margin-block-end: 1.6rem; }
.summary {
  margin-block: 0 1.6rem;
  padding: 1.2rem 1.4rem 1.1rem;
  border-radius: var(--r-card);
  border: 1px solid var(--hairline);
  border-inline-start: 5px solid var(--volt);
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
}
.summary h2 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.summary ul { margin: 0; }
.toc {
  margin-block: 0 2.4rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--r-card);
  border: 1px solid var(--hairline);
  background: var(--surface);
}
.toc h2 { margin: 0 0 0.5rem; font-size: 0.8rem; font-family: var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
:lang(ar) .toc h2, :lang(ckb) .toc h2 { font-family: var(--sans); letter-spacing: 0; font-size: 0.95rem; }
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2 14rem; column-gap: 2rem; counter-reset: toc; }
.toc li { break-inside: avoid; counter-increment: toc; padding-block: 0.12rem; }
.toc li::before { content: counter(toc, decimal-leading-zero); display: inline-block; min-width: 2rem; font-family: var(--mono); font-size: 0.8rem; color: var(--text-faint); }
.toc a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.97rem; }
.toc a:hover { color: var(--accent-text); text-decoration: underline; }

.doc section { margin-block: 2.6rem 0; scroll-margin-top: 5rem; }
.doc section > h2 { margin: 0 0 0.8rem; font-size: 1.55rem; line-height: 1.25; letter-spacing: -0.02em; font-weight: 800; }
:lang(ar) .doc section > h2, :lang(ckb) .doc section > h2 { letter-spacing: 0; line-height: 1.5; }
.doc p { margin: 0 0 1rem; }
.doc p, .doc li { max-width: 68ch; }
:lang(ar) .doc p, :lang(ar) .doc li, :lang(ckb) .doc p, :lang(ckb) .doc li { max-width: 64ch; }
strong { font-weight: 800; }
code { font-family: var(--mono); font-size: 0.88em; padding: 0.1em 0.4em; border-radius: 6px; background: var(--hairline); }

.doc ul, .doc ol { margin: 0 0 1.1rem; padding-inline-start: 0; list-style: none; }
.doc li { position: relative; margin-block-end: 0.6rem; padding-inline-start: 1.6rem; }
.doc ul > li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0.2rem;
  top: 0.78em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--volt) 22%, transparent);
}
.doc ol { counter-reset: step; }
.doc ol > li { counter-increment: step; padding-inline-start: 2.6rem; }
.doc ol > li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0.15em;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--volt);
  color: var(--on-volt);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}
.toc ol > li { padding-inline-start: 0; }
.toc ol > li::before { all: unset; content: counter(toc, decimal-leading-zero); display: inline-block; min-width: 2rem; font-family: var(--mono); font-size: 0.8rem; color: var(--text-faint); position: static; }

.note {
  margin: 1.2rem 0;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--hairline-strong);
  border-inline-start: 4px solid var(--volt);
  background: var(--surface);
  color: var(--text-dim);
}

/* ── tables ── */
.table-wrap { margin: 1rem 0 1.4rem; border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; line-height: 1.55; }
th, td { padding: 0.8rem 1rem; text-align: start; vertical-align: top; border-block-end: 1px solid var(--hairline); }
tbody tr:last-child td { border-block-end: 0; }
thead th { font-size: 0.78rem; font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); background: var(--surface-hi); }
:lang(ar) thead th, :lang(ckb) thead th { font-family: var(--sans); letter-spacing: 0; font-size: 0.9rem; }
td:first-child { font-weight: 800; white-space: nowrap; color: var(--text); }
td { color: var(--text-dim); }

/* ── FOOTER (with Legal Links) ── */
.foot {
  border-block-start: 1px solid var(--hairline-strong);
  background: color-mix(in srgb, var(--surface) 72%, var(--canvas));
  color: var(--text-dim);
  font-size: 0.94rem;
}
.foot__grid {
  max-width: var(--container);
  margin-inline: auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
}
.foot__tagline {
  margin: 0.75rem 0;
  max-width: 44ch;
  color: var(--text-dim);
  font-size: 0.94rem;
}
.foot__direct {
  margin: 0;
  font-weight: 700;
}
.foot__h {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
:lang(ar) .foot__h, :lang(ckb) .foot__h {
  font-family: var(--sans);
  letter-spacing: 0;
  font-size: 0.9rem;
}
.foot__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.foot__list a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 700;
}
.foot__list a:hover, .foot__list a[aria-current] {
  color: var(--accent-text);
  text-decoration: underline;
}
.foot__bar {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.2rem 1.5rem 1.8rem;
  border-block-start: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  color: var(--text-faint);
  font-size: 0.86rem;
}
.foot__badges {
  font-family: var(--mono);
  font-weight: 700;
}

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 64rem) {
  .hero-stage { grid-template-columns: 1fr; }
  .stage-3d { min-height: 36rem; margin-block-start: 1rem; }
  .screens-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nabd-vault { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-strip { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 44rem) {
  .top__nav { order: 3; width: 100%; margin-inline-start: 0; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .top__actions { margin-inline-start: auto; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-grid { grid-template-columns: 1fr; }
  .screens-grid { grid-template-columns: 1fr; }
  .nabd-feats { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .phone-3d--back { display: none; }
  .phone-3d--front { margin-inline-end: 0; width: 16rem; transform: none; }
  .float-card { position: static; margin-block-top: 0.6rem; width: 100%; }
  .stage-3d { flex-direction: column; min-height: auto; gap: 0.65rem; }

  table, thead, tbody, tr, td { display: block; }
  thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  tr { padding: 0.9rem 1rem; border-block-end: 1px solid var(--hairline); }
  tbody tr:last-child { border-block-end: 0; }
  td { padding: 0.15rem 0; border: 0; }
  td:first-child { white-space: normal; font-size: 1.05rem; padding-block-end: 0.3rem; }
  td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    margin-block-start: 0.35rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
  }
  :lang(ar) td:not(:first-child)::before, :lang(ckb) td:not(:first-child)::before { font-family: var(--sans); letter-spacing: 0; font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  :root { color-scheme: light; --canvas: #fff; --surface: #fff; --surface-hi: #fff; --text: #000; --text-dim: #222; --text-faint: #555; --accent-text: #000; --hairline: #ccc; --hairline-strong: #999; --volt: #888; --on-volt: #fff; }
  body { background: #fff; font-size: 11pt; }
  .top, .skip, .toc { display: none; }
  a { color: #000; }
  section { break-inside: avoid-page; }
}
