/* ClinicX marketing site — same visual language as the desktop app */
:root {
  --bg: #eef7f6;
  --bg-2: #e2f1ee;
  --card: #ffffff;
  --ink: #163a38;
  --ink-2: #4d6a68;
  --line: rgba(22, 58, 56, 0.10);
  --accent: #159a80;
  --accent-2: #1fb59a;
  --deep: #1f5f5b;
  --warn: #d68b1c;
  --radius: 20px;
  --shadow: 0 12px 40px rgba(0, 80, 80, 0.10);
  --max: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 90% -10%, #d7f0ea 0%, transparent 60%),
              radial-gradient(900px 500px at -10% 30%, #e4f3f0 0%, transparent 55%),
              var(--bg);
  line-height: 1.7;
  font-size: 17px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 4.5vw, 50px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 12px; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.eyebrow {
  display: inline-block; background: #dff3ee; color: var(--accent);
  border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 700; margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 14px; padding: 12px 22px;
  font-weight: 700; font-size: 16px; border: 1px solid transparent; cursor: pointer; transition: .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 24px rgba(21,154,128,.35); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); border-color: var(--line); }
.btn-dark { background: var(--deep); color: #fff; }
.btn svg { width: 20px; height: 20px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238,247,246,.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
header.site .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #2aa5c9, var(--accent-2)); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(21,154,128,.35); }
nav.main { display: flex; gap: 22px; align-items: center; }
nav.main a { color: var(--ink); font-weight: 600; font-size: 15px; }
nav.main a:hover { color: var(--accent); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 19px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 18px; }
.hero .note { font-size: 14px; }
.window { background: #fff; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.window .bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #f2f7f6; border-bottom: 1px solid var(--line); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #d9e3e1; display: inline-block; }
.window .bar i:nth-child(1) { background: #ff6b6b; } .window .bar i:nth-child(2) { background: #ffd166; } .window .bar i:nth-child(3) { background: #48c78e; }

/* Strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 0; }
.strip .item { background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-weight: 700; }
.strip .item svg { width: 26px; height: 26px; color: var(--accent); flex: none; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: rgba(255,255,255,.55); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 24px rgba(0,80,80,.06); }
.card .icon { width: 46px; height: 46px; border-radius: 14px; background: #e3f4f0; color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 24px; height: 24px; }
.card p { font-size: 15.5px; margin: 0; }
.card ul { margin: 8px 0 0; padding-inline-start: 18px; color: var(--ink-2); font-size: 15.5px; }
.card ul li { margin: 4px 0; }
.card.module { border-top: 5px solid var(--accent); }
.card.module.pharmacy { border-top-color: #2aa5c9; }
.card.module.lab { border-top-color: #7c5cbf; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split.reverse > .window { order: -1; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; }
.checks li { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; color: var(--ink); }
.checks li::before { content: "✓"; color: var(--accent); font-weight: 900; flex: none; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gallery figcaption { font-size: 14px; color: var(--ink-2); margin-top: 8px; text-align: center; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: "+"; font-size: 22px; color: var(--accent); }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact .card a { font-weight: 700; font-size: 18px; }

/* Content pages */
.page { padding: 56px 0; }
.page .card { padding: 40px 44px; }
.page h2 { font-size: 20px; margin-top: 26px; }
.page .date { font-size: 14px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: flex; gap: 14px; margin: 14px 0; }
.steps li::before { content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; }
code, kbd { background: #eef3f2; border-radius: 6px; padding: 2px 6px; font-size: .92em; direction: ltr; display: inline-block; }
.callout { background: #fff8e8; border: 1px solid #f3dfae; border-radius: 14px; padding: 14px 18px; color: #6b4d00; }

/* Footer */
footer.site { padding: 36px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
footer.site .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer.site nav { display: flex; gap: 18px; }

@media (max-width: 960px) {
  .hero .grid, .split, .contact, .gallery { grid-template-columns: 1fr; }
  .split.reverse > .window { order: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  nav.main { display: none; position: absolute; top: 72px; inset-inline: 0; flex-direction: column; background: #fff; padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 14px; }
  nav.main.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .hero { padding-top: 40px; }
  .page .card { padding: 26px 20px; }
}
