:root {
  --ink: #0F1640;
  --text: #3B4366;
  --muted: #4B5375;
  --line: #E3E7F4;
  --rail: #D7DCEF;
  --bg: #F7F8FD;
  --card: #FFFFFF;
  --link: #1D3FAF;
  --blue: #2563EB;   --blue-tint: #EEF3FF;   --blue-line: #C9D8FF;
  --purple: #7C3AED; --purple-tint: #F4EEFF; --purple-line: #DCCBFF;
  --pink: #DB2777;   --pink-tint: #FFEEF5;   --pink-line: #F9C7DC;
  --orange: #D9700A; --orange-dark: #C2410C; --orange-tint: #FFF4E8; --orange-line: #FBD7AE;
  --grad: linear-gradient(90deg, #2563EB, #7C3AED 60%, #DB2777);
  --display: "Poppins", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
.lang-ar { --display: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif; --body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--blue); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lang-ar .grad { background-image: linear-gradient(270deg, #2563EB, #7C3AED 60%, #DB2777); }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.wordmark { font: 600 22px/1.1 "Poppins", system-ui, sans-serif; }
.brand-sub { font-size: 14px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 16px; }
.nav a { font-weight: 600; text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--blue); color: #fff !important; font: 600 16px var(--display); text-decoration: none; }
.btn:hover { background: #1D4ED8; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* Home */
.hero { padding: 48px 0 24px; }
.hero h1 { margin: 0 0 8px; font: 800 clamp(32px, 6vw, 52px)/1.1 var(--display); letter-spacing: -0.5px; }
.hero p { margin: 0; max-width: 680px; color: var(--muted); font-size: 19px; }
.post-grid { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.post-card a:hover { border-color: var(--blue-line); box-shadow: 0 8px 24px rgba(30, 41, 90, .08); }
.post-card h2 { margin: 0; font: 700 22px/1.25 var(--display); }
.post-card p { margin: 0; color: var(--muted); font-size: 16px; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.card-foot .more { color: var(--link); font-weight: 600; }

/* Post */
.post { max-width: 820px; margin: 0 auto; padding: 32px 0 56px; }
.crumbs { margin: 0 0 16px; font-size: 15px; }
.crumbs a { text-decoration: none; font-weight: 600; }
.lang-ar .crumbs a { display: inline-block; }
.post-head h1 { margin: 12px 0 10px; font: 800 clamp(30px, 5.5vw, 46px)/1.12 var(--display); letter-spacing: -0.3px; }
.post-desc { margin: 0 0 8px; font-size: 20px; color: var(--muted); }
.post-meta { margin: 0 0 28px; font-size: 15px; color: var(--muted); }
.post-body { font-size: 18px; color: var(--text); }
.post-body h2 { margin: 36px 0 10px; font: 700 26px/1.25 var(--display); color: var(--ink); }
.post-body h3 { margin: 28px 0 8px; font: 700 21px/1.3 var(--display); color: var(--ink); }
.post-body li { margin-bottom: 6px; }
.post-body strong { color: var(--ink); }
.hashtags { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hashtag { padding: 6px 12px; border-radius: 999px; background: #EAF0FF; color: #1D3FAF; font-size: 15px; font-weight: 600; }
.related { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.related h2 { margin: 0 0 10px; font: 700 22px/1.3 var(--display); }
.related ul { margin: 0; padding-inline-start: 20px; }
.related li { margin-bottom: 6px; }
.cta { margin-top: 40px; padding: 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.cta h2 { margin: 0 0 6px; font: 700 26px/1.25 var(--display); }
.cta p { margin: 0 0 18px; color: var(--muted); }

/* Ad infographic */
.ad { margin: 0 0 36px; padding: clamp(20px, 4vw, 44px); border-radius: 28px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(30, 41, 90, .06); display: flex; flex-direction: column; gap: 24px; }
.post .ad { background: #F3F5FC; }
.ad-brand { display: flex; align-items: center; gap: 14px; }
.ad-wordmark { font: 600 24px/1.1 "Poppins", system-ui, sans-serif; }
.ad-tagline { font-size: 14px; color: var(--muted); }
.ad-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ad-eyebrow { display: inline-block; padding: 6px 16px; border-radius: 999px; font: 600 15px/1.4 var(--display); background: #EAF0FF; color: #1D4ED8; }
.ad-eyebrow-purple { background: #F1EAFF; color: #6D28D9; }
.ad-eyebrow-pink { background: #FFE8F2; color: #BE185D; }
.ad-eyebrow-orange { background: #FFF0DF; color: #B45309; }
.ad-headline { font: 800 clamp(28px, 5vw, 48px)/1.1 var(--display); letter-spacing: -0.3px; }
.ad-sub { margin: 0; font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); }
.ad-steps { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ad-steps::before { content: ""; position: absolute; inset-inline-start: 39px; top: 40px; bottom: 40px; width: 2px; background: var(--rail); }
.ad-step { position: relative; display: flex; align-items: center; }
.ad-icon { width: 80px; height: 80px; flex-shrink: 0; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(30, 41, 90, .08); display: flex; align-items: center; justify-content: center; }
.ad-link { width: 22px; height: 2px; flex-shrink: 0; }
.ad-card { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-radius: 18px; border: 1.5px solid; }
.ad-num { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; color: #fff; font: 700 18px/1 "Poppins", sans-serif; display: flex; align-items: center; justify-content: center; }
.ad-title { font: 700 20px/1.25 var(--display); }
.ad-bullets { margin: 4px 0 0; padding-inline-start: 18px; font-size: 16px; line-height: 1.45; color: var(--text); }
.ad-bullets li { margin: 0; }
.ad-blue .ad-icon { color: var(--blue); }     .ad-blue .ad-link, .ad-blue .ad-num { background: var(--blue); }     .ad-blue .ad-card { background: var(--blue-tint); border-color: var(--blue-line); }
.ad-purple .ad-icon { color: var(--purple); } .ad-purple .ad-link, .ad-purple .ad-num { background: var(--purple); } .ad-purple .ad-card { background: var(--purple-tint); border-color: var(--purple-line); }
.ad-pink .ad-icon { color: var(--pink); }     .ad-pink .ad-link, .ad-pink .ad-num { background: var(--pink); }     .ad-pink .ad-card { background: var(--pink-tint); border-color: var(--pink-line); }
.ad-orange .ad-icon { color: var(--orange); } .ad-orange .ad-link { background: var(--orange); } .ad-orange .ad-num { background: var(--orange-dark); } .ad-orange .ad-card { background: var(--orange-tint); border-color: var(--orange-line); }
.ad-footnote { font-size: 14px; color: var(--muted); text-align: center; }

/* Store QR row */
.stores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.store { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: var(--ink); }
.store + .store { padding-inline-start: 12px; border-inline-start: 1px solid var(--line); }
.store img { width: 88px; height: 88px; flex-shrink: 0; border-radius: 8px; }
.store span { display: flex; flex-direction: column; min-width: 0; }
.store small { font-size: 13px; color: var(--muted); }
.store strong { font: 700 18px/1.25 "Poppins", sans-serif; }
.store strong.web { color: var(--link); }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 32px 0; }
.footer-title { margin: 0 0 14px; font: 700 20px var(--display); }
.footer-legal { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

@media (max-width: 720px) {
  .stores { grid-template-columns: 1fr; }
  .store + .store { padding-inline-start: 0; border-inline-start: 0; padding-top: 12px; border-top: 1px solid var(--line); }
  .ad-icon { width: 56px; height: 56px; }
  .ad-icon .icon { width: 28px; height: 28px; }
  .ad-steps::before { inset-inline-start: 27px; }
  .ad-link { width: 10px; }
  .ad-card { padding: 12px 14px; gap: 12px; }
  .ad-num { display: none; }
  .ad-title { font-size: 18px; }
  .ad-bullets { font-size: 15px; }
}
