/* Shared brand styles: aminchaar.com + media kit */
:root {
  --paper: #f3f1ee;
  --paper-2: #e9e6e1;
  --ink: #2b2b2b;
  --ink-soft: #5a5754;
  --brand: #b8442a;       /* orange-red from the logo & headings */
  --brand-deep: #b8442a;  /* brick red behind the portrait */
  --brand-glow: #d0532e;  /* accent for text on dark backgrounds */
  --night: #0d0d0f;
  --night-2: #1a1a1d;
  --line: #d6d1ca;
  --ok: #2fbf71;
  --verified: #1d9bf0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 15, 10, 0.12);
  --f-display: "Grandstander", "Baloo Bhaijaan 2", system-ui, sans-serif;
  --f-body: "Nunito", "Baloo Bhaijaan 2", system-ui, sans-serif;
  --maxw: 1120px;
}
html[lang="ar"] {
  --f-display: "Baloo Bhaijaan 2", system-ui, sans-serif;
  --f-body: "Baloo Bhaijaan 2", "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background-color: var(--paper);
  /* subtle paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  overflow-x: clip;
}
html { overflow-x: hidden; overflow-x: clip; }
/* keep Latin numbers like +1.5M readable inside Arabic text */
html[dir="rtl"] :is(.hero-quick b, .big-stat b, .platform b, .kpi b, .metric b, .pcard .follow, .pkg .price, .bar > span:last-child) { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] :is(.hero-quick b, .platform b, .kpi b, .metric b, .pcard .follow, .pkg .price) { text-align: right; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; position: relative; }

/* Bubbly outlined headings like the current site */
.h-bubble {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  margin: 0 0 28px;
  color: #fff;
  -webkit-text-stroke: 3px var(--brand);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 rgba(184,68,42, 0.18);
  letter-spacing: 0.5px;
}
.h-bubble.dark { -webkit-text-stroke-color: var(--ink); text-shadow: 0 4px 0 rgba(0, 0, 0, 0.12); }
html[lang="ar"] .h-bubble { -webkit-text-stroke-width: 2px; letter-spacing: 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 16px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(184,68,42, .35); }
.btn-primary:hover { background: #9e3a23; }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-dark { background: var(--ink); color: #fff; }

/* Torn-paper edges */
.torn-top, .torn-bottom { position: relative; }
.torn-top::before, .torn-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; height: 26px; z-index: 2;
  background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V12l18 5 22-9 15 7 24-6 19 8 17-10 26 9 14-6 21 7 23-11 16 8 25-4 13 9 20-8 27 5 15-9 22 10 19-6 24 7 12-9 28 6 17-8 21 9 26-7 14 8 23-10 18 7 25-5 16 9 22-8 20 6 27-9 13 8 24-6 19 9 21-10 26 7 15-6 22 8 17-9 25 6 18-7 23 10 14-8 26 5 20-9 16 8 24-6 21 9 13-7 27 6 18-9 22 10 25-6 15 7 20-9 23 8 18-5 24 9 16-10 22 6 19 8 26-9 14 7 21-6 23 9 17-8 25 6 20-9 18 8 22-5V26z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V12l18 5 22-9 15 7 24-6 19 8 17-10 26 9 14-6 21 7 23-11 16 8 25-4 13 9 20-8 27 5 15-9 22 10 19-6 24 7 12-9 28 6 17-8 21 9 26-7 14 8 23-10 18 7 25-5 16 9 22-8 20 6 27-9 13 8 24-6 19 9 21-10 26 7 15-6 22 8 17-9 25 6 18-7 23 10 14-8 26 5 20-9 16 8 24-6 21 9 13-7 27 6 18-9 22 10 25-6 15 7 20-9 23 8 18-5 24 9 16-10 22 6 19 8 26-9 14 7 21-6 23 9 17-8 25 6 20-9 18 8 22-5V26z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.torn-top::before { top: -25px; }
.torn-bottom::after { bottom: -25px; transform: scaleY(-1); }

/* Platform icon chip */
.picon {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 20px;
  flex: none;
}

/* Brand logos in one color (PNG alpha used as a mask) */
.brand-logo {
  display: block; width: 150px; height: 46px; max-width: 100%;
  background: var(--logo-color, #2b2b2b);
  -webkit-mask: var(--logo) center / contain no-repeat;
          mask: var(--logo) center / contain no-repeat;
}

/* Verified badges */
.vbadge { width: 1.05em; height: 1.05em; margin-inline-start: 3px; vertical-align: -0.16em; display: inline-block; flex: none; }
.verified-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(29,155,240,.14); color: #8fd0ff; border: 1px solid rgba(29,155,240,.45);
  padding: 9px 18px; border-radius: 999px; font-weight: 800; font-size: 16px;
}
.verified-pill i { color: var(--verified); font-size: 19px; }
.verified-pill.light { background: #e8f4fe; color: #0b5d99; border-color: #b7dcf8; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Logo (text fallback until the real logo is uploaded) */
.logo-text {
  font-family: "Baloo Bhaijaan 2", sans-serif;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}

.skeleton { min-height: 100vh; display: grid; place-items: center; color: var(--ink-soft); }
.updated { font-size: 13px; color: var(--ink-soft); }

/* Platform name + verified badge always on one line */
.pname { display: inline-flex !important; align-items: center; gap: 4px; white-space: nowrap; max-width: 100%; }
.pname > span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pname .vbadge { margin-inline-start: 0; flex: none; }
html[dir="rtl"] .pname { direction: ltr; } /* platform names are Latin: badge sits after the name, like on the apps */
