/* Zamin website. Palette mirrors the app (app/lib/theme/tokens.dart) and
   the green of the app icon. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/vazirmatn.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Pitch greens (from the icon) */
  --g-950: #04220F;
  --g-900: #072E16;
  --g-800: #0A4420;
  --g-700: #0D5A2A;
  --g-600: #128239;
  --g-500: #1FB153;
  --g-400: #3DD171;
  --g-300: #86EFAC;
  --chalk: #FFFFFF;

  /* App palette, light */
  --bg: #F4F6FA;
  --bg-2: #EAEFF6;
  --surface: #FFFFFF;
  --surface-2: #EEF2F7;
  --border: #E2E8F0;
  --text: #0A2540;
  --text-2: #475569;
  --text-3: #94A3B8;
  --primary: #2563EB;
  --primary-soft: #DBEAFE;
  --accent: #128239;
  --accent-soft: #DCFCE7;
  --warn: #D97706;
  --warn-soft: #FEF3C7;
  --navy: #0A2540;
  --shadow: 0 1px 2px rgba(10, 37, 64, .05), 0 12px 32px rgba(10, 37, 64, .08);
  --shadow-lg: 0 2px 6px rgba(10, 37, 64, .06), 0 30px 60px -12px rgba(10, 37, 64, .25);

  --radius: 22px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1220;
    --bg-2: #0E1829;
    --surface: #131C2E;
    --surface-2: #1B2540;
    --border: #25304A;
    --text: #F1F5F9;
    --text-2: #A3B1C6;
    --text-3: #64748B;
    --primary: #60A5FA;
    --primary-soft: #1E3A8A;
    --accent: #4ADE80;
    --accent-soft: #14532D;
    --warn: #FBBF24;
    --warn-soft: #451A03;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 30px 60px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

html[lang='fa'] {
  --font-display: 'Vazirmatn', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Vazirmatn', ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { 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: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang='fa'] body { line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.icon {
  width: 1.15em; height: 1.15em; flex: none;
  /* Symbols used from icons.svg don't inherit the sprite's own styles. */
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

:focus-visible { outline: 3px solid var(--g-400); outline-offset: 3px; border-radius: 8px; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 1.5em;
  border-radius: 999px; border: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
  white-space: nowrap;
}
html[lang='fa'] .btn { letter-spacing: 0; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--g-400); color: var(--g-950);
  box-shadow: 0 10px 30px -8px rgba(61, 209, 113, .65), inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.btn-primary:hover { background: #57E088; box-shadow: 0 14px 36px -8px rgba(61, 209, 113, .8), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { opacity: .9; }
.btn-soft { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn-soft:hover { background: var(--border); }
.btn-lg { min-height: 60px; font-size: 1.08rem; padding: 0 1.7em; }
.btn-block { width: 100%; }
.btn .sub { font-family: var(--font-body); font-weight: 600; font-size: .78em; opacity: .7; }

/* ── Header ──────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 72px; }
.site-header.scrolled {
  background: rgba(7, 46, 22, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .25); }
.brand span { font-family: 'Space Grotesk', var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.03em; }
.nav { display: flex; gap: 4px; margin-inline-start: 24px; }
.nav a {
  color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px; transition: color .15s, background-color .15s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; font-weight: 700; font-size: .92rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.lang-btn:hover { background: rgba(255, 255, 255, .18); }
.lang-btn [data-lang-label='fa'] { font-family: 'Vazirmatn', sans-serif; }
.lang-btn [data-lang-label='en'] { font-family: 'Manrope', sans-serif; }
.header-cta { min-height: 40px; padding: 0 16px; font-size: .92rem; }
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 420px) { .header-cta .label { display: none; } .header-cta { padding: 0 12px; } }

/* ── Pitch (hero background) ─────────────────────────── */
.pitch {
  --cx: 74%;
  --cy: 52%;
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 90% at var(--cx) var(--cy), transparent 0 35%, rgba(4, 34, 15, .55) 75%),
    repeating-radial-gradient(circle at var(--cx) var(--cy), var(--g-700) 0 70px, var(--g-800) 70px 140px);
}
html[dir='rtl'] .pitch { --cx: 26%; }
.pitch::before { /* fade toward the copy side for contrast */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(4, 34, 15, .72) 0%, rgba(4, 34, 15, .25) 55%, rgba(4, 34, 15, 0) 75%);
}
html[dir='rtl'] .pitch::before { transform: scaleX(-1); }
.pitch::after { /* grain */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.pitch-lines { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pitch-lines .halfway {
  position: absolute; top: 0; bottom: 0; inset-inline-start: var(--cx); width: 6px; margin-inline-start: -3px;
  background: rgba(255, 255, 255, .5);
}
html[dir='rtl'] .pitch-lines .halfway { inset-inline-start: auto; left: var(--cx); }
.pitch-lines .circle {
  position: absolute; left: var(--cx); top: var(--cy); width: 560px; height: 560px;
  transform: translate(-50%, -50%); border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .5);
}
.pitch-lines .spot {
  position: absolute; left: var(--cx); top: var(--cy); width: 14px; height: 14px;
  transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255, 255, 255, .5);
}

/* ── Hero ────────────────────────────────────────────── */
.hero { padding: 132px 0 96px; min-height: min(900px, 100svh); display: flex; align-items: center; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  font-size: .88rem; font-weight: 700; color: var(--g-300);
}
html[dir='rtl'] .eyebrow { padding: 6px 8px 6px 14px; }
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--g-400); display: grid; place-items: center; color: var(--g-950); }
.eyebrow .dot .icon { width: 13px; height: 13px; stroke-width: 3; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 7.4vw, 5.6rem); line-height: .98; letter-spacing: -.045em;
  margin: 22px 0 22px;
  text-wrap: balance;
}
html[lang='fa'] .hero h1 { font-weight: 800; letter-spacing: -.01em; line-height: 1.25; font-size: clamp(2.6rem, 6.4vw, 4.8rem); }
.hero h1 .hl { color: var(--g-400); white-space: nowrap; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255, 255, 255, .82); max-width: 33em; margin: 0 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ios-note {
  display: none; margin-top: 18px; padding: 12px 16px; border-radius: 16px; max-width: 30em;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); font-size: .95rem;
}
.is-ios .ios-note { display: flex; gap: 10px; align-items: flex-start; }
.ios-note .icon { margin-top: .2em; }

/* ── Phone mockup ────────────────────────────────────── */
.stage { position: relative; display: grid; place-items: center; min-height: 640px; }
.phone {
  --pw: 300px;
  position: relative; width: var(--pw); aspect-ratio: 300 / 620;
  border-radius: 46px; padding: 10px; background: #0B1220;
  box-shadow: 0 0 0 2px #2A3550, 0 50px 90px -20px rgba(0, 0, 0, .7), 0 30px 40px -30px rgba(0, 0, 0, .6);
  animation: float 7s ease-in-out infinite;
}
.phone::before { /* side buttons */
  content: ''; position: absolute; inset-inline-end: -4px; top: 130px; width: 4px; height: 64px; border-radius: 0 4px 4px 0; background: #1E293B;
}
.screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: #F4F6FA; color: #0A2540;
  font-family: 'Manrope', sans-serif; font-size: 12px; line-height: 1.35;
  display: flex; flex-direction: column;
}
html[lang='fa'] .screen { font-family: 'Vazirmatn', sans-serif; }
.screen .island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #0B1220; z-index: 3; }
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 13px 24px 4px; font-weight: 700; font-size: 12.5px; direction: ltr; }
.statusbar .sys { display: flex; gap: 4px; align-items: center; }
.statusbar .sys i { display: block; width: 15px; height: 9px; border-radius: 2.5px; border: 1.5px solid #0A2540; position: relative; }
.statusbar .sys i::after { content: ''; position: absolute; inset: 1px 4px 1px 1px; background: #0A2540; border-radius: 1px; }
.statusbar .sys b { width: 13px; height: 9px; background: linear-gradient(90deg, #0A2540 0 2px, transparent 2px 4px, #0A2540 4px 6px, transparent 6px 8px, #0A2540 8px 10px, transparent 10px 11px, #0A2540 11px); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.appbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 6px; }
.appbar .ic { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid #E2E8F0; display: grid; place-items: center; }
.appbar .ic .icon { width: 16px; height: 16px; }
html[dir='rtl'] .appbar .back { transform: scaleX(-1); }
.appbar .title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; }
html[lang='fa'] .appbar .title { font-family: 'Vazirmatn', sans-serif; }
.scr-body { padding: 4px 14px 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.badges { display: flex; gap: 5px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; font-size: 10px; font-weight: 700; }
.badge.green { background: #DCFCE7; color: #15803D; }
.badge.green::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #16A34A; }
.badge.blue { background: #DBEAFE; color: #1E3A8A; }
.scr-title { font-family: 'Space Grotesk', sans-serif; font-size: 21px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 2px; }
html[lang='fa'] .scr-title { font-family: 'Vazirmatn', sans-serif; letter-spacing: 0; font-weight: 800; line-height: 1.4; }
.scr-venue { display: flex; align-items: center; gap: 4px; color: #475569; font-weight: 600; }
.scr-venue .icon { width: 12px; height: 12px; color: #94A3B8; }
.countdown {
  position: relative; overflow: hidden; border-radius: 18px; padding: 12px 14px; color: #fff;
  background: linear-gradient(135deg, #0A2540 0%, #1E40AF 100%);
}
.countdown::after { content: ''; position: absolute; top: -50px; inset-inline-end: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(96, 165, 250, .4), transparent 70%); }
.countdown .k { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: rgba(255, 255, 255, .6); }
html[lang='fa'] .countdown .k { letter-spacing: 0; font-size: 10px; }
.countdown .v { display: flex; align-items: baseline; gap: 3px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
html[lang='fa'] .countdown .v { font-family: 'Vazirmatn', sans-serif; letter-spacing: 0; }
.countdown .v small { font-size: 11px; color: rgba(255, 255, 255, .6); margin-inline-end: 6px; font-weight: 600; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.fact { background: #fff; border: 1px solid #E2E8F0; border-radius: 14px; padding: 8px 10px; }
.fact .k { font-size: 9.5px; color: #94A3B8; font-weight: 700; display: flex; gap: 4px; align-items: center; }
.fact .k .icon { width: 11px; height: 11px; }
.fact .v { font-weight: 800; font-size: 12.5px; margin-top: 1px; }
.roster { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 10px 12px; }
.roster .top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.roster .count { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-variant-numeric: tabular-nums; }
html[lang='fa'] .roster .count { font-family: 'Vazirmatn', sans-serif; }
.roster .count span { color: #94A3B8; }
.bar { height: 6px; border-radius: 99px; background: #EEF2F7; margin: 7px 0 9px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 90%; border-radius: inherit; background: linear-gradient(90deg, #16A34A, #4ADE80); transform-origin: 0 50%; animation: fill 2.4s cubic-bezier(.2, .8, .2, 1) .6s both; }
html[dir='rtl'] .bar i { transform-origin: 100% 50%; }
.avatars { display: flex; align-items: center; }
.av { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; font-size: 9px; font-weight: 800; color: #fff; margin-inline-start: -6px; }
.av:first-child { margin-inline-start: 0; }
.av.more { background: #EEF2F7; color: #475569; }
.av.open { background: transparent; border: 1.5px dashed #94A3B8; color: #94A3B8; width: 22px; height: 22px; margin-inline-start: 2px; }
.roster .left { margin-inline-start: auto; font-size: 10.5px; font-weight: 700; color: #16A34A; }
.joinbar { padding: 10px 14px 18px; margin-top: auto; }
.joinbtn { height: 44px; border-radius: 14px; background: #2563EB; color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .8); }
.homebar { width: 110px; height: 4px; border-radius: 4px; background: #0A2540; opacity: .85; margin: 0 auto 7px; }

.float-card {
  position: absolute; z-index: 4;
  background: rgba(255, 255, 255, .96); color: #0A2540;
  border-radius: 18px; padding: 11px 14px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .6);
  display: flex; gap: 10px; align-items: center;
  font-size: 13px; line-height: 1.3;
  backdrop-filter: blur(8px);
}
.float-card img { width: 34px; height: 34px; border-radius: 9px; }
.float-card b { display: block; font-weight: 800; }
.float-card .muted { color: #64748B; font-size: 12px; }
.notif { top: 18px; inset-inline-start: -24px; max-width: 250px; animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) 1.2s both, float 7s ease-in-out 2s infinite; }
.notif .app { font-size: 10.5px; color: #64748B; font-weight: 700; display: flex; justify-content: space-between; gap: 18px; margin-bottom: 1px; }
.codechip { bottom: 92px; inset-inline-end: -14px; animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) 1.6s both, float 8s ease-in-out 2.4s infinite reverse; }
.codechip .k { font-size: 10.5px; color: #64748B; font-weight: 700; }
.codechip .code { font-family: 'Space Grotesk', ui-monospace, monospace; font-weight: 700; font-size: 19px; letter-spacing: .14em; direction: ltr; }
.codechip .lk { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #DBEAFE; color: #1E3A8A; }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fill { from { transform: scaleX(.15); } to { transform: scaleX(1); } }

@media (max-width: 980px) {
  .pitch { --cx: 50%; --cy: 74%; }
  html[dir='rtl'] .pitch { --cx: 50%; }
  .pitch::before { background: linear-gradient(180deg, rgba(4, 34, 15, .7) 0%, rgba(4, 34, 15, .3) 45%, rgba(4, 34, 15, 0) 70%); }
  html[dir='rtl'] .pitch::before { transform: none; }
  .hero { padding: 112px 0 40px; min-height: 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .ios-note { margin-inline: auto; text-align: start; }
  .stage { min-height: 600px; }
  .pitch-lines .circle { width: 470px; height: 470px; }
  .pitch-lines .halfway { display: none; } /* it would cut through the centred text */
}
@media (max-width: 520px) {
  .stage { min-height: 650px; }
  .phone { --pw: 268px; }
  .scr-body { gap: 7px; }
  /* Like a real banner: over the status bar, not the content. */
  .notif { inset-inline-start: -4px; top: 0; max-width: 225px; }
  .codechip { inset-inline-end: -4px; bottom: 0; }
  .final .pitch-lines .circle { width: 300px; height: 300px; }
  .cta-row .btn { width: 100%; }
}

/* ── Sections ────────────────────────────────────────── */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
html[lang='fa'] .kicker { letter-spacing: 0; font-size: .95rem; }
.kicker::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }
h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em;
  margin: 14px 0 16px; text-wrap: balance;
}
html[lang='fa'] h2 { font-weight: 800; letter-spacing: 0; line-height: 1.35; }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p { color: var(--text-2); font-size: 1.12rem; margin: 0; }
.center { text-align: center; margin-inline: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); overflow: hidden;
}
.step .num {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 4.6rem; line-height: .8; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.5px var(--border);
  position: absolute; top: 22px; inset-inline-end: 22px;
}
.step .ic {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--accent-soft); color: var(--accent);
}
.step .ic .icon { width: 24px; height: 24px; }
.step h3 { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -.02em; margin: 0 0 8px; }
html[lang='fa'] .step h3 { letter-spacing: 0; }
.step p { margin: 0; color: var(--text-2); }
.step .art { margin: 22px -28px -28px; padding: 18px 28px; background: var(--bg-2); border-top: 1px solid var(--border); min-height: 92px; display: flex; align-items: center; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* mini UI used inside cards */
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: .86rem; font-weight: 700; color: var(--text);
}
.chip .icon { width: 14px; height: 14px; color: var(--text-3); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.on .icon { color: currentColor; }
.msg {
  display: flex; flex-direction: column; gap: 3px; max-width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px 16px 16px 4px; padding: 9px 13px; font-size: .9rem;
}
html[dir='rtl'] .msg { border-radius: 16px 16px 4px 16px; }
.msg .who { font-size: .76rem; font-weight: 800; color: var(--accent); }
.msg a { color: var(--primary); font-weight: 700; text-decoration: none; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.ping { display: flex; align-items: center; gap: 10px; width: 100%; }
.ping .pi { width: 36px; height: 36px; border-radius: 11px; background: var(--g-500); color: #fff; display: grid; place-items: center; flex: none; }
.ping .pi .icon { width: 18px; height: 18px; }
.ping b { display: block; font-size: .92rem; }
.ping span { font-size: .82rem; color: var(--text-2); }

/* Features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  grid-column: span 2; position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px;
}
.tile.wide { grid-column: span 3; }
.tile.full { grid-column: span 6; }
.tile h3 { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -.02em; margin: 0; display: flex; align-items: center; gap: 10px; }
html[lang='fa'] .tile h3 { letter-spacing: 0; }
.tile h3 .icon { color: var(--accent); width: 22px; height: 22px; }
.tile p { margin: 0; color: var(--text-2); font-size: .98rem; }
.tile .vis { margin-top: auto; padding-top: 22px; }
.tile.dark {
  background:
    repeating-radial-gradient(circle at 100% 0%, var(--g-700) 0 40px, var(--g-800) 40px 80px);
  color: #fff; border-color: transparent;
}
html[dir='rtl'] .tile.dark { background: repeating-radial-gradient(circle at 0% 0%, var(--g-700) 0 40px, var(--g-800) 40px 80px); }
.tile.dark p { color: rgba(255, 255, 255, .8); }
.tile.dark h3 .icon { color: var(--g-300); }
.roster-vis { background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; }
.roster-vis .row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.roster-vis .n { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; }
html[lang='fa'] .roster-vis .n { font-family: 'Vazirmatn', sans-serif; }
.roster-vis .n span { color: var(--text-3); }
.roster-vis .bar { background: var(--surface-2); height: 8px; margin: 10px 0 12px; }
.roster-vis .av { width: 30px; height: 30px; font-size: 11px; border-color: var(--bg-2); margin-inline-start: -8px; }
.roster-vis .av:first-child { margin-inline-start: 0; }
.roster-vis .av.open { width: 28px; height: 28px; margin-inline-start: 4px; border-color: var(--text-3); }
.code-vis { display: flex; gap: 6px; direction: ltr; }
.code-vis span {
  flex: 1; max-width: 44px; aspect-ratio: 4 / 5; border-radius: 10px; display: grid; place-items: center;
  font-family: 'Space Grotesk', monospace; font-weight: 700; font-size: 1.3rem;
  background: var(--bg-2); border: 1px solid var(--border);
}
.pill-vis { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-vis > span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); font-weight: 700; }
.pill-vis .icon { width: 17px; height: 17px; color: var(--g-300); }
.price-vis { display: flex; align-items: baseline; gap: 8px; }
.price-vis b { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; letter-spacing: -.03em; }
html[lang='fa'] .price-vis b { font-family: 'Vazirmatn', sans-serif; letter-spacing: 0; }
.price-vis span { color: var(--text-2); font-weight: 600; }
@media (max-width: 980px) { .tile, .tile.wide, .tile.full { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .tile, .tile.wide, .tile.full { grid-column: auto; } }

/* Install */
.install { background: var(--bg-2); border-block: 1px solid var(--border); }
.install-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: stretch; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 28px;
  padding: clamp(24px, 3.5vw, 36px); box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.card-head .pi { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.card-head .pi .icon { width: 28px; height: 28px; }
.card-head h3 { font-family: var(--font-display); margin: 0; font-size: 1.5rem; letter-spacing: -.02em; }
html[lang='fa'] .card-head h3 { letter-spacing: 0; }
.card-head p { margin: 0; color: var(--text-2); font-size: .95rem; }
.pi.android { background: var(--accent-soft); color: var(--accent); }
.pi.apple { background: var(--surface-2); color: var(--text); }
.tag { margin-inline-start: auto; align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: .8rem; font-weight: 800; white-space: nowrap; }
.tag.ok { background: var(--accent-soft); color: var(--accent); }
ol.howto { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; counter-reset: s; }
ol.howto li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
ol.howto li::before {
  content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; background: var(--text); color: var(--bg);
}
html[lang='fa'] ol.howto li::before { content: counter(s, persian); font-family: 'Vazirmatn', sans-serif; }
ol.howto b { display: block; font-size: 1.05rem; }
ol.howto span { color: var(--text-2); font-size: .97rem; }
.dl-meta { display: flex; justify-content: center; gap: 6px; margin-top: 12px; color: var(--text-2); font-size: .9rem; text-align: center; flex-wrap: wrap; }
.dl-meta a { color: var(--primary); font-weight: 700; }
.desktop-note { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--text-2); font-size: .93rem; gap: 10px; align-items: center; }
.is-desktop .desktop-note { display: flex; }
.desktop-note .icon { color: var(--text); }
.desktop-note b { color: var(--text); direction: ltr; unicode-bidi: isolate; }
.soon { display: flex; flex-direction: column; height: 100%; }
.soon .card-body { color: var(--text-2); }
.soon .safari {
  margin-top: auto; padding: 18px; border-radius: 20px; background: var(--bg-2); border: 1px dashed var(--border);
  display: flex; gap: 14px; align-items: center; color: var(--text-2); font-size: .93rem;
}
.soon .safari .icon { width: 30px; height: 30px; color: var(--text-3); flex: none; }
[data-when='webapp'] { display: none; }
.has-webapp [data-when='webapp'] { display: revert; }
.has-webapp [data-when='no-webapp'] { display: none; }
@media (max-width: 900px) { .install-grid { grid-template-columns: 1fr; } }

/* Final CTA + footer */
.final { text-align: center; padding: clamp(80px, 12vw, 140px) 0; --cx: 50%; --cy: 100%; }
html[dir='rtl'] .final { --cx: 50%; }
.final::before { background: radial-gradient(80% 90% at 50% 30%, rgba(4, 34, 15, .55), rgba(4, 34, 15, .1)); }
html[dir='rtl'] .final::before { transform: none; }
.final .pitch-lines .circle { width: 380px; height: 380px; box-shadow: 0 0 0 5px rgba(255, 255, 255, .22); }
.final .pitch-lines .spot { background: rgba(255, 255, 255, .3); }
.final h2 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.4rem); }
.final p { color: rgba(255, 255, 255, .82); font-size: 1.15rem; margin: 0 auto 32px; max-width: 30em; }
.site-footer { background: var(--g-950); color: rgba(255, 255, 255, .62); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; }
.site-footer .brand img { width: 28px; height: 28px; border-radius: 8px; }
.site-footer .brand span { font-size: 1.1rem; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ── Invite page ─────────────────────────────────────── */
.invite-page { min-height: 100svh; display: flex; flex-direction: column; --cx: 50%; --cy: 0%; }
html[dir='rtl'] .invite-page { --cx: 50%; }
.invite-page::before { background: linear-gradient(180deg, rgba(4, 34, 15, .1), rgba(4, 34, 15, .55)); }
html[dir='rtl'] .invite-page::before { transform: none; }
.invite-page .pitch-lines .circle { width: 420px; height: 420px; }
.invite-main { flex: 1; display: grid; place-items: center; padding: 104px var(--gutter) 48px; }
.ticket {
  width: 100%; max-width: 480px; position: relative;
  background: var(--surface); color: var(--text); border-radius: 30px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: pop .6s cubic-bezier(.2, 1.2, .4, 1) both;
}
.ticket-top { padding: 34px 30px 26px; text-align: center; }
.ticket-top img { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 18px; box-shadow: 0 10px 24px -8px rgba(18, 130, 57, .6); }
.ticket .eyebrow-dark { display: inline-block; font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
html[lang='fa'] .ticket .eyebrow-dark { letter-spacing: 0; font-size: .95rem; }
.ticket h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 5vw, 2.1rem); line-height: 1.15; letter-spacing: -.03em; margin: 8px 0 0; text-wrap: balance; }
html[lang='fa'] .ticket h1 { letter-spacing: 0; line-height: 1.45; font-weight: 800; }
.perforation { position: relative; height: 0; border-top: 2px dashed var(--border); margin: 0 26px; }
.perforation::before, .perforation::after {
  content: ''; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--g-800);
}
.perforation::before { left: -41px; }
.perforation::after { right: -41px; }
.ticket-code { padding: 26px 30px 6px; text-align: center; }
.ticket-code .k { font-size: .85rem; font-weight: 700; color: var(--text-3); }
.code-big { display: flex; justify-content: center; gap: 7px; margin: 10px 0 14px; direction: ltr; }
.code-big span {
  width: 48px; height: 60px; border-radius: 14px; display: grid; place-items: center;
  font-family: 'Space Grotesk', monospace; font-weight: 700; font-size: 1.7rem;
  background: var(--bg-2); border: 1px solid var(--border);
}
@media (max-width: 400px) { .code-big { gap: 5px; } .code-big span { width: 40px; height: 52px; font-size: 1.4rem; } }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; color: var(--primary); font-weight: 700; font-size: .95rem; padding: 6px 10px; border-radius: 10px; }
.copy-btn:hover { background: var(--primary-soft); }
.ticket-actions { padding: 18px 30px 30px; display: grid; gap: 10px; }
.ticket-actions .btn-primary { box-shadow: 0 10px 24px -10px rgba(61, 209, 113, .9), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.ticket-steps { background: var(--bg-2); border-top: 1px solid var(--border); padding: 24px 30px 28px; }
.ticket-steps ol.howto { margin: 0; gap: 14px; }
.ticket-steps ol.howto li { grid-template-columns: 30px 1fr; gap: 12px; }
.ticket-steps ol.howto li::before { width: 30px; height: 30px; font-size: .9rem; }
.ticket-steps ol.howto span { font-size: .95rem; }
.hint { font-size: .9rem; color: var(--text-2); text-align: center; margin: 4px 0 0; }
.only-android, .only-ios, .only-other { display: none !important; }
.is-android .only-android, .is-ios .only-ios, .is-desktop .only-other { display: revert !important; }
.is-android .btn.only-android, .is-ios .btn.only-ios, .is-desktop .btn.only-other { display: inline-flex !important; }
.invite-foot { text-align: center; padding: 0 var(--gutter) 28px; color: rgba(255, 255, 255, .7); font-size: .92rem; }
.invite-foot a { color: #fff; font-weight: 700; }
