/* zakzak.zaplatform.com — the app's own "E · Game Shelves" language: warm paper, chunky cards with a thick
   bottom edge, bold Baloo headings, family colours. Tokens mirror ios/ZakZak/UI/Theme.swift. */
:root {
  --paper: #FFF6E9; --card: #FFFFFF; --edge: #F0DCC0; --line: #F5EADA; --muted: #E3D3BC;
  --ink: #2A1E3B; --soft: #5C4F6E; --link: #6A2FD6;
  --purple: #6A2FD6; --purple-e: #4A1CA3; --blue: #1F6FEB; --blue-e: #1350B3; --pink: #E5197A; --pink-e: #A80F58;
  --green: #0B8048; --green-e: #075C33; --orange: #FF8A00; --orange-e: #C25F00; --sun: #FFC21A; --sun-e: #C98A00;
  --night: #2A1E3B; --night-e: #140C20; --cream: #FFF6E9;
  --display: "Baloo 2", "Baloo Bhaijaan 2", system-ui, sans-serif;
  --body: "Nunito", "Baloo Bhaijaan 2", system-ui, sans-serif;
  --r: 22px; --track: 0.01em;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1A1226; --card: #2A1E3B; --edge: #120B1C; --line: #3A2C50; --muted: #4A3B60;
    --ink: #FFF6E9; --soft: #C9BEDB; --link: #C9B4F5;
  }
}
:lang(ar) { --display: "Baloo Bhaijaan 2", system-ui, sans-serif; --body: "Baloo Bhaijaan 2", system-ui, sans-serif; --track: 0; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: var(--track); }
:lang(ar) * { letter-spacing: 0 !important; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 24px/1 var(--display); color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-links a { font-weight: 800; color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover { background: var(--card); }

/* chunky surfaces */
.chunk { background: var(--card); border-radius: var(--r); box-shadow: 0 6px 0 var(--edge); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px;
  border-radius: 18px; font: 800 19px/1 var(--display); text-decoration: none; color: #fff; background: var(--purple);
  box-shadow: 0 6px 0 var(--purple-e); transition: transform .12s, box-shadow .12s; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--purple-e); }
.btn.green { background: var(--green); box-shadow: 0 6px 0 var(--green-e); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: 0 6px 0 var(--edge); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--night); color: var(--cream);
  font-weight: 800; font-size: 15px; }
.pill i { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); display: inline-block; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 32px 0 64px; }
.hero h1 { font-size: clamp(44px, 7vw, 76px); font-weight: 800; }
.hero h1 .h1-sub { display: block; font-size: clamp(22px, 3vw, 30px); color: var(--soft); font-weight: 700; margin-top: 10px; }
.hero p.lead { font-size: 20px; color: var(--soft); max-width: 34em; margin: 18px 0 26px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 6px 0 var(--edge); margin-bottom: 20px; }
.shots { position: relative; display: flex; justify-content: center; align-items: center; gap: 0; padding: 24px 0; }
.shots img { width: 40%; max-width: 210px; border-radius: 28px; box-shadow: 0 8px 0 var(--edge), 0 24px 48px rgba(42,30,59,.18); }
.shots img:nth-child(1) { transform: rotate(-6deg) translateX(14%); z-index: 1; }
.shots img:nth-child(2) { transform: translateY(-18px); z-index: 2; }
.shots img:nth-child(3) { transform: rotate(6deg) translateX(-14%); z-index: 1; }
[dir="rtl"] .shots img:nth-child(1) { transform: rotate(6deg) translateX(-14%); }
[dir="rtl"] .shots img:nth-child(3) { transform: rotate(-6deg) translateX(14%); }

/* sections */
section { padding: 56px 0; }
.label { font: 800 14px/1 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--pink); margin: 0 0 12px; }
:lang(ar) .label { text-transform: none; font-size: 16px; }
h2 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 800; }
.intro { color: var(--soft); font-size: 19px; max-width: 40em; margin: 14px 0 0; }

/* game families */
.families { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.fam { padding: 26px; }
.fam h3 { font-size: 28px; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.fam h3 .dot { width: 18px; height: 18px; border-radius: 6px; }
.fam p { color: var(--soft); margin: 8px 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 8px 14px; border-radius: 14px; font-weight: 800; font-size: 15px; color: #fff; }
.p .dot, .p .chips li { background: var(--purple); }
.l .dot, .l .chips li { background: var(--blue); }
.soon { margin-top: 24px; padding: 22px 26px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.soon b { font: 800 20px/1.2 var(--display); }
.soon .chips li { background: var(--muted); color: var(--ink); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.feat { padding: 24px; }
.feat svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; color: #fff; display: block; margin-bottom: 14px; }
.feat h3 { font-size: 22px; font-weight: 800; }
.feat p { color: var(--soft); margin: 6px 0 0; font-size: 16px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 32px; }
.gallery img { border-radius: 18px; box-shadow: 0 6px 0 var(--edge); }

/* price */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.price .chunk { padding: 26px; }
.price h3 { font-size: 26px; font-weight: 800; }
.price p { color: var(--soft); margin: 8px 0 0; }

/* FAQ */
.faq { margin-top: 28px; display: grid; gap: 14px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font: 800 19px/1.3 var(--display); position: relative; min-height: 44px; }
[dir="rtl"] .faq summary { padding: 20px 24px 20px 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 22px; top: 50%; transform: translateY(-50%); font-size: 28px; color: var(--purple); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 24px 20px; color: var(--soft); }
.faq .a p { margin: 0 0 8px; }
.contact { margin-top: 28px; padding: 26px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.contact b { font: 800 22px/1.2 var(--display); }

/* footer */
footer { padding: 40px 0 56px; color: var(--soft); font-size: 15px; }
footer .wrap { display: flex; gap: 16px 24px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
footer a { color: var(--soft); font-weight: 700; }

/* legal pages */
.legal { padding: 24px 0 64px; max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; }
.legal h2 { font-size: 26px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--soft); }
.legal .eff { color: var(--soft); margin: 10px 0 24px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal .tbl { overflow-x: auto; }
.legal th, .legal td { text-align: start; padding: 10px 12px; border-bottom: 2px solid var(--line); vertical-align: top; }
.legal th { color: var(--ink); font-family: var(--display); }
.legal .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 8px; }
  .shots { min-height: 0; margin-top: 8px; }
  .families, .price { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .nav-links a { padding: 10px 10px; }
  .btn { width: 100%; }
  .shots img { width: 34%; }
  .hero .actions .pill { width: 100%; justify-content: center; }
}
