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

:root {
  --paper: #f4f6f2;
  --paper-2: #e9eee6;
  --ink: #1c2024;
  --stone: #5a636b;
  --line: #d7ddd3;
  --sun: #ffd426;
  --sun-ink: #4a3b00;
  --leaf: #2f7a57;
  --leaf-soft: #dcefe4;
  --white: #ffffff;
  --radius-s: 10px;
  --radius-l: 22px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "VazirRD", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.95;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.35; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.15rem; font-weight: 750; }
p { margin: 0; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--radius-s); z-index: 10; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  font: inherit; font-weight: 750; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.btn--sun { background: var(--sun); color: var(--sun-ink); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .12); }
.btn--sun:hover { background: #ffdc4d; }
.btn--sun:active { transform: translateY(1px); }
.btn--ghost { min-height: 40px; padding: 0 16px; border: 1.5px solid var(--ink); font-size: .92rem; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.link { font-weight: 650; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--sun); }
.fine { font-size: .86rem; color: var(--stone); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgb(244 246 242 / .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; font-size: 1.25rem; }
.top__nav { display: none; gap: 22px; margin-inline-start: auto; font-size: .95rem; }
.top__nav a { text-decoration: none; color: var(--stone); }
.top__nav a:hover { color: var(--ink); }
.top .btn--ghost { margin-inline-start: auto; }
/* موبایل: از منو فقط «خانه» دیده می‌شود */
@media (max-width: 759px) {
  .top__nav { display: flex; }
  .top__nav a:not(:first-child) { display: none; }
  .top__nav + .btn--ghost { margin-inline-start: 14px; }
}
@media (min-width: 760px) {
  .top__nav { display: flex; }
  .top .btn--ghost { margin-inline-start: 8px; }
}

/* hero */
.hero { padding: 48px 0 56px; }
.hero__in { display: grid; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem); line-height: 1.3; font-weight: 900; max-width: 15ch; }
.lead { margin-top: 20px; font-size: 1.12rem; color: #3a4148; max-width: 36rem; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.hero .fine { margin-top: 14px; }
@media (min-width: 960px) {
  .hero { padding: 80px 0 88px; }
  .hero__in { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}

/* demo — the one animated moment */
.demo { position: relative; margin: 0; max-width: 460px; justify-self: center; width: 100%; }
.demo__chat {
  background: var(--white); border-radius: var(--radius-l); padding: 14px 14px 64px;
  border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgb(28 32 36 / .35);
}
.demo__bar { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--stone); padding: 2px 4px 12px; border-bottom: 1px solid var(--paper-2); margin-bottom: 14px; }
.demo__dot { width: 8px; height: 8px; border-radius: 50%; background: #f15a3a; }
.msg { position: relative; max-width: 86%; padding: 10px 14px 22px; border-radius: 16px; font-size: .95rem; line-height: 1.8; margin-bottom: 10px; }
.msg time { position: absolute; inset-inline-end: 12px; bottom: 4px; font-size: .7rem; color: var(--stone); }
.msg--in { background: var(--paper-2); border-start-start-radius: 4px; }
.msg--out { margin-inline-start: auto; background: var(--leaf-soft); border-start-end-radius: 4px; }
.msg__product { display: block; font-size: .78rem; font-weight: 700; color: var(--stone); padding: 4px 8px; margin-bottom: 6px; background: var(--white); border-radius: 8px; border: 1px dashed var(--line); }
.demo__bot {
  position: relative; margin-top: -48px; margin-inline-start: 14%; margin-inline-end: -12px; width: auto;
  background: var(--ink); color: #e9ecef; border-radius: 18px; padding: 14px 16px 16px;
  box-shadow: 0 24px 50px -20px rgb(0 0 0 / .55); font-size: .88rem; line-height: 1.8;
}
.demo__bothead { font-weight: 750; color: var(--sun); font-size: .8rem; margin-bottom: 6px; }
.demo__q { color: #aeb6bd; }
.demo__a { margin-top: 4px; }
.demo__keys { display: flex; gap: 8px; margin-top: 12px; }
.key { flex: 1; text-align: center; border: 1px solid rgb(255 255 255 / .22); border-radius: 10px; padding: 6px 8px; font-size: .82rem; font-weight: 650; }
.key--ok { background: var(--sun); color: var(--sun-ink); border-color: var(--sun); }

@media (prefers-reduced-motion: no-preference) {
  .d1 { animation: rise .5s .2s both ease-out; }
  .d2 { animation: rise .55s 1.1s both cubic-bezier(.2,.8,.2,1); }
  .d3 { animation: press .5s 2.4s both; }
  .d4 { animation: rise .5s 3s both ease-out; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes press { 0%,100% { transform: none; } 40% { transform: scale(.94); box-shadow: 0 0 0 6px rgb(255 212 38 / .35); } }
}

/* questions strip */
.asks { padding: 56px 0; background: var(--ink); color: var(--paper); }
.asks h2 { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); }
.asks__list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.asks__list li {
  padding: 8px 16px; border-radius: 18px 18px 18px 4px; background: #2b3036; font-size: 1.02rem;
}
.asks__list li:nth-child(3n+1) { background: var(--sun); color: var(--sun-ink); font-weight: 700; }
.asks__note { margin-top: 22px; color: #b9c0c6; max-width: 40rem; }

/* how */
.how { padding: 80px 0; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-inline-start: 64px; }
.steps li::before {
  content: counter(step, persian); position: absolute; inset-inline-start: 0; top: 2px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sun); color: var(--sun-ink); font-weight: 900; font-size: 1.2rem;
}
.steps p { margin-top: 6px; color: var(--stone); max-width: 32rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps li { padding-inline-start: 0; padding-top: 64px; }
  .steps li::after { content: ""; position: absolute; top: 22px; inset-inline-start: 56px; inset-inline-end: -28px; border-top: 2px dashed var(--line); }
  .steps li:last-child::after { display: none; }
}

/* features */
.feat { padding: 80px 0; background: var(--white); border-block: 1px solid var(--line); }
.feat__in { display: grid; gap: 36px; }
.feat h2 { max-width: 18ch; }
.feat__list { margin: 0; display: grid; gap: 0; }
.feat__list > div { padding: 20px 0; border-top: 1px solid var(--line); }
.feat__list > div:first-child { border-top: 0; padding-top: 0; }
.feat__list dt { font-weight: 800; font-size: 1.08rem; }
.feat__list dd { margin: 4px 0 0; color: var(--stone); }
@media (min-width: 900px) {
  .feat__in { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .feat h2 { position: sticky; top: 100px; }
  .feat__list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .feat__list > div:nth-child(2) { border-top: 0; padding-top: 0; }
}

/* pricing */
.price { padding: 88px 0; }
.plan {
  display: grid; gap: 28px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-l);
  padding: 28px; max-width: 900px; margin-inline: auto; box-shadow: -8px 8px 0 var(--sun);
}
.plan__amount { margin-top: 14px; font-size: 1.1rem; color: var(--stone); }
.plan__amount strong { font-size: clamp(2.4rem, 2rem + 2vw, 3.3rem); font-weight: 900; color: var(--ink); margin-inline-end: 6px; }
.plan__trial { margin-top: 4px; font-weight: 650; color: var(--leaf); }
.plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan__list li { position: relative; padding-inline-start: 30px; }
.plan__list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 16px; height: 9px; border-inline-start: 3px solid var(--leaf); border-bottom: 3px solid var(--leaf); transform: rotate(-45deg) scaleX(-1); }
.plan__cta { display: grid; gap: 10px; justify-items: start; }
@media (min-width: 820px) {
  .plan { box-shadow: -12px 12px 0 var(--sun); grid-template-columns: 1fr 1fr; padding: 40px 44px; column-gap: 48px; }
  .plan__cta { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; gap: 20px; }
}

/* faq */
.faq { padding: 24px 0 88px; }
.faq__in { max-width: 760px; }
.faq h2 { margin-bottom: 20px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 750; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--stone); }
details[open] summary::after { content: "−"; }
details p { padding: 0 0 20px; color: var(--stone); max-width: 42rem; }
details a { color: var(--leaf); font-weight: 650; }

/* closing */
.close { background: var(--sun); padding: 64px 0; }
.close__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.close h2 { color: var(--sun-ink); font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem); font-weight: 900; }
.close .btn--sun { background: var(--ink); color: var(--paper); box-shadow: none; }
.close .btn--sun:hover { background: #2b3036; }

/* footer */
.foot { padding: 28px 0 36px; font-size: .9rem; color: var(--stone); }
.foot__in { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* legal pages */
.legal { padding: 48px 0 80px; }
.legal__in { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); font-weight: 900; }
.legal .updated { margin-top: 8px; color: var(--stone); font-size: .9rem; }
.legal h2 { font-size: 1.25rem; margin-top: 36px; }
.legal p, .legal li { color: #3a4148; }
.legal p { margin-top: 10px; }
.legal ul { margin: 10px 0 0; padding-inline-start: 22px; }
.legal li { margin-top: 4px; }
.legal a { color: var(--leaf); font-weight: 650; }

/* product header (brand + family link) */
.brand__mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__family { font-size: .78rem; font-weight: 600; color: var(--stone); text-decoration: none; padding-inline-start: 10px; border-inline-start: 1px solid var(--line); line-height: 1.4; }
.brand__family:hover { color: var(--ink); }
@media (max-width: 420px) { .brand__family { display: none; } }
.foot span a { text-decoration: underline; }

/* company home */
.eyebrow { font-weight: 800; letter-spacing: .08em; color: var(--leaf); font-size: .9rem; direction: ltr; text-align: right; }
.hero--brand h1 { margin-top: 10px; max-width: 18ch; }
.products { padding: 24px 0 88px; }
.cards { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 900px) { .cards { grid-template-columns: 1.2fr 1fr 1fr; } }
.card { display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px; }
.card--live { border: 2px solid var(--ink); box-shadow: -8px 8px 0 var(--sun); }
.card p { color: var(--stone); flex: 1; }
.card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.card__icon { width: 48px; height: 48px; border-radius: 12.5px; display: grid; place-items: center; background: var(--paper-2); color: var(--stone); }
.card__cta { align-self: flex-start; margin-top: 6px; }
.badge { font-size: .78rem; font-weight: 750; padding: 3px 12px; border-radius: 999px; background: var(--paper-2); color: var(--stone); }
.badge--live { background: var(--leaf-soft); color: var(--leaf); }
