/* The app's colours (core/designsystem Color.kt): dark by default, light when the device asks for it. */
@font-face {
  font-family: "Vazirmatn RD";
  src: url("/fonts/vazirmatn_rd_regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn RD";
  src: url("/fonts/vazirmatn_rd_bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn RD";
  src: url("/fonts/vazirmatn_rd_extrabold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #12140f;
  --surface: #1e211a;
  --surface-high: #282c23;
  --text: #eceee3;
  --muted: #bec3b2;
  --outline: #3f4438;
  --primary: #c4e76e;
  --on-primary: #1d2a05;
  --secondary: #a0d0c6;
  --frame: #050604;
  --shadow: 0 40px 80px -24px rgb(0 0 0 / .65);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfcf3;
    --surface: #eff0e6;
    --surface-high: #e9eae0;
    --text: #1b1d15;
    --muted: #45493c;
    --outline: #c5c8b9;
    --primary: #46620a;
    --on-primary: #ffffff;
    --secondary: #1f6a5f;
    --frame: #1b1d15;
    --shadow: 0 40px 80px -28px rgb(40 50 20 / .35);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn RD", Tahoma, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 10; background: var(--primary); color: var(--on-primary); padding: 8px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }

.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--outline) 60%, transparent); }
.top-row { 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: 21px; }
.brand .mark { display: block; flex: none; border-radius: 9px; }
.brand-sm .mark { border-radius: 7px; }
/* The mark pops out of its tail once on load, as the app's LogoMark does; hovering the brand makes the dots type. */
.mark-bubble { transform-box: fill-box; transform-origin: 15% 92%; }
.mark-dot { transform-box: fill-box; transform-origin: center; }
.mark-ring { transform-box: fill-box; transform-origin: center; opacity: 0; }
.mark.intro .mark-bubble { animation: mark-pop 640ms cubic-bezier(.2, 0, 0, 1) 200ms both; }
.mark.intro .mark-ring { animation: mark-ring 700ms cubic-bezier(.2, 0, 0, 1) 480ms both; }
.mark.intro .mark-dot { animation: mark-dot-in 300ms cubic-bezier(.2, 0, 0, 1) both, mark-type 1.2s linear 1; }
.mark.intro .mark-dot:nth-of-type(1) { animation-delay: 620ms, 1100ms; }
.mark.intro .mark-dot:nth-of-type(2) { animation-delay: 720ms, 1250ms; }
.mark.intro .mark-dot:nth-of-type(3) { animation-delay: 820ms, 1400ms; }
.brand:hover .mark-dot, .brand:focus-visible .mark-dot { animation: mark-type 1.2s linear infinite; }
.brand:hover .mark-dot:nth-of-type(2), .brand:focus-visible .mark-dot:nth-of-type(2) { animation-delay: .15s; }
.brand:hover .mark-dot:nth-of-type(3), .brand:focus-visible .mark-dot:nth-of-type(3) { animation-delay: .3s; }
@keyframes mark-pop {
  0% { transform: scale(0) rotate(-14deg); }
  47% { transform: scale(1.1) rotate(3deg); }
  72% { transform: scale(.95) rotate(-1deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes mark-ring { 0% { transform: scale(.7); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes mark-dot-in { 0% { scale: 0; } 60% { scale: 1.3; } 100% { scale: 1; } }
@keyframes mark-type { 0%, 40%, 100% { translate: 0 0; } 20% { translate: 0 -3px; } }
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 15px; transition: color .15s ease; }
.nav a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .nav a:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 999px; }
.btn-sm { padding: 6px 18px; font-size: 15px; }
.btn-lg { padding: 13px 28px; font-size: 17px; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-primary:hover { box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--primary) 85%, transparent); }
.btn-ghost { border-color: var(--outline); }
.btn-ghost:hover { background: var(--surface); }
.btn-dark { background: var(--on-primary); color: var(--primary); }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.glow { position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%); pointer-events: none; }
.glow::after { content: ""; position: absolute; inset: 40% 60% -30% -40%; background: radial-gradient(closest-side, color-mix(in srgb, var(--secondary) 16%, transparent), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }

.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 4px 16px 4px 14px; border: 1px solid var(--outline); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--muted); font-size: 14px; font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 25%, transparent); }

h1 { margin: 0; font-size: clamp(36px, 5.6vw, 62px); line-height: 1.3; font-weight: 800; }
h1 em { font-style: normal; color: var(--primary); }
.lead { max-width: 52ch; color: var(--muted); font-size: 19px; margin: 22px 0 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.assure { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; }
.assure li { display: flex; align-items: center; gap: 6px; }
.assure .i { color: var(--primary); }

/* Phone frame */
.phone { position: relative; margin: 0; width: 100%; max-width: 300px; padding: 10px; border-radius: 46px; background: var(--frame); box-shadow: var(--shadow), inset 0 0 0 1.5px color-mix(in srgb, var(--outline) 70%, transparent); }
.phone::before { content: ""; position: absolute; z-index: 1; top: 18px; left: 50%; translate: -50% 0; width: 76px; height: 20px; border-radius: 999px; background: var(--frame); }
.phone picture { display: block; overflow: hidden; border-radius: 36px; background: var(--bg); padding-top: 30px; }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 600px; }
.phone-front { z-index: 2; }
.phone-back { position: absolute; z-index: 1; top: 40px; inset-inline-start: calc(50% - 270px); max-width: 230px; rotate: 7deg; opacity: .5; filter: saturate(.8); }

.chat { position: absolute; z-index: 3; inset-inline-end: calc(50% - 350px); bottom: 150px; display: grid; gap: 10px; width: 240px; }
.bubble { margin: 0; padding: 10px 16px 12px; border-radius: 20px; font-size: 15px; line-height: 1.7; box-shadow: 0 18px 40px -16px rgb(0 0 0 / .5); animation: pop .5s cubic-bezier(.2, .8, .2, 1.2) both; }
.bubble b { display: block; font-size: 12px; opacity: .75; }
.bubble.in { justify-self: start; background: var(--surface-high); border: 1px solid var(--outline); border-start-start-radius: 6px; animation-delay: .5s; }
.bubble.out { justify-self: end; background: var(--primary); color: var(--on-primary); border-start-end-radius: 6px; animation-delay: 1.3s; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

/* Strip */
.strip { padding: 24px 0; border-block: 1px solid var(--outline); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.strip-row { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 14px 32px; color: var(--muted); font-weight: 700; }
.strip-row span { display: flex; align-items: center; gap: 10px; }
.strip-row .i { color: var(--primary); width: 22px; height: 22px; }

/* Section heads */
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); margin: 0; }
.section-head .kicker { color: var(--primary); font-weight: 800; font-size: 15px; margin-bottom: 6px; }
h2 { font-size: clamp(26px, 3.8vw, 40px); line-height: 1.45; margin: 0 0 12px; font-weight: 800; }

/* Tour */
.tour { padding: 96px 0 40px; }
.row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 64px; padding: 40px 0; }
.row + .row { border-top: 1px dashed color-mix(in srgb, var(--outline) 70%, transparent); }
.row .phone { width: 300px; }
.row-flip .row-copy { order: 2; }
.row-copy { max-width: 500px; justify-self: center; }
.row-copy h3 { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.5; margin: 14px 0 10px; font-weight: 800; }
.row-copy > p { color: var(--muted); margin: 0 0 20px; }
.num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); font-weight: 800; font-size: 20px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 32px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); }
.ticks li::after { content: ""; position: absolute; inset-inline-start: 7px; top: calc(.45em + 4px); width: 5px; height: 9px; border: solid var(--on-primary); border-width: 0 2.5px 2.5px 0; rotate: 45deg; }

.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.motion .reveal.in { opacity: 1; transform: none; }

/* Features */
.features { padding: 88px 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--outline); border-radius: 24px; padding: 26px; transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 50%, var(--outline)); }
.ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 15%, transparent); color: var(--primary); margin-bottom: 14px; }
.ico .i { width: 24px; height: 24px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Steps */
.how { padding: 40px 0 88px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: step; padding: 28px 26px; background: var(--surface-high); border-radius: 24px; }
.steps li::before { content: counter(step, persian); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: 18px; }
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* FAQ */
.faq { padding: 40px 0 88px; }
.faq-wrap { max-width: 780px; }
.faq-list { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--outline); border-radius: 18px; padding: 0 22px; }
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 45%, var(--outline)); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-high); color: var(--primary); font-size: 20px; line-height: 1; transition: rotate .2s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* CTA */
.cta { padding: 0 0 88px; }
.cta-box { position: relative; overflow: hidden; text-align: center; background: var(--primary); color: var(--on-primary); border-radius: 32px; padding: 64px 24px; }
.cta-box::before { content: ""; position: absolute; inset: -50% -20% auto auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 255 255 / .28), transparent); pointer-events: none; }
.cta-box > * { position: relative; }
.cta-box p { margin: 0 0 28px; opacity: .85; }

/* Footer */
.foot { border-top: 1px solid var(--outline); padding: 28px 0; color: var(--muted); font-size: 15px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.brand-sm { font-size: 17px; color: var(--text); }
.brand-sm img { border-radius: 7px; }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }

/* Tablet */
@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .actions, .assure { justify-content: center; }
  .hero-visual { min-height: 0; }
  .phone-back { inset-inline-start: calc(50% - 250px); }
  .chat { inset-inline-end: calc(50% - 330px); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 1fr; gap: 36px; justify-items: center; }
  .row-flip .row-copy { order: 0; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .top-row .btn { margin-inline-start: auto; }
  .lead { font-size: 17px; }
  .phone { max-width: 260px; border-radius: 40px; padding: 8px; }
  .phone picture { border-radius: 32px; }
  .row .phone { width: 260px; }
  .phone-back { display: none; }
  .hero-visual { flex-direction: column; align-items: center; }
  .chat { position: relative; inset: auto; width: 100%; max-width: 320px; margin: -120px auto 0; text-align: start; }
  .grid, .steps { grid-template-columns: 1fr; }
  .tour { padding-top: 64px; }
  .features, .how, .faq { padding-block: 56px; }
  .cta-box { padding: 48px 20px; border-radius: 26px; }
  .foot-row { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
  .bubble { animation: none; }
  .mark-bubble, .mark-ring, .mark-dot { animation: none !important; }
}
