/* ==========================================================================
   Neopedia© Official Landing Page — Design System
   Mobile-first · Self-hosted fonts · No inline styles (strict CSP friendly)
   ========================================================================== */

/* ---------- 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;
}

/* ---------- 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.7);
  --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: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow: 0 1px 0 hsl(0 0% 100% / 0.04) inset, 0 24px 60px -24px hsl(214 80% 2% / 0.85);
  --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;
  --container: 1180px;
  --header-h: 68px;
  /* subtle film-grain texture for depth on surfaces */
  --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 .05 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) + 12px); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at 85% -10%, hsl(172 66% 40% / 0.14), transparent 60%),
    radial-gradient(700px 520px at -10% 30%, hsl(199 89% 50% / 0.08), transparent 60%),
    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, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Utilities ---------- */
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.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; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: var(--radius-s); 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; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.h1 {
  font-size: clamp(2rem, 1.25rem + 3.6vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 800;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(1.6rem, 1.15rem + 2vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.026em;
  font-weight: 750;
  text-wrap: balance;
}
.h3 { font-size: 1.14rem; line-height: 1.35; letter-spacing: -0.012em; font-weight: 700; }
html[lang="ar"] .h1, html[lang="ar"] .h2, html[lang="ar"] .h3 { letter-spacing: 0; line-height: 1.35; }
.lead { font-size: clamp(1.03rem, .98rem + .3vw, 1.18rem); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--muted); }
.accent { color: var(--teal); }

.section { padding-block: clamp(64px, 8vw, 112px); position: relative; }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { text-align: center; margin-inline: auto; justify-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: .98rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.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 10px 28px -10px hsl(172 66% 45% / .65);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 hsl(0 0% 100% / .35) inset, 0 16px 36px -12px hsl(172 66% 45% / .75); }
.btn-ghost { background: hsl(213 36% 15% / .55); border-color: var(--line-strong); color: var(--text); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: hsl(213 36% 19% / .7); border-color: hsl(215 25% 70% / .34); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: .92rem; }
.btn-wrap { white-space: normal; text-align: center; }
html[dir="rtl"] .btn .icon-arrow { transform: scaleX(-1); }

.cta-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .84rem;
  color: var(--muted);
  max-width: 54ch;
}
.cta-note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--teal); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: hsl(214 45% 5% / .72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand svg { width: 34px; height: 34px; }
.brand small { display: block; font-size: .66rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }
html[lang="ar"] .brand small { letter-spacing: 0; font-size: .72rem; }
.nav { display: none; }
.nav ul { display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; font-size: .93rem; font-weight: 550; color: var(--text-2); transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--text); background: hsl(213 36% 16% / .6); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  min-width: 44px; min-height: 44px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; border: 1px solid var(--line-strong);
  background: hsl(213 36% 14% / .6); cursor: pointer; font-weight: 650; font-size: .9rem;
  transition: background-color .15s, border-color .15s;
}
.lang-toggle:hover { background: hsl(213 36% 19% / .7); }
.lang-toggle svg { width: 17px; height: 17px; color: var(--teal); }
.header-cta { display: none; }
.menu-toggle {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line-strong); background: hsl(213 36% 14% / .6); cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
  padding: 12px 16px 20px;
  background: hsl(214 45% 6% / .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { display: grid; gap: 4px; margin-bottom: 14px; }
.mobile-nav a.m-link { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 10px; font-weight: 600; color: var(--text-2); }
.mobile-nav a.m-link:hover { background: hsl(213 36% 14%); color: var(--text); }

@media (min-width: 960px) {
  .nav { display: block; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .header-cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 220px; }
.author-line { display: flex; align-items: center; gap: 12px; padding-top: 6px; }
.avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: .92rem; color: hsl(214 50% 7%);
  background: linear-gradient(135deg, var(--teal), var(--sky));
}
.author-line p { font-size: .92rem; color: var(--text-2); line-height: 1.45; }
.author-line strong { color: var(--text); }
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% 6% -4% 6%; z-index: -1;
  background: radial-gradient(closest-side, hsl(172 66% 45% / .28), transparent);
  filter: blur(30px);
}
.hero-visual img { width: 100%; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 40px 80px -30px hsl(214 80% 2% / .9); }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.04fr 1fr; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* ---------- Credentials bar ---------- */
.cred-bar { padding-block: 8px 24px; }
.cred-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border-radius: var(--radius); background: var(--line); border: 1px solid var(--line); }
.cred-item { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--surface-solid); }
.cred-item svg { width: 26px; height: 26px; flex: none; color: var(--teal); }
.cred-item strong { display: block; font-size: .95rem; line-height: 1.25; }
.cred-item span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
@media (min-width: 880px) { .cred-list { grid-template-columns: repeat(4, 1fr); } .cred-item { padding: 20px 22px; } }

/* ---------- Product comparison ---------- */
.product-grid { display: grid; gap: 20px; }
.product-card { padding: clamp(24px, 3vw, 34px); display: grid; gap: 18px; align-content: start; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.product-tag { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 8px; background: hsl(172 66% 45% / .1); color: var(--teal); }
.product-tag.sky { background: hsl(199 89% 55% / .1); color: var(--sky); }
html[lang="ar"] .product-tag { letter-spacing: 0; }
.product-card .h3 { font-size: 1.4rem; }
.check-list { display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--text-2); font-size: .97rem; }
.check-list svg { width: 22px; height: 22px; color: var(--ok); margin-top: 1px; }
.check-list strong { color: var(--text); font-weight: 650; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.platforms span { font-size: .8rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--text-2); }
@media (min-width: 900px) { .product-grid { grid-template-columns: 1fr 1fr; } }

.compare { margin-top: 28px; overflow: hidden; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.compare-table caption { text-align: start; padding: 20px 22px 6px; font-weight: 700; color: var(--text); }
.compare-table th, .compare-table td { text-align: start; padding: 14px 22px; border-top: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; border-top: 0; }
html[lang="ar"] .compare-table thead th { letter-spacing: 0; font-size: .85rem; }
.compare-table tbody th { color: var(--text); font-weight: 650; width: 26%; }
.compare-table td { color: var(--text-2); }
@media (max-width: 680px) {
  .compare-table thead { display: none; }
  .compare-table tr { display: grid; padding: 12px 0; border-top: 1px solid var(--line); }
  .compare-table th, .compare-table td { border: 0; padding: 4px 20px; }
  .compare-table tbody th { width: auto; padding-bottom: 6px; }
  .compare-table td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
}

/* ---------- EHR section ---------- */
.ehr-figure { padding: clamp(12px, 2vw, 18px); margin-bottom: 28px; overflow-x: auto; }
.ehr-figure img { min-width: 720px; width: 100%; border-radius: 14px; }
.ehr-figure figcaption { font-size: .84rem; color: var(--muted); padding: 12px 6px 2px; }
.module-grid { display: grid; gap: 16px; }
.module { padding: 24px; display: grid; gap: 10px; align-content: start; }
.module-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: hsl(199 89% 55% / .1); color: var(--sky); }
.module-icon svg { width: 22px; height: 22px; }
.module p { color: var(--text-2); font-size: .95rem; }
.ehr-cta { margin-top: 28px; display: grid; gap: 12px; justify-items: start; }
@media (min-width: 720px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .module-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Calculator ---------- */
.calc { display: grid; gap: 0; overflow: hidden; }
.calc-input, .calc-output { padding: clamp(22px, 3vw, 34px); }
.calc-output { border-top: 1px solid var(--line); background: hsl(214 44% 7% / .55); }
.field-label { display: block; font-weight: 650; margin-bottom: 10px; }
.weight-row { display: flex; align-items: stretch; gap: 10px; }
.weight-input {
  flex: 1; min-width: 0; min-height: 60px; padding: 0 18px;
  font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
  border-radius: 14px; border: 1px solid var(--line-strong); background: hsl(214 44% 6% / .8);
  direction: ltr; text-align: start;
  transition: border-color .15s, box-shadow .15s;
}
html[dir="rtl"] .weight-input { text-align: end; }
.weight-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px hsl(172 66% 45% / .16); }
.weight-input[aria-invalid="true"] { border-color: var(--danger); }
.unit { display: grid; place-items: center; min-width: 64px; border-radius: 14px; border: 1px solid var(--line); background: hsl(213 36% 13% / .6); font-weight: 700; color: var(--text-2); }
.range { width: 100%; margin: 22px 0 8px; accent-color: var(--teal); height: 32px; cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); direction: ltr; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.preset {
  min-height: 44px; min-width: 64px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line-strong); background: hsl(213 36% 13% / .6); font-weight: 600; font-size: .9rem; color: var(--text-2);
  direction: ltr; transition: background-color .15s, color .15s, border-color .15s;
}
.preset:hover { color: var(--text); background: hsl(213 36% 18% / .7); }
.preset[aria-pressed="true"] { background: hsl(172 66% 45% / .14); border-color: hsl(172 66% 45% / .45); color: var(--teal); }
.field-error { min-height: 1.4em; margin-top: 10px; font-size: .86rem; color: var(--danger); }

.result-main { display: grid; gap: 4px; }
.result-label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
html[lang="ar"] .result-label { letter-spacing: 0; font-size: .88rem; }
.result-value { font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.result-value small { font-size: .38em; font-weight: 700; color: var(--teal); letter-spacing: 0; margin-inline-start: 6px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.stat { padding: 14px 16px; border-radius: 12px; background: hsl(213 38% 12% / .7); border: 1px solid var(--line); }
.stat span { display: block; font-size: .78rem; color: var(--muted); }
.stat strong { display: block; font-size: 1.28rem; font-weight: 750; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; text-align: start; }
html[dir="rtl"] .stat strong { text-align: end; }
.breakdown { margin-top: 18px; display: grid; gap: 0; font-size: .9rem; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); color: var(--text-2); }
.breakdown li:first-child { border-top: 0; }
.breakdown b { color: var(--text); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.calc-alert { margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: .88rem; display: flex; gap: 10px; background: hsl(43 96% 58% / .08); color: hsl(43 96% 74%); border: 1px solid hsl(43 96% 58% / .25); }
.calc-alert[hidden] { display: none; }
.calc-alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.calc-speed { margin-top: 14px; font-size: .8rem; color: var(--muted); }
.disclaimer {
  margin-top: 22px; padding: 16px 18px; border-radius: 14px; font-size: .86rem; color: var(--text-2);
  background: hsl(214 44% 6% / .7); border: 1px solid var(--line);
}
.disclaimer strong { color: var(--text); }
.calc-cta { margin-top: 26px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.calc-cta .cta-note { justify-content: center; }
@media (min-width: 920px) {
  .calc { grid-template-columns: 1fr 1fr; }
  .calc-output { border-top: 0; border-inline-start: 1px solid var(--line); }
}

/* ---------- Plans ---------- */
.plan-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.plan { padding: 22px; display: grid; gap: 14px; grid-template-rows: auto auto 1fr auto; position: relative; }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plan-badge { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
html[lang="ar"] .plan-badge { letter-spacing: 0; font-size: .8rem; }
.plan-term { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
html[lang="ar"] .plan-term { letter-spacing: 0; }
.plan p { font-size: .92rem; color: var(--text-2); }
.plan ul { display: grid; gap: 8px; font-size: .88rem; color: var(--text-2); }
.plan ul li { display: flex; gap: 8px; }
.plan ul li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .6em; border-radius: 50%; background: var(--teal); }
.plan.featured { background: linear-gradient(180deg, hsl(174 50% 14% / .75), hsl(213 42% 9% / .7)), var(--grain); border-color: hsl(172 66% 45% / .32); }
.plan.b2b { background: linear-gradient(135deg, hsl(203 55% 14% / .8), hsl(213 42% 9% / .72)), var(--grain); }
.plan.b2b .plan-badge { color: var(--sky); }
.plans-note { margin-top: 22px; text-align: center; font-size: .88rem; color: var(--muted); }
@media (min-width: 620px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .plan-grid { grid-template-columns: repeat(4, 1fr); }
  .plan.b2b { grid-column: span 2; }
}

/* ---------- Safety ---------- */
.safety-grid { display: grid; gap: 16px; }
.safety-item { padding: 24px; display: grid; gap: 10px; align-content: start; }
.safety-num { font-size: .8rem; font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; }
.safety-item p { color: var(--text-2); font-size: .95rem; }
.safety-banner { margin-top: 20px; padding: 18px 22px; display: flex; gap: 14px; align-items: flex-start; font-size: .92rem; color: var(--text-2); }
.safety-banner svg { width: 22px; height: 22px; flex: none; color: var(--warn); margin-top: 2px; }
@media (min-width: 720px) { .safety-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .safety-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq-item { border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 16px 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .h3 { font-size: 1.02rem; font-weight: 650; }
.faq-item summary svg { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform .2s ease; }
.faq-item[open] summary svg { transform: rotate(45deg); color: var(--teal); }
.faq-item summary:hover .h3 { color: var(--teal); }
.faq-answer { padding: 0 20px 20px; color: var(--text-2); font-size: .96rem; max-width: 72ch; }

/* ---------- Final CTA ---------- */
.final-cta { padding: clamp(32px, 5vw, 56px); display: grid; gap: 18px; justify-items: center; text-align: center;
  background: radial-gradient(600px 300px at 50% 0%, hsl(172 66% 45% / .18), transparent 70%), linear-gradient(180deg, hsl(213 40% 13% / .7), hsl(213 42% 9% / .7)), var(--grain); }
.final-cta .lead { margin-inline: auto; }
.final-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 44px 32px; margin-top: 24px; background: hsl(214 46% 4% / .6); }
.footer-grid { display: grid; gap: 28px; }
.footer-brand p { margin-top: 12px; font-size: .9rem; color: var(--muted); max-width: 46ch; }
.footer-title { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 10px; }
html[lang="ar"] .footer-title { letter-spacing: 0; font-size: .88rem; }
.footer-links { display: grid; gap: 2px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); font-size: .93rem; }
.footer-links a:hover { color: var(--teal); }
.footer-disclaimer { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); display: grid; gap: 10px; }
.footer-disclaimer strong { color: var(--text-2); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }

/* ---------- Reveal animation (progressive, JS adds .reveal-ready) ---------- */
.reveal-ready .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.nf-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding-block: 48px; }
.nf-card { padding: clamp(28px, 5vw, 52px); max-width: 620px; text-align: center; display: grid; gap: 18px; justify-items: center; }
.nf-code { font-size: clamp(4rem, 3rem + 6vw, 7rem); 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 (360px) ---------- */
@media (max-width: 400px) {
  .container { width: min(100% - 24px, var(--container)); }
  .brand small { display: none; }
  .btn { padding-inline: 16px; font-size: .94rem; }
  .result-grid { grid-template-columns: 1fr; }
  .cred-item { padding: 14px 12px; gap: 10px; }
  .cred-item svg { width: 22px; height: 22px; }
}
