/* The landing's small pages (privacy, account deletion, a clinic's page): the same colors and type as the home page. */
:root {
  --bg: #04191b;
  --bg-2: #062a2c;
  --panel: #0a3336;
  --ink: #e8f7f4;
  --ink-strong: #ffffff;
  --muted: #9ec4bf;
  --brand: #1ec98a;
  --brand-strong: #14b87c;
  --brand-ink: #04352c;
  --line: rgba(30, 201, 138, 0.22);
  --line-soft: rgba(158, 196, 191, 0.14);
  --card: rgba(255, 255, 255, 0.03);
  --amber: #f5b84b;
  --display: "Cairo", "IBM Plex Sans Arabic", sans-serif;
  --body: "IBM Plex Sans Arabic", "Cairo", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(30, 201, 138, 0.14), transparent 60%),
    radial-gradient(40rem 24rem at 0% 110%, rgba(108, 198, 240, 0.08), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.85;
}

[lang="en"] body, body[lang="en"] { line-height: 1.7; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: #6ef2c1; }

.wrap { width: min(100% - 2rem, 52rem); margin-inline: auto; }

.top {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(4, 25, 27, 0.7);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }

.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink-strong); text-decoration: none; }
.brand img { display: block; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; direction: ltr; }
.wordmark span { color: var(--brand); }

.lang { font-size: 0.9rem; color: var(--muted); text-decoration: none; border: 1px solid var(--line-soft); border-radius: 999px; padding: 0.25rem 0.85rem; }
.lang:hover { color: var(--ink-strong); border-color: var(--line); }

main { padding: 2.5rem 0 4rem; }

h1, h2, h3 { font-family: var(--display); color: var(--ink-strong); line-height: 1.35; }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 0.5rem; }
h2 { font-size: 1.25rem; margin: 2.2rem 0 0.6rem; }
h3 { font-size: 1.05rem; margin: 1.4rem 0 0.4rem; }

.lead { color: var(--muted); margin: 0 0 1.5rem; }
.updated { display: inline-block; font-size: 0.85rem; color: var(--muted); border: 1px solid var(--line-soft); border-radius: 999px; padding: 0.15rem 0.8rem; }

.doc p, .doc li { color: var(--ink); }
.doc ul, .doc ol { padding-inline-start: 1.3rem; }
.doc li { margin: 0.25rem 0; }
.doc strong { color: var(--ink-strong); }

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 1.25rem;
  padding: 1.25rem 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 40px -24px rgba(0, 0, 0, 0.6);
}

.card + .card { margin-top: 1rem; }

.note { border-color: rgba(245, 184, 75, 0.35); background: rgba(245, 184, 75, 0.06); }

.toc { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; font-size: 0.9rem; text-decoration: none; color: var(--muted); border: 1px solid var(--line-soft); border-radius: 999px; padding: 0.2rem 0.8rem; }
.toc a:hover { color: var(--ink-strong); border-color: var(--line); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 1px rgba(30, 201, 138, 0.35), 0 18px 50px -20px rgba(30, 201, 138, 0.6); }
.btn-primary:hover { background: #3ee0a3; color: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--ink-strong); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--ink-strong); }
.btn-block { width: 100%; }
.btn svg { width: 1.3rem; height: 1.3rem; flex: none; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.7rem; }
.steps li { counter-increment: step; display: flex; gap: 0.8rem; align-items: flex-start; }
.steps li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: rgba(30, 201, 138, 0.14);
  color: var(--brand);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
}

.foot { border-top: 1px solid var(--line-soft); padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: 0.9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink-strong); }

/* A clinic's page (/c/{id}) */
.clinic { text-align: center; padding: 2rem 1.4rem 1.6rem; }
.clinic-logo {
  width: 6.5rem;
  height: 6.5rem;
  margin: 0 auto 1rem;
  border-radius: 1.5rem;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 16px 40px -18px rgba(30, 201, 138, 0.55);
}
.clinic-logo img { width: 100%; height: 100%; object-fit: contain; padding: 0.6rem; }
.clinic-logo .initials { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--brand-ink); }
.clinic h1 { margin-bottom: 0.25rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; margin: 0.6rem 0 0; padding: 0; list-style: none; }
.chips li { font-size: 0.85rem; color: var(--ink); background: rgba(30, 201, 138, 0.1); border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.75rem; }
.code-pill { display: inline-block; margin-top: 0.9rem; font-family: var(--display); font-weight: 700; color: var(--brand); background: rgba(30, 201, 138, 0.1); border-radius: 999px; padding: 0.2rem 1rem; }
.actions { display: grid; gap: 0.7rem; margin-top: 1.6rem; }
.branches { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; text-align: start; }
.branches li { padding: 0.8rem 1rem; border: 1px solid var(--line-soft); border-radius: 1rem; background: rgba(0, 0, 0, 0.15); }
.branches strong { display: block; color: var(--ink-strong); font-family: var(--display); }
.branches span { display: block; color: var(--muted); font-size: 0.92rem; }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.1), rgba(255,255,255,0.04)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 0.6rem; }
@keyframes shimmer { to { background-position: -200% 0; } }
.muted { color: var(--muted); }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
