/* Calendro landing — main stylesheet
   RTL-first, mobile-first. Tokens on :root; no build step needed. */

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-wght.woff2") format("woff2-variations"),
       url("/assets/fonts/Vazirmatn-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal-950: #0A2F2F;
  --teal-900: #0E3B3B;
  --teal-700: #185C5C;
  --teal-600: #1E6D6D;
  --teal-200: #BFD9D6;
  --teal-100: #DDEBE9;
  --teal-50:  #EEF5F4;
  --saffron:      #FFA12E;
  --saffron-600:  #F28E12;
  --saffron-100:  #FFEFD8;
  --ink:    #12302F;
  --ink-2:  #3F5957;
  --ink-3:  #5E7573;
  --line:   #D3E2E0;
  --bg:     #F4F8F7;
  --surface:#FFFFFF;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --pill: 999px;

  --shadow-1: 0 1px 2px rgba(14, 59, 59, .06), 0 6px 18px -6px rgba(14, 59, 59, .10);
  --shadow-2: 0 2px 6px rgba(14, 59, 59, .06), 0 28px 60px -18px rgba(14, 59, 59, .28);

  --font: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
  --container: 1180px;
  --gutter: 16px;
  --section-y: clamp(56px, 8vw, 104px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) { :root { --gutter: 28px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.95;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1024px) { body { font-size: 1.0625rem; } }

img, svg { max-width: 100%; display: block; }
a { color: var(--teal-700); text-underline-offset: .3em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-600); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--saffron-100); color: var(--ink); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.4; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.25rem + 3.2vw, 3.4rem); font-weight: 800; line-height: 1.32; letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.3rem); font-weight: 780; line-height: 1.4; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.6; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke-width: 1.9; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--teal-900); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .55em 1.25em;
  font: inherit; font-weight: 650; font-size: .98rem; line-height: 1.4;
  border-radius: 12px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--saffron); color: var(--teal-950); box-shadow: 0 6px 18px -8px rgba(242, 142, 18, .7); }
.btn-primary:hover { background: var(--saffron-600); color: var(--teal-950); }
.btn-secondary { background: var(--surface); color: var(--teal-700); border-color: var(--teal-200); }
.btn-secondary:hover { border-color: var(--teal-700); color: var(--teal-700); }
.btn-ghost { background: transparent; color: var(--teal-700); }
.btn-ghost:hover { background: var(--teal-50); color: var(--teal-700); }
.btn-teal { background: var(--teal-700); color: #fff; }
.btn-teal:hover { background: var(--teal-600); color: #fff; }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-on-dark:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn-lg { min-height: 56px; padding-inline: 1.6em; font-size: 1.05rem; border-radius: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 248, 247, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(14, 59, 59, .35); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.logo-mark { width: 38px; height: 38px; }
.brand-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.brand-on-dark, .brand-on-dark:hover { color: #fff; }

.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; gap: 4px; }
.main-nav ul a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink-2); text-decoration: none; font-weight: 550; border-radius: 10px;
}
.main-nav ul a:hover { color: var(--teal-700); background: var(--teal-50); }
.main-nav ul a[aria-current="page"] { color: var(--teal-700); font-weight: 700; box-shadow: inset 0 -2px 0 var(--saffron); border-radius: 0; }
.nav-actions { display: flex; gap: 8px; align-items: center; }

.nav-toggle {
  margin-inline-start: auto; display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle-close { display: none; }
.nav-open .nav-toggle-open { display: none; }
.nav-open .nav-toggle-close { display: block; }

@media (max-width: 1023.98px) {
  .nav-open .main-nav {
    display: block; position: absolute; inset-inline: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px; box-shadow: 0 24px 40px -24px rgba(14, 59, 59, .35);
    max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .nav-open .main-nav ul { flex-direction: column; gap: 2px; }
  .nav-open .main-nav ul a { width: 100%; min-height: 48px; font-size: 1.05rem; }
  .nav-open .main-nav ul a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--saffron); border-radius: 0; }
  .nav-open .nav-actions { flex-direction: column; align-items: stretch; margin-top: 12px; }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex; align-items: center; gap: 20px; flex: 1; justify-content: space-between; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-tint { background: var(--teal-50); }
.section-white { background: var(--surface); }
.section-dark { background: var(--teal-900); color: #DCEBE9; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; margin: 0; }
.section-dark .section-head p { color: #B9D3D0; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--ink-2); line-height: 1.95; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(32px, 6vw, 80px) clamp(56px, 8vw, 104px); }
.hero::before {
  /* Faint day-column grid — the shape of an appointment book */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to left, rgba(24, 92, 92, .07) 1px, transparent 1px);
  background-size: calc(100% / 7) 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero-copy h1 { margin-bottom: .45em; }
.hero-copy .lead { max-width: 34rem; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-points { list-style: none; display: grid; gap: 10px; color: var(--ink-2); }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points .icon { color: var(--teal-700); }
@media (max-width: 479.98px) { .hero-actions .btn { flex: 1 1 100%; } }

/* The live schedule — the one memorable element */
.demo { position: relative; max-width: 560px; width: 100%; margin-inline: auto; }
.demo-card {
  background: var(--surface); border-radius: var(--radius-xl);
  border: 1px solid var(--line); box-shadow: var(--shadow-2);
  padding: 18px; overflow: hidden;
}
@media (min-width: 480px) { .demo-card { padding: 22px; } }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.demo-title { font-weight: 750; font-size: 1.02rem; margin: 0; }
.demo-sub { color: var(--ink-3); font-size: .86rem; margin: 0; }
.demo-count { display: inline-flex; align-items: center; gap: 6px; background: var(--teal-50); color: var(--teal-700); font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: var(--pill); white-space: nowrap; }
.demo-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 14px; list-style: none; }
.demo-days li { display: grid; place-items: center; gap: 0; padding: 6px 0; border-radius: 12px; font-size: .78rem; color: var(--ink-3); background: var(--bg); line-height: 1.5; }
.demo-days b { font-size: 1rem; color: var(--ink); font-weight: 700; }
.demo-days .is-today { background: var(--teal-700); color: #CFE3E0; }
.demo-days .is-today b { color: #fff; }
.demo-filters { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; list-style: none; }
.demo-filters li { font-size: .78rem; padding: 2px 10px; border-radius: var(--pill); border: 1px solid var(--line); color: var(--ink-2); }
.demo-filters li:first-child { border-color: var(--teal-700); color: var(--teal-700); font-weight: 650; }
.demo-list { list-style: none; display: grid; gap: 8px; }
.slot {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-md); background: var(--bg); border: 1px solid transparent;
}
.slot-time { font-weight: 750; font-size: 1rem; color: var(--teal-700); min-width: 3.4em; text-align: center; padding-inline-end: 12px; border-inline-end: 2px solid var(--teal-100); line-height: 1.6; }
.slot-info { min-width: 0; line-height: 1.55; }
.slot-info strong { display: block; font-size: .95rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-info span { font-size: .8rem; color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 650; padding: 2px 10px; border-radius: var(--pill); white-space: nowrap; line-height: 1.8; }
.pill-ok { background: var(--teal-100); color: var(--teal-700); }
.pill-done { background: #E7ECEB; color: var(--ink-3); }
.pill-new { background: var(--saffron); color: var(--teal-950); }
.pill-walkin { background: transparent; color: var(--teal-700); border: 1px dashed var(--teal-200); }
.slot.is-done { opacity: .72; }
.slot.is-new { background: var(--saffron-100); border-color: rgba(255, 161, 46, .55); }
.slot.is-new .slot-time { color: #9A5300; border-inline-end-color: rgba(255, 161, 46, .5); }
.demo-toast {
  position: absolute; inset-inline-start: -8px; bottom: -22px;
  display: flex; align-items: center; gap: 12px; max-width: 290px;
  background: var(--teal-900); color: #fff; padding: 12px 16px; border-radius: 16px;
  box-shadow: 0 18px 40px -14px rgba(10, 47, 47, .6); line-height: 1.6;
}
.demo-toast .icon { width: 22px; height: 22px; color: var(--saffron); }
.demo-toast strong { display: block; font-size: .9rem; }
.demo-toast span { font-size: .78rem; color: #B9D3D0; }
@media (max-width: 479.98px) {
  .demo-card { padding-bottom: 54px; }
  .demo-toast { inset-inline: 12px; max-width: none; bottom: -22px; }
  .slot { gap: 8px; padding: 9px 10px; }
  .slot-time { padding-inline-end: 8px; min-width: 3em; font-size: .92rem; }
}

/* Load sequence: rows settle, a new booking lands, the toast confirms it. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .demo-list .slot { animation: slot-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 200ms); }
  .js .hero .demo-list .slot.is-new { animation: slot-new .7s var(--ease) both 1.35s; }
  .js .hero .demo-toast { animation: toast-in .55s var(--ease) both 2s; }
  @keyframes slot-in { from { opacity: 0; transform: translateY(8px); } }
  @keyframes slot-new {
    0% { opacity: 0; transform: scale(.96); box-shadow: 0 0 0 0 rgba(255, 161, 46, .0); }
    60% { opacity: 1; transform: scale(1.015); box-shadow: 0 0 0 8px rgba(255, 161, 46, .18); }
    100% { opacity: 1; transform: none; box-shadow: 0 0 0 0 rgba(255, 161, 46, 0); }
  }
  @keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }
}

/* ---------- Before / after ---------- */
.contrast-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .contrast-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.contrast-col { border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); }
.contrast-col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.contrast-col ul { list-style: none; display: grid; gap: 14px; }
.contrast-col li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; line-height: 1.85; }
.contrast-col li .icon { margin-top: .32em; }
.contrast-paper { background: #FBFAF6; border: 1px solid #E6E2D6; color: var(--ink-2); }
.contrast-paper h3 { padding-bottom: 14px; border-bottom: 3px double #E2DCCB; }
.contrast-paper ul { gap: 0; }
.contrast-paper li { padding-block: 12px; border-bottom: 1px solid #ECE7DA; }
.contrast-paper li:last-child { border-bottom: 0; }
.contrast-digital ul { padding-top: 6px; }
.contrast-paper .icon { color: #B4533A; }
.contrast-digital { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.contrast-digital .icon { color: var(--teal-700); }

/* ---------- Steps (real sequences only) ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; }
.steps > li {
  counter-increment: step; position: relative; display: grid; grid-template-columns: auto 1fr; gap: 18px;
  padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
}
.steps > li::before {
  content: counter(step, persian); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px; background: var(--teal-700); color: #fff;
  font-weight: 800; font-size: 1.15rem; line-height: 1;
}
.steps h3 { margin-bottom: .2em; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--ink-2); }
@media (min-width: 900px) {
  .steps-row { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .steps-row > li { grid-template-columns: 1fr; border-radius: 0; border-inline-start: 0; padding: 24px 22px; }
  .steps-row > li:first-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; border-inline-start: 1px solid var(--line); }
  .steps-row > li:last-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
}

/* ---------- Features (grouped by audience) ---------- */
.audience-grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .audience-grid { grid-template-columns: 1.35fr 1fr; gap: 32px; } }
.audience {
  border-radius: var(--radius-xl); padding: clamp(22px, 3.5vw, 40px);
  background: var(--surface); border: 1px solid var(--line);
}
.audience-center { background: var(--teal-900); border-color: var(--teal-900); color: #CFE3E0; }
.audience-center h3, .audience-center .feature-list strong { color: #fff; }
.audience-center .feature-list .icon { color: var(--saffron); background: rgba(255, 255, 255, .07); }
.audience-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.audience-head h3 { font-size: 1.35rem; margin: 0; }
.audience-head p { margin: 0; font-size: .92rem; opacity: .85; }
.feature-list { list-style: none; display: grid; gap: 18px; }
@media (min-width: 640px) { .audience-center .feature-list { grid-template-columns: 1fr 1fr; gap: 22px 28px; } }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.feature-list .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; color: var(--teal-700); background: var(--teal-50); }
.feature-list strong { display: block; font-weight: 700; margin-bottom: 2px; color: var(--ink); line-height: 1.6; }
.feature-list p { margin: 0; font-size: .95rem; line-height: 1.85; }
.audience-customer .feature-list p { color: var(--ink-2); }

/* ---------- Industry links ---------- */
.industry-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .industry-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .industry-grid { grid-template-columns: repeat(4, 1fr); } }
.industry-card {
  display: flex; flex-direction: column; gap: 6px; padding: 22px; min-height: 100%;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.industry-card:hover { border-color: var(--teal-700); box-shadow: var(--shadow-1); color: var(--ink); }
.industry-card .icon { width: 28px; height: 28px; color: var(--teal-700); margin-bottom: 8px; }
.industry-card h3, .industry-card h2 { margin: 0; font-size: 1.1rem; line-height: 1.6; }
.industry-card p { margin: 0; color: var(--ink-2); font-size: .94rem; line-height: 1.85; flex: 1; }
.industry-card .more { margin-top: 10px; color: var(--teal-700); font-weight: 650; font-size: .92rem; }

/* ---------- Apps ---------- */
.apps-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .apps-grid { grid-template-columns: repeat(3, 1fr); } }
.app-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 96px; }
.icon-lg { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--teal-50); color: var(--teal-700); }
.app-card h3 { margin: 6px 0 0; }
.app-card p { color: var(--ink-2); margin: 0; flex: 1; }
.app-card ul { list-style: none; display: grid; gap: 6px; color: var(--ink-2); font-size: .95rem; margin: 4px 0 8px; }
.app-card ul li { display: flex; gap: 8px; align-items: center; }
.app-card ul .icon { color: var(--teal-700); width: 1.1em; height: 1.1em; }
.app-card .btn { align-self: flex-start; }
.app-card:target { border-color: var(--saffron); box-shadow: 0 0 0 4px var(--saffron-100); }
.platform { font-size: .82rem; color: var(--ink-3); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 52rem; }
.faq.center { margin-inline: auto; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.faq-item[open] { border-color: var(--teal-200); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; min-height: 56px; font-weight: 650; font-size: 1.02rem; line-height: 1.7;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-inline: 4px;
  border-right: 2px solid var(--teal-700); border-bottom: 2px solid var(--teal-700);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-a { padding: 0 20px 18px; color: var(--ink-2); }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--teal-900); color: #CFE3E0; border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 56px); display: grid; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 220px; height: 220px; border-radius: 40px;
  border: 28px solid rgba(255, 161, 46, .14); transform: rotate(14deg); pointer-events: none;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #B9D3D0; max-width: 40rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.cta-actions .btn-on-dark .icon { color: var(--saffron); }

/* ---------- Inner page hero & breadcrumbs ---------- */
.page-hero { padding-block: clamp(20px, 4vw, 40px) clamp(36px, 6vw, 64px); border-bottom: 1px solid var(--line); background: linear-gradient(to bottom, var(--teal-50), var(--bg)); }
.page-hero h1 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.9rem); max-width: 22em; }
.page-hero .lead { max-width: 44rem; margin-bottom: 1.4em; }
.page-hero .hero-actions { margin-bottom: 0; }
.breadcrumbs { margin-bottom: 18px; font-size: .9rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--ink-3); }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin-inline: 10px; color: var(--teal-200); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal-700); text-decoration: underline; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-3); font-size: .92rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Long-form layout ---------- */
.doc-layout { display: grid; gap: 40px; }
.doc-layout > * { min-width: 0; }
@media (min-width: 1080px) { .doc-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start; } }
.toc { font-size: .95rem; }
@media (min-width: 1080px) { .toc { position: sticky; top: 96px; } }
.toc details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 6px 16px; }
.toc summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.toc ol { list-style: none; display: grid; gap: 2px; padding-bottom: 10px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-2); line-height: 1.6; }
.toc a:hover { background: var(--teal-50); color: var(--teal-700); }

.prose { max-width: 46rem; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem); margin-top: 2.1em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; font-size: 1.18rem; scroll-margin-top: 96px; }
.prose p, .prose li { color: #24403F; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin-bottom: 1.2em; display: grid; gap: .45em; }
.prose ol { list-style: persian; }
.prose li::marker { color: var(--teal-700); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose figure { margin: 1.6em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; background: var(--surface); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.prose th, .prose td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.8; }
.prose th { background: var(--teal-50); font-weight: 700; color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; }
.table-wrap table { margin: 0; min-width: 520px; }

.callout { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px 20px; border-radius: var(--radius-md); background: var(--teal-50); border-inline-start: 4px solid var(--teal-700); margin: 1.6em 0; }
.callout .icon { color: var(--teal-700); margin-top: .35em; }
.callout p { margin: 0; }
.callout-warn { background: var(--saffron-100); border-inline-start-color: var(--saffron); }
.callout-warn .icon { color: #9A5300; }

.guide-steps, .prose ol.guide-steps { list-style: none; counter-reset: gstep; padding-inline-start: 0; display: grid; gap: 0; margin: 1.4em 0 2em; padding: 0; }
.guide-steps > li { counter-increment: gstep; position: relative; padding-inline-start: 58px; padding-bottom: 26px; }
.guide-steps > li::before {
  content: counter(gstep, persian); position: absolute; inset-inline-start: 0; top: 0;
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--teal-700); color: var(--teal-700); font-weight: 800;
}
.guide-steps > li::after { content: ""; position: absolute; inset-inline-start: 18px; top: 44px; bottom: 6px; width: 2px; background: var(--teal-100); }
.guide-steps > li:last-child::after { display: none; }
.guide-steps h3 { margin: 4px 0 6px; font-size: 1.12rem; }
.guide-steps p { margin-bottom: .6em; }

/* SMS templates */
.sms { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md) var(--radius-md) 4px var(--radius-md); padding: 16px 18px 14px; margin: 12px 0 18px; }
.sms p { margin: 0 0 8px; color: var(--ink); white-space: pre-line; }
.sms-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .82rem; color: var(--ink-3); }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--teal-700); font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer; }
.copy-btn:hover { border-color: var(--teal-700); }
.copy-btn .icon { width: 1.05em; height: 1.05em; }
.copy-btn[data-copied] { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }

/* ---------- Split (text + illustration) ---------- */
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split.reverse > :first-child { order: 2; } }
.check-list { list-style: none; display: grid; gap: 12px; margin: 0 0 1.2em; }
.check-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.check-list .icon { color: var(--teal-700); margin-top: .34em; }
.check-list strong { color: var(--ink); }

.pain-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .pain-grid { grid-template-columns: repeat(3, 1fr); } }
.pain { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.pain h3 { font-size: 1.05rem; margin-bottom: .3em; }
.pain p { margin: 0; color: var(--ink-2); font-size: .96rem; }

/* Mini UI snippet (feature illustrations) */
.ui-snippet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 20px; box-shadow: var(--shadow-1); max-width: 520px; width: 100%; margin-inline: auto; }
.ui-snippet h3 { font-size: 1rem; margin-bottom: 12px; }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg); margin-bottom: 8px; font-size: .92rem; line-height: 1.6; }
.ui-row:last-child { margin-bottom: 0; }
.ui-row b { font-weight: 650; }
.ui-row small { color: var(--ink-3); font-size: .8rem; display: block; }
.ui-row .price { color: var(--teal-700); font-weight: 700; white-space: nowrap; }
.shift-bar { display: grid; grid-template-columns: 4.5em 1fr; gap: 10px; align-items: center; margin-bottom: 10px; font-size: .86rem; }
.shift-track { position: relative; height: 26px; border-radius: 8px; background: repeating-linear-gradient(to left, var(--bg) 0 calc(100%/12 - 1px), var(--line) calc(100%/12 - 1px) calc(100%/12)); }
.shift-track i { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; background: var(--teal-700); }
.shift-track i.alt { background: var(--saffron); }

/* ---------- Feature detail blocks ---------- */
.feature-block { display: grid; gap: 28px; padding-block: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.feature-block:last-child { border-bottom: 0; }
@media (min-width: 960px) { .feature-block { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } .feature-block:nth-child(even) > :first-child { order: 2; } }
.feature-block h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.feature-block p { color: var(--ink-2); }

.jump-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 24px; }
.jump-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink-2); font-size: .92rem; font-weight: 550; }
.jump-links a:hover { border-color: var(--teal-700); color: var(--teal-700); }

/* ---------- Blog ---------- */
.post-grid { display: grid; gap: 18px; }
@media (min-width: 800px) { .post-grid { grid-template-columns: 1fr 1fr; } }
.post-card { display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .18s var(--ease); }
.post-card:hover { border-color: var(--teal-700); color: var(--ink); }
.post-card h2, .post-card h3 { font-size: 1.22rem; margin: 0; line-height: 1.6; }
.post-card p { color: var(--ink-2); margin: 0; flex: 1; }
.post-card .post-kind { font-size: .85rem; color: var(--teal-700); font-weight: 650; }

.related { margin-top: 3em; padding-top: 2em; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.3rem; margin-top: 0; }
.related ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.related a { font-weight: 600; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.contact-list .icon { color: var(--teal-700); }
.contact-list a { font-weight: 650; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.not-found .slot-big { display: inline-flex; gap: 10px; align-items: center; padding: 10px 22px; border-radius: var(--pill); background: var(--saffron-100); color: #9A5300; font-weight: 750; margin-bottom: 18px; }
.not-found .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-950); color: #B9D3D0; padding-top: clamp(48px, 7vw, 80px); margin-top: 0; font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; } }
.footer-brand p { margin: 16px 0 18px; max-width: 26rem; line-height: 1.9; }
.footer-apps { display: grid; gap: 8px; justify-items: start; }
.store-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; }
.store-link:hover { border-color: var(--saffron); color: #fff; }
.store-link .icon { color: var(--saffron); }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 4px; }
.footer-col a { color: #B9D3D0; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-note { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.footer-contact .icon { color: var(--saffron); width: 1.1em; height: 1.1em; }
.trust-badges { margin-top: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #B9D3D0; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack-lg > * + * { margin-top: clamp(40px, 6vw, 72px); }
.muted { color: var(--ink-3); }
.honest-note { font-size: .92rem; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .toc, .copy-btn { display: none !important; }
  body { background: #fff; }
}
