/* sarand.net: the landing pages and the privacy policy, in Persian (rtl) and English (ltr). Logical properties
   (inline-start/end) keep one stylesheet for both directions. Nothing here loads from another host. */

@font-face {
  font-family: Vazirmatn;
  src: url(vazirmatn.4e3fa217d3.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand: #259455;
  --brand-strong: #1b7442;
  --brand-soft: #e8f5ed;
  --mint: #80cfa2;
  --bg: #fbfcfb;
  --surface: #ffffff;
  --surface-2: #f3f6f4;
  --text: #13201a;
  --muted: #5a6a61;
  --line: #e2e9e4;
  --shadow: 0 24px 60px -24px rgba(20, 60, 40, 0.28), 0 8px 20px -12px rgba(20, 60, 40, 0.18);
  --sms: #4f72d8;
  --bale: #13a26b;
  --eitaa: #ec7d1c;
  --radius: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #3cbc76;
    --brand-strong: #6fd69c;
    --brand-soft: #14271c;
    --bg: #0c120f;
    --surface: #131b16;
    --surface-2: #19231d;
    --text: #e7eee9;
    --muted: #98aa9f;
    --line: #24312a;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7), 0 8px 20px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Vazirmatn, system-ui, -apple-system, 'Segoe UI', Roboto, Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--brand-strong); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.3; margin: 0; }
p { margin: 0; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 14px; border-radius: 10px; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 22px; margin-inline-start: auto; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav .lang { color: var(--text); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; }
@media (max-width: 640px) {
  .nav .optional { display: none; }
}

/* hero */
.hero { position: relative; padding: 56px 0 72px; }
.hero::before {
  content: '';
  position: absolute;
  inset: -120px 0 0;
  z-index: -1;
  background:
    radial-gradient(600px 380px at 85% 10%, color-mix(in srgb, var(--mint) 38%, transparent), transparent 70%),
    radial-gradient(520px 360px at 10% 70%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%);
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.9rem; font-weight: 600; color: var(--muted);
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.sms { background: var(--sms); }
.dot.bale { background: var(--bale); }
.dot.eitaa { background: var(--eitaa); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -0.01em; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; color: var(--brand); white-space: nowrap; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 18px; border-radius: 16px;
  background: var(--text); color: var(--bg); text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store:hover { color: var(--bg); transform: translateY(-2px); box-shadow: var(--shadow); }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.25; }
.store small { font-size: 0.75rem; opacity: 0.75; }
.store b { font-size: 1.05rem; }
.store.primary { background: var(--brand); color: #fff; }
.store.primary:hover { color: #fff; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; color: var(--muted); font-size: 0.92rem; }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.facts svg { width: 18px; height: 18px; color: var(--brand); }

/* phone mockup */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 320px; max-width: 100%;
  padding: 12px; border-radius: 46px;
  background: linear-gradient(160deg, #2b3530, #0f1512);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  transform: rotate(-2deg);
}
[dir='ltr'] .phone { transform: rotate(2deg); }
.screen {
  position: relative; overflow: hidden;
  border-radius: 36px; background: var(--surface);
  font-size: 13px; line-height: 1.5; min-height: 600px;
}
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 4px; font-weight: 600; font-size: 12px; direction: ltr; }
.statusbar i { display: inline-block; width: 46px; height: 10px; border-radius: 4px; background: var(--line); }
.appbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 6px; }
.appbar strong { font-size: 19px; font-weight: 800; }
.appbar svg { width: 20px; height: 20px; color: var(--muted); }
.chips { display: flex; gap: 6px; padding: 4px 14px 10px; overflow: hidden; }
.chip { flex: none; padding: 3px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 12px; }
.chip.on { background: var(--brand-soft); color: var(--brand-strong); }
.convos { list-style: none; margin: 0; padding: 0; }
.convos li { display: flex; align-items: center; gap: 11px; padding: 9px 14px; }
.convos li + li { border-top: 1px solid var(--line); }
.av {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 17px;
}
.av svg { width: 22px; height: 22px; }
.av-1 { background: linear-gradient(135deg, #f48fb1, #e05b8a); }
.av-2 { background: linear-gradient(135deg, #4f8ef0, #2f63c9); }
.av-3 { background: linear-gradient(135deg, #ffb74d, #f08a24); }
.av-4 { background: linear-gradient(135deg, #7e8cf2, #5a5fd6); }
.av-5 { background: linear-gradient(135deg, #4dd0a1, #13a26b); }
.av-6 { background: linear-gradient(135deg, #9aa8a0, #6d7b73); }
.c-main { flex: 1; min-width: 0; }
.c-top { display: flex; justify-content: space-between; gap: 8px; }
.c-top b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-top time { color: var(--muted); font-size: 11px; flex: none; }
.c-msg { display: flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.c-msg span:last-child { overflow: hidden; text-overflow: ellipsis; }
.src { flex: none; font-size: 10px; font-weight: 700; padding: 0 6px; border-radius: 6px; color: #fff; }
.src.sms { background: var(--sms); }
.src.bale { background: var(--bale); }
.src.eitaa { background: var(--eitaa); }
.badge { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.spam-row { margin: 2px 12px 6px; padding: 7px 12px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.spam-row svg { width: 16px; height: 16px; flex: none; }
.fab { position: absolute; inset-inline-end: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 16px; background: var(--brand); display: grid; place-items: center; box-shadow: 0 10px 20px -8px rgba(37, 148, 85, 0.7); }
.fab svg { width: 24px; height: 24px; color: #fff; }

/* sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 850; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.feature {
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 16px; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.15rem; font-weight: 750; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.98rem; }
.pro { display: inline-block; margin-inline-start: 6px; padding: 0 8px; border-radius: 6px; background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 700; vertical-align: 2px; }

.privacy-band {
  border-radius: 28px; padding: 44px;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  color: #fff; position: relative; overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  .privacy-band { background: linear-gradient(135deg, #12432a, #1d6a41); }
  .store.primary, .fab, .badge, .pro { background: #1f8049; }
}
.privacy-band::after {
  content: ''; position: absolute; inset-inline-end: -80px; top: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.privacy-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 850; margin-bottom: 10px; }
.privacy-band > p { opacity: 0.9; max-width: 40em; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 28px 0; position: relative; z-index: 1; }
.point { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 18px; padding: 20px; }
.point svg { width: 26px; height: 26px; margin-bottom: 10px; }
.point h3 { font-size: 1.05rem; font-weight: 750; margin-bottom: 6px; }
.point p { font-size: 0.95rem; opacity: 0.92; }
.privacy-band a.more { color: #fff; font-weight: 700; position: relative; z-index: 1; }

.download { text-align: center; }
.download .section-head { margin-inline: auto; }
.download .stores { justify-content: center; }
.download .app-icon { width: 88px; height: 88px; margin: 0 auto 18px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 0.92rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .note { flex-basis: 100%; font-size: 0.85rem; }

/* the privacy policy */
.doc { max-width: 780px; margin: 0 auto; padding: 48px 20px 80px; }
.doc h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); font-weight: 900; }
.doc .meta { color: var(--muted); margin: 10px 0 28px; }
.doc h2 { font-size: 1.45rem; font-weight: 800; margin: 44px 0 12px; scroll-margin-top: 84px; }
.doc h3 { font-size: 1.1rem; font-weight: 750; margin: 24px 0 8px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc ul, .doc ol { padding-inline-start: 1.3em; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--brand); }
.summary { background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); border-radius: var(--radius); padding: 22px 26px; margin: 8px 0 30px; }
.summary h2 { margin-top: 0; font-size: 1.2rem; }
.summary ul { margin: 0; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; background: var(--surface); }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; columns: 2 220px; column-gap: 32px; }
[lang='fa'] .doc ol { list-style-type: persian; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 14px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.doc th, .doc td { text-align: start; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { background: var(--surface-2); font-weight: 700; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; direction: ltr; unicode-bidi: embed; }
.callout { border-inline-start: 4px solid var(--brand); background: var(--surface); padding: 12px 18px; border-radius: 10px; }

/* not found */
.not-found { text-align: center; padding: 120px 20px; }
.not-found h1 { font-size: 3rem; font-weight: 900; margin-bottom: 10px; }
.not-found p { color: var(--muted); margin-bottom: 18px; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 36px; }
  .phone { transform: none; }
  [dir='ltr'] .phone { transform: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .privacy-band { padding: 28px 22px; border-radius: 22px; }
  .store { flex: 1 1 100%; justify-content: center; }
  .screen { min-height: 540px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store, .feature { transition: none; }
}
