/* كَيْل — public site. Warm parchment + bronze, the program's «فاتح» palette. */
@font-face { font-family: "Cairo"; font-weight: 400; font-display: swap; src: url("/fonts/cairo-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Cairo"; font-weight: 600; font-display: swap; src: url("/fonts/cairo-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Cairo"; font-weight: 700; font-display: swap; src: url("/fonts/cairo-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Cairo"; font-weight: 800; font-display: swap; src: url("/fonts/cairo-arabic-800-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Cairo"; font-weight: 400; font-display: swap; src: url("/fonts/cairo-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Cairo"; font-weight: 700; font-display: swap; src: url("/fonts/cairo-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Aref Ruqaa"; font-weight: 700; font-display: swap; src: url("/fonts/aref-ruqaa-arabic-700-normal.woff2") format("woff2"); }

:root {
  --paper: #f6f0e6;
  --paper-deep: #efe5d5;
  --surface: #fbf8f3;
  --ink: #231a13;
  --ink-soft: #5b4c40;
  --ink-faint: #6f5e4d;
  --line: rgba(35, 26, 19, 0.1);
  --line-strong: rgba(35, 26, 19, 0.22);
  --espresso: #2b2019;
  --espresso-2: #3a2c22;
  --bronze: #82552a;
  --bronze-lit: #b07a42;
  --wash: #f3e7d6;
  --olive: #5d6b3a;
  --radius: 14px;
  --wrap: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: "Cairo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--bronze); text-underline-offset: 4px; }
a:hover { color: var(--espresso); }
:focus-visible { outline: 2px solid var(--bronze-lit); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ── Header ───────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 1px 0 var(--line-strong); }
.brand b { font-family: "Aref Ruqaa", serif; font-size: 30px; line-height: 1; font-weight: 700; padding-top: 4px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 12px; border-radius: 999px; transition: background .2s var(--ease), color .2s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--wash); color: var(--espresso); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 16px;
  padding: 11px 22px; border-radius: 12px; text-decoration: none; cursor: pointer;
  background: var(--espresso); color: #f6f0e6; border: 1px solid var(--espresso);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--espresso-2); color: #fff; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--espresso); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--wash); }
.top .btn { padding: 8px 16px; font-size: 15px; }
@media (max-width: 760px) { .nav { display: none; } .top .btn { margin-inline-start: auto; } }

/* ── Hero ─────────────────────────────────── */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(176, 122, 66, .16), transparent 70%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--bronze); font-weight: 700; font-size: 15px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.25; margin: 14px 0 18px; font-weight: 800; letter-spacing: -0.5px; }
.hero h1 em { font-style: normal; font-family: "Aref Ruqaa", serif; color: var(--bronze); font-weight: 700; }
.hero p.lead { font-size: 20px; color: var(--ink-soft); max-width: 34em; margin: 0 0 30px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.seal {
  justify-self: center; position: relative; width: min(380px, 100%); aspect-ratio: 1;
  display: grid; place-items: center;
}
.seal img { width: 72%; height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 30px 60px -24px rgba(43, 32, 25, .45), 0 0 0 1px var(--line); }
.seal::after { /* the stamped ring: «المكاييل تُختم» */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px dashed rgba(130, 85, 42, .35);
}
@media (max-width: 860px) {
  .hero { padding: 48px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .seal { width: 220px; order: -1; }
}

/* Leveling stick: the signature divider. */
.level { height: 1px; background: var(--line-strong); position: relative; margin: 0; border: 0; }
.level::after { content: ""; position: absolute; inset-inline-start: 50%; top: -3px; width: 96px; height: 7px; transform: translateX(50%); background: var(--bronze); border-radius: 4px; }

/* ── Sections ─────────────────────────────── */
section { padding: 84px 0; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.35; margin: 8px 0 10px; font-weight: 800; }
.sec-head p { color: var(--ink-soft); margin: 0; font-size: 18px; }
@media (max-width: 760px) { section { padding: 56px 0; } }

/* Story */
.story { background: var(--espresso); color: #efe5d5; }
.story .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.story h2 { font-family: "Aref Ruqaa", serif; font-weight: 700; font-size: clamp(54px, 8vw, 96px); line-height: 1.1; margin: 0; color: #e7c79c; }
.story .eyebrow { color: #d7aa72; }
.story p { margin: 0 0 18px; font-size: 18px; color: #e3d6c3; }
.story p:first-child::first-letter { color: #e7c79c; }
@media (max-width: 860px) { .story .wrap { grid-template-columns: 1fr; gap: 20px; } }

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.feat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.feat:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(43, 32, 25, .35); border-color: var(--line-strong); }
.feat-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.feat .ico { color: var(--bronze); flex: none; display: grid; }
.feat .ico svg { width: 24px; height: 24px; }
.feat h3 { margin: 0; font-size: 19px; font-weight: 700; }
.feat p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }

/* Promise strip */
.promise { background: var(--paper-deep); }
.promise .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.promise div b { display: block; font-size: 20px; margin-bottom: 4px; }
.promise div span { color: var(--ink-soft); font-size: 16px; }
@media (max-width: 760px) { .promise .wrap { grid-template-columns: 1fr; gap: 20px; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px;
  display: flex; flex-direction: column;
}
.plan.best { background: var(--espresso); color: #efe5d5; border-color: var(--espresso); }
.plan .tag { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 2px 12px; border-radius: 999px; background: var(--wash); color: var(--bronze); margin-bottom: 14px; }
.plan.best .tag { background: rgba(231, 199, 156, .16); color: #e7c79c; }
.plan h3 { margin: 0; font-size: 24px; font-weight: 800; }
.plan .sub { color: var(--ink-soft); margin: 4px 0 22px; font-size: 16px; }
.plan.best .sub { color: #c9b8a2; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price .amt { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.price .per { color: var(--ink-faint); font-weight: 600; }
.plan.best .price .per { color: #c9b8a2; }
.yearly { margin: 10px 0 22px; padding: 10px 14px; border-radius: 10px; background: var(--paper); font-size: 15px; color: var(--ink-soft); }
.plan.best .yearly { background: rgba(255, 255, 255, .06); color: #d9cab6; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 6px; border-radius: 50%; background: var(--wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2382552a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.plan.best li::before { background-color: rgba(231, 199, 156, .18); }
.plan .btn { margin-top: auto; }
.plan.best .btn { background: #e7c79c; color: var(--espresso); border-color: #e7c79c; }
.plan.best .btn:hover { background: #f1d8b4; }
.note { margin-top: 22px; color: var(--ink-faint); font-size: 15px; max-width: 900px; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact .card {
  display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.contact a.card:hover { border-color: var(--bronze-lit); background: #fff; }
.contact .card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--espresso); color: #e7c79c; display: grid; place-items: center; flex: none; }
.contact .card .ico svg { width: 22px; height: 22px; }
.contact .card small { display: block; color: var(--ink-faint); font-size: 14px; line-height: 1.4; }
.contact .card b { font-size: 18px; }

/* Legal pages */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin: 6px 0 6px; font-weight: 800; }
.doc .updated { color: var(--ink-faint); font-size: 15px; margin-bottom: 30px; }
.doc h2 { font-size: 21px; margin: 36px 0 8px; font-weight: 700; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-inline-start: 22px; }
.doc .box { background: var(--wash); border-radius: var(--radius); padding: 18px 22px; color: var(--espresso); font-weight: 600; margin: 24px 0; }

/* Footer */
.foot { background: var(--espresso); color: #c9b8a2; padding: 44px 0 30px; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; justify-content: space-between; }
.foot .brand b { color: #e7c79c; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: #e3d6c3; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .copy { flex-basis: 100%; border-top: 1px solid rgba(241, 220, 190, .1); padding-top: 18px; color: #a08f7c; font-size: 14px; }
