/* T-07: FrooshAra intro site. Plain CSS, no external requests (Iranian hosting, works without foreign CDNs). */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand: #e11d48;
  --brand-2: #ff6a5c;
  --green: #65a30d;
  --bg: #ffffff;
  --bg-soft: #f8f5f5;
  --text: #1f1d1e;
  --muted: #5f5a5c;
  --line: #ece6e7;
  --card: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161314;
    --bg-soft: #1f1b1c;
    --text: #f3eeef;
    --muted: #b3aaac;
    --line: #342d2f;
    --card: #221d1f;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
}
a { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.brand img { width: 36px; height: 36px; }
nav.links { margin-inline-start: auto; display: flex; gap: 16px; flex-wrap: wrap; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover { color: var(--brand); }

.hero { padding: 48px 0 32px; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.5; margin: 0 0 12px; }
.hero p.lead { color: var(--muted); font-size: 1.1rem; margin: 0 0 20px; }
.hero .phone {
  justify-self: center; width: min(240px, 62vw); border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.12);
}

.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px;
  font-weight: 700; text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--card);
}
.btn.primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; border-color: transparent; }
.btn:hover { filter: brightness(1.05); }

section { padding: 40px 0; }
section h2 { font-size: 1.5rem; margin: 0 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); }

.shots { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shots img {
  width: 180px; flex: none; border-radius: 18px; border: 1px solid var(--line);
  scroll-snap-align: start; box-shadow: 0 6px 20px rgb(0 0 0 / 0.08);
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding-inline-start: 48px; }
.steps li::before {
  content: counter(step, persian); position: absolute; inset-inline-start: 0; top: 2px; width: 34px; height: 34px;
  border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700;
}

.btns.contact { margin-bottom: 14px; }
.btns.contact .btn { font-weight: 500; overflow-wrap: anywhere; }

.prose { max-width: 760px; }
.prose h1 { font-size: 1.7rem; }
.prose p { margin: 0 0 14px; }

footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 0.92rem; margin-top: 24px; }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); }

@media (max-width: 720px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  nav.links { margin-inline-start: 0; width: 100%; gap: 12px; padding-bottom: 8px; }
}

/* T-08: user guide (help/) */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.prose h2 { font-size: 1.3rem; margin: 32px 0 10px; scroll-margin-top: 16px; }
.prose h3 { font-size: 1.08rem; margin: 22px 0 8px; scroll-margin-top: 16px; }
.prose ul, .prose ol:not(.steps) { padding-inline-start: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 4px; }
.prose .steps { margin: 0 0 16px; }
.prose code { font-family: Consolas, monospace; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; font-size: .9em; direction: ltr; unicode-bidi: embed; overflow-wrap: anywhere; }
.ui { font-weight: 700; }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; margin: 0 0 20px; }
.toc ul { margin: 0; }
.note, .warn { border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; border: 1px solid var(--line); background: var(--bg-soft); }
.warn { border-color: color-mix(in oklab, var(--brand) 45%, var(--line)); }
.note strong, .warn strong { display: block; }
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.topics a.card { text-decoration: none; color: var(--text); display: block; }
.topics a.card:hover { border-color: var(--brand); }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
table.grid-table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: .95rem; }
.grid-table th, .grid-table td { border: 1px solid var(--line); padding: 6px 10px; text-align: start; vertical-align: top; }
.grid-table th { background: var(--bg-soft); }
.table-wrap { overflow-x: auto; }

/* T-10: home page with pricing */
.hero .hint, .hint { color: var(--muted); font-size: .95rem; margin: 12px 0 0; }
nav.links a.nav-strong { color: var(--brand); font-weight: 700; }
section.soft { background: var(--bg-soft); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 16px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: start; margin: 20px 0; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 10px 30px rgb(225 29 72 / 0.12); }
.plan .tag {
  position: absolute; top: -13px; inset-inline-start: 18px; background: var(--brand); color: #fff;
  font-size: .82rem; font-weight: 700; padding: 1px 12px; border-radius: 999px;
}
.plan h3 { margin: 0; font-size: 1.3rem; }
.plan .for { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.plan .price { margin: 0 0 10px; color: var(--muted); }
.plan .price strong { font-size: 1.7rem; color: var(--text); }
.periods { width: 100%; border-collapse: collapse; margin: 0 0 14px; }
.periods th, .periods td { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.periods th { text-align: start; font-weight: 500; color: var(--muted); }
.periods td { text-align: end; font-weight: 700; }
.periods td::after { content: ' تومان'; font-weight: 400; color: var(--muted); font-size: .85rem; }
.plan ul { margin: 0; padding-inline-start: 20px; }
.plan li { margin-bottom: 3px; }
.pricing-notes { margin-bottom: 8px; }
.steps li a { font-weight: 700; }
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 8px 0 2px; color: var(--muted); }

/* T-08: short silent videos with Persian subtitles in the guide (website/videos/) */
figure.video { margin: 0 0 18px; }
figure.video video {
  display: block; width: min(300px, 100%); height: auto; aspect-ratio: 720 / 1600; background: #000;
  border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 6px 20px rgb(0 0 0 / 0.08);
}
figure.video figcaption { color: var(--muted); font-size: .9rem; margin-top: 6px; }
video::cue { font-family: 'Vazirmatn', Tahoma, sans-serif; font-size: .95rem; line-height: 1.6; background: rgb(0 0 0 / 0.75); }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.videos a.card { text-decoration: none; color: var(--text); }
.videos a.card:hover { border-color: var(--brand); }
/* T-08: a desktop (browser) video next to the phone one */
.video-pair { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin: 0 0 18px; }
.video-pair figure.video { margin: 0; }
figure.video.wide video { width: min(620px, 100%); aspect-ratio: 1280 / 720; border-radius: 12px; }

/* T-07: eNamad trust seal in the footer */
footer .enamad { flex-basis: 100%; display: flex; justify-content: center; }
footer .enamad img { width: 96px; height: auto; background: #fff; border-radius: 10px; }

/* T-10: the hidden attribute wins over display rules such as .btn (pay/index.html) */
[hidden] { display: none !important; }

/* P-03/P-04: the sign-up and license forms (signup/, buy/) */
.narrow-form { max-width: 560px; }
.form { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.form input, .form select {
  font: inherit; font-weight: 400; color: var(--text); background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; width: 100%; min-width: 0;
}
.form input:focus, .form select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.form .btn { align-self: flex-start; border: 0; cursor: pointer; font: inherit; }
.form .btn:disabled { opacity: .6; cursor: default; }
.form .hint { font-weight: 400; }
.form .addr { display: flex; align-items: center; gap: 4px; }
.form .addr input { flex: 1; }
.form .suffix { color: var(--muted); font-weight: 400; white-space: nowrap; }
.hint.ok { color: var(--green); }
.hint.bad { color: var(--brand); }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
