/* SarafCloud website. Same colours and font as the app. Logical properties, so one file serves RTL and LTR. */
:root {
  --ink: #0f2340;
  --ink-2: #183257;
  --ink-3: #2b5a85;
  --blue: #2b6ea6;
  --blue-2: #4f97cf;
  --sky: #e3f0fa;
  --paper: #f1f4f8;
  --surface: #ffffff;
  --line: #d9e1ea;
  --line-2: #e8edf3;
  --text: #0f1b2d;
  --muted: #5b6b80;
  --pos: #136c37;
  --pos-soft: #e6f3ea;
  --neg: #b42318;
  --wa: #128c4a;
  --radius: 14px;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  font-feature-settings: "ss01";
}
[lang="en"] body, body.en { line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { inset-inline-start: 8px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-2); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 4px; margin-inline-start: 8px; }
.nav a { color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 11px; border-radius: 9px; }
.nav a:hover { background: var(--paper); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--blue); background: var(--sky); }
.top .end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.langs { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.langs a { font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 10px; }
.langs a[aria-current="true"] { background: var(--ink); color: #fff; }
.langs a:hover { text-decoration: none; background: var(--paper); }
.langs a[aria-current="true"]:hover { background: var(--ink); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 40px; cursor: pointer; color: var(--ink); }
.menu-btn svg { margin: auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: inherit; font-weight: 700; font-size: 16px; border-radius: 12px; padding: 12px 20px; border: 1px solid transparent; cursor: pointer; line-height: 1.3; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn svg { flex: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-line { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-sm { font-size: 14px; padding: 8px 14px; border-radius: 10px; }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 480px at 85% -10%, rgba(79, 151, 207, 0.35), transparent 60%), radial-gradient(700px 420px at 0% 110%, rgba(43, 110, 166, 0.35), transparent 60%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; padding-block: 64px 72px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.25; margin: 0 0 18px; font-weight: 800; letter-spacing: -0.01em; }
.hero p.lead { font-size: 19px; color: #cfdced; margin: 0 0 28px; max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 28px; padding: 0; list-style: none; }
.hero .facts li { font-size: 14px; color: #dbe7f3; border: 1px solid rgba(255, 255, 255, 0.18); padding: 4px 12px; border-radius: 999px; }
.shots { position: relative; }
.desk { border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(3, 10, 25, 0.55); border: 1px solid rgba(255, 255, 255, 0.14); background: #fff; }
.phone { position: absolute; inset-inline-start: -28px; bottom: -36px; width: 31%; border-radius: 30px; overflow: hidden; border: 6px solid #0a1730; box-shadow: 0 24px 60px rgba(3, 10, 25, 0.6); background: #fff; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
section.paper { background: var(--paper); }
section.tight { padding: 56px 0; }
.kicker { color: var(--blue); font-weight: 700; font-size: 15px; margin: 0 0 8px; }
h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.3; margin: 0 0 14px; color: var(--ink); font-weight: 800; }
h3 { font-size: 21px; line-height: 1.4; margin: 0 0 8px; color: var(--ink); font-weight: 700; }
.sec-head { max-width: 46em; margin-bottom: 40px; }
.sec-head p { color: var(--muted); margin: 0; font-size: 18px; }
.center { text-align: center; margin-inline: auto; }

/* feature rows: text beside a screenshot, alternating sides */
.rows { display: grid; gap: 72px; }
.row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.row:nth-child(even) .row-text { order: 2; }
.row-text p { color: var(--muted); margin: 0 0 14px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-inline-start: 30px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.55em; width: 18px; height: 18px; border-radius: 50%; background: var(--pos-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23136c37' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(15, 35, 64, 0.14); background: #fff; }
.shot-m { max-width: 300px; margin-inline: auto; border-radius: 28px; border: 6px solid var(--ink); }

/* grid of cards */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--muted); }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); color: var(--blue); margin-bottom: 14px; }

/* the offline band */
.band { background: var(--ink-2); color: #fff; }
.band h2 { color: #fff; }
.band p { color: #cfdced; }
.band .row-text p { color: #cfdced; }
.band .ticks li { color: #e6eef8; }

/* editions */
.ed { display: flex; flex-direction: column; gap: 10px; }
.ed .price { font-size: 30px; font-weight: 800; color: var(--ink); }
.ed .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.ed .ticks { margin: 6px 0 14px; }
.ed .btn { margin-top: auto; align-self: flex-start; }

/* steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps p { margin: 0; color: var(--muted); }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plans.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plans.n4 .plan { padding: 24px 22px; }
.plans.n4 .plan .amount { font-size: 38px; }
.plans.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.plans.n1 { grid-template-columns: minmax(0, 420px); }
.plan.free { background: linear-gradient(180deg, #f2f8f4 0%, var(--surface) 55%); }
.plan.free .amount { color: var(--pos); }
.grid.g1 { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.plan.main { border: 2px solid var(--blue); box-shadow: 0 18px 50px rgba(43, 110, 166, 0.16); }
.plan .tag { align-self: flex-start; background: var(--sky); color: var(--blue); font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan .amount { font-size: 42px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.plan .amount small { font-size: 16px; color: var(--muted); font-weight: 600; }
.plan .year { color: var(--pos); font-weight: 600; font-size: 15px; }
.plan dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.plan dt { color: var(--muted); }
.plan dd { margin: 0; font-weight: 700; color: var(--ink); text-align: end; }
.plan dd { white-space: nowrap; }
.plan dd.yes { color: var(--pos); }
.plan dd.no { color: var(--muted); font-weight: 600; }
.plan .btn { margin-top: auto; }
table.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 16px; }
.tbl th, .tbl td { text-align: start; padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.tbl th { background: var(--paper); color: var(--ink-2); font-weight: 700; }
.tbl tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* page head (inner pages) */
.page-head { background: var(--ink); color: #fff; padding: 56px 0 48px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 90% -20%, rgba(79, 151, 207, 0.3), transparent 60%); }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.25; margin: 0 0 10px; font-weight: 800; }
.page-head p { color: #cfdced; font-size: 19px; margin: 0; max-width: 40em; }

/* feature groups on the features page */
.groups { display: grid; gap: 22px; }
.group { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.group .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--sky); color: var(--blue); }
.group p { margin: 0 0 12px; color: var(--muted); }
.group .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }

/* prose pages (privacy, terms) */
.prose { max-width: 780px; }
.prose h2 { font-size: 24px; margin-top: 36px; }
.prose p, .prose li { color: #2a3a50; }

/* contact */
.contact-cards .card { display: flex; flex-direction: column; gap: 10px; }
.contact-cards .big { font-size: 22px; font-weight: 800; color: var(--ink); }

/* closing call to action */
.cta { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 60%, #1f4f82 100%); color: #fff; border-radius: 22px; padding: 44px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { color: #cfdced; margin: 0; }
.cta .ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* footer */
footer { background: #0a1830; color: #b8c8dc; padding: 56px 0 28px; font-size: 15px; }
footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
footer h4 { color: #fff; margin: 0 0 12px; font-size: 16px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
footer a { color: #b8c8dc; }
footer a:hover { color: #fff; }
footer .brand img { height: 32px; margin-bottom: 14px; }
footer .base { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #8ea3bd; font-size: 14px; }

/* social links in the footer */
footer .social { display: flex; gap: 10px; margin-top: 16px; }
footer .social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.07); color: #dbe7f3; }
footer .social a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* announcement on top of every page */
.notice { background: var(--blue); color: #fff; font-size: 15px; font-weight: 600; text-align: center; }
.notice .wrap { padding-block: 9px; }
.notice a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* floating WhatsApp button */
.wa-float { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(18, 140, 74, 0.45); }
.wa-float:hover { text-decoration: none; filter: brightness(1.08); }

/* ---------- small screens ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .top .end .btn-ink { display: none; }
  body.menu-open .nav { display: grid; position: fixed; inset: 68px 0 auto 0; background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); gap: 2px; margin: 0; box-shadow: 0 20px 40px rgba(15, 35, 64, 0.12); }
  body.menu-open .nav a { font-size: 17px; padding: 12px; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; padding-block: 44px 64px; }
  .phone { width: 28%; inset-inline-start: auto; inset-inline-end: -8px; }
  .row, .row:nth-child(even) { grid-template-columns: 1fr; gap: 26px; }
  .row:nth-child(even) .row-text { order: 0; }
  .g4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: 1fr; }
  .plans, .plans.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .top .wrap { height: 62px; gap: 10px; }
  .brand img { height: 28px; }
  body.menu-open .nav { inset: 62px 0 auto 0; }
  .langs a { padding: 5px 8px; font-size: 13px; }
  .g2, .g4, .steps, .plans, .plans.n4, .plans.n2 { grid-template-columns: 1fr; }
  .group { grid-template-columns: 1fr; padding: 22px; }
  .group .ticks { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr; }
  .hero .ctas .btn, .cta .ctas .btn { width: 100%; }
  .phone { display: none; }
  .tbl { font-size: 14px; }
  .tbl th, .tbl td { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .top, .wa-float, footer, .notice { display: none; } }
