/* Kashfiya's public page (www.kshfia.com). Colours and fonts are the clinic system's own (public/css/tokens.css). */
@font-face { font-family: "Readex Pro"; font-weight: 400; font-display: swap; src: url("/fonts/readex-pro-arabic-400-normal-5.3.0.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Readex Pro"; font-weight: 500; font-display: swap; src: url("/fonts/readex-pro-arabic-500-normal-5.3.0.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Readex Pro"; font-weight: 600; font-display: swap; src: url("/fonts/readex-pro-arabic-600-normal-5.3.0.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Readex Pro"; font-weight: 400; font-display: swap; src: url("/fonts/readex-pro-latin-400-normal-5.3.0.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Readex Pro"; font-weight: 600; font-display: swap; src: url("/fonts/readex-pro-latin-600-normal-5.3.0.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Aref Ruqaa"; font-weight: 700; font-display: swap; src: url("/fonts/aref-ruqaa-arabic-700-normal-5.3.0.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --paper: #f0ebe0;
  --sheet: #fffdf8;
  --band: #f8f4ec;
  --line: #e2d9c6;
  --card-line: rgba(120, 96, 40, .16);
  --ink: #172a31;
  --muted: #576a70;
  --cover: #123b4a;
  --cover-2: #0c2c38;
  --cover-hi: #1a5265;
  --cover-ink: #dceaee;
  --cover-dim: #9fbcc5;
  --on-cover: #f2f4ef;
  --accent: #1c6a7c;
  --accent-2: #155868;
  --accent-soft: #e4ebe9;
  --brass: #d6ad55;
  --brass-hi: #e9c46f;
  --brass-ink: #3d2c05;
  --wa: #1f9d55;
  --r-card: 16px;
  --r-pill: 999px;
  --wrap: 1120px;
  --font: "Readex Pro", system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-name: "Aref Ruqaa", "Readex Pro", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.75 var(--font); overflow-x: hidden; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.35; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { flex: none; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
[id] { scroll-margin-top: 16px; }

/* the name «كشفية» */
.name { font: 700 34px/1.1 var(--font-name); color: var(--on-cover); padding-bottom: 6px; }
.name i { font-style: normal; color: var(--brass); }
.name.small { font-size: 26px; color: var(--cover); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 24px;
  border-radius: var(--r-pill); font-weight: 600; font-size: 17px; text-decoration: none; border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn svg { width: 22px; height: 22px; }
.btn.big { min-height: 56px; padding: 12px 28px; font-size: 18px; }
.btn.small { min-height: 40px; padding: 6px 16px; font-size: 15px; }
.btn.brass { background: var(--brass); color: var(--brass-ink); box-shadow: 0 10px 30px rgba(214, 173, 85, .28); }
.btn.brass:hover { background: var(--brass-hi); transform: translateY(-1px); }
.btn.ghost { border-color: rgba(242, 244, 239, .38); color: var(--on-cover); background: rgba(255, 255, 255, .04); }
.btn.ghost:hover { border-color: var(--brass); background: rgba(255, 255, 255, .08); }
.wa path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.wa .wa-in { fill: currentColor; stroke: none; }
.btn .play { fill: currentColor; }
.btn circle { fill: none; stroke: currentColor; stroke-width: 1.6; }

/* the top: petrol, the heartbeat line and two soft lights, as the clinic system's sign-in page */
.hero { position: relative; overflow: hidden; color: var(--on-cover); padding-bottom: 72px;
  background: radial-gradient(900px 500px at 85% 0%, rgba(214, 173, 85, .14), transparent 60%), linear-gradient(160deg, var(--cover) 0%, var(--cover-2) 100%); }
.hero .bg { position: absolute; inset: 0; pointer-events: none; }
.hero .ecg { position: absolute; inset-inline: 0; bottom: 18%; width: 100%; height: 140px; opacity: .5; }
.hero .ecg polyline { fill: none; stroke: var(--brass); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 2600; animation: ecg 5s linear infinite; vector-effect: non-scaling-stroke; }
@keyframes ecg { 0% { stroke-dashoffset: 2600; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -2600; } }
.glow { position: absolute; border-radius: 50%; filter: blur(60px); }
.g1 { top: -120px; right: -80px; width: 420px; height: 420px; background: rgba(28, 106, 124, .55); }
.g2 { bottom: -140px; left: -60px; width: 360px; height: 360px; background: var(--brass); opacity: .14; }

.top { position: relative; display: flex; align-items: center; gap: 24px; padding: 18px 0; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { width: 42px; height: 42px; }
.logo rect { fill: var(--brass); }
.logo .cross { fill: var(--cover); }
.logo .pulse { fill: none; stroke: var(--on-cover); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.links { display: flex; gap: 22px; margin-inline-start: auto; }
.links a { text-decoration: none; color: var(--cover-ink); font-size: 15.5px; }
.links a:hover { color: var(--brass-hi); }

.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-top: 56px; }
.kicker { display: inline-block; margin-bottom: 18px; padding: 4px 14px; border: 1px solid rgba(214, 173, 85, .5); border-radius: var(--r-pill);
  color: var(--brass-hi); font-size: 15px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 60px); line-height: 1.25; letter-spacing: 0; }
.hero h1 span { color: var(--brass-hi); }
.lead { margin-top: 20px; max-width: 640px; color: var(--cover-ink); font-size: 19px; line-height: 1.9; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.note { margin-top: 16px; color: var(--cover-dim); font-size: 15px; }

/* sections on the paper */
main > section { padding: 80px 0 0; }
h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--cover); }
.sub { margin-top: 10px; color: var(--muted); max-width: 680px; }

.player { margin: 0; overflow: hidden; border-radius: 20px; background: var(--cover-2); box-shadow: 0 30px 70px rgba(0, 0, 0, .35); border: 1px solid rgba(214, 173, 85, .4); }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--cover-2); }
.player.tall { width: min(100%, 400px); margin-inline: auto; }
.player.tall video { aspect-ratio: 9 / 16; max-height: 80vh; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.card { padding: 24px; border-radius: var(--r-card); background: var(--sheet); border: 1px solid var(--card-line); }
.card svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-top: 14px; font-size: 19px; color: var(--ink); }
.card p { margin-top: 6px; color: var(--muted); font-size: 16px; line-height: 1.8; }

.specs { margin-top: 80px; padding: 64px 0 !important; background: var(--band); border-block: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chips li { padding: 8px 18px; border-radius: var(--r-pill); background: var(--sheet); border: 1px solid var(--line); color: var(--cover); font-weight: 500; font-size: 16px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.facts li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; font-size: 16px; }
.facts svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; counter-reset: s; }
.steps li { position: relative; padding: 24px; border-radius: var(--r-card); background: var(--sheet); border: 1px solid var(--card-line); }
.steps b { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cover); color: var(--brass-hi); font-size: 18px; }
.steps h3 { margin-top: 14px; font-size: 19px; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 16px; line-height: 1.8; }

.cta { margin-top: 80px; padding: 0 !important; background: linear-gradient(160deg, var(--cover) 0%, var(--cover-2) 100%); color: var(--on-cover); }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 0; }
.cta h2 { color: var(--on-cover); }
.cta p { margin-top: 6px; color: var(--cover-dim); }
.num { direction: ltr; unicode-bidi: isolate; letter-spacing: .5px; }

.foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0 28px; color: var(--muted); font-size: 14px; }

/* the WhatsApp button that stays on phones */
.fab { position: fixed; z-index: 5; bottom: max(16px, env(safe-area-inset-bottom)); left: 16px; display: none; place-items: center; width: 58px; height: 58px;
  border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }
.fab svg { width: 30px; height: 30px; }

@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
}
@media (max-width: 900px) {
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; }
  .links { display: none; }
  .top .btn { margin-inline-start: auto; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .name { font-size: 30px; }
  .top .btn { display: none; }
  .hero { padding-bottom: 56px; }
  .hero-in { padding-top: 36px; }
  .lead { font-size: 17px; }
  .actions .btn { width: 100%; }
  .cards, .steps { grid-template-columns: 1fr; }
  main > section { padding-top: 56px; }
  .specs, .cta { margin-top: 56px; }
  .specs { padding: 48px 0 !important; }
  .cta-in { flex-direction: column; align-items: stretch; text-align: center; padding: 40px 0; }
  .foot { flex-direction: column; }
  .fab { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .ecg polyline { animation: none; stroke-dasharray: none; }
  .btn { transition: none; }
}
