/* talah.app — royal mauve, rose gold, Arabic-first (RTL). */
:root {
  --night: #2C0B1E;      /* hero background, matches the brand artwork */
  --deep: #3B1129;
  --plum: #5A2A52;
  --lilac: #A783A2;
  --rose: #E6C6B8;
  --rose-2: #F3DDD2;
  --bg: #FBF7F4;
  --surface: #FFFFFF;
  --text: #2E2529;
  --muted: #74686E;
  --line: #EDE3DC;
  --accent: #5A2A52;
  --shadow: 0 18px 50px rgba(59, 17, 41, .14);
  --radius: 22px;
  --heading: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --body: 'IBM Plex Sans Arabic', 'Noto Kufi Arabic', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #160E13;
    --surface: #221720;
    --text: #F3EAEE;
    --muted: #B6A6AE;
    --line: #3A2A33;
    --accent: #D9B2D1;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.85; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--heading); line-height: 1.45; margin: 0; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--rose); color: var(--night); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-family: var(--heading); font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-rose { background: linear-gradient(135deg, #F1D7CB, var(--rose)); color: var(--night); box-shadow: 0 8px 24px rgba(230, 198, 184, .25); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--accent); }
.hero .btn-ghost, .btn-ghost.light { border-color: rgba(255, 255, 255, .3); color: #fff; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 22px; border-radius: 14px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .25); font-family: var(--heading); font-weight: 700; font-size: 17px; line-height: 1.2; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: .8; }
.store > span { display: flex; flex-direction: column; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(44, 11, 30, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.brand img { height: 42px; width: auto; }
.top nav { display: flex; gap: 24px; flex: 1; }
.top nav a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 15px; font-weight: 500; }
.top nav a:hover { color: #fff; }
@media (max-width: 860px) { .top nav { display: none; } .top-in { justify-content: space-between; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(900px 520px at 22% 40%, rgba(167, 131, 162, .22), transparent 60%),
  radial-gradient(700px 500px at 90% 10%, rgba(230, 198, 184, .10), transparent 60%),
  linear-gradient(180deg, var(--night), #240818 70%, var(--night)); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding: 56px 0 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(230, 198, 184, .12); border: 1px solid rgba(230, 198, 184, .3); color: var(--rose); font-size: 14px; font-weight: 600; }
.eyebrow svg { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; margin: 18px 0 14px; letter-spacing: -.5px; }
.grad { background: linear-gradient(90deg, #F6E1D7, var(--rose) 40%, #D9B2D1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 19px); color: rgba(255, 255, 255, .8); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 26px 0 0; color: rgba(255, 255, 255, .78); font-size: 15px; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points svg { color: var(--rose); }
.hero-visual { position: relative; min-height: 600px; }

/* phone mockups */
.phone { margin: 0; width: 270px; aspect-ratio: 720 / 1490; padding: 10px; border-radius: 42px; background: linear-gradient(145deg, #4a3442, #120a0f); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.phone-screen { width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: #000; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-visual .phone { position: absolute; }
.p-front { top: 30px; inset-inline-start: 12%; z-index: 2; }
.p-back { top: 90px; inset-inline-start: 46%; transform: rotate(5deg); opacity: .96; }
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; padding: 40px 0 90px; text-align: center; }
  .lead { margin-inline: auto; }
  .hero-cta, .hero-points { justify-content: center; }
  .hero-visual { min-height: 520px; }
  .phone { width: 230px; }
  .p-front { inset-inline-start: calc(50% - 175px); }
  .p-back { inset-inline-start: calc(50% - 40px); top: 70px; }
}
@media (max-width: 480px) {
  .hero-visual { min-height: 440px; }
  .phone { width: 190px; border-radius: 34px; padding: 8px; }
  .phone-screen { border-radius: 27px; }
  .p-front { inset-inline-start: calc(50% - 150px); }
  .p-back { inset-inline-start: calc(50% - 30px); top: 56px; }
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(167, 131, 162, .08)); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.sec-head.start { text-align: start; margin-inline: 0; }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; color: var(--accent); margin: 6px 0 12px; }
.sec-head p { color: var(--muted); font-size: 18px; }
.kicker { color: var(--lilac); font-family: var(--heading); font-weight: 700; font-size: 14px; letter-spacing: .3px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature h3 { font-size: 19px; margin: 14px 0 6px; }
.feature p { color: var(--muted); font-size: 16px; }
.ic { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: var(--plum); background: linear-gradient(135deg, var(--rose-2), #EADCE8); }
@media (prefers-color-scheme: dark) { .ic { color: var(--rose); background: rgba(217, 178, 209, .12); } }

/* how it works */
.how { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.num { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--plum), var(--deep)); color: #fff; font-family: var(--heading); font-weight: 800; font-size: 18px; }
.steps h3 { font-size: 19px; }
.steps p { color: var(--muted); }
.how-visual { display: grid; place-items: center; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } .how-visual .phone { width: 240px; } }

/* shops */
.shops-card { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(28px, 5vw, 56px); color: #fff; background:
  radial-gradient(600px 400px at 100% 0%, rgba(230, 198, 184, .16), transparent 60%),
  linear-gradient(135deg, var(--deep), var(--plum)); box-shadow: var(--shadow); }
.sec-head.light h2 { color: #fff; }
.sec-head.light p { color: rgba(255, 255, 255, .78); }
.sec-head.light .kicker { color: var(--rose); }
.perk { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.perk .ic { flex: none; color: var(--night); background: linear-gradient(135deg, #F6E1D7, var(--rose)); }
.perk h3 { font-size: 18px; margin-bottom: 4px; }
.perk p { color: rgba(255, 255, 255, .78); font-size: 15.5px; }
.shops-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-family: var(--heading); font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--rose-2); color: var(--plum); font-size: 20px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }
@media (prefers-color-scheme: dark) { .faq summary::after { background: rgba(217, 178, 209, .14); color: var(--rose); } }

/* closing band */
.cta-band { padding: 0 0 88px; }
.cta-in { display: flex; align-items: center; gap: 24px; padding: 30px clamp(22px, 4vw, 44px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta-in img { width: 88px; height: 88px; border-radius: 24px; flex: none; }
.cta-in h2 { font-size: clamp(22px, 3vw, 30px); color: var(--accent); }
.cta-in p { color: var(--muted); }
@media (max-width: 560px) { .cta-in { flex-direction: column; text-align: center; } }

/* ---------- footer ---------- */
.foot { background: var(--night); color: rgba(255, 255, 255, .75); padding: 56px 0 24px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.foot h2 { font-size: 15px; color: #fff; margin-bottom: 10px; }
.foot a { display: block; color: rgba(255, 255, 255, .75); text-decoration: none; font-size: 15px; padding: 3px 0; }
.foot a:hover { color: var(--rose); }
.foot-brand img { height: 50px; width: auto; margin-bottom: 8px; }
.foot-brand p:first-of-type { color: var(--rose); font-family: var(--heading); font-weight: 700; }
.foot .muted { color: rgba(255, 255, 255, .55); font-size: 14px; }
.foot .mail { display: inline-flex; align-items: center; gap: 8px; }
.copy { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 18px; font-size: 13px; color: rgba(255, 255, 255, .5); }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- inner pages ---------- */
.page-head { color: #fff; padding: 56px 0 64px; background: radial-gradient(700px 300px at 80% 0%, rgba(230, 198, 184, .14), transparent 60%), linear-gradient(135deg, var(--night), var(--plum)); }
.page-head h1 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; }
.page-head p { color: rgba(255, 255, 255, .78); margin-top: 6px; }
.page-head.center { text-align: center; padding: 72px 0 80px; }
.page-head .round { width: 96px; height: 96px; border-radius: 26px; margin: 0 auto 18px; }
.page-head .store { margin-top: 18px; }
.page-head .btn { margin-top: 18px; }
.doc { margin: -32px auto 72px; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); }
.doc h2 { font-size: 20px; color: var(--accent); margin: 30px 0 8px; }
.doc section:first-of-type h2 { margin-top: 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul, .doc ol { padding-inline-start: 24px; margin: 6px 0; }
.doc li { margin: 4px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.toc a { text-decoration: none; font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.toc a:hover { color: var(--accent); border-color: var(--lilac); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
