:root {
  --paper: #f3eee6;
  --paper-2: #ebe4d8;
  --card: #fbf8f3;
  --ink: #1c1a17;
  --ink-2: #4a453d;
  --muted: #645c51;
  --line: #d9d0c2;
  --accent: #a4532e;
  --accent-ink: #fff8f2;
  --olive: #4b5236;
  --radius: 14px;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { font-family: var(--serif); font-weight: 600; letter-spacing: .14em; font-size: 18px; text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--ink-2); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; text-decoration: none;
  font: 600 16px/1 var(--sans);
  padding: 16px 24px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: #000; }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { background: #8f4625; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.small { padding: 11px 18px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--olive); margin-bottom: 18px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(42px, 6vw, 72px); }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(32px, 4.2vw, 50px); }
h3 { font-size: 23px; }
.lede { font-size: 19px; color: var(--ink-2); margin: 22px 0 30px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 14px; color: var(--ink-2); padding: 0; list-style: none; }
.ticks li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 7px; }

.compare { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4/5; background: var(--paper-2); box-shadow: 0 30px 60px -30px rgba(40,30,20,.45); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 50%); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.compare .handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center; font-weight: 700; font-size: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.tag { position: absolute; top: 14px; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: rgba(28,26,23,.75); color: #fff; }
.tag.l { left: 14px; } .tag.r { right: 14px; background: var(--accent); }
.caption { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Sections */
section { padding: 84px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--ink-2); font-size: 18px; margin: 16px 0 0; }
.alt { background: var(--paper-2); }
.dark { background: var(--ink); color: var(--paper); }
.dark .section-head p, .dark p { color: #cfc6b8; }

.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }
.num { font-family: var(--serif); font-size: 15px; color: var(--accent); font-weight: 600; letter-spacing: .08em; margin-bottom: 12px; display: block; }

.deliverables { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.deliverables ul { list-style: none; padding: 0; margin: 0; }
.deliverables li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr; gap: 6px; }
.deliverables li b { display: block; font-size: 17px; }
.deliverables li span { color: var(--ink-2); font-size: 15px; }
.deliverables li i { font-style: normal; color: var(--accent); font-weight: 700; }
.board { border-radius: 18px; overflow: hidden; background: var(--paper-2); aspect-ratio: 1/1; }
.board img { width: 100%; height: 100%; object-fit: cover; }

.who .card h3 { font-size: 20px; }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; display: flex; flex-direction: column; color: var(--ink); }
.price.feature { background: var(--ink); color: var(--paper); border-color: var(--ink); position: relative; }
.price.feature .muted, .price.feature li { color: #d8cfc1; }
.badge { position: absolute; top: -12px; left: 26px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.price h3 { font-size: 22px; }
.amount { font-family: var(--serif); font-size: 46px; margin: 14px 0 2px; line-height: 1; }
.amount small { font-family: var(--sans); font-size: 15px; font-weight: 600; margin-right: 4px; }
.muted { color: var(--muted); font-size: 14px; }
.price ul { list-style: none; padding: 0; margin: 22px 0 26px; flex: 1; }
.price li { padding: 7px 0 7px 24px; position: relative; font-size: 15px; color: var(--ink-2); }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price .btn { width: 100%; }
.feature-strip { margin-top: 18px; display: flex; gap: 28px; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.feature-strip p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; max-width: 46em; }
.fs-buy { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
@media (max-width: 900px) { .feature-strip { flex-direction: column; align-items: stretch; } .fs-buy { justify-content: space-between; } }
.pay-note { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.notice { max-width: 640px; margin: 0 auto 28px; padding: 14px 18px; border-radius: 12px; background: #f6e2d6; color: #6b2f14; font-size: 15px; display: none; }
.notice.show { display: block; }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.about blockquote { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; margin: 0; }

/* FAQ */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); margin: 12px 0 0; }

/* Final CTA */
.final { text-align: center; }
.final p { max-width: 560px; margin: 18px auto 30px; }

footer { padding: 36px 0 90px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer .foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(32px,5vw,46px); }
.legal h2 { font-size: 22px; margin: 34px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(20,18,15,.55); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal.open { display: flex; }
.sheet { background: var(--card); border-radius: 20px; width: 100%; max-width: 460px; padding: 30px 26px; position: relative; max-height: 92vh; overflow: auto; }
.sheet h3 { margin-bottom: 6px; }
.close { position: absolute; right: 14px; top: 10px; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--muted); }

/* Forms */
label { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
input, select, textarea {
  width: 100%; font: 16px var(--sans); color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 96px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { color: #a32b14; font-size: 14px; margin-top: 12px; min-height: 1em; }
.hp { position: absolute; left: -9999px; }

/* Contact float */
.wa { position: fixed; left: 18px; bottom: 18px; z-index: 30; display: none; align-items: center; gap: 8px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 18px; border-radius: 999px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); }
.wa.show { display: inline-flex; }

/* Mobile sticky CTA */
.mobile-cta { display: none; }

@media (max-width: 900px) {
  .hero { padding: 40px 0 36px; }
  .hero .wrap, .deliverables, .about { grid-template-columns: 1fr; gap: 34px; }
  .g3, .g4, .prices { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section { padding: 60px 0; }
  .compare { aspect-ratio: 4/4.4; }
  .row2 { grid-template-columns: 1fr; }
  .price.feature { order: -1; }
  .mobile-cta { display: block; position: fixed; left: 16px; right: 16px; bottom: 66px; z-index: 25; transform: translateY(calc(100% + 90px)); transition: transform .25s ease; }
  .mobile-cta.show { transform: none; }
  footer { padding-bottom: 170px; }
  .mobile-cta .btn { width: 100%; box-shadow: 0 12px 26px -10px rgba(0,0,0,.5); }
  .wa { bottom: 132px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .lede { font-size: 17px; }
  .cta-row .btn { width: 100%; }
}

.pay-sheet { padding: 40px 8px 8px; max-width: 470px; max-height: 96vh; overflow: auto; }
#payFrame iframe { display: block; width: 100%; height: 820px; border: 0; }
.contact-ok { display: none; }
.contact-ok.show { display: block; }

/* Phone ergonomics */
html.modal-open, html.modal-open body { overflow: hidden; }
footer .foot-links a { display: inline-block; padding: 10px 0; }
.close { width: 44px; height: 44px; display: grid; place-items: center; }
input, select, textarea { font-size: 16px; }
@media (max-width: 600px) {
  .modal { align-items: flex-end; padding: 0; }
  .modal .sheet { max-width: none; border-radius: 24px 24px 0 0; padding: 30px 20px calc(22px + env(safe-area-inset-bottom, 0px)); max-height: 94vh; animation: sheetUp .42s cubic-bezier(.32,.72,0,1); }
  .modal .sheet::before { content: ""; position: absolute; top: 10px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line); }
  .modal .close { right: 6px; top: 6px; }
  .modal .pay-sheet { padding: 40px 0 0; height: 94vh; }
  #payFrame iframe { height: calc(94vh - 40px); }
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal .sheet { animation: none; } }

/* Language switch (EN / ع) */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; flex-shrink: 0;
  background: rgba(28,26,23,.05); box-shadow: inset 0 0 0 1px rgba(28,26,23,.07); font: 600 12px/1 var(--sans); }
.lang-switch > * { display: grid; place-items: center; min-width: 32px; height: 30px; padding: 0 9px; border-radius: 999px;
  text-decoration: none; color: var(--muted); letter-spacing: .06em; transition: background .3s ease, color .3s ease; }
.lang-switch a:hover { color: var(--ink); background: rgba(28,26,23,.07); }
.lang-switch [aria-current] { background: var(--ink); color: var(--paper); }
.lang-switch [lang="ar"] { font-family: "IBM Plex Sans Arabic", "Noto Naskh Arabic", system-ui, sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0; padding-bottom: 3px; }
.nav .lang-switch { margin-inline-start: auto; }
.price-sar { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.nav .btn.small { white-space: nowrap; }
@media (max-width: 480px) { .hide-sm { display: none; } .nav .wrap { gap: 10px; } }

/* Brand logo */
.logo.logo-img { display: inline-flex; align-items: center; letter-spacing: 0; line-height: 0; }
.logo.logo-img img { display: block; height: 24px; width: auto; }
@media (max-width: 600px) { .logo.logo-img img { height: 20px; } }
