/* شاطر — ستايل صفحة الهبوط وصفحات الشرح (فاتح دافي زي البرنامج) */
:root { --bg: #F6F3EC; --card: #fff; --soft: #F3EDE1; --line: #E8E1D2; --ink: #1F1C16; --muted: #6F685B; --faint: #9A9384; --gold: #C8952C; --gold2: #A87A1C; --gold-50: #FBF1DC;
  --ok: #20A46B; --ok-50: #DDF5E9; --warn: #E8930C; --warn-50: #FFF1D6; --danger: #E5484D; --danger-50: #FDE8E8; --info: #3B82F6; --info-50: #E3EDFF; --shadow: 0 1px 2px #0000000a, 0 8px 24px #4a3a1414; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Cairo', system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.75; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--gold2); }
img { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.brand { font-family: 'Lalezar', sans-serif; font-weight: 400; color: var(--gold2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 800; font-size: 16px; text-decoration: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; font-family: inherit; }
.btn.pri { background: linear-gradient(180deg, #E9B850, #C8952C); border-color: transparent; color: #fff; box-shadow: 0 8px 20px #c8952c45; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #3B82F680; outline-offset: 2px; }
.blobs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blobs i:nth-child(1) { width: 420px; height: 420px; background: #f7d58a; top: -120px; right: -100px; }
.blobs i:nth-child(2) { width: 360px; height: 360px; background: #f3c3b5; bottom: 10%; left: -120px; opacity: .35; }
.blobs i:nth-child(3) { width: 300px; height: 300px; background: #cfe3f7; top: 40%; right: 30%; opacity: .3; }

nav.top { position: sticky; top: 0; z-index: 20; background: #f6f3ecdd; backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
nav.top .logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
nav.top .logo img { width: 34px; height: 34px; }
nav.top .brand { font-size: 26px; }
nav.top .links { display: flex; gap: 22px; margin-inline-start: 24px; }
nav.top .links a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
nav.top .sp, footer .sp { flex: 1; }
nav.top .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
@media (max-width: 860px) { nav.top .links, nav.top .login { display: none; } }

.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.eyebrow { display: inline-block; background: var(--gold-50); color: var(--gold2); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 99px; }
h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.3; margin: 14px 0; font-weight: 900; }
h1 em, h2 em { font-style: normal; color: var(--gold2); }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.trust { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: var(--muted); }
.trust span::before { content: '✓ '; color: var(--ok); font-weight: 800; }
.stage { position: relative; height: 420px; }
#heroBot { position: absolute; inset: 40px 40px 60px; display: grid; place-items: center; }
.bubble { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 14px; font-weight: 700; max-width: 240px; animation: float 6s ease-in-out infinite; }
.bubble small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.bubble.b1 { top: 10px; right: 0; } .bubble.b2 { bottom: 80px; left: 0; animation-delay: -2s; } .bubble.b3 { bottom: 0; right: 24px; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .stage { height: 380px; } .bubble { font-size: 13px; max-width: 200px; } }

section { padding: 64px 0; }
.white { background: #ffffff8c; border-block: 1px solid var(--line); }
.center { text-align: center; max-width: 720px; margin: 0 auto 32px; }
h2 { font-size: clamp(25px, 3.6vw, 38px); line-height: 1.4; margin: 10px 0; font-weight: 900; }
.sub { color: var(--muted); font-size: 17px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.pts { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.pts li { display: flex; gap: 10px; align-items: flex-start; }
.pts li b { display: block; }
.pts li i { font-style: normal; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--gold-50); display: grid; place-items: center; }
.more { display: inline-block; margin-top: 12px; font-weight: 800; text-decoration: none; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.sp-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* نماذج من الشاشات (HTML مش صور عشان تبان واضحة على أي شاشة) */
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 14px; }
.seg { display: flex; background: var(--soft); border-radius: 12px; padding: 4px; gap: 2px; margin-bottom: 10px; }
.seg span { flex: 1; text-align: center; font-size: 13px; font-weight: 800; padding: 6px; border-radius: 9px; color: var(--muted); }
.seg span.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px #0000001a; }
.seg span em { font-style: normal; background: var(--line); border-radius: 99px; padding: 0 6px; font-size: 11px; margin-inline-start: 4px; }
.row { display: flex; gap: 8px; align-items: center; padding: 10px 6px; }
.row + .row { border-top: 1px solid var(--line); }
.av { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-weight: 800; }
.row .g { flex: 1; min-width: 0; }
.row .g b { display: block; font-size: 14px; }
.row .g small { color: var(--muted); font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font-size: 11.5px; font-weight: 800; border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.tag.r { background: var(--danger-50); color: var(--danger); } .tag.a { background: var(--warn-50); color: #a5650a; } .tag.g { background: var(--ok-50); color: var(--ok); } .tag.hot { background: #ffe1d6; color: #c2410c; }
.meter { background: var(--soft); border-radius: 14px; padding: 12px; font-size: 13px; }
.meter .bar { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0; }
.meter .bar i { display: block; height: 100%; width: 78%; background: linear-gradient(90deg, #f0b44c, #e2572b); border-radius: 99px; }
.sig { display: flex; flex-wrap: wrap; gap: 6px; }
.sig span { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; font-size: 12px; font-weight: 700; }
.chat { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.msg { max-width: 80%; padding: 8px 12px; border-radius: 16px; }
.msg.in { background: var(--soft); align-self: flex-start; } .msg.out { background: var(--gold-50); align-self: flex-end; }
.qbar { display: flex; gap: 6px; overflow: hidden; margin-top: 10px; }
.qbar span { background: var(--soft); border-radius: 99px; padding: 5px 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.comp { display: flex; gap: 8px; align-items: center; margin-top: 8px; border: 1px solid var(--line); border-radius: 16px; padding: 6px 8px; color: var(--faint); font-size: 14px; }
.comp .mic { margin-inline-start: auto; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(180deg, #E9B850, #C8952C); display: grid; place-items: center; color: #fff; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.note .w { color: var(--muted); } .note .v { color: var(--ok); font-weight: 800; }
.note .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.note .acts span { background: var(--soft); border-radius: 10px; padding: 5px 10px; font-weight: 800; font-size: 13px; }
.note .acts span.p { background: var(--gold); color: #fff; }
.adc { border-top: 5px solid var(--danger); }
.adc .say { font-weight: 900; color: var(--danger); font-size: 16px; margin: 6px 0; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.nums div { background: var(--soft); border-radius: 12px; padding: 8px; text-align: center; }
.nums b { display: block; } .nums small { color: var(--muted); font-size: 11.5px; }
.fun { display: flex; flex-direction: column; gap: 3px; font-size: 12px; margin: 10px 0; }
.fun div { display: grid; grid-template-columns: 56px 1fr 26px; gap: 6px; align-items: center; }
.fun i { height: 8px; border-radius: 99px; background: var(--gold); opacity: .7; }
.fun .bad i { background: var(--danger); opacity: 1; } .fun .bad span { color: var(--danger); font-weight: 800; }
.tip { background: var(--info-50); border-radius: 14px; padding: 10px; font-size: 13.5px; font-weight: 800; display: flex; flex-direction: column; gap: 4px; }
.tip .why { font-weight: 600; font-size: 12.5px; color: var(--muted); }
.tip small { display: flex; gap: 6px; flex-wrap: wrap; }
.tip small span { background: var(--card); border-radius: 9px; padding: 2px 8px; font-weight: 700; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cards3 > div, .cards3 > a { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.cards3 h3 { margin: 6px 0; font-size: 18px; } .cards3 p { margin: 0; color: var(--muted); font-size: 14.5px; }
.cards3 .ic { font-size: 28px; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 8px; position: relative; box-shadow: var(--shadow); }
.plan.mid { border: 2px solid var(--gold); }
.plan .badge { position: absolute; top: -12px; right: 16px; background: var(--gold); color: #fff; border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 800; }
.plan h3 { margin: 0; } .plan .for { color: var(--muted); font-size: 14px; }
.plan .price { font-size: 30px; font-weight: 900; } .plan .price small { font-size: 14px; color: var(--muted); }
.plan .lim { display: flex; gap: 6px; } .plan .lim div { flex: 1; background: var(--soft); border-radius: 12px; padding: 6px; text-align: center; font-size: 12px; } .plan .lim b { display: block; font-size: 16px; }
.plan ul { padding-inline-start: 18px; margin: 4px 0; font-size: 14px; flex: 1; }

.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dl > div { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.dl h3 { margin: 0; } .dl p, .dl ol, .dl small { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .dl { grid-template-columns: 1fr; } }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 800; } .faq p { margin: 8px 0 0; color: var(--muted); }

.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .signup { grid-template-columns: 1fr; } }
form.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
form label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 14px; }
form input, form select { height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font: inherit; background: #fffdf8; }
form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
form .chk { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; } form .chk input { height: auto; }
.err { color: var(--danger); font-weight: 700; min-height: 1em; font-size: 14px; }
footer { padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); }
footer .brand { font-size: 20px; }

/* ===== صفحات الشرح ===== */
.help-hero { padding: 40px 0 8px; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding-bottom: 48px; }
.help-grid a { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.help-grid a b { font-size: 16px; } .help-grid a span { color: var(--muted); font-size: 14px; }
.help-grid a .ic { font-size: 24px; }
.help-grid h3 { grid-column: 1 / -1; margin: 18px 0 0; font-size: 15px; color: var(--muted); }
article { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px clamp(16px, 4vw, 40px); box-shadow: var(--shadow); margin: 24px 0 48px; }
article h1 { font-size: clamp(26px, 4vw, 36px); margin-top: 0; }
article h2 { font-size: 22px; margin: 28px 0 8px; }
article h3 { font-size: 18px; margin: 18px 0 6px; }
article p, article li { font-size: 16.5px; }
article ol, article ul { padding-inline-start: 22px; }
article li + li { margin-top: 4px; }
.crumbs { font-size: 14px; color: var(--muted); margin-top: 20px; }
.crumbs a { color: var(--muted); }
.box { border-radius: 14px; padding: 12px 14px; margin: 14px 0; font-size: 15px; }
.box.tip2 { background: var(--ok-50); } .box.warn { background: var(--warn-50); } .box.info { background: var(--info-50); }
.box b:first-child { display: block; }
table.t { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; }
table.t th, table.t td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: start; vertical-align: top; }
table.t th { color: var(--muted); font-size: 13px; }
.tscroll { overflow-x: auto; }
.next-prev { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin-top: 24px; }
kbd { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-family: inherit; font-size: 14px; }
html, body { max-width: 100%; overflow-x: hidden; }
.hero .wrap > *, .split > *, .signup > * { min-width: 0; }
#heroBot canvas, #heroBot svg { max-width: 100%; max-height: 100%; }
form input, form select { width: 100%; min-width: 0; } form .two > label { min-width: 0; }
