/* DentalPro Iraq SaaS landing page. RTL, Almarai, UKLU Clinical Teal tokens (css/uklu-tokens.css), Light + Dark through data-theme tokens. */
:root {
  --bg: var(--uk-canvas);
  --surface: var(--uk-surface);
  --surface-2: var(--uk-surface-subtle);
  --ink: var(--uk-text);
  --muted: var(--uk-text-muted);
  --line: var(--uk-border);
  --primary: var(--uk-brand);
  --primary-strong: var(--uk-brand-hover);
  --btn: var(--uk-brand);
  --primary-ink: var(--uk-text-on-brand);
  --primary-soft: var(--uk-brand-soft-strong);
  --teal: var(--uk-brand);
  --wa: #128c4a;
  --wa-ink: #ffffff;
  --slate: #18181B;
  --focus: var(--uk-brand);
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px -16px rgba(15, 23, 42, .18);
  --radius: 18px;
}
:root[data-theme="dark"] {
  --wa: #25d366;
  --wa-ink: #052e16;
  --slate: #0E0F10;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -16px rgba(0, 0, 0, .6);
}

*, *::before, *::after { box-sizing: border-box; font-family: "Almarai", "Cairo", system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
html { color-scheme: light dark; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.7; min-height: 100vh; overflow-x: hidden; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-size: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -64px; background: var(--btn); color: var(--primary-ink); padding: 12px 16px; border-radius: 10px; z-index: 60; }
.skip-link:focus { top: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand-mark { width: 40px; height: 40px; border-radius: 13px; background: var(--btn); color: var(--primary-ink); display: grid; place-items: center; flex: none; }
.brand-text { white-space: nowrap; font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.brand-text strong { font-weight: 800; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 14px; border-radius: 12px; color: var(--muted); font-weight: 700; font-size: 15px; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: block; }
:root[data-theme="dark"] .icon-btn .i-moon { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 14px; font-weight: 800; font-size: 15px; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn); color: var(--primary-ink); box-shadow: 0 8px 20px -10px var(--primary); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* hero */
.hero { padding: 56px 0 40px; background: var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 800; color: var(--primary-strong); letter-spacing: .3px; margin-bottom: 12px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.35; font-weight: 800; }
.hero .accent { color: var(--primary-strong); }
.lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--muted); font-size: 14px; font-weight: 700; }
.trust li::before { content: "✓"; color: var(--teal); margin-inline-end: 6px; font-weight: 800; }

/* decorative product preview */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; direction: rtl; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar span { margin-inline-start: auto; font-size: 12px; font-weight: 800; color: var(--muted); }
.mock-body { display: grid; grid-template-columns: 56px 1fr; min-height: 300px; }
.mock-side { background: var(--slate); padding: 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.mock-side b { height: 28px; border-radius: 9px; background: rgba(148, 163, 184, .22); }
.mock-side b:first-child { background: var(--primary); }
.mock-main { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpis div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.mock-kpis small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.mock-kpis strong { font-size: 20px; font-weight: 800; color: var(--primary-strong); }
.mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 96px; padding: 10px 12px; background: var(--surface-2); border-radius: 12px; }
.mock-chart span { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: var(--primary); }
.mock-rows { display: flex; flex-direction: column; gap: 8px; }
.mock-rows p { display: flex; align-items: center; gap: 10px; }
.mock-rows em { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); flex: none; }
.mock-rows u { height: 10px; flex: 1; border-radius: 6px; background: var(--line); text-decoration: none; }

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--surface-2); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.4; font-weight: 800; }
.section-head p:last-child { margin-top: 10px; color: var(--muted); font-size: 17px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-strong); margin-bottom: 14px; }
.feature h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; }
.plan h3 { font-size: 24px; font-weight: 800; }
.plan-sub { color: var(--muted); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.plan-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.plan-list li { position: relative; padding-inline-start: 26px; font-size: 15px; }
.plan-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; color: var(--teal); font-weight: 800; }
.plan.featured { border: 2px solid var(--primary); transform: translateY(-8px); }
.badge { position: absolute; top: -14px; inset-inline-start: 24px; background: var(--btn); color: var(--primary-ink); font-size: 12px; font-weight: 800; padding: 4px 14px; border-radius: 999px; }

.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 36px 40px; border-radius: 24px; background: var(--slate); border: 1px solid var(--line); color: #F4F4F5; }
.cta-card h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.4; }
.cta-card p { margin-top: 8px; color: #cbd5e1; max-width: 52ch; }
.cta-card .btn-wa { background: #25d366; color: #052e16; }

.foot { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 14px; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-admin { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; font-size: 13px; color: var(--muted); border-radius: 10px; }
.foot-admin:hover { color: var(--ink); background: var(--surface-2); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan.featured { transform: none; }
  .cta-card { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}
@media (max-width: 767px) {
  .nav { display: none; }
  .top-actions .btn { padding-inline: 14px; }
  .hero { padding: 36px 0 24px; }
  .lead { font-size: 16px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .section { padding: 48px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 44px 1fr; min-height: 0; }
  .mock-kpis strong { font-size: 17px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* ── pricing + 1-click demo ── */
.plan-en { font-size: 14px; font-weight: 700; color: var(--muted); margin-inline-start: 4px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0; }
.price strong { font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.price span { color: var(--muted); font-size: 14px; font-weight: 700; }
.price-year { color: var(--teal); font-size: 14px; font-weight: 700; margin: 0 0 16px; }
.pay-note { margin: 28px auto 0; max-width: 720px; text-align: center; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1.8; }
.demo-cta { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.btn-demo { background: var(--surface); color: var(--btn); border: 2px solid var(--btn); min-height: 48px; cursor: pointer; font: inherit; font-weight: 800; }
.btn-demo:hover { background: var(--surface-2); }
.btn-demo[disabled] { opacity: .65; cursor: progress; }
.btn-demo:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.demo-msg { margin: 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.demo-msg.is-error { color: #b91c1c; }
:root[data-theme="dark"] .demo-msg.is-error { color: #fca5a5; }
@media (max-width: 640px) { .demo-cta, .demo-cta .btn { width: 100%; } .btn-demo { white-space: normal; text-align: center; } .cta-actions .btn-demo { width: 100%; } }
@media (max-width: 640px) {
  .mock-kpis small, .badge, .mock-bar span { font-size: 13px; }
  .cta-actions { display: flex; flex-direction: column; gap: 8px; }
  .btn:not(.btn-lg) { min-height: 48px; }
}
