/* Public Persian pages (RTL). Shares the app's palette so the marketing site
   and the product don't look like two different companies. */

:root {
  --bg: #0c0d11;
  --bg-elev: #131519;
  --surface: #1a1d24;
  --surface-2: #21252e;
  --border: #282c36;
  --border-soft: #1e222a;
  --text: #edeef2;
  --text-dim: #c3c7d1;
  --muted: #8a8f9c;
  --accent: #d3835f;
  --accent-2: #c06c48;
  --accent-soft: rgba(211, 131, 95, 0.14);
  /* Vazirmatn if the visitor has it, then the fonts that actually ship with
     Windows/Android/iOS in Iran. No web-font download — CDNs are slow or
     blocked there, and a blocked font means unreadable text. */
  --font: Vazirmatn, "IRANSans", "Segoe UI", Tahoma, "Noto Naskh Arabic", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.9;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.6; margin: 0 0 12px; font-weight: 700; }
p { margin: 0 0 14px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); font-size: 13.5px; }
.todo {
  color: #ec7b7b;
  background: rgba(236, 123, 123, 0.12);
  border: 1px dashed #ec7b7b;
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 13px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 650;
  font-size: 14.5px;
  padding: 10px 20px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.big { padding: 13px 28px; font-size: 16px; }
.btn.ghost { background: none; border: 1px solid var(--border); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); background: var(--surface); }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 13, 17, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; font-size: 15px;
}
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a { color: var(--text-dim); font-size: 14.5px; padding: 7px 12px; border-radius: 9px; }
.nav-links a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.nav-links a.on { color: var(--accent); background: var(--accent-soft); }
.nav-cta { display: flex; gap: 8px; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 60px; text-align: center; background: radial-gradient(ellipse at top, rgba(211, 131, 95, 0.1), transparent 62%); }
.hero-logo {
  width: 62px; height: 62px; margin: 0 auto 22px; border-radius: 18px;
  display: grid; place-items: center; font-size: 30px; color: #fff;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
}
.hero h1 { font-size: 40px; margin-bottom: 18px; }
.lead { max-width: 720px; margin: 0 auto 28px; font-size: 17px; color: var(--text-dim); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; color: var(--muted); font-size: 13.5px; }

/* ---------- sections ---------- */
.sec { padding: 52px 22px; }
.sec h2 { font-size: 26px; margin-bottom: 16px; }
.sec-lead { max-width: 820px; color: var(--text-dim); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; margin-top: 26px; }
.card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.card .ci { font-size: 24px; margin-bottom: 10px; }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 26px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.sn {
  flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
}
.step h3 { font-size: 16px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 34px; padding: 26px 28px; border-radius: 18px;
  background: var(--accent-soft); border: 1px solid var(--border);
}
.pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.pill { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px; font-size: 14px; color: var(--text-dim); }

.faq { margin-top: 22px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); background: var(--bg-elev); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  cursor: pointer; padding: 15px 18px; font-weight: 600; font-size: 15px;
  list-style: none; display: flex; align-items: center; gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; color: var(--accent); font-weight: 700; font-size: 17px; flex: none; }
.faq-item[open] summary::before { content: "−"; }
.faq-item summary:hover { background: var(--surface); }
.faq-item p { margin: 0; padding: 0 18px 16px 44px; color: var(--text-dim); font-size: 14.5px; }

.cta-band h3 { font-size: 20px; margin-bottom: 4px; }
.cta-band p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ---------- inner pages ---------- */
.page { padding: 44px 22px 64px; max-width: 880px; }
.page h1 { font-size: 31px; margin-bottom: 16px; }
.page h2 { font-size: 20px; margin: 32px 0 10px; padding-top: 8px; }
.page p { color: var(--text-dim); }
.legal p, .legal li { font-size: 14.5px; }
.ul { padding-inline-start: 22px; margin: 0 0 14px; color: var(--text-dim); }
.ul li { margin-bottom: 8px; }

.kv { width: 100%; border-collapse: collapse; margin-top: 8px; }
.kv th, .kv td { text-align: right; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); font-size: 14.5px; }
.kv th { color: var(--muted); font-weight: 600; width: 40%; }

/* ---------- pricing ---------- */
.trial-band {
  background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 14px;
  padding: 14px 18px; margin: 22px 0; font-size: 14.5px;
}
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 18px 0; }
.pack { position: relative; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 16px; padding: 22px 18px; text-align: center; }
.pack.sel { border-color: var(--accent); }
.pack-tag {
  position: absolute; top: -11px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 2px 10px; border-radius: 8px; white-space: nowrap;
}
.pack-price { font-size: 20px; font-weight: 700; }
.pack-credit { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.pack ul { list-style: none; padding: 0; margin: 0 0 16px; text-align: start; }
.pack li { font-size: 13.5px; color: var(--text-dim); padding: 5px 0; border-bottom: 1px solid var(--border-soft); }
.pack li:last-child { border-bottom: 0; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; min-width: 480px; border-collapse: collapse; margin: 8px 0 14px; }
.price-table th, .price-table td { text-align: right; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.price-table thead th { color: var(--muted); font-weight: 600; background: var(--bg-elev); }
.tier { color: var(--accent); font-weight: 700; font-size: 12.5px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 24px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-dim); }
.contact-form input, .contact-form textarea {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 11px;
  padding: 11px 13px; color: var(--text); font-family: inherit; font-size: 15px; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-info { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.contact-info h3 { font-size: 17px; margin-bottom: 14px; }
.contact-info p { font-size: 14px; color: var(--text-dim); margin-bottom: 14px; }
.form-status { border-radius: 11px; padding: 11px 14px; font-size: 14px; }
.form-status[hidden] { display: none; }
.form-status.ok { background: rgba(111, 196, 138, 0.13); border: 1px solid #6fc48a; color: #9fdcb4; }
.form-status.err { background: rgba(236, 123, 123, 0.13); border: 1px solid #ec7b7b; color: #f0a5a5; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-elev); padding: 40px 0 26px; margin-top: 40px; }
.site-footer { padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
.foot-cols { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 30px; }
.foot-cols h4 { font-size: 14.5px; color: var(--text); margin-bottom: 12px; }
.foot-about p { color: var(--muted); font-size: 13.5px; margin-top: 12px; }
.foot-links { display: flex; flex-direction: column; align-items: flex-start; }
.foot-links a { color: var(--text-dim); font-size: 13.5px; padding: 4px 0; }
.foot-contact p { color: var(--muted); font-size: 13.5px; margin-bottom: 7px; }
.enamad { margin-top: 16px; }
.enamad img { max-width: 110px; height: auto; border-radius: 8px; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--border); margin-top: 28px; padding-top: 18px;
  color: var(--muted); font-size: 12.5px;
}

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 22px; }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .nav-inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 10px; }
  /* The link row scrolls sideways instead of collapsing into a hamburger — one
     less thing to tap, and it keeps every page one click away for the reviewer. */
  .nav-links { order: 3; flex-basis: 100%; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
  .nav-cta { margin-inline-start: auto; }
  .nav-cta .btn { padding: 8px 14px; font-size: 13.5px; }
  .hero { padding: 46px 0 40px; }
  .hero h1 { font-size: 28px; }
  .lead { font-size: 15.5px; }
  .sec { padding: 38px 22px; }
  .sec h2 { font-size: 22px; }
  .page { padding: 32px 22px 48px; }
  .page h1 { font-size: 25px; }
  .page h2 { font-size: 18px; }
  .kv th, .kv td { display: block; width: auto; padding: 6px 0; border: 0; }
  .kv th { color: var(--muted); padding-top: 12px; }
  .kv tr { display: block; border-bottom: 1px solid var(--border-soft); padding-bottom: 8px; }
  .foot-cols { grid-template-columns: 1fr; }
  .foot-bottom { justify-content: center; text-align: center; }
  /* 16px stops iOS Safari force-zooming the page when a field is focused. */
  .contact-form input, .contact-form textarea { font-size: 16px; }
}
