/* One-page static stylesheet for rahoomapp.com (/ and /en).
 * Self-hosted IBM Plex Sans Arabic/Latin from /fonts/, zero JS, light + dark. */

@font-face {
  font-family: "Rahoom Plex Arabic";
  src: local("IBM Plex Sans Arabic"), url("/fonts/IBMPlexSansArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Rahoom Plex Arabic";
  src: local("IBM Plex Sans Arabic SemiBold"), url("/fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Rahoom Plex Arabic";
  src: local("IBM Plex Sans Arabic Bold"), url("/fonts/IBMPlexSansArabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Rahoom Plex";
  src: local("IBM Plex Sans"), url("/fonts/IBMPlexSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Rahoom Plex";
  src: local("IBM Plex Sans SemiBold"), url("/fonts/IBMPlexSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Rahoom Plex";
  src: local("IBM Plex Sans Bold"), url("/fonts/IBMPlexSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ground: #FAF3E9;
  --surface: #FEFDF9;
  --soft: #F0E4D6;
  --foot-bg: #EFE4D4;
  --fg: #352315;
  --fg-2: #5A4438;
  --muted: #6E5947;
  --accent: #744D30;
  --accent-hover: #5E3D24;
  --on-accent: #FEFDF9;
  --border: #E4DDD5;
  --border-strong: #806E58;
  --success: #2E6B3C;
  --focus: #352315;
  --shadow: 0 1px 2px rgba(53, 35, 21, 0.05), 0 8px 24px rgba(53, 35, 21, 0.05);
  --font: "Rahoom Plex Arabic", "Rahoom Plex", "Segoe UI", Tahoma, sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
  --pill: 999px;
  --wrap: 1120px;
  color-scheme: light dark;
}

html[lang="en"] {
  --font: "Rahoom Plex", "Rahoom Plex Arabic", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #18120E;
    --surface: #241D18;
    --soft: #372C24;
    --foot-bg: #120D0A;
    --fg: #F0E9DC;
    --fg-2: #D8CEC0;
    --muted: #BDB2A3;
    --accent: #D6A27A;
    --accent-hover: #E4B692;
    --on-accent: #241911;
    --border: #3E332B;
    --border-strong: #9A8C7E;
    --success: #86C595;
    --focus: #F0E9DC;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 12px 28px rgba(0, 0, 0, 0.3);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ground);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--ground);
  color: var(--fg);
  overflow-x: clip;
}

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -120px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 20px;
  border-radius: var(--pill);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(100%, var(--wrap));
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/* Header */
.site-head {
  border-bottom: 1px solid var(--border);
  background: var(--ground);
  position: static;
  z-index: 20;
}

@media (min-width: 720px) {
  .site-head {
    position: sticky;
    top: 0;
  }
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  flex-wrap: wrap;
  padding-block: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  min-height: 48px;
  padding-inline: 4px;
}
.brand:hover { color: var(--fg); }

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.brand-mark img {
  display: block;
  width: 36px;
  height: 36px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  transition: background-color 140ms ease;
}
.nav a:hover { background: var(--soft); color: var(--fg); }

.nav .nav-lang {
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  border-radius: var(--pill);
  padding-inline: 14px;
}
.nav .nav-lang:hover { background: var(--soft); color: var(--fg); }

.nav .nav-cta {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--pill);
  padding-inline: 18px;
}
.nav .nav-cta:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  min-width: 48px;
  padding: 12px 24px;
  border-radius: var(--pill);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--soft);
  color: var(--fg);
}

.btn svg, .ic {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Sections */
section[id] { scroll-margin-top: 84px; }

.sec {
  padding-block: clamp(40px, 6vw, 72px);
}

.sec + .sec {
  border-top: 1px solid var(--border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--pill);
  background: var(--soft);
  color: var(--fg-2);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.3;
  font-weight: 700;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.4;
  font-weight: 700;
}

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--fg-2);
  max-width: 58ch;
}

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Hero */
.hero {
  padding-block: clamp(28px, 5vw, 56px) clamp(40px, 6vw, 68px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 479px) {
  .actions .btn { width: 100%; }
}

.hero-notes {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--fg-2);
  font-size: 0.92rem;
}

.hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tick { color: var(--success); }

/* Feature strip */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
  list-style: none;
  padding: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  min-width: 48px;
  margin-top: 6px;
  font-size: 0.92rem;
  font-weight: 600;
}

.ic-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

/* Drawn PC Frame */
figure { margin: 0; }
figcaption {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}

.pc-frame {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: var(--soft);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-2);
}

.pc-dots {
  display: inline-flex;
  gap: 6px;
}
.pc-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
  opacity: 0.65;
}

.pc-body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.pc-patient {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.pc-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--pill);
  background: var(--soft);
  color: var(--fg-2);
  font-size: 0.78rem;
  font-weight: 600;
}

.rx-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--ground);
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
}

.rx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.mini-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--fg);
}

.mini-btn.solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.qr-mini {
  width: 44px;
  height: 44px;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #FEFDF9;
  color: #352315;
  display: grid;
  place-items: center;
  flex: none;
}

/* Patient section + Drawn Phone Frame */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--fg-2);
}

.check-list svg {
  margin-top: 3px;
  color: var(--success);
  flex: none;
}

.notice-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--soft);
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 0.94rem;
  font-weight: 600;
}

.phone-frame {
  width: min(100%, 300px);
  margin-inline: auto;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  border-radius: 28px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.phone-notch {
  width: 72px;
  height: 6px;
  border-radius: var(--pill);
  background: var(--border-strong);
  opacity: 0.5;
  margin: 0 auto 14px;
}

.phone-screen {
  background: var(--ground);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.dose-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.dose-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.dose-done {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--success);
}

.phone-foot {
  text-align: center;
  padding-top: 4px;
}

/* 3-step Rx code bridge */
.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

/* Download & Contact */
.sha-box {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ground);
  border: 1px solid var(--border);
}

.req-list {
  margin: 10px 0 0;
  padding-inline-start: 20px;
  color: var(--fg-2);
  display: grid;
  gap: 8px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--fg);
  min-height: 72px;
  border-color: var(--border-strong);
  transition: background-color 140ms ease, border-color 140ms ease;
}
.contact-card:hover {
  background: var(--soft);
  border-color: var(--border-strong);
  color: var(--fg);
}

.contact-card .ic-badge { margin-bottom: 0; flex: none; }
.contact-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  display: block;
}

.contact-note {
  margin-top: 16px;
}

/* Footer */
.site-foot {
  background: var(--foot-bg);
  border-top: 1px solid var(--border);
  padding-block: 32px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 14px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  min-width: 48px;
  color: var(--fg);
  font-weight: 600;
  font-size: 0.94rem;
}

/* Responsive breakpoints */
@media (min-width: 720px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 40px; }
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
  .feat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Pricing, comparison, FAQ */
.plan .price {
  margin: 4px 0 8px;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
}

.plan .price-cur {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-2);
}

.terms { margin-top: 24px; }

.cmp-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.cmp th, .cmp td {
  padding: 12px 14px;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.cmp thead th, .cmp thead td { background: var(--soft); color: var(--fg); }
.cmp tbody th { color: var(--fg); font-weight: 600; }
.cmp td { color: var(--fg-2); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
