/* چندچند website: the app's colors (src/theme/tokens.ts), dark only like the app. */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #000000;
  --card: #1c1c1e;
  --raised: #2c2c2e;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-2: rgba(235, 235, 245, 0.6);
  --accent: #0a84ff;
  --accent-tint: rgba(10, 132, 255, 0.18);
  --income: #30d158;
  --warning: #ff9f0a;
  --warning-tint: rgba(255, 159, 10, 0.15);
  --warning-text: #ffd8a1;
  --radius: 20px;
  --gutter: 20px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.9;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 40px 0 56px;
}
.hero .logo {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 12px 40px rgba(10, 132, 255, 0.35);
}
.hero h1 {
  font-size: 40px;
  margin: 20px 0 4px;
  line-height: 1.4;
}
.tagline {
  font-size: 20px;
  margin: 0;
}
.lead {
  color: var(--text-2);
  margin: 8px auto 28px;
  max-width: 460px;
}
.button {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 18px;
  padding: 14px 36px;
  border-radius: 999px;
  min-height: 52px;
}
.button:hover {
  text-decoration: none;
  filter: brightness(1.1);
}
.meta {
  color: var(--text-2);
  font-size: 14px;
  margin-top: 12px;
}

/* Sections */
section {
  padding: 28px 0;
}
h2 {
  font-size: 24px;
  margin: 0 0 16px;
  line-height: 1.5;
}
h3 {
  font-size: 17px;
  margin: 0 0 4px;
  line-height: 1.6;
}
p {
  margin: 0 0 12px;
}
.muted {
  color: var(--text-2);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.card p:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 34px;
  }
}
.feature .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: 8px;
  background: var(--accent);
}
.feature p {
  color: var(--text-2);
  font-size: 15px;
}

/* Numbered steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: grid;
  gap: 12px;
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.steps li::before {
  content: counter(step, persian);
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 2px;
}

.warn {
  background: var(--warning-tint);
  border: 1px solid rgba(255, 159, 10, 0.3);
  color: var(--warning-text);
}
.warn h3 {
  color: var(--warning);
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: system-ui, sans-serif;
  font-size: 0.92em;
}

/* Questions */
details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 10px;
}
summary {
  cursor: pointer;
  font-weight: 700;
  list-style-position: inside;
}
details p {
  color: var(--text-2);
  margin: 10px 0 0;
}

/* Privacy page */
.doc h1 {
  font-size: 32px;
  margin: 24px 0 4px;
  line-height: 1.5;
}
.doc section {
  padding: 16px 0;
}
.doc ul {
  margin: 0;
  padding-right: 22px;
}
.doc li {
  margin-bottom: 6px;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 24px 0 40px;
  color: var(--text-2);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

/* An English phrase inside a Persian sentence: keeps «» and its words in order. */
.en {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}
@media (max-width: 400px) {
  .en {
    white-space: normal;
  }
}
