/* چندچند 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-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-SemiBold.ttf') format('truetype');
  font-weight: 600;
  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;
  --bg-2: #0a0a0d;
  --card: #1c1c1e;
  --raised: #2c2c2e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-2: rgba(235, 235, 245, 0.62);
  --text-3: rgba(235, 235, 245, 0.4);
  --accent: #0a84ff;
  --accent-2: #64d2ff;
  --accent-tint: rgba(10, 132, 255, 0.16);
  --income: #30d158;
  --glass: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.02)
  );
  --radius: 24px;
  --gutter: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  overflow-x: hidden; /* older browsers */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
html {
  overflow-x: clip;
}

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

img {
  max-width: 100%;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.45;
}
h3 {
  font-size: 19px;
  line-height: 1.6;
}
p {
  margin: 0 0 12px;
}
.lead {
  color: var(--text-2);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 2;
}
.muted {
  color: var(--text-2);
}

.eyebrow {
  display: inline-block;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 14px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--accent-tint);
  border: 1px solid rgba(10, 132, 255, 0.28);
  margin-bottom: 18px;
}

/* Top bar: stays on top, frosted */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
}
.nav-links a,
.nav-back {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-back:hover {
  color: var(--text);
}
.nav-back {
  margin-inline-start: auto;
}

/* Buttons */
.button,
.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s;
}
.button {
  font-size: 17px;
  min-height: 54px;
  padding: 0 30px;
  background: var(--accent);
  color: #000;
  box-shadow: 0 10px 30px rgba(10, 132, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(10, 132, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.button.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.button.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.pill-button {
  font-size: 14px;
  min-height: 38px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.pill-button:hover {
  background: rgba(255, 255, 255, 0.14);
}
.button:focus-visible,
.pill-button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

/* Soft colored light behind things */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 88px;
  /* The glows may spill down softly, never sideways (no sideways scroll). */
  overflow-x: clip;
}
.glow-a {
  width: 560px;
  height: 560px;
  background: rgba(10, 132, 255, 0.32);
  top: -160px;
  left: -120px;
}
.glow-b {
  width: 420px;
  height: 420px;
  background: rgba(100, 210, 255, 0.16);
  bottom: -160px;
  right: -80px;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 6.6vw, 72px);
  line-height: 1.3;
  margin-bottom: 22px;
}
.shine {
  display: block;
  background: linear-gradient(90deg, var(--accent-2), var(--accent) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  max-width: 540px;
  margin-bottom: 30px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.fine {
  color: var(--text-3);
  font-size: 14px;
  margin-top: 16px;
}
.hero-phone {
  display: flex;
  justify-content: center;
}

/* Phone frame around a screenshot (the screenshots are 720 × 1437: the app without the status and navigation bars) */
.phone {
  position: relative;
  margin: 0;
  width: min(290px, 78vw);
  aspect-ratio: 720 / 1437;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(160deg, #3a3a3e, #121214 45%, #2a2a2e);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 40px 80px -20px rgba(0, 0, 0, 0.9),
    0 30px 90px -30px rgba(10, 132, 255, 0.45);
  justify-self: center;
}
.phone.large {
  width: min(320px, 80vw);
  transform: rotate(-3deg);
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 37px;
  background: #000;
}
/* No screenshot yet: a dark screen with the logo, so it never looks broken. */
.phone.missing img {
  visibility: hidden;
}
.phone.missing::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 37px;
  background: url('logo.png') center / 30% no-repeat,
    radial-gradient(circle at 50% 40%, rgba(10, 132, 255, 0.25), #050507 70%);
}

/* "Made for Iran" chips */
.strip {
  padding: 8px 0 24px;
}
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.chips li {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

/* Section headings */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-head .lead {
  margin-top: 12px;
}

/* Why */
.why {
  padding: 72px 0;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.glass p {
  color: var(--text-2);
  margin: 6px 0 0;
}
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 18px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.35);
}
.icon-badge svg {
  width: 24px;
  height: 24px;
}

/* Features: text beside a phone, sides alternate */
.feature {
  padding: 64px 0;
  position: relative;
}
.feature + .feature {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature.flip .feature-text {
  order: 2;
}
.feature h2 {
  margin-bottom: 16px;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}
.checks li {
  position: relative;
  padding-inline-start: 36px;
  line-height: 1.8;
}
.checks li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(48, 209, 88, 0.16)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%2330D158' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}
.banks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.banks li {
  font-size: 14px;
  color: var(--text-2);
  padding: 4px 14px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
}

/* Privacy */
.privacy {
  padding: 72px 0;
}
.privacy-card {
  position: relative;
  border-radius: 32px;
  padding: 56px 48px 44px;
  background: radial-gradient(
      120% 80% at 50% 0%,
      rgba(10, 132, 255, 0.18),
      transparent 60%
    ),
    var(--bg-2);
  border: 1px solid var(--border-strong);
  text-align: center;
}
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  text-align: start;
}
.privacy-item {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.privacy-item svg {
  width: 28px;
  height: 28px;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.privacy-item h3 {
  font-size: 17px;
}
.privacy-item p {
  color: var(--text-2);
  font-size: 15px;
  margin: 6px 0 0;
  line-height: 1.85;
}
.more {
  display: inline-block;
  margin-top: 28px;
  font-weight: 600;
}
.more::after {
  content: ' ←';
}

/* Questions */
.faq {
  padding: 72px 0;
}
details {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0 24px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
details[open] {
  border-color: var(--border-strong);
}
summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: var(--text-2);
  transition: transform 0.25s var(--ease);
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  color: var(--text-2);
  margin: 0 0 20px;
}

/* Closing call */
.final {
  padding: 56px 0 96px;
}
.final-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 32px;
  padding: 64px 24px;
  background: linear-gradient(180deg, #0b1626, #050507);
  border: 1px solid rgba(10, 132, 255, 0.3);
}
.final-card > :not(.glow) {
  position: relative;
  z-index: 1;
}
.glow-c {
  width: 480px;
  height: 320px;
  background: rgba(10, 132, 255, 0.35);
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}
.final-logo {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(10, 132, 255, 0.4);
  margin-bottom: 24px;
}
.final-card h2 {
  margin-bottom: 8px;
}
.final-card .lead {
  margin-bottom: 28px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer .brand {
  font-size: 16px;
}
.footer .brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.footer nav {
  display: flex;
  gap: 22px;
}
.footer nav a {
  color: var(--text-2);
  font-size: 14px;
}
.footer nav a:hover {
  color: var(--text);
}

/* Privacy page */
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.card p:last-child {
  margin-bottom: 0;
}
.doc {
  padding-bottom: 32px;
}
.doc h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin: 48px 0 4px;
  line-height: 1.5;
}
.doc h2 {
  font-size: 22px;
  margin-bottom: 10px;
}
.doc section {
  padding: 18px 0;
}
.doc p,
.doc li {
  color: var(--text-2);
}
.doc ul {
  margin: 0;
  padding-right: 22px;
}
.doc li {
  margin-bottom: 6px;
}
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: system-ui, sans-serif;
  font-size: 0.92em;
}

/* «به زودی» after a Bazaar button, like the app's toast. */
.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 16px);
  background: rgba(44, 44, 46, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 14px 22px;
  width: max-content;
  max-width: calc(100% - 32px);
  text-align: center;
  font-size: 15px;
  line-height: 1.8;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Fade in on scroll (only when scripts run, see index.html) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .phone.large {
    transform: none;
  }
}

/* Tablets and phones */
@media (max-width: 900px) {
  .hero {
    padding: 48px 0 64px;
  }
  .hero-grid,
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero .lead,
  .feature .lead {
    margin-inline: auto;
  }
  .cta-row {
    justify-content: center;
  }
  .feature.flip .feature-text {
    order: 0;
  }
  .checks {
    max-width: 420px;
    margin-inline: auto;
    text-align: start;
  }
  .banks {
    justify-content: center;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .privacy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .privacy-card {
    padding: 44px 24px 36px;
  }
}
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  .nav-links {
    display: none;
  }
  .nav-inner {
    justify-content: space-between;
  }
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  .phone {
    width: min(260px, 72vw);
    border-radius: 40px;
  }
  .phone img,
  .phone.missing::after {
    border-radius: 31px;
  }
  .cta-row .button {
    flex: 1 1 100%;
  }
  .feature,
  .why,
  .privacy,
  .faq {
    padding: 48px 0;
  }
}
