/* وَصْف — Wasf by SWOT — الهوية مأخوذة من منصة سوات */
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(fonts/IBMPlexSansArabic-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(fonts/IBMPlexSansArabic-Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(fonts/IBMPlexSansArabic-SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(fonts/IBMPlexSansArabic-Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --bg: #FAF8F4; --card: #FFFFFF; --ink: #1B211D; --mut: #5E6A61; --line: #E3E6E0;
  --g1: #EEF2EC; --g2: #DCE3DA; --g6: #4A5F4D; --g7: #36483A; --g8: #26332B; --g9: #1E2822;
  --br: #CF862A; --br1: #F7EBD9; --br2: #E3A85A; --ok: #4E7A4E; --red: #B4483C;
  --r: 18px; --sh: 0 1px 2px rgba(30,40,34,.05), 0 10px 30px -12px rgba(30,40,34,.18);
  --fh: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif; --fb: 'IBM Plex Sans Arabic', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--fb); font-size: 16px; line-height: 1.7; }
a { color: var(--g7); }
h1, h2, h3, h4 { font-family: var(--fh); line-height: 1.35; margin: 0 0 .5em; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* الشريط العلوي */
.top { position: sticky; top: 0; z-index: 30; background: rgba(250,248,244,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--g9); }
.brand .mark { width: 40px; height: 40px; border-radius: 12px; background: var(--g9); display: grid; place-items: center; color: var(--br2); font-family: var(--fh); font-weight: 700; font-size: 20px; }
.brand b { font-family: var(--fh); font-size: 21px; }
.brand img.logo { height: 46px; width: auto; display: block; }
.brand .sep { width: 1px; height: 34px; background: var(--line); }
.side .brand .sep { background: rgba(255,255,255,.2); }
@media (max-width: 560px) { .brand img.logo { height: 38px; } } .brand small { display: block; font-size: 11px; color: var(--mut); line-height: 1; letter-spacing: .3px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.nav a:hover, .nav a.on { background: var(--g1); }
.burger { display: none; margin-inline-start: auto; background: none; border: 0; font-size: 26px; cursor: pointer; }
@media (max-width: 860px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 68px; inset-inline: 0; background: var(--card); flex-direction: column; align-items: stretch; padding: 10px; border-bottom: 1px solid var(--line); box-shadow: var(--sh); }
  .nav.open { display: flex; }
}

/* الأزرار والحقول */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 20px; font: 600 15px var(--fb);
  cursor: pointer; text-decoration: none; transition: .15s; background: var(--g8); color: #fff; }
.btn:hover { background: var(--g9); }
.btn.gold { background: linear-gradient(135deg, var(--br2), var(--br)); color: var(--g9); box-shadow: 0 8px 20px -10px var(--br); }
.btn.gold:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--g8); border: 1.5px solid var(--g2); }
.btn.ghost:hover { background: var(--g1); }
.btn.red { background: var(--red); } .btn.sm { padding: 7px 13px; font-size: 13.5px; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; color: var(--g8); }
label .opt { font-weight: 400; color: var(--mut); font-size: 12.5px; }
input, select, textarea { width: 100%; font: 15px var(--fb); padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--br2); box-shadow: 0 0 0 3px var(--br1); }
textarea { min-height: 90px; resize: vertical; }
input[dir=ltr] { text-align: left; }
.field { margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
@media (max-width: 700px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.hint { font-size: 13px; color: var(--mut); margin-top: 4px; }

/* البطاقات */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 26px; }
.page { padding: 34px 0 60px; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-title h1 { font-size: 28px; margin: 0; }
.muted { color: var(--mut); }
.badge { display: inline-block; padding: 3px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--g1); color: var(--g7); }
.badge.gold { background: var(--br1); color: #8a5512; } .badge.ok { background: #e3efe1; color: var(--ok); } .badge.red { background: #f6e1de; color: var(--red); }
.badge.blue { background: #e3ecf6; color: #2f5d8a; }
.alert { padding: 13px 16px; border-radius: 12px; background: var(--br1); color: #6f4510; margin-bottom: 16px; font-size: 14.5px; }
.alert.ok { background: #e3efe1; color: #2f5b2f; } .alert.err { background: #f6e1de; color: #8b2f25; } .alert.info { background: var(--g1); color: var(--g7); }

/* الواجهة الرئيسية */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(207,134,42,.22), transparent 60%), linear-gradient(160deg, var(--g9), var(--g7)); color: #fff; padding: 76px 0 90px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .pill { display: inline-block; border: 1px solid rgba(227,168,90,.5); color: var(--br2); border-radius: 99px; padding: 5px 14px; font-size: 13.5px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 700; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--br2); }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,.82); max-width: 560px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); } .hero .btn.ghost:hover { background: rgba(255,255,255,.08); }
.mock { background: #fff; color: var(--ink); border-radius: 16px; padding: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); transform: rotate(-2deg); font-size: 11.5px; }
.mock .h { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--br); padding-bottom: 8px; margin-bottom: 10px; }
.mock .h b { color: var(--g8); font-size: 13px; } .mock .h span { color: var(--br); font-weight: 700; }
.mock .bar { background: var(--g8); color: #fff; padding: 5px 9px; display: flex; justify-content: space-between; margin: 8px 0 4px; font-weight: 600; }
.mock .bar i { color: var(--br1); font-style: normal; }
.mock .row { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); } .mock .row div { padding: 4px 8px; } .mock .row div + div { border-inline-start: 1px solid var(--line); direction: ltr; text-align: left; color: var(--mut); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .mock { display: none; } }
.stats { margin-top: -46px; position: relative; z-index: 2; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: #fff; border-radius: 16px; border-top: 3px solid var(--br); box-shadow: var(--sh); padding: 18px; text-align: center; }
.stat b { display: block; font-family: var(--fh); font-size: 30px; color: var(--g8); } .stat span { color: var(--mut); font-size: 14px; }
@media (max-width: 700px) { .stats .wrap { grid-template-columns: 1fr 1fr; } }
.sect { padding: 70px 0 10px; }
.sect .head { text-align: center; max-width: 680px; margin: 0 auto 34px; }
.sect .head .k { color: var(--br); font-weight: 600; font-size: 14px; }
.sect .head h2 { font-size: clamp(24px, 3vw, 34px); }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat .card { padding: 22px; } .feat .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--br1); display: grid; place-items: center; font-size: 22px; margin-bottom: 12px; }
.feat h3 { font-size: 18px; } .feat p { margin: 0; color: var(--mut); font-size: 15px; }
@media (max-width: 860px) { .feat { grid-template-columns: 1fr; } }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps .card { padding: 22px; position: relative; } .steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: -14px; inset-inline-start: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--g8); color: var(--br2); display: grid; place-items: center; font-weight: 700; }
.steps h3 { font-size: 17px; margin-top: 6px; } .steps p { margin: 0; color: var(--mut); font-size: 14.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips span { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; font-size: 14px; }
.chips span b { color: var(--br); margin-inline-end: 4px; }
.prices { display: grid; grid-template-columns: repeat(4, 1fr);
} .prices.p5 { grid-template-columns: repeat(5, 1fr); } .prices.p5 .price { padding: 20px; } .prices.p5 .amt { font-size: 28px; }
.prices { gap: 16px; align-items: stretch; }
.price { display: flex; flex-direction: column; } .price.hot { border: 2px solid var(--br); position: relative; }
.price.hot::before { content: 'الأكثر طلباً'; position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%); background: var(--br); color: #fff; font-size: 12px; padding: 2px 12px; border-radius: 99px; }
.price h3 { font-size: 19px; } .price .amt { font-family: var(--fh); font-size: 34px; color: var(--g8); font-weight: 700; } .price .amt small { font-size: 15px; color: var(--mut); font-weight: 400; }
.price del { color: var(--mut); font-size: 15px; margin-inline-start: 6px; }
.price ul { padding: 0; margin: 14px 0 20px; list-style: none; flex: 1; } .price li { padding: 4px 0; font-size: 14.5px; } .price li::before { content: '✓'; color: var(--ok); font-weight: 700; margin-inline-end: 8px; }
.cur-switch { display: flex; justify-content: center; gap: 6px; margin-bottom: 22px; }
.cur-switch button { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 16px; font: 600 14px var(--fb); cursor: pointer; }
.cur-switch button.on { background: var(--g8); color: #fff; border-color: var(--g8); }
.promo { text-align: center; margin-bottom: 14px; } .promo span { background: var(--br1); color: #8a5512; padding: 6px 16px; border-radius: 99px; font-weight: 600; font-size: 14px; }
@media (max-width: 1100px) { .prices.p5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) { .prices, .prices.p5 { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .prices, .prices.p5 { grid-template-columns: 1fr; } }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; } .faq p { margin: 10px 0 0; color: var(--mut); }
footer.site { background: var(--g9); color: rgba(255,255,255,.75); margin-top: 70px; padding: 40px 0 24px; font-size: 14.5px; }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
footer.site h4 { color: #fff; font-size: 16px; } footer.site a { color: var(--br2); text-decoration: none; } footer.site .copy { grid-column: 1/-1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; font-size: 13px; text-align: center; }
footer.site img { height: 42px; margin-bottom: 8px; }
@media (max-width: 760px) { footer.site .wrap { grid-template-columns: 1fr; } }
.float { position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.float a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--sh); text-decoration: none; color: #fff; font-size: 24px; }
.float .wa { background: #25D366; } .float .tg { background: #229ED9; }

/* المعالج والطلبات */
.stepper { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.stepper span { flex: 1; min-width: 120px; text-align: center; padding: 9px; border-radius: 12px; background: var(--g1); color: var(--mut); font-size: 14px; font-weight: 600; }
.stepper span.on { background: var(--g8); color: #fff; } .stepper span.done { background: var(--br1); color: #8a5512; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice .opt { border: 2px solid var(--line); border-radius: 16px; padding: 22px; cursor: pointer; background: #fff; transition: .15s; }
.choice .opt:hover { border-color: var(--br2); } .choice .opt.on { border-color: var(--br); background: #fffaf2; }
.choice .opt h3 { font-size: 19px; } .choice .opt p { margin: 0; color: var(--mut); font-size: 14.5px; }
@media (max-width: 700px) { .choice { grid-template-columns: 1fr; } }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: start; background: var(--g1); color: var(--g8); padding: 10px 12px; font-weight: 600; }
.tbl td { border-top: 1px solid var(--line); padding: 10px 12px; vertical-align: middle; }
.tbl-wrap { overflow-x: auto; }
.joblist .jrow { display: grid; grid-template-columns: 30px 1.3fr 1.3fr 1fr 1.2fr 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.joblist .jrow input, .joblist .jrow select { padding: 8px 10px; font-size: 14px; }
.joblist .jrow .n { color: var(--br); font-weight: 700; text-align: center; }
.joblist .x { background: none; border: 0; color: var(--red); font-size: 20px; cursor: pointer; }
@media (max-width: 860px) { .joblist .jrow { grid-template-columns: 1fr 1fr; } .joblist .jrow .n { display: none; } }
.sum { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); } .sum b { font-family: var(--fh); }
.total { font-family: var(--fh); font-size: 28px; color: var(--g8); font-weight: 700; }
.method { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.method pre { white-space: pre-wrap; font: 14.5px var(--fb); margin: 8px 0 0; background: var(--g1); padding: 10px 12px; border-radius: 10px; }
.timeline { display: flex; gap: 6px; margin: 14px 0 20px; flex-wrap: wrap; }
.timeline span { flex: 1; min-width: 110px; text-align: center; font-size: 13px; padding: 8px 4px; border-radius: 10px; background: var(--g1); color: var(--mut); }
.timeline span.done { background: var(--g8); color: #fff; } .timeline span.now { background: var(--br); color: #fff; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.doc-row .t { flex: 1; min-width: 200px; } .doc-row .t b { display: block; } .doc-row .t small { color: var(--mut); direction: ltr; display: inline-block; }
.spin { display: inline-block; width: 16px; height: 16px; border: 2.5px solid var(--g2); border-top-color: var(--br); border-radius: 50%; animation: sp 1s linear infinite; vertical-align: middle; }
@keyframes sp { to { transform: rotate(360deg); } }
.logo-prev { width: 120px; height: 70px; border: 1.5px dashed var(--br2); border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: #fff; color: var(--mut); font-size: 12px; }
.logo-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.auth-box { max-width: 460px; margin: 0 auto; }
.tabs { display: flex; background: var(--g1); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.tabs button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 9px; font: 600 15px var(--fb); cursor: pointer; color: var(--mut); }
.tabs button.on { background: #fff; color: var(--g8); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--g9); color: #fff; padding: 12px 22px; border-radius: 12px; z-index: 99; box-shadow: var(--sh); font-size: 15px; }
.lock { position: relative; } .lock .veil { position: absolute; inset: 0; backdrop-filter: blur(4px); background: rgba(250,248,244,.55); display: grid; place-items: center; border-radius: 12px; }
.lock .veil div { background: #fff; padding: 14px 20px; border-radius: 12px; box-shadow: var(--sh); font-weight: 600; text-align: center; }

/* عرض الوثيقة والطباعة */
.docbar { position: sticky; top: 0; z-index: 20; background: var(--g9); color: #fff; padding: 10px 0; }
.docbar .wrap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.docbar .t { margin-inline-end: auto; font-weight: 600; }
.paper { background: #fff; max-width: 210mm; margin: 24px auto; padding: 12mm 14mm; box-shadow: var(--sh); }
.paper.sample { position: relative; }
.paper.sample::before { content: 'نموذج'; position: fixed; top: 45%; left: 50%; transform: translate(-50%,-50%) rotate(-30deg); font-size: 140px; color: rgba(207,134,42,.10); font-weight: 700; pointer-events: none; z-index: 5; }
@media print {
  body { background: #fff; } .top, .docbar, footer.site, .float, .noprint { display: none !important; }
  .paper { box-shadow: none; margin: 0; padding: 0; max-width: none; }
}
