/* AfghanG home page — dark, phone first (index.html only).
   privacy / terms / content-share still use styles.css. */

:root {
  --bg: #050607;
  --surface: #0e1113;
  --surface-2: #111416;
  --line: #1e2427;
  --line-2: #2e3538;
  --text: #f3f5f4;
  --text-2: #c9d1cd;
  --muted: #a3ada9;
  --faint: #8a9490;
  --green: #2be36b;
  --green-soft: #0f2418;
  --green-line: #1d3a27;
  --red: #fe2c55;
  --red-soft: #2a0e15;
  --radius: 22px;
  --gutter: 20px;
  --max: 1280px;
  --display: 'Bricolage Grotesque', 'Vazirmatn', system-ui, sans-serif;
  --body: 'Manrope', 'Vazirmatn', system-ui, sans-serif;
  color-scheme: dark;
}

[dir='rtl'] {
  --display: 'Vazirmatn', system-ui, sans-serif;
  --body: 'Vazirmatn', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.has-install-banner { padding-bottom: 96px; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

.skip { position: absolute; inset-inline-start: 8px; top: -80px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 6, 7, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #14181a;
}
.site-header .wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: none; gap: 32px; font-weight: 600; font-size: 15px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.pill-btn {
  height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid #262c2f; background: #0d1012; color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; font-size: 14px;
}
.pill-btn svg { width: 17px; height: 17px; }
.pill-btn:hover { border-color: var(--line-2); color: var(--text); }
.header-actions .header-cta { display: none; }

.lang-menu { position: relative; }
.lang-list {
  position: absolute; inset-inline-end: 0; top: 52px; min-width: 170px; padding: 6px; margin: 0; list-style: none;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.6);
}
.lang-list[hidden] { display: none; }
.lang-list button {
  width: 100%; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; text-align: start;
}
.lang-list button:hover, .lang-list button[aria-current='true'] { background: #1a1f22; }
.lang-list button[aria-current='true']::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.mobile-nav { border-top: 1px solid #14181a; padding: 8px var(--gutter) 18px; display: grid; gap: 2px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { min-height: 48px; display: flex; align-items: center; font-weight: 700; font-size: 17px; color: var(--text-2); border-bottom: 1px solid #14181a; }

/* ---------- Buttons ---------- */
.btn-primary {
  min-height: 58px; padding: 0 26px; border-radius: 16px; background: var(--red); color: #fff; border: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; font-size: 17px; box-shadow: 0 12px 30px rgba(254, 44, 85, 0.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(254, 44, 85, 0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-primary svg { width: 20px; height: 20px; flex: none; }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 15px; border-radius: 999px; box-shadow: none; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badges a { display: block; border-radius: 10px; }
.badges img { height: 48px; width: auto; }

/* ---------- Common section bits ---------- */
section { position: relative; }
.section { padding-top: 88px; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin: 0 0 10px; }
[dir='rtl'] .kicker { letter-spacing: 0; text-transform: none; font-size: 15px; }
.h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.03em; }
[dir='rtl'] .h2 { letter-spacing: 0; line-height: 1.3; }
.lead { color: var(--muted); font-size: 17px; margin: 0; max-width: 420px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.icon-tile { width: 46px; height: 46px; border-radius: 14px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }
.icon-tile svg, .ico { width: 24px; height: 24px; }
.ico { color: var(--green); flex: none; }

/* ---------- Hero ---------- */
.hero { padding-top: 34px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; width: 680px; height: 680px; border-radius: 50%;
  inset-inline-start: 50%; top: 420px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(43,227,107,.2) 0%, rgba(43,227,107,0) 62%); pointer-events: none;
}
.hero-grid { display: grid; gap: 30px; position: relative; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; }
.eyebrow {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  background: #0f1a14; border: 1px solid var(--green-line); font-size: 13px; font-weight: 700; color: #8eedb0;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(46px, 13vw, 78px); line-height: .98; letter-spacing: -0.04em; }
[dir='rtl'] .hero h1 { letter-spacing: 0; line-height: 1.25; font-size: clamp(42px, 11vw, 72px); }
.hero h1 em { font-style: normal; color: var(--green); }
html[dir='ltr'] .hero-alt { text-align: left; }
html[dir='rtl'] .hero-alt { text-align: right; }
.hero-alt { font-size: 19px; font-weight: 600; color: var(--text-2); font-family: 'Vazirmatn', var(--body); }
.hero-text { margin: 0; font-size: 17px; color: #a9b3af; max-width: 560px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }
.hero-actions .btn-primary { width: 100%; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 14px; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.trust .star { color: #ffc940; }
.qr-card { display: none; }

.phones { position: relative; height: 560px; display: flex; justify-content: center; margin-top: 10px; }
.phone {
  width: 250px; height: 530px; border-radius: 42px; background: #000; border: 1px solid #2a3033; padding: 9px;
  box-shadow: 0 40px 80px rgba(0,0,0,.7), 0 0 0 6px #0b0d0e; position: relative; z-index: 2;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; }
.phone.side { display: none; }
.chip {
  position: absolute; z-index: 3; padding: 10px 14px; border-radius: 16px; background: rgba(17,20,22,.94); border: 1px solid #262c2f;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 14px 30px rgba(0,0,0,.5);
}
.chip strong { display: block; font-size: 13px; }
.chip span { display: block; font-size: 12px; color: var(--muted); }
.chip .icon-tile { width: 34px; height: 34px; border-radius: 10px; }
.chip .icon-tile svg { width: 18px; height: 18px; }
.chip-chai { inset-inline-start: 0; top: 110px; }
.chip-chai .icon-tile { background: var(--red-soft); color: var(--red); }
.chip-near { inset-inline-end: 0; top: 330px; }

/* ---------- Strip ---------- */
.strip { margin-top: 30px; padding: 22px 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; background: #0c0f10; border-color: #1c2124; }
.strip-item { display: flex; gap: 12px; align-items: flex-start; }
.strip-item strong { display: block; font-size: 14.5px; line-height: 1.3; }
.strip-item span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

/* ---------- Steps ---------- */
.steps { padding: 28px 22px; display: grid; gap: 22px; }
.steps-head { display: flex; flex-direction: column; gap: 18px; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 22px; }
.step h3 { margin: 2px 0 4px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.steps .btn-primary { width: 100%; min-height: 54px; }

/* ---------- Features ---------- */
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 6px; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 272px; scroll-snap-align: start; overflow: hidden; display: flex; flex-direction: column; }
.shot-media { height: 300px; display: flex; justify-content: center; align-items: flex-end; padding-top: 22px; }
.shot-media img { width: 172px; height: 278px; object-fit: cover; object-position: top; border-radius: 22px 22px 0 0; }
.shot-media.green { background: #121a15; }
.shot-media.red { background: #1c1013; }
.shot-media.blue { background: #12151c; }
.shot-body { padding: 18px 18px 22px; }
.shot-body h3 { margin: 0 0 6px; font-family: var(--display); font-size: 22px; }
.shot-body p, .mini p { margin: 0; color: var(--muted); font-size: 14.5px; }
.minis { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.mini h3 { margin: 0; font-size: 16px; }

/* ---------- Paisa + languages ---------- */
.duo { display: grid; gap: 14px; }
.paisa { padding: 30px 22px; background: #0b1410; border-color: #1b3324; overflow: hidden; position: relative; display: flex; flex-direction: column; gap: 14px; }
.paisa::after { content: ''; position: absolute; inset-inline-end: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(43,227,107,.08); }
.paisa p { margin: 0; color: #a9c2b3; font-size: 16px; position: relative; }
.big-num { display: flex; align-items: flex-end; gap: 10px; position: relative; }
.big-num b { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 16vw, 104px); line-height: .9; color: var(--green); }
.big-num span { color: #a9c2b3; font-size: 14px; padding-bottom: 6px; max-width: 150px; }
.langs { padding: 28px 22px; }
.lang-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lang-row:last-child { border-bottom: 0; }
.lang-row span { color: var(--faint); font-size: 14px; }
.lang-row b { font-family: 'Vazirmatn', var(--display); font-size: clamp(28px, 7vw, 44px); font-weight: 800; }
.lang-row b[lang='en'] { font-family: 'Bricolage Grotesque', var(--display); }

/* ---------- Safety ---------- */
.safety-list { display: grid; gap: 12px; }
.safe { padding: 18px; display: flex; gap: 14px; }
.safe h3 { margin: 0 0 4px; font-size: 16.5px; }
.safe p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 18px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 64px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-weight: 700; font-size: 17px; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--faint); font-weight: 600; }
.faq-list details[open] summary::after { content: '−'; color: var(--green); border-color: var(--green-line); }
.faq-list details p { margin: 0 0 18px; color: var(--muted); font-size: 15.5px; max-width: 680px; }

/* ---------- Final CTA ---------- */
.final { position: relative; padding: 38px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; overflow: hidden; background: var(--surface-2); border-color: #262c2f; }
.final::before { content: ''; position: absolute; inset-inline-start: 50%; top: -150px; width: 520px; height: 320px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(254,44,85,.22) 0%, rgba(254,44,85,0) 65%); pointer-events: none; }
.final > * { position: relative; }
.final-main { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.final-actions { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.final .badges img { height: 44px; }
.final-icon { width: 80px; height: 80px; border-radius: 21px; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.final .h2 { font-size: clamp(30px, 7vw, 54px); }
.final .btn-primary { width: 100%; max-width: 420px; }
.final .badges { justify-content: center; }
.final .qr-card { display: none; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 22px; }
.contact-info p { color: var(--muted); margin: 10px 0 0; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.social a:hover { color: var(--text); border-color: var(--faint); }
.social svg { width: 20px; height: 20px; }
.contact-form { padding: 22px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: #090b0c; color: var(--text); font: inherit; font-size: 16px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.contact-form button[type='submit'] { width: 100%; }
.form-message { padding: 12px 14px; border-radius: 12px; font-size: 14.5px; }
.form-message.success { background: var(--green-soft); color: #8eedb0; }
.form-message.error { background: var(--red-soft); color: #ff9db0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 80px; padding: 40px 0 36px; border-top: 1px solid #1a1f21; }
.footer-inner { display: grid; gap: 22px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; font-size: 15px; color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.copyright { font-size: 13px; color: var(--faint); margin: 0; }

/* ---------- Install banner (built by smart-download.js) ---------- */
.install-app-banner {
  position: fixed; inset-inline: 10px; bottom: 12px; z-index: 60;
  transform: translateY(140%); transition: transform .35s ease;
}
.install-app-banner.is-visible { transform: translateY(0); }
.install-app-banner__inner {
  max-width: 560px; margin: 0 auto; padding: 10px 10px 10px 12px; border-radius: 22px;
  background: rgba(17,20,22,.96); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0,0,0,.7);
  display: flex; align-items: center; gap: 12px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.install-app-banner__icon { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.install-app-banner__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.install-app-banner__title { font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install-app-banner__subtitle { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install-app-banner__meta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.install-app-banner__stars { color: #ffc940; letter-spacing: -1px; }
.install-app-banner__store { display: inline-flex; align-items: center; gap: 4px; }
.install-app-banner__platform-icon { width: 13px; height: 13px; }
.install-app-banner__cta {
  flex: none; min-height: 46px; padding: 0 20px; border-radius: 14px; background: var(--red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; font-size: 15px;
}
.install-app-banner__cta-group { display: flex; gap: 8px; }
.install-app-banner__cta--compact { padding: 0 14px; }

/* ---------- Tablet / computer ---------- */
@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .hero-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .hero-actions .btn-primary { width: auto; }
  .trust { justify-content: flex-start; }
  .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 28px 32px; }
  .steps { padding: 40px; }
  .steps-head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .steps .btn-primary { width: auto; }
  .step-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .shot-media { height: 380px; padding-top: 34px; }
  .shot-media img { width: 210px; height: 346px; }
  .minis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
  .mini { padding: 24px; }
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .paisa, .langs { padding: 44px; }
  .safety-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .safe { flex-direction: column; padding: 28px; }
  .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .contact-form { padding: 32px; }
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 24px; }
  .section { padding-top: 120px; }
  .section-head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 44px; }
}

@media (min-width: 1040px) {
  :root { --gutter: 64px; }
  .site-header .wrap { height: 80px; }
  .brand { font-size: 23px; }
  .brand img { width: 38px; height: 38px; }
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .header-actions .header-cta { display: inline-flex; }
  /* Computers already show the QR code and store badges. */
  .install-app-banner { display: none; }
  body.has-install-banner { padding-bottom: 0; }
  .hero { padding-top: 80px; }
  .hero::before { inset-inline-start: auto; inset-inline-end: 0; top: 0; transform: none; width: 820px; height: 820px; }
  [dir='rtl'] .hero::before { inset-inline-end: 0; }
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; min-height: 700px; }
  .hero-copy { gap: 24px; padding-top: 20px; }
  .hero-alt { font-size: 23px; }
  .hero-text { font-size: 19px; }
  .qr-card { display: flex; align-items: center; gap: 16px; padding: 14px 22px 14px 14px; }
  .qr-card img { width: 104px; height: 104px; border-radius: 12px; background: #fff; }
  .qr-card strong { display: block; font-size: 17px; }
  .qr-card span { display: block; font-size: 14px; color: var(--muted); }
  .hero-desktop-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .hero-desktop-row .badges { flex-direction: column; }
  .hero-actions .btn-primary.mobile-only { display: none; }
  .phones { height: 680px; margin-top: 0; }
  .phone { width: 300px; height: 636px; border-radius: 48px; padding: 10px; }
  .phone img { border-radius: 38px; }
  .phone.side { display: block; position: absolute; top: 110px; width: 250px; height: 530px; opacity: .85; z-index: 1; }
  .phone.side.left { inset-inline-start: 10px; transform: rotate(-8deg); }
  .phone.side.right { inset-inline-end: 10px; transform: rotate(8deg); }
  .chip-chai { top: 470px; }
  .chip-near { top: 200px; }
  .faq-grid { grid-template-columns: 1fr 2fr; gap: 40px; }
  .final { flex-direction: row; justify-content: space-between; text-align: start; padding: 64px; }
  .final-main { flex-direction: row; align-items: center; gap: 30px; }
  .final-actions { width: auto; }
  .qr-card { width: max-content; }
  .final-icon { width: 116px; height: 116px; border-radius: 30px; }
  .final .final-actions { align-items: flex-end; }
  .final .qr-card { display: flex; }
  .final .btn-primary.mobile-only { display: none; }
}

@media (max-width: 1039px) {
  .desktop-only { display: none !important; }
}
@media (min-width: 1040px) {
  .mobile-only { display: none !important; }
}

@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .header-actions .lang-label { display: none; }
  .phones { height: 500px; }
  .phone { width: 220px; height: 470px; }
  .chip { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
