/* بالبيت — store page. Mobile first, RTL. */
:root {
  --bg: #FBF5EF; --surface: #FFFFFF; --soft: #F6DDD3; --text: #221C1A; --muted: #6B5D57;
  --accent: #E0674F; --accent-strong: #C9503A; --on-accent: #FFFFFF;
  --dark: #111418; --dark-soft: #1E2633; --dark-text: #F2F4F7; --dark-muted: #AAB3C0; --blue: #3D7BFF;
  --r-lg: 28px; --r-md: 20px; --r-sm: 14px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 72px;
  --shadow: 0 10px 30px rgba(34, 28, 26, .08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif; background: var(--bg); color: var(--text);
       font-size: 17px; line-height: 1.7; padding-bottom: 76px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s2); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.accent { color: var(--accent); }
.skip { position: absolute; right: -999px; top: 8px; background: var(--text); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { right: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 28px;
       background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 18px; text-decoration: none;
       border-radius: 999px; border: 0; cursor: pointer; touch-action: manipulation;
       transition: background-color .2s ease, transform .15s ease; }
.btn:hover { background: var(--accent-strong); }
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--dark); color: var(--dark-text); }
.btn-dark:hover { background: #262c35; }
.btn-sm { min-height: 44px; padding: 8px 20px; font-size: 16px; }
.btn-block { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(251, 245, 239, .92); backdrop-filter: blur(10px);
       border-bottom: 1px solid rgba(34, 28, 26, .06); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 22px; }
.logo svg { width: 36px; height: 24px; }
.logo path { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.hero { padding: var(--s5) 0 var(--s5); overflow: hidden; }
.hero-in { display: grid; gap: var(--s5); align-items: center; }
.chip { display: inline-block; background: var(--soft); color: var(--accent-strong); font-weight: 700; font-size: 15px;
        padding: 4px 16px; border-radius: 999px; }
h1 { font-size: clamp(36px, 9vw, 64px); line-height: 1.2; margin: var(--s2) 0; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s3); }
.cta-row .btn { flex: 1 1 160px; }
.center-row { justify-content: center; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: var(--s3); font-size: 15px; font-weight: 500; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg, .ticks li::before { flex: none; }
.trust svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hero-art { position: relative; height: 420px; max-width: 420px; margin: 0 auto; width: 100%; }
.phone { position: absolute; width: 58%; top: 0; right: 4%; border-radius: 28px; overflow: hidden; border: 8px solid var(--text);
         box-shadow: var(--shadow); background: var(--text); z-index: 2; aspect-ratio: 4 / 5; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone-back { right: auto; left: 4%; top: 46px; width: 52%; transform: rotate(-6deg); z-index: 1; border-color: var(--dark); }
.fig-card { position: absolute; bottom: 0; left: 0; width: 50%; background: var(--surface); border-radius: var(--r-md);
            box-shadow: var(--shadow); padding: 8px; z-index: 3; }
.fig-card svg { width: 100%; height: auto; display: block; }
.fig { fill: none; stroke: var(--text); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
circle.fig { fill: var(--text); stroke: none; }
.prop { fill: none; stroke: #9c8d86; stroke-width: 14; stroke-linecap: round; }
.ground { stroke: #9c8d86; stroke-width: 6; stroke-linecap: round; opacity: .5; }
.hint { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.fig-cap { display: flex; flex-direction: column; padding: 0 12px 6px; line-height: 1.4; }
.fig-cap b { font-size: 15px; }
.fig-cap span { font-size: 13px; color: var(--accent-strong); font-weight: 700; }

/* Background design: soft brand blobs, flowing lines, a faint dot grid and roof chevrons. */
.hero, .sec, .final { position: relative; isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; max-width: 760px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(224, 103, 79, .22), rgba(224, 103, 79, 0) 65%); z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto auto -25% -15%; width: 60vw; max-width: 640px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(61, 123, 255, .12), rgba(61, 123, 255, 0) 65%); z-index: -1; }
.waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.waves path { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .22; }
.bg-drift { animation: drift 14s linear infinite; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-360px); } }
.sec:not(.sec-soft):not(.final)::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(224, 103, 79, .22) 1.3px, transparent 1.5px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.sec-soft::before, .sec-soft::after { content: ""; position: absolute; z-index: -1; width: 340px; height: 200px; opacity: .07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 200'%3E%3Cpath d='M20 180 L170 30 L320 180' fill='none' stroke='%23E0674F' stroke-width='40' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.sec-soft::before { top: 40px; left: -90px; transform: rotate(-12deg); }
.sec-soft::after { bottom: 30px; right: -100px; transform: rotate(10deg); }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .55), transparent 40%),
              radial-gradient(circle at 85% 90%, rgba(224, 103, 79, .25), transparent 45%); }

/* Sections */
.sec { padding: var(--s6) 0; }
.sec-soft { background: var(--surface); }
.h2 { font-size: clamp(28px, 6.5vw, 44px); line-height: 1.25; margin-bottom: var(--s2); }
.h3, h3 { font-size: 21px; line-height: 1.4; }
.sub { color: var(--muted); font-size: 18px; margin-bottom: var(--s4); max-width: 40em; }
.sub.center { margin-left: auto; margin-right: auto; }

.swaps { display: grid; gap: var(--s2); }
.swap { background: var(--surface); border-radius: var(--r-md); padding: var(--s3); display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.swap s { color: var(--muted); font-size: 18px; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.swap b { color: var(--accent-strong); font-size: 22px; }

.grid3 { display: grid; gap: var(--s2); }
.feat { background: var(--bg); border-radius: var(--r-md); padding: var(--s3); }
.feat svg { width: 40px; height: 40px; padding: 8px; background: var(--soft); border-radius: 12px; fill: none; stroke: var(--accent-strong);
            stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.feat p { color: var(--muted); font-size: 16px; margin-top: 4px; }
.pages { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); margin: var(--s5) 0 var(--s4); }
.pages figure { margin: 0; }
.pages img { border-radius: var(--r-md); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; }
.pages figcaption { text-align: center; font-size: 15px; font-weight: 500; color: var(--muted); margin-top: 8px; }

.steps { list-style: none; display: grid; gap: var(--s2); }
.steps li { display: flex; gap: var(--s2); align-items: flex-start; background: var(--surface); border-radius: var(--r-md); padding: var(--s3); }
.steps b { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
           display: flex; align-items: center; justify-content: center; font-size: 20px; }
.steps p { color: var(--muted); font-size: 16px; }

/* Pricing */
.plans { display: grid; gap: var(--s3); max-width: 860px; margin: 0 auto; }
.plan { background: var(--bg); border: 2px solid var(--soft); border-radius: var(--r-lg); padding: var(--s4) var(--s3);
        display: flex; flex-direction: column; gap: var(--s2); scroll-margin-top: 90px; }
.plan .chip { align-self: flex-start; }
.plan h3 { font-size: 24px; }
.price { font-size: 17px; color: var(--muted); }
.price span { font-size: 48px; font-weight: 700; color: var(--text); margin-left: 6px; }
.plan .btn { margin-top: auto; }
.plan-dark { background: var(--dark); border-color: var(--dark); color: var(--dark-text); }
.plan-dark .chip { background: var(--dark-soft); color: #8FB2FF; }
.plan-dark .price, .plan-dark .ticks { color: var(--dark-muted); }
.plan-dark .price span { color: var(--dark-text); }
.plan-dark .ticks li::before { background-color: var(--blue); }
.plan-dark .btn { background: var(--blue); }
.plan-dark .btn:hover { background: #2f66e0; }
.ticks, .crosses { list-style: none; display: grid; gap: 10px; }
.ticks li, .crosses li { position: relative; padding-right: 32px; }
.ticks li::before, .crosses li::before { content: ""; position: absolute; right: 0; top: 5px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent) center / 14px no-repeat; }
.ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E"); }
.crosses li::before { background-color: var(--muted); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.pay-note { display: flex; gap: 10px; align-items: flex-start; justify-content: center; max-width: 640px; margin: var(--s4) auto 0;
            font-size: 15px; color: var(--muted); }
.pay-note svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; margin-top: 3px; }

.two { display: grid; gap: var(--s3); }
.card { background: var(--surface); border-radius: var(--r-lg); padding: var(--s4) var(--s3); }
.card h2 { margin-bottom: var(--s2); }
.card-line { background: transparent; border: 2px dashed var(--soft); }

/* FAQ */
details { background: var(--bg); border-radius: var(--r-md); margin-bottom: 12px; }
summary { cursor: pointer; list-style: none; padding: 18px 24px; font-weight: 700; font-size: 18px; min-height: 56px;
          display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 26px; line-height: 1; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 24px 20px; color: var(--muted); }

.final { background: var(--soft); }
.final .sub { margin-bottom: var(--s3); }

/* Footer */
.foot { background: var(--dark); color: var(--dark-muted); padding: var(--s5) 0; }
.foot-in { display: grid; gap: var(--s3); }
.foot .logo { color: var(--dark-text); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { color: var(--dark-text); text-decoration: none; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.foot nav a:hover { text-decoration: underline; }
.small { font-size: 14px; }

/* Sticky buy bar on phones */
.sticky-buy { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
              gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96);
              border-top: 1px solid rgba(34, 28, 26, .08); backdrop-filter: blur(10px); }
.sticky-buy b { font-size: 22px; }

/* Legal pages */
.legal { padding: var(--s5) 0 var(--s6); }
.legal h1 { font-size: clamp(30px, 7vw, 44px); }
.legal h2 { font-size: 22px; margin: var(--s4) 0 var(--s1); }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-right: 22px; }
.legal .todo { background: #FFF4D6; color: #6B4E00; border-radius: 8px; padding: 2px 8px; font-weight: 700; }

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .sticky-buy { display: none; }
  .wrap { padding: 0 var(--s4); }
  .hero { padding: var(--s6) 0; }
  .hero-in { grid-template-columns: 1.1fr .9fr; }
  .hero-art { height: 500px; max-width: none; }
  .swaps { grid-template-columns: repeat(3, 1fr); }
  .grid3 { grid-template-columns: repeat(3, 1fr); }
  .pages { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: auto 1fr; align-items: center; }
  .foot nav { justify-content: flex-end; }
  .small { grid-column: 1 / -1; }
}
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps li { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-drift { animation: none !important; }
  .btn, summary::after { transition: none; }
}
.center-row .btn { flex: 0 1 260px; }
