/* حکمو — landing page. Plain CSS, mobile-first, RTL. */

@font-face { font-family: "Vazirmatn"; src: url("../assets/fonts/Vazirmatn-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../assets/fonts/Vazirmatn-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../assets/fonts/Vazirmatn-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Lalezar"; src: url("../assets/fonts/Lalezar.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
/* Extra Latin letters (ä ö ü ß é …, € ·) for the other-language pages; fetched only when a page uses them. */
@font-face { font-family: "Vazirmatn"; src: url("../assets/fonts/Vazirmatn-400-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+00A0-024F, U+1E00-1EFF, U+2010-2027, U+2030-205E, U+20AC, U+2122, U+2190-2193; }
@font-face { font-family: "Vazirmatn"; src: url("../assets/fonts/Vazirmatn-700-latin-ext.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+00A0-024F, U+1E00-1EFF, U+2010-2027, U+2030-205E, U+20AC, U+2122, U+2190-2193; }
@font-face { font-family: "Vazirmatn"; src: url("../assets/fonts/Vazirmatn-900-latin-ext.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; unicode-range: U+00A0-024F, U+1E00-1EFF, U+2010-2027, U+2030-205E, U+20AC, U+2122, U+2190-2193; }
@font-face { font-family: "Lalezar"; src: url("../assets/fonts/Lalezar-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+00A0-024F, U+1E00-1EFF, U+2010-2027, U+2030-205E, U+20AC, U+2122, U+2190-2193; }

:root {
  /* brand (fixed) */
  --lapis: #1B2A6B;
  --lapis-deep: #111B4A;
  --lapis-night: #0B1233;
  --firouzeh: #2BA59B;
  --firouzeh-text: #5FD8CA;   /* turquoise tuned for text on lapis (AA) */
  --saffron: #F0A92E;
  --saffron-deep: #B97A16;
  --anar: #B8233A;
  --gold: #C8A45C;
  --paper: #F3E7CC;
  --ink: #1E1A2B;

  /* derived */
  --panel: #213279;
  --cream: #F7ECD4;
  --text: #EEF0FA;
  --text-2: #BCC4E8;
  --gold-line: rgba(200, 164, 92, .55);
  --gold-soft: rgba(200, 164, 92, .28);
  --shadow: 0 18px 40px -18px rgba(5, 9, 34, .85);

  --font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --font-display: "Lalezar", "Vazirmatn", Tahoma, sans-serif;
  --gutter: 18px;
  --header-h: 64px;

  --stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.055' stroke-width='1'%3E%3Cpath d='M19 19h18v18H19z'/%3E%3Cpath d='M28 15.3 40.7 28 28 40.7 15.3 28z'/%3E%3Cpath d='M0 0l5 5M56 0l-5 5M0 56l5-5M56 56l-5-5'/%3E%3C/g%3E%3C/svg%3E");
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } }
body {
  margin: 0;
  background: var(--lapis);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--firouzeh-text); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong, b { font-weight: 700; }
button { font: inherit; }
.latin { font-family: system-ui, sans-serif; unicode-bidi: isolate; }

:focus-visible { outline: 3px solid var(--firouzeh-text); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; top: -100px; inset-inline-start: 12px; z-index: 100; padding: 10px 16px; background: var(--paper); color: var(--ink); border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

.display { font-family: var(--font-display); font-weight: 400; line-height: 1.3; letter-spacing: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
.lead, .hero-sub, .faq p, .feat p, .sara p { text-wrap: pretty; }

.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sg { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -0.12em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 14px;
  font-family: var(--font); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease, opacity .25s ease, visibility .25s;
}
.btn-primary {
  color: var(--ink);
  background: linear-gradient(180deg, #FFC658 0%, var(--saffron) 62%, #E89B1E 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(150, 90, 10, .25), 0 4px 0 var(--saffron-deep), 0 14px 26px -10px rgba(240, 169, 46, .55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(150, 90, 10, .25), 0 5px 0 var(--saffron-deep), 0 18px 30px -10px rgba(240, 169, 46, .6); }
.btn-primary:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 0 var(--saffron-deep), 0 6px 14px -8px rgba(240, 169, 46, .5); }
.btn-primary:focus-visible { outline-color: #fff; }
.btn-lg { min-height: 64px; padding: 0 28px; border-radius: 16px; font-size: 1.2rem; font-weight: 900; }
.btn-lg .ico { width: 26px; height: 26px; stroke-width: 2.4; }
.btn-sm { min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: .92rem; font-weight: 900; }
.btn-stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.btn-stack small { font-size: .74rem; font-weight: 700; opacity: .78; }
.btn-ghost {
  color: var(--firouzeh-text);
  background: rgba(43, 165, 155, .08);
  box-shadow: inset 0 0 0 1.5px var(--firouzeh);
  font-size: .95rem;
  padding: 0 16px;
}
.btn-ghost:hover { background: rgba(43, 165, 155, .18); color: #8BEDE1; }
/* Device-aware calls to action: <head> adds .web-first on iPhone, iPad and computers, where the
   web app (/app/) leads and the Android stores follow; Android (and no-JS) keeps the stores first. */
html:not(.web-first) .only-web, .web-first .only-android { display: none !important; }
/* Web app on Android: a cream outline so the saffron store button stays the one main action. */
.btn-web {
  color: var(--cream);
  background: rgba(247, 236, 212, .06);
  box-shadow: inset 0 0 0 1.5px var(--gold-line);
  padding: 8px 18px;
}
.btn-web:hover { background: rgba(247, 236, 212, .12); box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn-web .ico { width: 24px; height: 24px; flex: none; }
.btn-web .btn-stack small { font-weight: 500; }
.btn-ghost .ico { width: 20px; height: 20px; }
@media (max-width: 419px) {
  .store-row { gap: 8px; }
  .btn-ghost { padding: 0 12px; font-size: .88rem; gap: 7px; }
  .btn-ghost .ico { width: 18px; height: 18px; }
  .taq-final { padding-inline: 12px; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(17, 27, 74, .82);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--gold-soft);
}
.header-in { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 1px var(--gold-soft); }
.wordmark {
  font-family: var(--font-display); font-size: 1.85rem; line-height: 1; color: var(--saffron);
  text-shadow: 0 2px 0 #A8680F, 0 0 18px rgba(240, 169, 46, .25);
  padding-top: 4px;
}
.nav { display: none; }
.header-cta { flex: none; }
.js .header-cta { opacity: 0; visibility: hidden; transform: translateY(-6px); }
.js.show-cta .header-cta { opacity: 1; visibility: visible; transform: none; }

@media (min-width: 980px) {
  .nav { display: flex; gap: 4px; margin-inline-end: 8px; }
  .nav a { color: var(--text-2); text-decoration: none; font-size: .95rem; font-weight: 700; padding: 8px 12px; border-radius: 10px; transition: color .2s, background-color .2s; }
  .nav a:hover { color: var(--cream); background: rgba(255, 255, 255, .06); }
}

/* ---------- ornaments ---------- */
.orn {
  width: 180px; height: 14px; margin: 10px 0 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='14' viewBox='0 0 180 14'%3E%3Cg fill='none' stroke='%23C8A45C' stroke-width='1.2'%3E%3Cpath d='M0 7h70M110 7h70'/%3E%3Cpath d='M74 7l4-4 4 4-4 4zM98 7l4-4 4 4-4 4z'/%3E%3C/g%3E%3Cpath d='M90 .5l6.5 6.5-6.5 6.5L83.5 7z' fill='%23C8A45C'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* the Persian arch («طاق») panel */
.taq {
  position: relative;
  background: var(--panel);
  border: 1.5px solid var(--gold-line);
  border-radius: 18px;
  padding: 26px 20px 20px;
  margin-top: 30px;
  box-shadow: var(--shadow);
}
.taq::before {
  content: ""; position: absolute; top: -25.5px; left: 50%; width: 180px; height: 26px; margin-left: -90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='26' viewBox='0 0 180 26'%3E%3Cpath d='M0 26V24.75C50 24.75 70 3 90 1.5 110 3 130 24.75 180 24.75V26Z' fill='%23213279'/%3E%3Cpath d='M0 24.75C50 24.75 70 3 90 1.5 110 3 130 24.75 180 24.75' fill='none' stroke='%23C8A45C' stroke-opacity='.55' stroke-width='1.5'/%3E%3Cpath d='M34 25C62 22 76 10 90 9 104 10 118 22 146 25' fill='none' stroke='%23C8A45C' stroke-width='1.2' stroke-dasharray='1.5 3.5' stroke-linecap='round'/%3E%3Ccircle cx='90' cy='16.5' r='2.6' fill='%23C8A45C'/%3E%3C/svg%3E") no-repeat;
}

/* phone mockup */
.phone {
  position: relative;
  aspect-ratio: 600 / 1298;
  padding: 7px;
  border-radius: 34px;
  background: linear-gradient(160deg, #1A2560, var(--lapis-night) 60%);
  box-shadow: 0 0 0 1.5px var(--gold-line), 0 0 0 5px rgba(11, 18, 51, .9), 0 0 0 6px var(--gold-soft), 0 30px 60px -22px rgba(3, 6, 25, .95);
}
.phone > img, .phone > video { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; background: var(--lapis-deep); }

/* ---------- sections ---------- */
.sec { position: relative; padding-block: 76px; background: var(--lapis) var(--stars); }
.sec-deep { background-color: var(--lapis-deep); }
.sec-night { background-color: var(--lapis-night); }
.sec-head { text-align: center; max-width: 720px; margin-inline: auto; margin-bottom: 36px; }
.sec-head .orn { margin-inline: auto; }
.sec-title { font-size: clamp(2.2rem, 8.4vw, 3.4rem); color: var(--cream); }
.lead { color: var(--text-2); font-size: 1.08rem; line-height: 1.95; }
.sub-title { text-align: center; font-size: clamp(1.7rem, 6vw, 2.4rem); color: var(--cream); margin: 64px 0 28px; }
@media (min-width: 900px) { .sec { padding-block: 112px; } .lead { font-size: 1.15rem; } }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 30px 0 96px;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(62, 84, 176, .55), transparent 70%),
    radial-gradient(60% 50% at 20% 85%, rgba(240, 169, 46, .10), transparent 70%),
    var(--stars),
    linear-gradient(180deg, var(--lapis) 0%, #182562 70%, var(--lapis-deep) 100%);
  background-color: var(--lapis);
}
.sky { position: absolute; inset: 0; pointer-events: none; }
.sky i {
  position: absolute; left: var(--x); top: var(--y);
  width: 3px; height: 3px; border-radius: 50%; background: #FFF4D6;
  box-shadow: 0 0 6px 1px rgba(255, 236, 190, .8);
  animation: twinkle 3.6s ease-in-out var(--d) infinite;
}
.sky i:nth-child(3n) { width: 2px; height: 2px; }
.sky i:nth-child(4n)::before, .sky i:nth-child(4n)::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: rgba(255, 240, 200, .75);
}
.sky i:nth-child(4n)::before { width: 1px; height: 12px; margin: -6px 0 0 -.5px; }
.sky i:nth-child(4n)::after { width: 12px; height: 1px; margin: -.5px 0 0 -6px; }
@keyframes twinkle { 0%, 100% { opacity: .95; transform: scale(1); } 50% { opacity: .25; transform: scale(.6); } }

.hero-in { position: relative; display: grid; gap: 34px; }
.hero-copy { text-align: center; }
.hero-title { font-size: clamp(3rem, 13.5vw, 5.4rem); line-height: 1.22; color: var(--cream); text-shadow: 0 4px 0 rgba(8, 13, 45, .55); }
.hero-sub { margin: 16px auto 0; max-width: 34em; color: var(--text-2); font-size: 1.08rem; }
.hero-sub strong { color: var(--cream); }
.cta-block { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.store-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.store-label { color: var(--text-2); font-size: .92rem; }
.cta-note { color: var(--text-2); font-size: .88rem; }
.apk-note { max-width: 34rem; margin-inline: auto; font-size: .8rem; line-height: 1.7; }

.hero-art { --pw: 212px; position: relative; display: grid; place-items: center; padding: 10px 0 20px; }
.hero-phone { width: var(--pw); z-index: 2; animation: phoneIn 1s cubic-bezier(.2, .8, .2, 1) both .1s; }
.hero-fan { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hf {
  position: absolute; left: 50%; top: 16%;
  width: calc(var(--pw) * .56); margin-left: calc(var(--pw) * -.28);
  transform-origin: 50% 110%;
  filter: drop-shadow(0 14px 18px rgba(4, 8, 32, .55));
  animation: fanOut 1.1s cubic-bezier(.2, .8, .2, 1) both .35s;
}
.hf1 { --t: translate(calc(var(--pw) * -.5), 22px) rotate(-24deg); }
.hf2 { --t: translate(calc(var(--pw) * -.33), -6px) rotate(-10deg); }
.hf3 { --t: translate(calc(var(--pw) * .33), -6px) rotate(10deg); }
.hf4 { --t: translate(calc(var(--pw) * .5), 22px) rotate(24deg); }
@keyframes fanOut { from { transform: translate(0, 30px) rotate(0); opacity: 0; } to { transform: var(--t); opacity: 1; } }
@keyframes phoneIn { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-seal {
  position: absolute; z-index: 3; width: calc(var(--pw) * .4);
  left: calc(50% - var(--pw) * .5 - 26px); bottom: 16%;
  filter: drop-shadow(0 12px 16px rgba(4, 8, 32, .6));
  animation: stamp .9s cubic-bezier(.3, 1.4, .5, 1) both 1s, bob 5s ease-in-out 2s infinite;
}
@keyframes stamp { from { transform: scale(1.8) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.skyline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 64px; fill: var(--lapis-deep); z-index: 3; }

@media (min-width: 420px) { .hero-art { --pw: 232px; } }
@media (min-width: 900px) {
  .hero { padding: 56px 0 130px; }
  .hero-in { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px; min-height: 620px; }
  .hero-copy { text-align: start; }
  .hero-sub { margin-inline: 0; font-size: 1.2rem; }
  .cta-block { align-items: flex-start; }
  .store-row { justify-content: flex-start; }
  .hero-art { --pw: 290px; padding: 30px 0; }
  .skyline { height: 110px; }
}
@media (min-width: 1200px) { .hero-art { --pw: 310px; } }

/* ---------- TEASER ---------- */
.teaser { background: var(--lapis-deep); padding: 20px 0 10px; }
.teaser-frame {
  position: relative; aspect-ratio: 16 / 9; max-width: 960px; margin-inline: auto;
  border-radius: 22px; overflow: hidden;
  background: radial-gradient(60% 80% at 50% 40%, rgba(240, 169, 46, .16), transparent), var(--stars), var(--lapis);
  box-shadow: 0 0 0 1.5px var(--gold-line), var(--shadow);
}
.teaser-frame video { width: 100%; height: 100%; object-fit: cover; }
.teaser-play {
  /* The whole frame is the button; the icon sits in the corner so it never covers the poster's own headline. */
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; padding: 16px;
  background: linear-gradient(0deg, rgba(11, 18, 51, .45), transparent 40%); border: 0; cursor: pointer; color: var(--cream);
  font-weight: 900; font-size: 1.05rem;
}
.teaser-play span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.teaser-play svg { width: 64px; height: 64px; transition: transform .2s; }
.teaser-play circle { fill: rgba(11, 18, 51, .6); stroke: var(--gold); stroke-width: 2; }
.teaser-play path { fill: var(--cream); }
.teaser-play:hover svg { transform: scale(1.06); }
.teaser.is-playing .teaser-play { display: none; }

/* ---------- DORHAMI ---------- */
.dorhami-grid { display: grid; gap: 56px; }
.dorhami-copy .orn { margin-bottom: 8px; }
.taq-note p { font-size: 1.12rem; text-align: center; color: var(--cream); line-height: 1.9; }
.taq-note strong { color: var(--firouzeh-text); }

.steps { margin-top: 30px; display: grid; gap: 4px; counter-reset: s; }
.steps li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding-bottom: 20px; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 54px; bottom: 4px; inset-inline-start: 23px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--gold) 0 3px, transparent 3px 8px); opacity: .7;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lapis); color: var(--cream);
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1; padding-top: 4px;
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 5px var(--lapis-deep), 0 0 0 6px var(--gold-soft);
}
.steps h3 { font-size: 1.15rem; font-weight: 900; color: var(--cream); line-height: 1.5; margin-top: 8px; }
.steps p { color: var(--text-2); margin-top: 4px; }

.guest-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; color: var(--text-2); }
.guest-note .ico { color: var(--firouzeh-text); margin-top: 3px; }
.guest-note strong { color: var(--cream); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li {
  padding: 5px 14px; border-radius: 999px; font-size: .92rem; font-weight: 700;
  color: #D5F5F1; background: rgba(43, 165, 155, .13); box-shadow: inset 0 0 0 1px rgba(43, 165, 155, .55);
}

.dorhami-art { position: relative; max-width: 440px; width: 100%; margin-inline: auto; padding-bottom: 40px; }
.arch-stage {
  position: relative; aspect-ratio: 5 / 6; border-radius: 999px 999px 26px 26px; overflow: hidden;
  background:
    radial-gradient(3px 3px at 20% 22%, #FFF3CF 50%, transparent 52%),
    radial-gradient(2px 2px at 70% 15%, #FFF3CF 50%, transparent 52%),
    radial-gradient(2px 2px at 40% 34%, #FFF3CF 50%, transparent 52%),
    radial-gradient(3px 3px at 82% 36%, #FFF3CF 50%, transparent 52%),
    radial-gradient(2px 2px at 12% 48%, #FFF3CF 50%, transparent 52%),
    radial-gradient(70% 45% at 50% 88%, rgba(240, 169, 46, .38), transparent 70%),
    linear-gradient(180deg, #13205A 0%, #22358A 70%, #2E3F92 100%);
  box-shadow: 0 0 0 1.5px var(--gold-line), 0 0 0 7px var(--lapis-deep), 0 0 0 8px var(--gold-soft), var(--shadow);
}
.arch-stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9%;
  background: #A5673F; border-top: 2px solid var(--ink);
}
.karvansara { position: absolute; left: 4%; right: 4%; bottom: 8.6%; width: 92%; }
.phone-dorhami { position: absolute; left: -3%; bottom: 0; width: 34%; max-width: 170px; border-radius: 26px; padding: 5px; z-index: 2; }
.phone-dorhami > img, .phone-dorhami > video { border-radius: 21px; }
.phone-video { position: absolute; inset: 5px; width: calc(100% - 10px) !important; height: calc(100% - 10px) !important; opacity: 0; transition: opacity .6s; }
.phone-dorhami.has-video { aspect-ratio: 9 / 16; }
.phone-dorhami.has-video .phone-video { opacity: 1; }
.phone-dorhami.has-video > img { visibility: hidden; }

@media (min-width: 900px) {
  .dorhami-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
  .dorhami-art { max-width: 460px; }
  .phone-dorhami { left: -18%; width: 38%; }
}

/* ---------- WEB: play without installing ---------- */
.web-grid { display: grid; gap: 56px; }
.web-copy .orn { margin-bottom: 8px; }
.web-list { display: grid; gap: 12px; margin-top: 24px; }
.web-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; color: var(--text-2); line-height: 1.8; }
.web-list .ico { width: 22px; height: 22px; margin-top: 3px; color: var(--firouzeh-text); stroke-width: 2.4; }
.web-list strong { color: var(--cream); }
.web-list .app-only .ico { color: var(--saffron); stroke-width: 2; }
.web-cta { margin-top: 28px; }
.taq-home { margin-top: 56px; }
.taq-home h3 { text-align: center; font-size: 1.12rem; font-weight: 900; color: var(--cream); line-height: 1.6; }
.home-steps { display: grid; gap: 16px; margin-top: 18px; }
.home-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.home-steps p { color: var(--text-2); line-height: 1.9; }
.home-steps strong { color: var(--cream); }
.os { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lapis-deep); box-shadow: inset 0 0 0 1px var(--gold-soft); }
.os svg { width: 22px; height: 22px; fill: var(--cream); }
.kbd { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-inline: 2px; vertical-align: -7px; border-radius: 7px; background: rgba(247, 236, 212, .08); box-shadow: inset 0 0 0 1px var(--gold-soft); }
.kbd svg { width: 16px; height: 16px; fill: none; stroke: var(--cream); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kbd circle { fill: var(--cream); stroke: none; }
.home-steps .nowrap { white-space: nowrap; }
html:not(.web-first) .step-android { order: -1; } /* your own phone's steps first */
.home-note { margin-top: 16px; text-align: center; color: var(--firouzeh-text); font-size: .95rem; }

.web-art { position: relative; width: 100%; max-width: 640px; margin-inline: auto; padding-bottom: 44px; }
.browser {
  border-radius: 14px; overflow: hidden; background: var(--lapis-night);
  box-shadow: 0 0 0 1.5px var(--gold-line), 0 0 0 6px rgba(11, 18, 51, .9), 0 0 0 7px var(--gold-soft), var(--shadow);
}
.browser-bar { direction: ltr; display: flex; align-items: center; gap: 6px; height: 32px; padding-inline: 12px; background: #0E1640; border-bottom: 1px solid var(--gold-soft); }
.browser-bar i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--anar); }
.browser-bar i:nth-child(2) { background: var(--saffron); }
.browser-bar i:nth-child(3) { background: var(--firouzeh); }
.browser-url {
  direction: rtl; flex: 1; max-width: 260px; height: 20px; margin-inline: auto;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; background: rgba(247, 236, 212, .07); color: var(--text-2); font-size: .72rem; font-weight: 700;
}
.browser-url img { width: 12px; height: 12px; border-radius: 3px; }
.browser > img { display: block; width: 100%; height: auto; }
.phone-web { position: absolute; left: -2%; bottom: 0; width: 27%; max-width: 150px; border-radius: 24px; padding: 5px; z-index: 2; }
.phone-web > img { border-radius: 19px; }

@media (min-width: 900px) {
  .web-grid { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 64px; }
  .web-art { order: -1; }
  .phone-web { left: -7%; width: 26%; }
}

/* ---------- WORLD: families fan ---------- */
.families { text-align: center; }
.fam-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fam-tabs label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  cursor: pointer; font-weight: 700; font-size: .95rem; color: var(--text-2);
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--gold-soft);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.fam-tabs label:hover { color: var(--cream); background: rgba(255, 255, 255, .08); }
.suit { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); font-size: 15px; }
.s-h, .s-d { color: var(--anar); }
.s-s, .s-c { color: var(--ink); }
#fam-h:checked ~ .fam-tabs [for="fam-h"], #fam-d:checked ~ .fam-tabs [for="fam-d"],
#fam-s:checked ~ .fam-tabs [for="fam-s"], #fam-c:checked ~ .fam-tabs [for="fam-c"] {
  color: var(--cream); background: rgba(43, 165, 155, .2); box-shadow: inset 0 0 0 1.5px var(--firouzeh);
}
#fam-h:focus-visible ~ .fam-tabs [for="fam-h"], #fam-d:focus-visible ~ .fam-tabs [for="fam-d"],
#fam-s:focus-visible ~ .fam-tabs [for="fam-s"], #fam-c:focus-visible ~ .fam-tabs [for="fam-c"] {
  outline: 3px solid var(--firouzeh-text); outline-offset: 3px;
}

.fans { position: relative; height: 270px; margin-top: 26px; }
.fan { display: none; position: absolute; inset: 0; }
#fam-h:checked ~ .fans .fan-h, #fam-d:checked ~ .fans .fan-d,
#fam-s:checked ~ .fans .fan-s, #fam-c:checked ~ .fans .fan-c { display: block; }
.fan img {
  --w: 124px;
  position: absolute; left: 50%; bottom: 26px; width: var(--w); margin-left: calc(var(--w) / -2);
  transform-origin: 50% 118%; border-radius: 10px;
  filter: drop-shadow(0 12px 16px rgba(4, 8, 32, .55));
  animation: deal .8s cubic-bezier(.2, .8, .2, 1) both;
  transition: translate .25s ease;
}
.fan img:nth-child(1) { --t: translateX(46%) rotate(18deg); animation-delay: .05s; }
.fan img:nth-child(2) { --t: translateX(15%) rotate(6deg); animation-delay: .12s; }
.fan img:nth-child(3) { --t: translateX(-15%) rotate(-6deg); animation-delay: .19s; }
.fan img:nth-child(4) { --t: translateX(-46%) rotate(-18deg); animation-delay: .26s; }
@media (min-width: 700px) {
  .fan img:nth-child(1) { --t: translateX(58%) rotate(21deg); }
  .fan img:nth-child(2) { --t: translateX(19%) rotate(7deg); }
  .fan img:nth-child(3) { --t: translateX(-19%) rotate(-7deg); }
  .fan img:nth-child(4) { --t: translateX(-58%) rotate(-21deg); }
}
.fan img:hover { translate: 0 -16px; }
.js .families:not(.is-in) .fan img { animation-play-state: paused; }
@keyframes deal { from { transform: translateY(30px) rotate(0); } to { transform: var(--t); } }

.fam-caption { margin-top: 18px; color: var(--text-2); min-height: 3.6em; max-width: 30em; margin-inline: auto; }
.fc { display: none; }
#fam-h:checked ~ .fam-caption .fc-h, #fam-d:checked ~ .fam-caption .fc-d,
#fam-s:checked ~ .fam-caption .fc-s, #fam-c:checked ~ .fam-caption .fc-c { display: inline; }

@media (min-width: 700px) {
  .fans { height: 310px; }
  .fan img { --w: 170px; }
}

/* avatars crowd */
.crowd { margin-top: 48px; text-align: center; }
.avatars { display: flex; flex-wrap: wrap; justify-content: center; max-width: 330px; margin-inline: auto; row-gap: 6px; padding-inline-start: 8px; }
.avatars li { width: 46px; height: 46px; margin-inline-start: -8px; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--lapis), 0 0 0 3.5px var(--gold-soft); transition: transform .2s; background: var(--lapis-deep); }
.avatars li:hover { transform: translateY(-6px); z-index: 1; }
.avatars img { width: 100%; height: 100%; border-radius: 50%; }
.crowd-caption { margin-top: 16px; color: var(--text-2); }
@media (min-width: 900px) {
  .avatars { max-width: none; }
  .avatars li { width: 64px; height: 64px; margin-inline-start: -12px; }
}

/* saras */
.saras { display: grid; gap: 16px; }
.sara {
  display: grid; grid-template-columns: 44% 1fr; overflow: hidden;
  border-radius: 18px; background: var(--lapis-deep);
  box-shadow: 0 0 0 1px var(--gold-line), var(--shadow);
}
.sara-scene {
  position: relative; min-height: 150px;
  background:
    radial-gradient(2px 2px at 18% 18%, #FFF3CF 50%, transparent 52%),
    radial-gradient(2px 2px at 76% 12%, #FFF3CF 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 52% 26%, #FFF3CF 50%, transparent 52%),
    radial-gradient(110% 80% at 50% 70%, var(--glow), transparent 72%),
    #0E1742;
}
.sara-scene::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background:
    repeating-linear-gradient(90deg, rgba(243, 231, 204, .28) 0 5px, transparent 5px 10px) top / 100% 3px no-repeat,
    var(--field);
  border-top: 2px solid var(--gold);
}
.sara-scene img { position: absolute; left: 7%; right: 7%; bottom: 19%; width: 86%; z-index: 1; }
.sara-body { padding: 16px 16px 18px; }
.sara-rank {
  display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  color: var(--cream); box-shadow: inset 0 0 0 1px var(--gold-line); background: rgba(200, 164, 92, .1);
}
.sara h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; line-height: 1.35; color: var(--cream); margin-top: 8px; }
.sara p { color: var(--text-2); font-size: .92rem; line-height: 1.8; margin-top: 4px; }
.saras .sara:nth-child(2) { transition-delay: .06s; } .saras .sara:nth-child(3) { transition-delay: .12s; }
.saras .sara:nth-child(4) { transition-delay: .18s; } .saras .sara:nth-child(5) { transition-delay: .24s; }

@media (min-width: 700px) {
  .saras { grid-template-columns: repeat(6, 1fr); }
  .sara { grid-template-columns: 1fr; grid-column: span 2; }
  .sara:nth-child(4) { grid-column: 2 / span 2; }
  .sara-scene { aspect-ratio: 4 / 3; min-height: 0; }
}
@media (min-width: 1100px) {
  .saras { grid-template-columns: repeat(5, 1fr); }
  .sara, .sara:nth-child(4) { grid-column: auto; }
}

/* ---------- SHAFAF ---------- */
.shafaf-grid { display: grid; gap: 40px; }
.shafaf-seal { position: relative; width: min(62vw, 280px); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.shafaf-seal::before {
  content: ""; position: absolute; inset: -6%; border-radius: 50%;
  border: 1.5px dashed var(--gold-line);
  animation: spin 60s linear infinite;
}
.shafaf-seal::after {
  content: ""; position: absolute; inset: 8%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(240, 169, 46, .3), transparent 70%);
}
.shafaf-seal img { width: 100%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .5)); }
.js .shafaf-seal img { transform: scale(1.5) rotate(-25deg); opacity: 0; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1), opacity .4s; }
.js .shafaf-seal.is-in img { transform: none; opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.timeline { margin-top: 26px; display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding-bottom: 24px; }
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; top: 58px; bottom: 6px; inset-inline-start: 25px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--gold) 0 3px, transparent 3px 8px); opacity: .7;
}
.tl-ico {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lapis); box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 5px var(--lapis-night), 0 0 0 6px var(--gold-soft);
}
.tl-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--cream); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.timeline li:last-child .tl-ico svg { stroke: var(--firouzeh-text); }
.timeline h3 { font-size: 1.15rem; font-weight: 900; color: var(--cream); margin-top: 10px; line-height: 1.5; }
.timeline p { color: var(--text-2); margin-top: 4px; }
.badge-ok {
  display: inline-block; padding: 0 10px; border-radius: 999px; white-space: nowrap;
  color: #9AF0E5; background: rgba(43, 165, 155, .18); box-shadow: inset 0 0 0 1px rgba(43, 165, 155, .6); font-weight: 700; font-size: .92em;
}
@media (min-width: 900px) {
  .shafaf-grid { grid-template-columns: .8fr 1.2fr; align-items: center; gap: 80px; }
  .shafaf-seal { width: 340px; }
}

/* ---------- LEAGUE ---------- */
.sec-art { width: 120px; margin: 0 auto 10px; }
.ladder {
  display: flex; align-items: flex-end; justify-content: center; gap: 6px;
  max-width: 900px; margin: 10px auto 0; padding-bottom: 0;
  border-bottom: 3px solid var(--gold);
}
.rung { flex: 1 1 0; min-width: 0; max-width: 170px; display: flex; flex-direction: column; align-items: center; }
.rung img, .rung .crown { width: 74%; margin-bottom: 10px; filter: drop-shadow(0 10px 12px rgba(4, 8, 32, .55)); }
.rung img { border-radius: 6px; }
.rung-step {
  width: 100%; height: var(--h); display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 10px 4px 8px; text-align: center; line-height: 1.35;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #28398A, #172462);
  box-shadow: inset 0 3px 0 var(--gold), inset 0 0 0 1px var(--gold-soft);
}
.rung-step strong { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--cream); line-height: 1.3; }
.rung-step span { font-size: .68rem; color: var(--text-2); margin-top: 2px; }
.rung-step em { font-style: normal; font-size: .66rem; font-weight: 700; color: var(--firouzeh-text); margin-top: auto; }
.r1 { --h: 88px; } .r2 { --h: 106px; } .r3 { --h: 124px; } .r4 { --h: 142px; } .r5 { --h: 160px; }
.r5 .rung-step { background: linear-gradient(180deg, #3A3F7A, #1D2466); box-shadow: inset 0 3px 0 var(--saffron), inset 0 0 0 1px var(--gold-line); }
.crown svg { width: 100%; height: auto; }
.crown circle:first-child { fill: var(--lapis-night); stroke: var(--gold); stroke-width: 2.5; }
.crown path:nth-of-type(1) { fill: var(--gold); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.crown path:nth-of-type(2) { stroke: var(--gold); stroke-width: 3; stroke-linecap: round; fill: none; }
.crown circle:not(:first-child) { fill: var(--saffron); }
.crown { display: block; aspect-ratio: 1; filter: drop-shadow(0 0 16px rgba(200, 164, 92, .45)) !important; }

.facts { display: grid; gap: 14px; margin-top: 40px; }
.facts li {
  display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 16px; background: var(--panel); box-shadow: 0 0 0 1px var(--gold-soft);
}
.facts b { font-size: 1.6rem; font-weight: 400; color: var(--cream); text-align: center; line-height: 1.3; }
.facts span { color: var(--text-2); font-size: .95rem; line-height: 1.8; }
@media (min-width: 700px) {
  .rung-step strong { font-size: 1.5rem; }
  .rung-step span { font-size: .82rem; }
  .rung-step em { font-size: .8rem; }
  .ladder { gap: 12px; }
  .r1 { --h: 104px; } .r2 { --h: 126px; } .r3 { --h: 148px; } .r4 { --h: 170px; } .r5 { --h: 192px; }
}
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts li { grid-template-columns: 1fr; text-align: center; padding: 22px; }
  .facts b { font-size: 2.2rem; }
}

/* ---------- GALLERY ---------- */
.sec-head-row { display: flex; align-items: flex-end; justify-content: center; gap: 20px; }
.gal-nav { display: none; gap: 10px; }
.gal-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--panel); color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--gold-line); transition: background-color .2s;
}
.gal-btn:hover { background: #2A3D8C; }
.gal-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gallery {
  --edge: max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter)));
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 14px var(--edge) 26px;
  scrollbar-width: thin; scrollbar-color: var(--gold-line) transparent;
}
.gallery:focus-visible { outline-offset: -3px; }
.shot { flex: none; width: min(62vw, 250px); scroll-snap-align: center; text-align: center; }
.shot .phone { width: 100%; }
.shot figcaption { margin-top: 16px; color: var(--text-2); font-size: .92rem; line-height: 1.7; }
@media (min-width: 900px) {
  .sec-head-row { justify-content: space-between; text-align: start; max-width: none; }
  .sec-head-row .orn { margin-inline: 0; }
  .gal-nav { display: flex; }
  .shot { scroll-snap-align: start; width: 250px; }
}

/* ---------- MODES & FEATURES ---------- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 18px 12px 16px; border-radius: 16px; background: var(--panel); box-shadow: 0 0 0 1px var(--gold-soft);
}
.mode:first-child { grid-column: 1 / -1; }
.mode img { height: 86px; width: auto; max-width: 100%; object-fit: contain; }
.mode:first-child img { height: 110px; }
.mode h3 { font-size: 1.05rem; font-weight: 900; color: var(--cream); margin-top: 10px; line-height: 1.5; }
.mode p { font-size: .88rem; color: var(--text-2); line-height: 1.7; }
@media (min-width: 900px) {
  .modes { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .mode:first-child { grid-column: auto; }
  .mode img, .mode:first-child img { height: 96px; }
}

.features { display: grid; gap: 16px; margin-top: 44px; }
.feat {
  position: relative; padding: 22px 22px 22px; padding-inline-start: 60px;
  border-radius: 16px; background: var(--paper); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(30, 26, 43, .08), 0 16px 28px -16px rgba(3, 6, 25, .9);
}
.feat::before { content: ""; position: absolute; inset: 7px; border-radius: 11px; border: 1px solid rgba(160, 120, 50, .35); pointer-events: none; }
.idx {
  position: absolute; top: 16px; inset-inline-start: 18px; display: flex; flex-direction: column; align-items: center;
  font-weight: 900; font-size: 1.15rem; line-height: 1.1; color: var(--ink);
}
.idx i { font-style: normal; font-size: .95rem; margin-top: 3px; color: var(--ink); }
.idx i.red { color: var(--anar); }
.feat h3 { font-size: 1.1rem; font-weight: 900; line-height: 1.5; margin-top: 12px; }
.feat p { font-size: .95rem; line-height: 1.85; color: #3A3346; margin-top: 4px; }
.feat-vis { height: 34px; display: flex; align-items: center; gap: 6px; color: var(--ink); }
.feat-vis svg:not(.sg) { width: 48px; height: 32px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.players b { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-weight: 900; box-shadow: inset 0 0 0 1.5px rgba(30, 26, 43, .4); }
.players b.on { background: var(--ink); color: var(--paper); box-shadow: none; }
.suits4 { font-size: 26px; gap: 8px; }
.suits4 .s-h { color: var(--anar); } .suits4 .s-d4 { color: #E0781C; } .suits4 .s-s { color: var(--ink); } .suits4 .s-c4 { color: #137A70; }
.letters span { min-width: 30px; height: 32px; padding: 0 5px; border-radius: 6px; display: grid; place-items: center; font-weight: 900; background: #fff8e8; box-shadow: inset 0 0 0 1px rgba(30, 26, 43, .25); }
@media (min-width: 620px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- PROMISE ---------- */
.promise {
  padding-block: 56px;
  background: radial-gradient(70% 120% at 50% 50%, rgba(184, 35, 58, .28), transparent 70%), var(--lapis-night);
  border-block: 1px solid var(--gold-soft);
}
.promise-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.promise-heart {
  flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--anar); font-size: 38px;
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 7px var(--lapis-night), 0 0 0 8px var(--gold-line), 0 0 40px rgba(184, 35, 58, .5);
}
.promise h2 { font-size: clamp(1.9rem, 7vw, 2.8rem); color: var(--cream); }
.promise p { color: var(--text-2); max-width: 40em; margin-top: 6px; }
@media (min-width: 900px) {
  .promise-in { flex-direction: row; text-align: start; justify-content: center; gap: 30px; }
  .promise-heart { width: 96px; height: 96px; font-size: 46px; }
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--panel); box-shadow: 0 0 0 1px var(--gold-soft); transition: box-shadow .2s; }
.faq details[open] { box-shadow: 0 0 0 1.5px var(--gold-line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 60px; padding: 14px 20px; cursor: pointer; list-style: none;
  font-weight: 900; font-size: 1.04rem; color: var(--cream); line-height: 1.6; border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(var(--firouzeh-text), var(--firouzeh-text)) center / 12px 2px no-repeat,
    linear-gradient(var(--firouzeh-text), var(--firouzeh-text)) center / 2px 12px no-repeat;
  box-shadow: inset 0 0 0 1.5px var(--firouzeh);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--text-2); }
.faq details ol { margin: -8px 0 0; padding: 0 44px 16px 20px; color: var(--text-2); list-style: persian; }
.faq details li + li { margin-top: 8px; }

/* ---------- FINAL CTA ---------- */
.final {
  position: relative; padding: 70px 0 90px; text-align: center;
  background: radial-gradient(60% 55% at 50% 38%, rgba(240, 169, 46, .22), transparent 70%), var(--stars), var(--lapis);
  background-color: var(--lapis);
}
.final-in { display: flex; flex-direction: column; align-items: center; }
.final-art { width: min(86%, 380px); filter: drop-shadow(0 20px 30px rgba(3, 6, 25, .6)); }
.taq-final { width: 100%; max-width: 620px; margin-top: 44px; padding: 34px 20px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.taq-final h2 { font-size: clamp(1.9rem, 7.4vw, 2.9rem); color: var(--cream); }
.taq-final > p { color: var(--text-2); margin-top: -6px; margin-bottom: 6px; }
.store-row-center .store-label { flex-basis: 100%; text-align: center; margin-bottom: -4px; }
@media (min-width: 560px) { .store-row-center .store-label { flex-basis: auto; margin-bottom: 0; } }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--lapis-night); border-top: 1px solid var(--gold-soft); padding-block: 40px 30px; }
.footer-in { display: grid; gap: 24px; justify-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; text-align: start; }
.footer-brand img { width: 48px; height: 48px; border-radius: 12px; }
.footer-brand .wordmark { font-size: 1.7rem; }
.footer-brand p { color: var(--text-2); font-size: .92rem; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 700;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--gold-soft);
}
.socials a:hover { color: var(--firouzeh-text); background: rgba(43, 165, 155, .1); }
.socials .ico { width: 18px; height: 18px; }
.fine { color: #98A1CC; font-size: .82rem; }
@media (min-width: 900px) {
  .footer-in { grid-template-columns: auto 1fr; text-align: start; justify-items: stretch; align-items: center; }
  .socials { justify-content: flex-end; }
  .fine { grid-column: 1 / -1; text-align: center; border-top: 1px solid rgba(200, 164, 92, .15); padding-top: 18px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .sky i { animation: none; }
}

/* ---------- LANGUAGES ---------- */
.lang-switch { position: relative; flex: none; }
.lang-switch summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; color: var(--text-2); font-weight: 700; font-size: .9rem; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { color: var(--cream); background: rgba(255, 255, 255, .06); }
.lang-switch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang-switch ul { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 60; margin: 0; padding: 6px; list-style: none; min-width: 150px; border-radius: 12px; background: var(--lapis-deep); box-shadow: 0 0 0 1px var(--gold-soft), 0 16px 32px -12px rgba(3, 6, 25, .9); }
.lang-switch li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--cream); text-decoration: none; font-weight: 700; }
.lang-switch li a:hover { background: rgba(255, 255, 255, .07); }
.lang-switch li a[aria-current="page"] { color: var(--saffron); }
.header-in .lang-switch + .header-cta { margin-inline-start: 0; }
.lang-offer { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; background: var(--firouzeh); color: var(--ink); font-weight: 700; font-size: .95rem; }
.lang-offer a { color: inherit; }
.lang-offer button { border: 0; background: transparent; color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 6px; }
/* Store rows on the other-language pages start with no visible button (Google Play / App Store
   appear once their links are set in the admin panel): no lone "Apps:" label meanwhile. */
.store-row:not(:has(> a:not([hidden]))) { display: none; }
[dir="ltr"] .browser-url { direction: ltr; }
/* Narrow phones: just the globe (the header also holds the logo and, after scrolling, «Play now»). */
@media (max-width: 520px) {
  .lang-switch summary { font-size: 0; gap: 0; padding: 8px; }
  .lang-switch svg { width: 22px; height: 22px; }
}
