/* مسار إبريم — صفحة التسجيل في التجربة الأولية. الهوية المعتمدة: كحلي #0F224C · فيروزي #22B8AA · برتقالي #F58A2A · سحابي #F7F9FC */
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("/static/fonts/plex-arabic-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("/static/fonts/plex-arabic-arabic-600.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("/static/fonts/plex-arabic-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("/static/fonts/plex-arabic-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("/static/fonts/plex-arabic-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("/static/fonts/plex-arabic-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
  --navy: #0F224C; --navy-2: #1B3266; --teal: #22B8AA; --teal-d: #138C81; --orange: #F58A2A;
  --cloud: #F7F9FC; --muted: #55657F; --line: #DDE4EE; --white: #fff; --bad: #C9372C;
  --r: 18px; --shadow: 0 18px 40px -22px rgba(15, 34, 76, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
.f, .choice, .consent, #join { scroll-margin-top: 96px; }
body { margin: 0; font-family: "Plex Arabic", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif; color: var(--navy); background: var(--cloud); line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; z-index: 20; background: var(--white); padding: 8px 14px; border-radius: 10px; }
h1, h2, h3 { line-height: 1.35; margin: 0; }

/* أزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px/1 inherit; font-family: inherit;
  color: var(--white); background: var(--teal); border: 0; border-radius: 999px; padding: 15px 28px; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(34, 184, 170, .9); transition: transform .15s, background .2s, box-shadow .2s; }
.btn:hover { background: var(--teal-d); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--white); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; padding: 17px; font-size: 17px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* الرأس */
.top { position: sticky; top: 0; z-index: 10; background: rgba(247, 249, 252, .88); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(221, 228, 238, .7); }
.top-in { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 52px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-size: 20px; }
.brand-txt small { color: var(--teal); font-weight: 700; font-size: 10.5px; letter-spacing: .22em; direction: ltr; text-align: right; }

/* البطل */
.hero { position: relative; overflow: hidden; padding: 64px 0 72px;
  background: radial-gradient(70% 90% at 95% 10%, rgba(34, 184, 170, .14), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(245, 138, 42, .10), transparent 65%), var(--cloud); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); color: var(--muted);
  font-size: 14px; font-weight: 600; border-radius: 999px; padding: 6px 14px; box-shadow: 0 6px 16px -12px rgba(15, 34, 76, .4); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(245, 138, 42, .2); }
.hero h1 { font-size: clamp(32px, 5.2vw, 56px); margin: 18px 0 14px; font-weight: 700; }
.grad { background: linear-gradient(90deg, var(--teal), var(--navy-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 40em; margin: 0 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 320px; }
.hero-art img { position: relative; z-index: 2; width: min(360px, 80%); filter: drop-shadow(0 24px 30px rgba(15, 34, 76, .18)); }
.art-ring { position: absolute; width: min(400px, 92%); aspect-ratio: 1; border-radius: 50%; background: var(--white); box-shadow: var(--shadow); }
.art-path { position: absolute; z-index: 1; bottom: 14%; right: 4%; width: 46%; border-top: 4px dashed var(--teal); opacity: .5; }

/* المزايا */
.features { padding: 72px 0; background: var(--white); }
.sec-title { font-size: clamp(24px, 3.2vw, 34px); text-align: center; margin-bottom: 34px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--cloud); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 18px; margin: 14px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-size: 22px; }
.ic-teal { background: rgba(34, 184, 170, .14); }
.ic-navy { background: rgba(15, 34, 76, .09); }
.ic-orange { background: rgba(245, 138, 42, .15); }

/* الخطوات */
.steps { padding: 68px 0; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; position: relative; }
.step-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.step-list b { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--white); font-size: 20px;
  background: linear-gradient(135deg, var(--navy), var(--teal)); }
.step-list li:first-child b { background: linear-gradient(135deg, var(--orange), var(--teal)); }
.step-list h3 { font-size: 17px; }
.step-list p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

/* النموذج */
.join { padding: 76px 0 84px; background: linear-gradient(160deg, var(--navy) 0%, #13306A 55%, #0E5F69 130%); color: var(--white); position: relative; }
.join-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.join-side h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 10px; }
.join-side p { color: #C8D3E8; margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 30px; color: #E5ECF7; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 1px; width: 21px; height: 21px; display: grid; place-items: center;
  border-radius: 50%; background: var(--teal); color: var(--white); font-size: 12px; font-weight: 700; }
.form, .done { background: var(--white); color: var(--navy); border-radius: 22px; padding: 28px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f-full { grid-column: 1 / -1; }
.f > span, legend { font-weight: 600; font-size: 14.5px; }
em { color: var(--orange); font-style: normal; }
input, select { width: 100%; font: inherit; font-size: 16px; color: var(--navy); background: var(--cloud); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 50px;
  transition: border-color .15s, background .15s; }
input:focus, select:focus { border-color: var(--teal); background: var(--white); outline: none; box-shadow: 0 0 0 4px rgba(34, 184, 170, .15); }
input[dir="ltr"] { text-align: left; }
input[dir="ltr"]::placeholder { text-align: right; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: 18px 22px, 24px 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-left: 40px; }
fieldset { border: 0; margin: 0; padding: 0; }
.choice { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.choice legend { width: 100%; margin-bottom: 6px; }
.opt { position: relative; flex: 1 1 140px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cloud); cursor: pointer; font-weight: 600; transition: all .15s; }
.opt input:checked + span { border-color: var(--teal); background: rgba(34, 184, 170, .1); color: var(--teal-d); box-shadow: inset 0 0 0 1px var(--teal); }
.opt input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); background: var(--cloud); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.consent input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: 3px; accent-color: var(--teal); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.invalid input, .invalid select, .invalid .opt span { border-color: var(--bad); background: #FFF6F5; }
.invalid.consent { box-shadow: inset 0 0 0 1.5px var(--bad); }
.err { color: var(--bad); font-size: 13px; font-weight: 600; }
.form-msg { min-height: 1.4em; margin: 16px 0 10px; font-weight: 600; color: var(--bad); }
.done { text-align: center; padding: 44px 30px; }
.done-ic { width: 74px; height: 74px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; font-size: 36px; color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--navy)); box-shadow: 0 0 0 10px rgba(34, 184, 170, .14); }
.done h2 { font-size: 26px; margin-bottom: 8px; }
.done p { color: var(--muted); margin: 0 auto 8px; max-width: 30em; }
.small { font-size: 14px; }
.hint-line { width: 100%; margin: -4px 0 4px; font-size: 13px; color: var(--muted); }
.join-cta { margin: 18px auto 14px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(0, 168, 164, .08), rgba(76, 192, 92, .12)); border: 1px solid rgba(0, 168, 164, .3); }
.join-cta p { color: var(--navy) !important; }
.join-cta .btn { background: linear-gradient(135deg, #00A8A4, #4CC05C); margin: 6px 0; }
[hidden] { display: none !important; }

/* التذييل */
.foot { background: var(--white); border-top: 1px solid var(--line); padding: 34px 0 26px; }
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lockup { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.lk-masar { display: flex; align-items: center; gap: 10px; }
.lk-masar img { width: 58px; }
.lk-masar b { display: block; font-size: 19px; line-height: 1.2; }
.lk-masar small { color: var(--muted); font-size: 13px; }
.lk-line { position: relative; width: 92px; border-top: 3px dashed var(--teal); }
.lk-line i { position: absolute; top: -7px; width: 11px; height: 11px; border-radius: 50%; }
.lk-o { right: -4px; background: var(--orange); }
.lk-t { left: -4px; background: var(--teal); }
.lk-ebreem { display: flex; align-items: center; gap: 8px; }
.lk-ebreem img { width: 42px; }
.lk-ebreem small { color: var(--muted); font-size: 14px; }
.copy { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 960px) {
  .hero-in, .join-in { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; order: -1; }
  .hero-art img { width: 190px; }
  .art-ring { width: 230px; }
  .art-path { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .step-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 34px 0 48px; }
  .cards, .grid { grid-template-columns: 1fr; }
  .form { padding: 20px 16px; }
  .cta .btn { flex: 1 1 100%; }
  .brand-txt small { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
