@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --green-900: #083d34;
  --green-800: #0b5244;
  --green-700: #0f6b5a;
  --green-600: #14836e;
  --mint-300: #8fd9be;
  --mint-100: #ddf3ea;
  --mint-50: #f1faf6;
  --gold-500: #f2b544;
  --gold-600: #c98a1e;
  --red-600: #c2410c;

  --bg: #f7fbf9;
  --surface: #ffffff;
  --surface-2: var(--mint-50);
  --ink: #10231e;
  --ink-2: #44564f;
  --line: #dbe9e2;
  --primary: var(--green-700);
  --on-primary: #ffffff;
  --accent: var(--gold-500);
  --shadow: 0 1px 2px rgba(8, 61, 52, .06), 0 12px 32px -12px rgba(8, 61, 52, .18);
  --radius: 20px;
  --max: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1714;
    --surface: #10221d;
    --surface-2: #132a24;
    --ink: #e9f4ef;
    --ink-2: #a9c2b8;
    --line: #1f3a32;
    --primary: var(--mint-300);
    --on-primary: #06231d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 800; }
p { margin: 0; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--primary); color: var(--on-primary); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 8px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; }
.brand svg { width: 40px; height: 40px; border-radius: 12px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 20px; border-radius: 14px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 0;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-primary:hover { box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--primary) 80%, transparent); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); }
.btn svg { width: 22px; height: 22px; flex: none; }
.top .btn { min-height: 42px; padding: 8px 16px; font-size: 15px; }

/* Hero */
.hero { position: relative; padding: 64px 0 88px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--mint-300) 55%, transparent), transparent);
  z-index: -1; filter: blur(10px);
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -30% -10%; width: 560px; height: 560px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold-500) 22%, transparent), transparent);
  z-index: -1;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 600;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-500) 25%, transparent); }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); margin: 20px 0 18px; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--primary); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; inset-inline: 0; bottom: .08em; height: .26em; z-index: -1;
  background: color-mix(in srgb, var(--gold-500) 55%, transparent); border-radius: 6px;
}
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store-btn { min-height: 56px; padding: 10px 22px; }
.store-btn small { display: block; font-size: 12px; font-weight: 500; opacity: .8; line-height: 1.2; }
.store-btn b { display: block; font-size: 17px; line-height: 1.3; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; }
.chips li { display: flex; align-items: center; gap: 6px; }
.chips svg { width: 18px; height: 18px; color: var(--green-600); }

/* Phone mockup */
.phone-stage { position: relative; display: grid; place-items: center; }
.phone {
  width: min(320px, 82vw); aspect-ratio: 9 / 19; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #1d2b27, #0b1411);
  box-shadow: 0 40px 80px -30px rgba(8, 61, 52, .55), inset 0 0 0 2px #2d3d38;
  transform: rotate(-3deg);
}
.screen {
  height: 100%; border-radius: 34px; overflow: hidden; background: #f4faf7; color: #10231e;
  padding: 34px 14px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; line-height: 1.6;
  position: relative;
}
.screen::before { content: ""; position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 70px; height: 18px; border-radius: 10px; background: #0b1411; }
.s-head { display: flex; justify-content: space-between; align-items: center; color: #44564f; font-size: 11px; }
.s-total { background: linear-gradient(140deg, #0f6b5a, #0b5244); color: #fff; border-radius: 18px; padding: 14px; }
.s-total span { opacity: .8; font-size: 11px; }
.s-total b { display: block; font-size: 22px; letter-spacing: -.3px; }
.s-total .bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.18); margin-top: 10px; overflow: hidden; }
.s-total .bar i { display: block; height: 100%; width: 62%; background: #f2b544; border-radius: inherit; }
.s-card { background: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(8,61,52,.06); }
.s-today { display: flex; align-items: center; gap: 10px; }
.s-today .ring { width: 42px; height: 42px; flex: none; }
.s-today b { display: block; font-size: 15px; color: #0f6b5a; }
.s-today small { color: #5d6f68; font-size: 10.5px; }
.s-accs { display: flex; gap: 6px; overflow: hidden; }
.s-accs span { flex: none; background: #fff; border: 1px solid #dbe9e2; border-radius: 999px; padding: 3px 10px; font-size: 10.5px; }
.s-tx { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #eef5f1; }
.s-tx:last-child { border-bottom: 0; }
.s-tx .ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 13px; }
.s-tx .t { flex: 1; min-width: 0; }
.s-tx .t small { display: block; color: #7a8a84; font-size: 10px; line-height: 1.3; }
.s-tx .a { font-weight: 700; }
.neg { color: #b4361f; }
.pos { color: #0f7a4f; }
.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  padding: 12px 16px; font-size: 14px; display: flex; align-items: center; gap: 10px; animation: bob 6s ease-in-out infinite;
}
.float-card svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; flex: none; }
.float-card b { display: block; font-size: 15px; }
.float-card small { color: var(--ink-2); }
.fc-1 { top: 14%; inset-inline-end: -4%; }
.fc-1 svg { background: color-mix(in srgb, var(--gold-500) 25%, transparent); color: var(--gold-600); }
.fc-2 { bottom: 12%; inset-inline-start: -6%; animation-delay: -3s; }
.fc-2 svg { background: var(--mint-100); color: var(--green-700); }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { color: var(--green-600); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
@media (prefers-color-scheme: dark) { .kicker { color: var(--mint-300); } }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--ink-2); font-size: 18px; }

/* Promise strip */
.promise { padding: 0 0 24px; }
.promise ul {
  list-style: none; margin: 0; padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
}
.promise li { display: flex; gap: 12px; align-items: center; padding: 6px 10px; }
.promise li + li { border-inline-start: 1px solid var(--line); }
.promise svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--surface-2); color: var(--green-700); flex: none; }
@media (prefers-color-scheme: dark) { .promise svg, .feat .ic { color: var(--mint-300); } }
.promise b { display: block; font-size: 16px; }
.promise small { color: var(--ink-2); font-size: 14px; line-height: 1.5; display: block; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.feat {
  grid-column: span 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.feat.wide { grid-column: span 3; }
.feat .ic { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--surface-2); color: var(--green-700); margin-bottom: 18px; }
.feat h3 { font-size: 20px; margin-bottom: 8px; }
.feat p { color: var(--ink-2); font-size: 16px; }
.feat ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.feat ul li { display: flex; gap: 8px; }
.feat ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); margin-top: .75em; flex: none; }

/* Spotlights */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.spot + .spot { margin-top: 96px; }
.spot.rev .spot-art { order: -1; }
.spot h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.spot p { color: var(--ink-2); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { width: 22px; height: 22px; flex: none; margin-top: 4px; color: var(--green-600); }
.spot-art {
  background: linear-gradient(150deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); border-radius: 28px;
  padding: 28px; box-shadow: var(--shadow);
}
.art-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; font-weight: 700; }
.art-title small { color: var(--ink-2); font-weight: 500; font-size: 14px; }
.forecast svg { width: 100%; height: auto; }
.legend { display: flex; gap: 18px; font-size: 14px; color: var(--ink-2); margin-top: 12px; flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 4px; border-radius: 4px; display: inline-block; }
.alert {
  margin-top: 16px; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px;
  background: color-mix(in srgb, #f97316 12%, var(--surface)); border: 1px solid color-mix(in srgb, #f97316 30%, transparent); font-size: 15px;
}
.alert svg { width: 22px; height: 22px; color: var(--red-600); flex: none; }
@media (prefers-color-scheme: dark) { .alert svg { color: #fb923c; } }

.budgets { display: grid; gap: 16px; }
.budget b { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.budget b small { color: var(--ink-2); font-weight: 500; }
.track { height: 10px; border-radius: 10px; background: var(--line); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: inherit; }
.status { font-size: 13px; margin-top: 4px; color: var(--ink-2); }

.ledger { display: grid; gap: 12px; }
.ledger-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.ledger-row .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; flex: none; }
.ledger-row .t { flex: 1; min-width: 0; }
.ledger-row .t b { display: block; font-size: 15px; }
.ledger-row .t small { color: var(--ink-2); font-size: 13px; }
.pill { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

/* Privacy band */
.band {
  background: linear-gradient(135deg, var(--green-800), var(--green-900)); color: #e8f6f0; border-radius: 32px;
  padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.band::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; inset: -120px auto auto -120px; background: radial-gradient(closest-side, rgba(143,217,190,.28), transparent); }
.band h2 { font-size: clamp(26px, 3.4vw, 38px); color: #fff; margin-bottom: 14px; }
.band p { color: #bfe0d3; font-size: 18px; }
.band .btn { margin-top: 26px; background: var(--gold-500); color: #2b1d00; }
.band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.band li { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 14px 16px; }
.band li svg { width: 24px; height: 24px; color: var(--mint-300); flex: none; }

/* Old users + FAQ */
.notice {
  display: flex; gap: 18px; align-items: flex-start; padding: 24px 26px; border-radius: 22px;
  background: color-mix(in srgb, var(--gold-500) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold-500) 45%, transparent);
  margin-bottom: 36px;
}
.notice svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--gold-500) 30%, transparent); color: var(--gold-600); flex: none; }
@media (prefers-color-scheme: dark) { .notice svg { color: var(--gold-500); } }
.notice h3 { font-size: 19px; margin-bottom: 6px; }
.notice p { color: var(--ink-2); }
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; transition: transform .25s ease; color: var(--ink-2); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { color: var(--ink-2); padding-bottom: 20px; }

/* Final CTA */
.final { text-align: center; }
.final .app-icon { width: 96px; height: 96px; border-radius: 26px; margin: 0 auto 22px; box-shadow: var(--shadow); }
.final h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.final p { color: var(--ink-2); font-size: 18px; }
.final .cta-row { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 32px 0 40px; margin-top: 40px; color: var(--ink-2); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Legal page */
.legal { padding: 48px 0 24px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(30px, 4.4vw, 44px); margin: 12px 0 8px; }
.legal .meta { color: var(--ink-2); margin-bottom: 32px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-inline-start: 22px; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--ink); }
.legal .summary { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 26px; box-shadow: var(--shadow); }
.legal .summary ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.legal .summary li { display: flex; gap: 10px; margin: 0; color: var(--ink); }
.legal .summary svg { width: 22px; height: 22px; color: var(--green-600); flex: none; margin-top: 4px; }
.legal .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.legal .col { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.legal .col h3 { font-size: 16px; margin-bottom: 6px; }
.legal .col ul { margin: 0; }
code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; direction: ltr; unicode-bidi: embed; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .spot, .band { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .phone-stage { margin-top: 12px; }
  .spot.rev .spot-art { order: 0; }
  .promise ul { grid-template-columns: 1fr 1fr; }
  .promise li + li { border-inline-start: 0; }
  .feat, .feat.wide { grid-column: span 3; }
  .nav { display: none; }
  .top .btn { margin-inline-start: auto; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .promise ul { grid-template-columns: 1fr; padding: 14px; }
  .feat, .feat.wide { grid-column: span 6; }
  .fc-1 { inset-inline-end: 0; }
  .fc-2 { inset-inline-start: 0; }
  .float-card { font-size: 13px; padding: 10px 12px; }
  .store-btn { flex: 1 1 100%; }
  .legal .cols { grid-template-columns: 1fr; }
  .notice { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
