:root {
  --ink: #17212b;
  --muted: #5b6672;
  --line: #e3e7ec;
  --bg: #f7f8fa;
  --card: #ffffff;
  --brand: #0f6e5f;
  --brand-ink: #ffffff;
  --brand-soft: #e6f2ef;
  --warn: #fff4d6;
  --bad: #fdecec;
  --radius: 12px;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", Tahoma, "Segoe UI", "Noto Sans Arabic", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
}

a { color: var(--brand); }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }

header.site {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
nav.main a { color: var(--muted); text-decoration: none; margin-inline-start: 18px; font-size: .95rem; }
nav.main a:hover { color: var(--ink); }

main { padding: 32px 0 64px; }

h1 { font-size: 2rem; line-height: 1.35; margin: 0 0 12px; }
h2 { font-size: 1.35rem; margin: 32px 0 12px; }
h3 { font-size: 1.1rem; margin: 20px 0 8px; }
p.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 16px 0;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--brand-ink);
  border: 0;
  border-radius: 10px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn.secondary { background: var(--brand-soft); color: var(--brand); }
.btn.block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feature b { display: block; margin-bottom: 4px; }

.price { font-size: 1.8rem; font-weight: 700; }
.price small { font-size: .95rem; color: var(--muted); font-weight: 400; }

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

.notice { background: var(--warn); border-radius: 10px; padding: 12px 16px; margin: 12px 0; }
.error { background: var(--bad); border-radius: 10px; padding: 12px 16px; margin: 12px 0; }
.ok { background: var(--brand-soft); border-radius: 10px; padding: 12px 16px; margin: 12px 0; }

form label { display: block; font-weight: 600; margin: 14px 0 6px; }
form .hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
input[type=text], input[type=email], input[type=file], textarea, select {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
textarea { min-height: 84px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }

table.kv { width: 100%; border-collapse: collapse; }
table.kv th, table.kv td { text-align: right; padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.kv th { width: 34%; color: var(--muted); font-weight: 500; }

table.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.list th, table.list td { text-align: right; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.list th { color: var(--muted); font-weight: 500; }

.steps { list-style: none; padding: 0; margin: 0; }
.steps li { padding: 8px 0; display: flex; gap: 10px; align-items: center; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.dot.done { background: var(--brand); border-color: var(--brand); }
.dot.now { border-color: var(--brand); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px var(--brand-soft); } }

.files a.file { display: flex; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; text-decoration: none; color: var(--ink); background: #fff; }
.files a.file span { color: var(--brand); font-weight: 600; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .85rem; }

footer.site { border-top: 1px solid var(--line); padding: 24px 0 90px; color: var(--muted); font-size: .88rem; }
footer.site a { color: var(--muted); margin-inline-end: 14px; }

/* assistant */
#chat-toggle { position: fixed; left: 18px; bottom: 18px; z-index: 20; border-radius: 999px; padding: 12px 18px; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
#chat-box { position: fixed; left: 18px; bottom: 76px; z-index: 20; width: min(360px, calc(100vw - 36px)); max-height: 70vh; display: none; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18); overflow: hidden; }
#chat-box.open { display: flex; }
#chat-log { padding: 12px; overflow-y: auto; flex: 1; font-size: .93rem; }
.msg { margin: 6px 0; padding: 8px 12px; border-radius: 12px; max-width: 88%; white-space: pre-wrap; }
.msg.user { background: var(--brand-soft); margin-inline-start: auto; }
.msg.bot { background: #f1f3f5; }
#chat-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
#chat-form input { flex: 1; }
#chat-form button { padding: 10px 14px; }
#chat-email { padding: 0 10px 10px; display: none; }

@media (max-width: 640px) {
  h1 { font-size: 1.6rem; }
  nav.main a.optional { display: none; }
}
