/* «حصصي» — الصفحة التعريفية. بلا أدوات بناء وبلا JavaScript خارجي. */
:root {
  --pine: #0A6355;
  --pine-bright: #14917B;
  --deep: #053C34;
  --mint: #6FD9C2;
  --saffron: #D9962A;
  --saffron-deep: #B87A18;
  --ivory: #F6F4EE;
  --ink: #0F1E1B;

  --bg: var(--ivory);
  --surface: #FFFFFF;
  --surface-2: #FBFAF6;
  --text: var(--ink);
  --text-2: #3C4E49;
  --muted: #6A7A75;
  --line: #E6E2D7;
  --chip: #EAF5F2;
  --shadow-sm: 0 1px 2px rgba(15, 30, 27, .05), 0 2px 8px rgba(15, 30, 27, .05);
  --shadow: 0 2px 6px rgba(15, 30, 27, .04), 0 18px 40px -12px rgba(15, 30, 27, .16);
  --radius: 24px;
  --font: "Almarai", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08140F;
    --surface: #0F201C;
    --surface-2: #0C1B17;
    --text: #EAF2EF;
    --text-2: #BCD0CA;
    --muted: #8BA29B;
    --line: #1C3530;
    --chip: #12302A;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 18px 40px -12px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.75; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.site-head { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; font-size: 1.2rem; }
.logo img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.head-links { display: none; gap: 22px; }
.head-links a { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 700; font-size: .92rem; }
.head-links a:hover { color: #fff; }
.head-cta { color: var(--deep); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: .88rem; text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 104px 0 0;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(111, 217, 194, .28), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(217, 150, 42, .20), transparent 60%),
    linear-gradient(160deg, var(--deep) 0%, var(--pine) 55%, var(--pine-bright) 100%);
}
.hero::before { /* fine dot grid */
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero::after { /* concentric rings, echoing the app's header card */
  content: ""; position: absolute; width: 760px; height: 760px; inset-inline-start: -260px; top: -260px; pointer-events: none;
  border-radius: 50%; opacity: .16;
  background: repeating-radial-gradient(circle, transparent 0 46px, rgba(255,255,255,.55) 47px 48px);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.hero-copy { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; backdrop-filter: blur(6px); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(111,217,194,.25); }
.hero h1 { font-size: clamp(2.6rem, 9vw, 4.4rem); font-weight: 800; margin: 18px 0 6px; letter-spacing: -.5px; }
.hero .tagline { font-size: clamp(1.25rem, 4.6vw, 1.75rem); font-weight: 800; color: var(--mint); }
.hero .lead { margin: 14px auto 0; max-width: 520px; color: rgba(255,255,255,.86); font-size: 1.02rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 10px 22px;
  border-radius: 16px; font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-play { background: #0B0F0E; color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); }
.btn-play small { display: block; font-size: .7rem; font-weight: 400; opacity: .8; line-height: 1.1; }
.btn-play span { text-align: start; line-height: 1.2; }
.btn-apk { background: var(--saffron); color: #fff; box-shadow: 0 10px 24px -8px rgba(217,150,42,.7); }
.btn-apk:hover { background: var(--saffron-deep); }
.btn-wa { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-wa:hover { background: rgba(255,255,255,.2); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 22px; font-size: .88rem; color: rgba(255,255,255,.85); }
.chips span { display: inline-flex; align-items: center; gap: 6px; }
.chips svg { width: 16px; height: 16px; color: var(--mint); }

/* phone mockups */
.hero-phones { position: relative; height: 470px; max-width: 420px; margin: 0 auto; width: 100%; }
.phone {
  position: absolute; width: 220px; border-radius: 38px; padding: 9px; background: #0A0F0E;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.12) inset, 0 30px 60px -18px rgba(0,0,0,.6), 0 12px 24px -12px rgba(0,0,0,.4);
}
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 64px; height: 18px; border-radius: 12px; background: #0A0F0E; z-index: 2; }
.phone img, .phone picture { border-radius: 30px; width: 100%; aspect-ratio: 540 / 1140; object-fit: cover; background: #e9efe9; }
.hero-phones .p1 { z-index: 2; left: 50%; top: 18px; transform: translateX(-28%) rotate(4deg); }
.hero-phones .p2 { z-index: 1; left: 50%; top: 58px; transform: translateX(-84%) rotate(-7deg) scale(.88); opacity: .95; }
.hero-fade { height: 70px; background: linear-gradient(180deg, transparent, var(--bg)); position: relative; z-index: 1; margin-top: -70px; }

/* ---------- Referral box ---------- */
.invite {
  position: relative; z-index: 3; margin: -36px auto 0; max-width: 720px; border-radius: var(--radius);
  background: linear-gradient(135deg, #FFF6E4, #FCE9C4); color: #3D2A06; border: 1px solid #F0D7A3;
  padding: 20px; box-shadow: var(--shadow); display: grid; gap: 14px; text-align: center;
}
.invite strong { color: #7A4E07; }
.invite-code { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.invite-code code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.6rem; font-weight: 800; letter-spacing: .18em;
  background: #fff; padding: 6px 16px; border-radius: 14px; border: 1.5px dashed var(--saffron); direction: ltr; color: var(--ink);
}
.copy-btn { background: var(--saffron); color: #fff; border: 0; border-radius: 12px; padding: 10px 16px; font: inherit; font-weight: 800; cursor: pointer; }
.copy-btn:hover { background: var(--saffron-deep); }
@media (prefers-color-scheme: dark) {
  .invite { background: linear-gradient(135deg, #2A1F0B, #3A2A0E); color: #F6E6C6; border-color: #5A4216; }
  .invite strong { color: #F2C46B; }
  .invite-code code { background: #1A140A; color: #fff; }
}

/* ---------- Sections ---------- */
section.block { padding: 72px 0; }
.sec-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.sec-head .kicker { color: var(--pine-bright); font-weight: 800; font-size: .9rem; letter-spacing: .02em; }
.sec-head h2 { font-size: clamp(1.6rem, 5.6vw, 2.3rem); font-weight: 800; margin: 6px 0 10px; }
.sec-head p { color: var(--muted); }
@media (prefers-color-scheme: dark) { .sec-head .kicker { color: var(--mint); } }

.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ficon {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 14px; color: #fff;
  background: linear-gradient(140deg, var(--pine-bright), var(--deep)); box-shadow: 0 8px 18px -8px rgba(10,99,85,.7);
}
.feature:nth-child(4n+2) .ficon { background: linear-gradient(140deg, #E8AE4C, var(--saffron-deep)); box-shadow: 0 8px 18px -8px rgba(217,150,42,.7); }
.ficon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .94rem; }

/* screenshots carousel */
.shots-band { background: linear-gradient(180deg, var(--bg), var(--chip) 30%, var(--chip) 70%, var(--bg)); }
.carousel {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 20px 26px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.carousel::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: center; flex: 0 0 auto; width: 240px; text-align: center; margin: 0; }
.slide .phone { position: relative; width: 100%; }
.slide figcaption { margin-top: 14px; font-weight: 800; }
.slide figcaption small { display: block; color: var(--muted); font-weight: 400; font-size: .86rem; }
.swipe-hint { text-align: center; color: var(--muted); font-size: .85rem; }

/* steps */
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 22px; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--chip); color: var(--pine); font-weight: 800; font-size: 1.15rem; margin-bottom: 12px; border: 2px solid var(--mint);
}
@media (prefers-color-scheme: dark) { .step::before { color: var(--mint); } }
.step h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .94rem; }

/* pricing */
.prices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 760px; margin: 0 auto; }
.price { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); text-align: center; }
.price.best { border: 2px solid var(--pine-bright); box-shadow: var(--shadow); }
.price .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--saffron); color: #fff; font-weight: 800; font-size: .8rem; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.price h3 { font-size: 1.1rem; color: var(--text-2); }
.amount { font-size: 2.8rem; font-weight: 800; margin: 8px 0 2px; color: var(--pine); line-height: 1.1; }
@media (prefers-color-scheme: dark) { .amount { color: var(--mint); } }
.amount small { font-size: 1rem; color: var(--muted); font-weight: 700; }
.price ul { list-style: none; padding: 0; margin: 16px 0 0; text-align: start; color: var(--text-2); font-size: .94rem; }
.price li { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; }
.price li svg { width: 18px; height: 18px; color: var(--pine-bright); flex: none; margin-top: 4px; }
.trial-note { text-align: center; margin-top: 22px; color: var(--muted); }
.trial-note b { color: var(--text); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 800; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--pine-bright); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--text-2); }

/* final CTA */
.cta-band {
  border-radius: 28px; padding: 40px 24px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(500px 240px at 90% 0%, rgba(111,217,194,.35), transparent 60%), linear-gradient(150deg, var(--deep), var(--pine));
  box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); font-weight: 800; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 8px; }

/* footer */
.site-foot { padding: 40px 0 32px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); margin-top: 72px; }
.site-foot .wrap { display: grid; gap: 14px; justify-items: center; text-align: center; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.foot-links a { text-decoration: none; font-weight: 700; color: var(--text-2); }
.foot-links a:hover { color: var(--pine-bright); }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); }
.foot-brand img { width: 30px; height: 30px; border-radius: 9px; }

/* legal pages */
.legal-head { background: linear-gradient(160deg, var(--deep), var(--pine)); color: #fff; padding: 100px 0 40px; }
.legal-head h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); font-weight: 800; }
.legal { max-width: 780px; margin: -20px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); position: relative; }
.legal h2 { font-size: 1.2rem; margin: 22px 0 8px; color: var(--pine); }
@media (prefers-color-scheme: dark) { .legal h2 { color: var(--mint); } }
.legal h2:first-child { margin-top: 0; }
.legal h1 { font-size: 1.45rem; margin: 0 0 6px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 10px; }
.legal ul, .legal ol { padding-inline-start: 22px; }
.legal a { color: var(--pine-bright); }
.legal table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.legal td, .legal th { border: 1px solid var(--line); padding: 8px; }

@media (min-width: 900px) {
  .head-links { display: flex; }
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 24px; }
  .hero-copy { text-align: start; }
  .hero .lead { margin-inline: 0; }
  .ctas, .chips { justify-content: flex-start; }
  .hero-phones { height: 560px; max-width: 480px; }
  .phone { width: 250px; }
  .carousel { padding-inline: max(20px, calc((100vw - 1140px) / 2 + 20px)); justify-content: safe center; }
  .slide { width: 204px; }
  .swipe-hint { display: none; }
  section.block { padding: 96px 0; }
  .invite { grid-template-columns: 1fr auto; text-align: start; padding: 22px 28px; }
}
@media (max-width: 899px) {
  .hero-phones .p2 { transform: translateX(-72%) rotate(-7deg) scale(.86); }
}
@media (max-width: 380px) {
  .phone { width: 196px; }
  .hero-phones { height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
