:root {
  --ink: #1b1e23;
  --ink-soft: #4a4f59;
  --paper: #fffdf8;
  --surface: #ffffff;
  --surface-soft: #f4f7f9;
  --teal: #315f8f;
  --teal-dark: #1e4268;
  --mint: #dce8f3;
  --mint-deep: #c9ddd8;
  --peach: #f4d6c9;
  --line: #d9e1e6;
  --success: #245c4f;
  --shadow: 0 24px 70px rgba(30, 66, 104, 0.12);
  --radius: 22px;
  --shell: min(1160px, calc(100% - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
[dir="rtl"] body { font-family: Tahoma, Arial, sans-serif; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(49, 95, 143, 0.45); outline-offset: 4px; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link {
  position: fixed; inset-block-start: 12px; inset-inline-start: 12px; z-index: 100;
  transform: translateY(-160%); padding: 10px 16px; border-radius: 10px;
  color: #fff; background: var(--teal-dark); font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky; inset-block-start: 0; z-index: 50; border-block-end: 1px solid rgba(217,225,230,.82);
  background: rgba(255,253,248,.9); backdrop-filter: blur(18px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; color: var(--teal-dark); }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand-word { font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 28px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
[dir="rtl"] .brand-word { font-family: Tahoma, Arial, sans-serif; font-size: 27px; letter-spacing: 0; }
.desktop-nav, .header-actions { display: flex; align-items: center; gap: 24px; }
.desktop-nav a, .text-link { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 650; }
.desktop-nav a:hover, .text-link:hover { color: var(--teal-dark); }
.header-actions { gap: 14px; }
.language-link { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 10px; color: var(--teal-dark); text-decoration: none; font-weight: 750; }
.button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: 999px; padding: 11px 20px;
  color: #fff; background: var(--teal); text-decoration: none; font-weight: 780; line-height: 1.2;
  box-shadow: 0 9px 24px rgba(49,95,143,.2); transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--teal-dark); }
.button.secondary { color: var(--teal-dark); background: transparent; border-color: var(--teal); box-shadow: none; }
.button.light { color: var(--teal-dark); background: #fff; }
.menu-button { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--teal-dark); }
.menu-button svg { width: 24px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2; }
.mobile-nav { border-block-start: 1px solid var(--line); padding: 10px 20px 20px; background: var(--paper); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { min-height: 48px; display: flex; align-items: center; padding: 8px 4px; text-decoration: none; font-weight: 700; }
.mobile-nav .button { justify-content: center; margin-block-start: 8px; color: #fff; }

.page-hero { position: relative; overflow: hidden; padding: 104px 0 76px; }
.page-hero::before, .page-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.page-hero::before { width: 360px; height: 360px; inset-block-start: -170px; inset-inline-end: -90px; background: var(--peach); opacity: .66; }
.page-hero::after { width: 260px; height: 260px; inset-block-end: -150px; inset-inline-start: -90px; background: var(--mint-deep); opacity: .58; }
.page-hero .shell { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 16px; color: var(--teal); font-size: 13px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; }
h1 { max-width: 900px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 7vw, 78px); letter-spacing: -.045em; }
[dir="rtl"] h1 { font-family: Tahoma, Arial, sans-serif; letter-spacing: 0; line-height: 1.35; }
.page-hero .lede { max-width: 740px; margin: 24px 0 0; color: var(--ink-soft); font-size: clamp(18px, 2.4vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-block-start: 30px; }

.content { padding: 38px 0 100px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 58px; align-items: start; }
.prose { max-width: 790px; }
.prose section { padding-block: 30px; border-block-start: 1px solid var(--line); }
.prose section:first-child { border-block-start: 0; padding-block-start: 0; }
.prose h2 { margin: 0 0 14px; font-family: Georgia, serif; font-size: clamp(27px, 4vw, 40px); letter-spacing: -.025em; }
[dir="rtl"] .prose h2 { font-family: Tahoma, Arial, sans-serif; letter-spacing: 0; }
.prose h3 { margin: 24px 0 8px; font-size: 19px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-inline-start: 22px; }
.prose a { color: var(--teal-dark); text-underline-offset: 3px; }
.effective-date { margin-block-start: 20px; color: var(--ink-soft); font-size: 14px; }
.side-card { position: sticky; inset-block-start: 110px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.side-card strong { display: block; margin-block-end: 9px; color: var(--teal-dark); font-size: 17px; }
.side-card p { margin: 0 0 18px; color: var(--ink-soft); font-size: 14px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-block-start: 34px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 14px 40px rgba(30,66,104,.08); }
.card:nth-child(2n) { background: var(--surface-soft); }
.card h2, .card h3 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 25px; }
[dir="rtl"] .card h2, [dir="rtl"] .card h3 { font-family: Tahoma, Arial, sans-serif; }
.card p { margin: 0; color: var(--ink-soft); }
.note { margin-block: 30px; padding: 20px 22px; border-inline-start: 4px solid var(--teal); border-radius: 0 14px 14px 0; background: var(--mint); color: var(--teal-dark); }
[dir="rtl"] .note { border-radius: 14px 0 0 14px; }

.pricing-hero { padding-block-end: 118px; background: linear-gradient(145deg, #fffdf8 0%, #eef5fa 100%); }
.pricing-hero h1 { max-width: 980px; }
.pricing-content { padding-block-start: 0; }
.pricing-page { margin-block-start: -76px; position: relative; z-index: 2; }
.pricing-intro { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-block-end: 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); box-shadow: 0 14px 34px rgba(30,66,104,.08); }
.pricing-intro div { min-height: 98px; display: grid; align-content: center; gap: 3px; padding: 20px 24px; background: #fff; }
.pricing-intro strong { color: var(--teal-dark); }
.pricing-intro span { color: var(--ink-soft); font-size: 13px; }
.pricing-toggle { width: max-content; max-width: 100%; display: flex; gap: 4px; margin: 0 auto 30px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: 0 10px 25px rgba(30,66,104,.08); }
.pricing-toggle button { min-height: 44px; border: 0; border-radius: 999px; padding: 9px 18px; color: var(--ink-soft); background: transparent; font: inherit; font-weight: 760; cursor: pointer; }
.pricing-toggle button.active { color: #fff; background: var(--teal-dark); }
.pricing-toggle button span { margin-inline-start: 5px; padding: 3px 7px; border-radius: 999px; color: var(--teal-dark); background: #fff; font-size: 10px; }
[data-price-period][hidden],[data-period-caption][hidden] { display: none !important; }
.pricing-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 27px 24px 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 15px 42px rgba(30,66,104,.08); }
.price-card.featured { border: 2px solid var(--teal); padding: 26px 23px 23px; box-shadow: 0 22px 55px rgba(49,95,143,.18); transform: translateY(-8px); }
.plan-ribbon { position: absolute; inset-block-start: -14px; inset-inline-end: 18px; padding: 6px 12px; border-radius: 999px; color: #fff; background: var(--teal); font-size: 11px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
[dir="rtl"] .plan-ribbon { letter-spacing: 0; }
.price-card-head { min-height: 130px; padding-block-end: 20px; border-block-end: 1px solid var(--line); }
.plan-name { margin: 0 0 13px; color: var(--teal); font-size: 14px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
[dir="rtl"] .plan-name { letter-spacing: 0; }
.price-card h2 { margin: 0 0 5px; font-family: Inter,"Segoe UI",Arial,sans-serif; font-size: clamp(28px,3vw,38px); letter-spacing: -.04em; }
[dir="rtl"] .price-card h2 { font-family: Tahoma,Arial,sans-serif; letter-spacing: 0; }
.price-card h2 small { display: inline; color: var(--ink-soft); font-size: 12px; font-weight: 650; letter-spacing: 0; }
.price-card-head > span { display: block; color: var(--ink-soft); font-size: 13px; }
.plan-for { min-height: 70px; margin: 20px 0 8px; color: var(--ink-soft); font-size: 14px; }
.price-card ul { flex: 1; margin: 0 0 24px; padding-inline-start: 19px; color: var(--ink-soft); font-size: 13px; }
.price-card li { margin-block: 8px; }
.price-card li::marker { color: var(--teal); }
.price-card .button { width: 100%; padding-inline: 13px; }
.coming-soon { margin: -10px 0 19px; padding: 9px 11px; border-radius: 10px; color: var(--teal-dark); background: var(--mint); font-size: 12px; font-weight: 750; }
.price-card.enterprise { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 30px; padding: 31px 34px; color: #fff; background: var(--teal-dark); }
.price-card.enterprise .plan-name,.price-card.enterprise h2 { color: #fff; }
.price-card.enterprise h2 { margin-block-end: 8px; }
.price-card.enterprise p:last-child { max-width: 760px; margin: 0; color: rgba(255,255,255,.76); }
.price-card.enterprise .button { width: auto; flex: 0 0 auto; }
.pricing-note { margin-block-start: 26px; padding: 21px 24px; border: 1px solid #c8d9e8; border-radius: 16px; color: var(--ink-soft); background: #f2f7fb; font-size: 14px; }
.pricing-note strong { color: var(--teal-dark); }

.arabic-hero { padding: 88px 0 76px; }
.arabic-hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; }
.arabic-hero h1 { font-size: clamp(46px, 6vw, 76px); }
.dashboard-preview { position: relative; padding: 24px; border: 1px solid rgba(49,95,143,.14); border-radius: 30px; background: #fff; box-shadow: var(--shadow); transform: rotate(-1deg); }
[dir="rtl"] .dashboard-preview { transform: rotate(1deg); }
.preview-top { display: flex; align-items: center; justify-content: space-between; padding-block-end: 16px; border-block-end: 1px solid var(--line); }
.preview-title { font-weight: 800; color: var(--teal-dark); }
.preview-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--peach); font-weight: 800; }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.preview-stat { min-height: 96px; padding: 14px; border-radius: 16px; background: var(--surface-soft); }
.preview-stat strong { display: block; margin-block-start: 8px; color: var(--teal-dark); font-size: 25px; direction: ltr; text-align: start; }
.preview-stat span { color: var(--ink-soft); font-size: 12px; }
.preview-appointment { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--mint); }
.preview-appointment time { direction: ltr; font-weight: 800; color: var(--teal-dark); }
.preview-appointment small { color: var(--ink-soft); }
.preview-status { padding: 5px 9px; border-radius: 999px; background: #fff; color: var(--success); font-size: 11px; font-weight: 800; }
.home-section { padding: 88px 0; }
.home-section.soft { background: var(--surface-soft); }
.section-heading { max-width: 690px; margin-block-end: 34px; }
.section-heading h2 { margin: 0 0 14px; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: clamp(36px, 5vw, 54px); }
.section-heading p { margin: 0; color: var(--ink-soft); font-size: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: steps; }
.step { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step::before { counter-increment: steps; content: "0" counter(steps); display: block; margin-block-end: 30px; color: var(--teal); font-weight: 900; direction: ltr; text-align: start; }
.step h3 { font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 24px; }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 44px; border-radius: 30px; color: #fff; background: var(--teal-dark); overflow: hidden; }
.cta-panel h2 { margin: 0 0 8px; color: #fff; font-family: Georgia, serif; font-size: clamp(30px, 5vw, 48px); }
[dir="rtl"] .cta-panel h2 { font-family: Tahoma, Arial, sans-serif; }
.cta-panel p { margin: 0; color: rgba(255,255,255,.78); }

.site-footer { padding: 64px 0 26px; color: rgba(255,255,255,.82); background: #172d44; }
.footer-grid { display: grid; grid-template-columns: 1.45fr repeat(3, 1fr); gap: 42px; }
.site-footer .brand { color: #fff; }
.footer-intro p { max-width: 280px; }
.footer-links strong { display: block; margin-block-end: 12px; color: #fff; }
.footer-links a { min-height: 40px; display: flex; align-items: center; color: rgba(255,255,255,.78); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-block-start: 42px; padding-block-start: 22px; border-block-start: 1px solid rgba(255,255,255,.15); font-size: 13px; }
.footer-bottom a { color: #fff; }

@media (max-width: 880px) {
  .desktop-nav, .header-actions .text-link { display: none; }
  .menu-button { display: block; }
  .header-actions { margin-inline-start: auto; }
  .content-grid, .arabic-hero-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .card-grid, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-intro { grid-column: 1 / -1; }
  .pricing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pricing-intro { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
}
@media (max-width: 620px) {
  :root { --shell: min(100% - 28px, 1160px); }
  .header-inner { min-height: 68px; }
  .header-actions .button { display: none; }
  .page-hero, .arabic-hero { padding: 70px 0 54px; }
  .card-grid, .steps, .preview-stats, .footer-grid { grid-template-columns: 1fr; }
  .dashboard-preview { padding: 16px; }
  .preview-appointment { grid-template-columns: 56px 1fr; }
  .preview-status { grid-column: 2; justify-self: start; }
  .cta-panel { align-items: flex-start; flex-direction: column; padding: 30px; }
  .footer-bottom { flex-direction: column; }
  .pricing-hero { padding-block-end: 90px; }
  .pricing-page { margin-block-start: -54px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card-head,.plan-for { min-height: 0; }
  .price-card.enterprise { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .price-card.enterprise .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .dashboard-preview { transform: none; }
}
