/* qarznama.com: the landing page and the privacy policy. The colours are the
   app's design tokens (apps/app/src/theme/tokens.js); fonts ship with the site.
   The site has no scripts and no inline styles (see _headers). */

@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans_800ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/Vazirmatn_800ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --ground: #F7F7F4;
  --card: #FFFFFF;
  --ink: #0F172A;
  --text: #475569;
  --muted: #5B6474;
  --line: #E5E7EB;
  --primary: #2141C9;
  --primary-dark: #16309A;
  --primary-tint: #E8EDFF;
  --on-primary: #FFFFFF;
  --gave: #C0261B;
  --gave-tint: #FDECEA;
  --got: #08794A;
  --got-tint: #E3F5EC;
  --warn: #A15C07;
  --warn-tint: #FEF3C7;
  --brand: #F0A30A;
  --bezel: #0B1220;
  --glow-a: rgba(33, 65, 201, 0.10);
  --glow-b: rgba(240, 163, 10, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0B1220;
    --card: #141C2C;
    --ink: #F1F5F9;
    --text: #CBD5E1;
    --muted: #A3AEC2;
    --line: #253046;
    --primary: #8FA4FF;
    --primary-dark: #B4C2FF;
    --primary-tint: #1C2650;
    --on-primary: #0B1220;
    --gave: #FF8A80;
    --gave-tint: #3A1A18;
    --got: #4FD69C;
    --got-tint: #0F2E22;
    --warn: #F5B556;
    --warn-tint: #3A2A0A;
    --brand: #F5B556;
    --bezel: #000000;
    --glow-a: rgba(143, 164, 255, 0.12);
    --glow-b: rgba(245, 181, 86, 0.08);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
/* The soft colour wash starts at the very top, behind the floating menu too. */
body {
  margin: 0;
  background-color: var(--ground);
  background-image:
    radial-gradient(60% 900px at 20% 0, var(--glow-a), transparent 70%),
    radial-gradient(50% 800px at 85% 6%, var(--glow-b), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 16px/1.6 'Jakarta', 'Vazirmatn', system-ui, sans-serif;
}
[lang='fa-AF'], [lang='ps'] { font-family: 'Vazirmatn', system-ui, sans-serif; }
/* Spacing between letters breaks the joined letters of Dari and Pashto. */
[dir='rtl'] * { letter-spacing: 0 !important; }
[dir='rtl'] .hero h1 { line-height: 1.3; }
[dir='rtl'] h2.title, [dir='rtl'] .feature h3, [dir='rtl'] .cta h2 { line-height: 1.35; }
[lang='en'] { font-family: 'Jakarta', system-ui, sans-serif; }
a { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }

/* Logo */
.wordmark {
  display: inline-flex; align-items: flex-end; gap: 4px; direction: rtl;
  font: 800 28px/1.5 'Vazirmatn', sans-serif; color: var(--ink); text-decoration: none;
}
.wordmark::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-bottom: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px;
  border-radius: 14px; font-weight: 700; text-decoration: none; border: 1px solid transparent; white-space: nowrap;
}
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: var(--primary-dark); }
.btn.secondary { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--muted); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.light { background: #FFFFFF; color: #16309A; }

/* Floating menu bar */
.topbar { position: sticky; top: 12px; z-index: 10; padding: 12px 16px 0; margin-top: 0; }
.topbar .bar {
  max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: color-mix(in srgb, var(--card) 88%, transparent); border: 1px solid var(--line); border-radius: 18px;
  padding: 6px 8px 6px 18px; backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
}
.links { display: flex; gap: 4px; }
.links a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 700; padding: 10px 14px; border-radius: 12px; }
.links a:hover { color: var(--ink); background: var(--ground); }
.end { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 15px;
}
.lang summary svg { width: 18px; height: 18px; color: var(--muted); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .menu summary:hover { background: var(--ground); }
.lang nav {
  position: absolute; inset-inline-end: 0; top: 52px; min-width: 160px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 8px; display: grid; box-shadow: 0 16px 40px -16px rgba(15, 23, 42, 0.3);
}
.lang nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 10px 14px; border-radius: 10px; text-align: center; }
.lang nav a:hover { background: var(--ground); }
.lang nav a[aria-current='page'] { background: var(--primary-tint); color: var(--primary); }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu nav {
  position: absolute; inset-inline-end: 0; top: 52px; width: 220px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 8px; display: grid; box-shadow: 0 16px 40px -16px rgba(15, 23, 42, 0.3);
}
.menu nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 12px 14px; border-radius: 10px; }
.menu nav a:hover { background: var(--ground); }

/* Hero */
.hero { padding: 72px 0 24px; text-align: center; overflow-x: clip; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-size: 14px; font-weight: 700;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--got); }
h1, h2, h3 { color: var(--ink); }
.hero h1 { margin: 22px auto 18px; max-width: 900px; font-size: clamp(38px, 7vw, 72px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.soft { color: color-mix(in srgb, var(--ink) 42%, var(--ground)); }
.hero .lead { margin: 0 auto 30px; max-width: 640px; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero .note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* Devices */
.devices { position: relative; max-width: 1040px; margin: 56px auto 0; padding: 0 16px 40px; }
.laptop { width: 82%; margin: 0 auto; }
.laptop .screen { background: var(--bezel); border-radius: 18px 18px 0 0; padding: 12px 12px 14px; border: 1px solid #1F2937; }
.laptop .screen img { border-radius: 6px; }
.laptop .base { height: 16px; background: linear-gradient(#D9DDE3, #B7BDC6); border-radius: 0 0 16px 16px; width: 112%; margin-inline-start: -6%; position: relative; }
.laptop .base::before { content: ''; position: absolute; top: 0; left: 42%; width: 16%; height: 6px; background: #A9AFB8; border-radius: 0 0 8px 8px; }
.tablet {
  position: absolute; inset-inline-start: 0; bottom: 8px; width: 34%; background: var(--bezel); border-radius: 22px; padding: 10px;
  border: 1px solid #1F2937; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.35);
}
.tablet img { border-radius: 12px; }
.phone {
  background: var(--bezel); border-radius: 38px; padding: 9px; border: 1px solid #1F2937; position: relative;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.4);
}
.phone img { border-radius: 30px; }
.devices .phone { position: absolute; inset-inline-end: 2%; bottom: 0; width: 19%; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 700;
  box-shadow: 0 12px 30px -12px rgba(15, 23, 42, 0.25);
}
.chip svg { color: var(--got); }
.chip.c1 { top: -18px; inset-inline-start: 4%; }
.chip.c2 { top: -18px; inset-inline-end: 4%; }
.chip.c2 svg { color: var(--primary); }

/* Strip of facts */
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 18px 0 8px; color: var(--muted); font-size: 15px; font-weight: 700; }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { color: var(--primary); }

/* Sections */
section.block { padding: 96px 0 0; }
.kicker { color: var(--primary); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 10px; }
h2.title { margin: 0 0 14px; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
.intro { max-width: 640px; font-size: 18px; margin: 0; }
.center .intro { margin: 0 auto; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.card h3 { margin: 14px 0 6px; font-size: 18px; font-weight: 800; }
.card p { margin: 0; font-size: 15px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-tint); color: var(--primary); }
.icon.red { background: var(--gave-tint); color: var(--gave); }
.icon.green { background: var(--got-tint); color: var(--got); }
.icon.amber { background: var(--warn-tint); color: var(--warn); }

/* Detailed feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 72px 0 0; }
.feature.flip .shot { order: 2; }
.feature .shot {
  border-radius: 28px; padding: 40px 0; display: grid; place-items: center;
  background: radial-gradient(70% 70% at 50% 40%, var(--primary-tint), transparent 75%);
}
.feature .shot.warm { background: radial-gradient(70% 70% at 50% 40%, var(--warn-tint), transparent 75%); }
.feature .shot.green { background: radial-gradient(70% 70% at 50% 40%, var(--got-tint), transparent 75%); }
.feature .shot .phone { width: min(300px, 70%); }
.feature h3 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; font-weight: 800; letter-spacing: -0.025em; }
.feature .body { font-size: 17px; margin: 0 0 20px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 15px; }
.ticks li::before {
  content: ''; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--got-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308794A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.ticks strong { color: var(--ink); }

/* Afghanistan band */
.band { margin-top: 96px; background: var(--ink); color: #CBD5E1; border-radius: 28px; padding: 56px 40px; }
.band h2.title { color: #FFFFFF; }
.band .intro { color: #CBD5E1; }
.band .grid { margin-top: 32px; }
.band .card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
.band .card h3 { color: #FFFFFF; }
.band .card p { color: #CBD5E1; }
.band .icon { background: rgba(255, 255, 255, 0.1); color: #FFFFFF; }
.sample { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sample span { padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: #FFFFFF; font-weight: 700; font-size: 15px; }
@media (prefers-color-scheme: dark) { .band { background: #141C2C; border: 1px solid var(--line); } }

/* Apps */
.apps { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; margin-top: 40px; }
.apps .tabletbig { background: var(--bezel); border-radius: 26px; padding: 12px; border: 1px solid #1F2937; }
.apps .tabletbig img { border-radius: 14px; }
.platforms { display: grid; gap: 12px; }
.platform { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.platform h3 { margin: 0; font-size: 16px; font-weight: 800; }
.platform p { margin: 0; font-size: 14px; color: var(--muted); }
.tag { font-size: 13px; font-weight: 800; padding: 6px 10px; border-radius: 999px; background: var(--ground); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.tag.live { background: var(--got-tint); color: var(--got); border-color: transparent; text-decoration: none; }

/* Pricing */
.price { max-width: 520px; margin: 40px auto 0; background: var(--ink); color: #CBD5E1; border-radius: 28px; padding: 36px; position: relative; overflow: hidden; }
.price::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(240, 163, 10, 0.18); filter: blur(40px); top: -90px; inset-inline-end: -80px; }
.price .plan { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--brand); color: #0F172A; font-weight: 800; font-size: 13px; }
.price .amount { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; color: #FFFFFF; }
.price .amount strong { font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.price .amount span { font-size: 18px; color: #CBD5E1; }
.price .sub { margin: 0 0 24px; }
.price .ticks li { color: #E2E8F0; }
.price .ticks li::before { background-color: rgba(79, 214, 156, 0.18); }
.price .btn { width: 100%; margin-top: 28px; position: relative; z-index: 1; }
@media (prefers-color-scheme: dark) { .price { background: #141C2C; border: 1px solid var(--line); } }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 800; color: var(--ink); font-size: 17px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 400; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 20px; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 40px; }
.contact .card a { font-weight: 800; text-decoration: none; }

/* Closing band */
.cta { margin: 96px 0 0; background: var(--primary-dark); border-radius: 28px; padding: 56px 32px; text-align: center; color: #DCE3FF; }
.cta h2 { margin: 0 0 12px; color: #FFFFFF; font-size: clamp(28px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.cta p { margin: 0 auto 26px; max-width: 560px; font-size: 18px; }

footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--ink); }

/* Privacy policy page */
article.policy { padding: 40px 0 56px; max-width: 720px; }
article.policy h1 { font-size: 36px; line-height: 1.2; margin: 8px 0 4px; letter-spacing: -0.02em; }
article.policy h2 { font-size: 19px; margin: 32px 0 8px; }
article.policy li { margin-bottom: 6px; }

/* Smaller screens */
@media (max-width: 960px) {
  .links, .end > .open { display: none; }
  .menu { display: block; }
  .feature, .apps { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .shot { order: 0; }
  .band { padding: 40px 20px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .devices { padding-bottom: 24px; }
  .laptop { width: 100%; }
  .laptop .screen { padding: 6px 6px 8px; border-radius: 12px 12px 0 0; }
  .laptop .base { height: 10px; }
  .tablet, .chip { display: none; }
  .devices .phone { width: 30%; inset-inline-end: 0; bottom: -10px; border-radius: 22px; padding: 5px; }
  .devices .phone img { border-radius: 18px; }
  section.block { padding-top: 72px; }
  .feature { padding-top: 56px; }
  .price { padding: 28px 22px; }
  .cta { padding: 40px 20px; }
}
.contact .card p.small { margin-top: 4px; font-size: 14px; color: var(--muted); }
/* Each half of the saying stays on one line. */
.hero h1 .soft { white-space: nowrap; }
