@font-face { font-family: Dana; src: url(/assets/fonts/Dana-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Dana; src: url(/assets/fonts/Dana-Bold.ttf) format('truetype'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: Dana; src: url(/assets/fonts/Dana-ExtraBold.ttf) format('truetype'); font-weight: 800 900; font-display: swap; }

:root {
  --primary: #7b67ed;
  --primary-dark: #5f4bd8;
  --secondary: #6796ed;
  --success: #48c664;
  --error: #e5484d;
  --bg: #f9f9fb;
  --surface: #ffffff;
  --surface-2: #f1effd;
  --text: #121218;
  --muted: #5d5d6e;
  --border: #e7e5f2;
  --shadow: 0 20px 50px -24px rgba(65, 45, 170, .35);
  --radius: 20px;
  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #09090c;
  --surface: #15151b;
  --surface-2: #1e1b33;
  --text: #f2f2f6;
  --muted: #a3a3b5;
  --border: #2a2a36;
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
.latin { font-family: system-ui, 'Segoe UI', Roboto, sans-serif; }
body {
  margin: 0;
  font-family: Dana, Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.5; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header .container { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.header .nav a, .header .btn { white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; color: var(--muted); font-size: .95rem; }
.nav a:hover { color: var(--primary); }
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.theme-toggle:hover { color: var(--primary); border-color: var(--primary); }
.theme-toggle .i { width: 20px; height: 20px; }
.theme-toggle .sun, [data-theme='dark'] .theme-toggle .moon { display: none; }
[data-theme='dark'] .theme-toggle .sun { display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px; font-weight: 700; font-size: 1rem;
  font-family: inherit; line-height: inherit; border: 0; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 12px 28px -12px var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-sm { padding: 9px 16px; font-size: .9rem; border-radius: 12px; }

/* Official store badges: keep artwork unmodified (store brand guidelines). */
.store-badges { align-items: center; gap: 14px; }
.store-badge { display: inline-flex; border-radius: 12px; transition: transform .2s, filter .2s; }
.store-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .25)); }
.store-badge img { height: 58px; width: auto; }
/* Myket SVG has built-in padding; scale so the visible badge matches Bazaar's height. */
.store-badge-myket img { height: 67.5px; margin: -4.75px -3.5px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before {
  content: ''; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 26%, transparent), transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface-2); color: var(--primary); font-size: .85rem; font-weight: 700;
}
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 900; margin: 18px 0 16px; }
.hero h1 span { color: var(--primary); }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--muted); font-size: .92rem; }
.checks li { display: flex; align-items: center; gap: 6px; }
.checks .i { width: 18px; height: 18px; color: var(--success); stroke-width: 2.4; }

/* Phone frame around real screenshots */
.phone {
  justify-self: center; width: 300px; padding: 10px; border-radius: 42px;
  background: #101016; box-shadow: var(--shadow), inset 0 0 0 2px #2b2b36;
}
.phone img { width: 100%; border-radius: 32px; }
.shot {
  width: 260px; margin-inline: auto; border-radius: 28px; overflow: hidden;
  border: 8px solid #101016; box-shadow: var(--shadow);
}

/* Gallery */
.gallery {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 24px; scrollbar-width: thin; scrollbar-color: var(--primary) transparent;
}
.gallery figure { margin: 0; flex: 0 0 220px; scroll-snap-align: start; text-align: center; }
.gallery img { width: 100%; border-radius: 24px; border: 6px solid #101016; box-shadow: var(--shadow); }
.gallery figcaption { margin-top: 12px; font-weight: 700; font-size: .95rem; }
[data-theme='dark'] .phone { box-shadow: var(--shadow), inset 0 0 0 2px #3a3a48; }
[data-theme='dark'] .shot, [data-theme='dark'] .gallery img { border-color: #24242e; }
/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.section.alt .card { background: var(--bg); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.card .icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--surface-2); color: var(--primary);
}
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .95rem; }
.pro-tag { display: inline-block; margin-inline-start: 6px; padding: 0 8px; border-radius: 999px; font-size: .7rem; vertical-align: middle; background: var(--primary); color: #fff; }

/* Spotlight rows */
.spot { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
.spot + .spot { margin-top: 88px; }
.spot.reverse .spot-media { order: -1; }
.spot-media {
  border-radius: 28px; padding: 36px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--surface-2), color-mix(in srgb, var(--secondary) 16%, var(--surface)));
}
.spot h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800; margin-bottom: 14px; }
.spot > div > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 18px; }
.list { display: grid; gap: 10px; }
.list li { display: flex; gap: 10px; align-items: flex-start; }
.list .i { width: 22px; height: 22px; color: var(--primary); margin-top: 4px; stroke-width: 2.2; }

/* Audience */
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tags li { padding: 10px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin-inline: auto; }
.plan { background: var(--bg); border: 1px solid var(--border); border-radius: 24px; padding: 32px; }
.plan.featured { border: 2px solid var(--primary); background: linear-gradient(180deg, var(--surface-2), var(--bg) 60%); position: relative; }
.plan h3 { font-size: 1.35rem; font-weight: 800; }
.plan .price { color: var(--muted); margin: 4px 0 20px; }
.plan .list li { font-size: .97rem; }
.badge {
  position: absolute; top: -14px; inset-inline-start: 28px; padding: 3px 14px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: .8rem; font-weight: 700;
}
.note { text-align: center; color: var(--muted); margin-top: 28px; font-size: .95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step, persian);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 14px;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 1.15rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 4px 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 1.02rem;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* CTA */
.cta {
  border-radius: 32px; padding: 56px 32px; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow);
}
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 10px; }
.cta p { opacity: .9; font-size: 1.05rem; }
.cta .actions { justify-content: center; }

/* Contact */
.contact-section { padding-bottom: 0; }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-intro h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.contact-intro p { color: var(--muted); font-size: 1.05rem; }
.contact-intro .contact-alt { margin-top: 20px; font-size: .95rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.contact-links a {
  display: inline-block; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  background: var(--surface); border: 1px solid var(--border);
}
.contact-links a:hover { border-color: var(--primary); color: var(--primary); }
.contact-form {
  display: grid; gap: 16px; padding: 28px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}
.field input[dir='ltr'] { text-align: right; }
.contact-form button { justify-self: start; min-width: 180px; }
.contact-form button:disabled { opacity: .6; cursor: wait; transform: none; }
.form-status { min-height: 1.9em; font-size: .95rem; color: var(--muted); }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }
/* Honeypot: hidden from people, still filled by naive bots. */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Footer */
.footer { padding: 48px 0 32px; border-top: 1px solid var(--border); margin-top: 88px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h4 { margin: 0 0 12px; font-size: 1rem; }
.footer p, .footer li { color: var(--muted); font-size: .92rem; }
.footer li + li { margin-top: 6px; }
.footer a:hover { color: var(--primary); }
.footer .about { margin-top: 12px; }
.link { color: var(--primary); }
.link:hover { text-decoration: underline; }
.copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: .85rem; }

/* Article (privacy) */
.article { max-width: 820px; margin: 0 auto; padding: 56px 0 24px; }
.article h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 900; }
.article .updated { color: var(--muted); font-size: .9rem; margin: 6px 0 24px; }
.article h2 { font-size: 1.25rem; font-weight: 800; margin: 36px 0 10px; }
.article p, .article li { color: var(--muted); }
.article ul { list-style: disc; padding-inline-start: 22px; display: grid; gap: 6px; }
.article .strong { color: var(--text); font-weight: 600; margin-top: 10px; }

/* Help center */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: .88rem; margin-bottom: 14px; }
.crumbs a:hover { color: var(--primary); }
.crumbs span::before { content: '/'; margin-inline-end: 6px; }
.article .lead { color: var(--text); font-size: 1.05rem; margin-top: 12px; }
.article h3 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 6px; }
.article ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.article p + p, .article p + ul, .article p + ol, .article ul + p, .article ol + p { margin-top: 10px; }
.article b { color: var(--text); }
.article .shot-fig { margin: 22px auto; text-align: center; }
.article .shot-fig img { width: 280px; margin-inline: auto; border-radius: 24px; border: 6px solid #101016; box-shadow: var(--shadow); }
.article .shot-fig figcaption { margin-top: 10px; color: var(--muted); font-size: .9rem; }
[data-theme='dark'] .article .shot-fig img { border-color: #24242e; }
.callout { margin: 18px 0; padding: 14px 18px; border-radius: 16px; background: var(--surface-2); border-inline-start: 4px solid var(--primary); }
.callout.warn { border-inline-start-color: var(--error); background: color-mix(in srgb, var(--error) 8%, var(--surface)); }
.callout p, .callout li { color: var(--text); }
.toc { margin: 20px 0 8px; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.toc strong { display: block; margin-bottom: 6px; }
.toc a:hover { color: var(--primary); }
.help-group + .help-group { margin-top: 40px; }
.help-group h2 { margin-bottom: 16px; }
.help-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.help-list .card { display: block; padding: 22px; }
.help-list .card p { margin-top: 4px; }
.help-list .soon { opacity: .6; }
.help-list .soon:hover { transform: none; box-shadow: none; border-color: var(--border); }
.related { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.table-wrap { overflow-x: auto; margin: 16px 0; }
.article table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.article th, .article td { padding: 10px 12px; border: 1px solid var(--border); text-align: start; vertical-align: top; }
.article th { background: var(--surface-2); color: var(--text); font-weight: 700; }
.article td { color: var(--muted); }
.pro-note { display: inline-block; padding: 0 10px; border-radius: 999px; font-size: .78rem; background: var(--primary); color: #fff; vertical-align: middle; }

@media (max-width: 960px) {
  .hero .container, .spot, .contact { grid-template-columns: 1fr; }
  .spot.reverse .spot-media { order: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .header .theme-toggle { margin-inline-start: auto; }
}

@media (max-width: 640px) {
  .hero { padding: 40px 0 64px; }
  .grid, .plans, .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .phone { width: 270px; }
  .shot { width: 230px; }
  .gallery figure { flex-basis: 70%; }
  .header .container { gap: 12px; }
  .store-badges { gap: 10px; }
  .store-badge img { height: 48px; }
  .store-badge-myket img { height: 56px; margin: -4px -3px; }
  .footer .cols { grid-template-columns: 1fr; }
  .help-list { grid-template-columns: 1fr; }
  .article .shot-fig img { width: 240px; }
  .contact-form { padding: 20px; }
  .contact-form button { justify-self: stretch; }
}
