@font-face {
  font-family: 'IranSans';
  src: url('Font/IRANSans-web.woff2') format('woff2'),
    url('Font/IRANSans-web.woff') format('woff'),
    url('Font/IRANSans-web.ttf') format('truetype'),
    url('Font/IRANSans-web.eot') format('embedded-opentype');
  /* PERF: without this the whole page renders invisible text until the font
     arrives — `* { font-family: 'IranSans' !important }` below means there is
     no element the FOIT does not cover. `swap` paints immediately in the
     fallback and restyles when IranSans lands.
     The woff2 also moves first in the list and the IE-only .eot last, with the
     format keyword browsers actually recognise ('eot' is not one). */
  font-display: swap;
}

/* Shared footer intrinsic-width fix, verified at 768 and 1024px. */
@media(min-width:701px) and (max-width:1199px) {
  .lp-page .site-footer .footer-inner { width:100%; min-width:0; }
  .lp-page .site-footer .footer-inner > div { min-width:0!important; }
}

* {
  font-family: 'IranSans' !important;
  box-sizing: border-box;
}

/* Every in-page anchor on this site used to land UNDER the header.
   #mainHeader is `position: fixed` on the homepage and the blog, `sticky` on
   the other thirteen page types, and 64px tall in both cases — and a fragment
   jump aligns the target's top with the viewport's top, which is the top of the
   header, not the top of the visible page. So «دریافت دمو» in the header, the
   FAQ deep links and every /page#section URL arrived with their first ~64px
   hidden behind the bar.

   One declaration fixes all of them, including links the browser follows with
   no JavaScript involved. 88px = the 64px bar + a breathing gap, so the target
   reads as the top of a section rather than as something jammed under a rail.
   `scroll-behavior` is deliberately NOT set here: it would apply to every
   programmatic scroll on the site, including the admin panel's. */
html {
  scroll-padding-top: 88px;
}

td,
th {
  white-space: nowrap;
}

/* ========================================
   Utility Classes
   ======================================== */
.glass-box {
  background: linear-gradient(259.02deg, rgba(255, 255, 255, 0.064) 23.47%, rgba(255, 255, 255, 0.16) 97.11%);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 12px;
  justify-items: center;
  justify-content: center;
}

.glass-icon-box {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sec3-bg {
  background: linear-gradient(69.27deg, #67A2FF 2.95%, #2E67C3 75%, #20519F 111.08%);
  overflow: hidden;
  min-height: 400px;
}

.cheque-sec3-bg {
  background: linear-gradient(69.27deg, #C084FC 2.95%, #9333EA 75%, #7E22CE 111.08%);
  overflow: hidden;
  min-height: 400px;
}

.asset-sec3-bg {
  background: linear-gradient(69.27deg, #5172c3 2.95%, #354766 75%, #1d2a4a 111.08%);
  overflow: hidden;
  min-height: 400px;
}

.white-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  transition: all 0.5s;
}

.white-btn svg {
  transition: all 0.5s;
}

.white-btn:hover svg {
  color: white !important;
}

.border-btn:hover svg {
  color: #2E67C3 !important;
}

.text-gradient {
  background: linear-gradient(180deg, #27272A -26.79%, #FFFFFF 100.46%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.blog-section {
  /* `contain` scales the image to FIT the box, and with no background-repeat it
     defaults to `repeat` — so at any viewport where the masthead is not the
     image's aspect ratio the texture visibly TILED. Most obvious on phones,
     where the box is narrow and tall. `cover` + no-repeat gives one clean
     fill at every size. */
  background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
              url('../images/blog-bg.webp') center / cover no-repeat;
  background-blend-mode: hard-light;
}

.category-btn.active {
  background-color: rgba(235, 243, 254, 1) !important;
  color: rgba(60, 131, 245, 1) !important;
  border-radius: 100px;
}

.blog-image {
  width: 25%;
  border-radius: 8px;
}

.article-tag {
  background-color: rgba(235, 243, 254, 1) !important;
  color: rgba(60, 131, 245, 1) !important;
  border-radius: 100px;
  min-width: 90px;
}

.rating-stars button:hover,
.rating-stars button:hover~button {
  color: #eab308 !important;
}

.img-shadow {
  position: relative;
  display: inline-block;
}

.img-shadow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  width: 70%;
  height: 20px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  filter: blur(8px);
}

/* ========================================
   Header Styles
   ======================================== */
header.scrolled {
  background-color: white !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

header.scrolled nav a {
  color: #374151 !important;
}

header.scrolled nav a:hover {
  color: #3C83F5 !important;
}

/* Dropdown is a light surface, independent of the surrounding header palette. */
#mainHeader #desktopServicesMenu a { color: #334155 !important; }
#mainHeader #desktopServicesMenu a:hover,
#mainHeader #desktopServicesMenu a:focus-visible { color: #0759c8 !important; background: #eff6ff; }
#mainHeader #desktopServicesMenu { max-height: min(75vh, 680px); overflow-y: auto; }

header.scrolled #servicesBtn {
  color: #374151 !important;
}

header.scrolled nav .border-btn {
  color: rgba(82, 82, 91, 1) !important;
  border: 1px solid rgb(191, 191, 191) !important;
  background-color: transparent;
}

header.scrolled .white-btn {
  background-color: #3C83F5 !important;
  color: white !important;
}

header.scrolled .white-btn:hover {
  background-color: #2A5CAB !important;
}

/* ========================================
   Section Layout  (was: Snap Scroll Styles)
   ========================================

   S1 — the snap deck is gone, and so is the clamp it needed.

   `html.snap-scroll` was the container that made this a one-section-per-wheel
   page. No template and no script ever applied that class, so the snapping had
   not worked for a long time — but the `.snap-section` rules are not nested
   inside that selector, so every section still carried
   `min-height: 100dvh; overflow: hidden`. The page was paying the whole cost of
   a feature it did not have:

     * any section taller than the viewport was CLIPPED, with the overflow
       unreachable — which is why views/partials/faq.ejs had grown its own inner
       `overflow-y-auto` scroller, a nested scroll area that steals the page's
       scroll on a phone;
     * a problem → product → proof sequence cannot be read as a sequence when
       each step is forced to exactly one screen;
     * and `@supports not (height:100dvh)` hard-clamped `height` as well, so an
       older browser lost the bottom of every section outright.

   Sections now size to their content and space themselves with padding. The
   class names stay (about twenty templates use them) and `.footer-section` keeps
   its own rule so the footer's internal layout is unchanged.
   ======================================== */
.snap-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.snap-section.hero-section {
  justify-content: flex-start;
  padding-top: 10px;
  padding-bottom: clamp(24px, 4vw, 48px);
  margin-top: 0;
}

.snap-section.content-section {
  justify-content: center;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.snap-section.footer-section {
  height: auto;
  max-height: none;
  overflow: visible;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 20;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.snap-nav {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 100;
}

.snap-nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(60, 131, 245, 0.3);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.snap-nav-dot:hover,
.snap-nav-dot.active {
  background-color: #3C83F5;
  border-color: #3C83F5;
  transform: scale(1.2);
}

.section-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.section-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

/* ========================================
   Modal & Animation Styles
   ======================================== */
.tick-animation {
  animation: draw-tick 0.6s ease-in-out forwards;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
}

@keyframes draw-tick {
  0% {
    stroke-dashoffset: 100;
    opacity: 0;
  }

  60% {
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.pooyesh-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-family: system-ui, -apple-system, sans-serif;
}

.pooyesh-modal.active {
  opacity: 1;
  visibility: visible;
}

.pooyesh-modal-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin: 1rem;
}

.pooyesh-modal.active .pooyesh-modal-content {
  transform: translateY(0);
}

/* Success Animation */
.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid #4CAF50;
  animation: border-animation 0.5s ease-out;
}

.icon-line {
  height: 5px;
  background-color: #4CAF50;
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
  animation-fill-mode: forwards;
}

.icon-line.line-tip {
  top: 46px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

.icon-circle {
  top: -4px;
  left: -4px;
  z-index: 10;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: absolute;
  box-sizing: content-box;
  border: 4px solid rgba(76, 175, 80, 0.5);
  animation: circle-animation 0.5s ease-out;
}

.icon-fix {
  top: 8px;
  width: 5px;
  left: 26px;
  z-index: 1;
  height: 85px;
  position: absolute;
  transform: rotate(-45deg);
  background-color: white;
}

@keyframes border-animation {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes circle-animation {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes icon-line-tip {
  0% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  54% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  70% {
    width: 50px;
    left: -8px;
    top: 37px;
  }

  84% {
    width: 17px;
    left: 21px;
    top: 48px;
  }

  100% {
    width: 25px;
    left: 14px;
    top: 45px;
  }
}

@keyframes icon-line-long {
  0% {
    width: 0;
    right: 46px;
    top: 54px;
  }

  65% {
    width: 0;
    right: 46px;
    top: 54px;
  }

  84% {
    width: 55px;
    right: 0px;
    top: 35px;
  }

  100% {
    width: 47px;
    right: 8px;
    top: 38px;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ========================================
   Survey Popup Styles
   ======================================== */
.survey-popup {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.survey-popup.hidden {
  display: none;
}

.survey-popup-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.survey-popup-container {
  position: relative;
  background: white;
  border-radius: 1.5rem;
  width: 100%;
  max-width: 500px;
  max-height: 95vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.survey-options {
  max-height: 50vh;
  overflow-y: scroll;
}

.result-content {
  max-height: 50vh;
  overflow-y: scroll;
}

.survey-options::-webkit-scrollbar,
.result-content::-webkit-scrollbar {
  width: 4px;
}

.survey-options::-webkit-scrollbar-track,
.result-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.survey-options::-webkit-scrollbar-thumb,
.result-content::-webkit-scrollbar-thumb {
  background: #3C83F5;
  border-radius: 4px;
}

.survey-step {
  display: none;
}

.survey-step.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

/* Survey Header */
.survey-header {
  text-align: center;
  margin-bottom: 2rem;
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 2px solid #d4d4d8;
  background: white;
  color: #d4d4d8;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.step-number.active {
  border-color: #3C83F5;
  background: #3C83F5;
  color: white;
}

.step-number.completed {
  border-color: #10b981;
  background: #10b981;
  color: white;
}

.step-line {
  width: 3rem;
  height: 2px;
  background: #d4d4d8;
  transition: background 0.2s ease;
}

.step-line.active {
  background: #3C83F5;
}

.survey-subtitle {
  color: #71717a;
  font-size: 0.875rem;
}

/* Survey Options */
.single-option-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1rem;
}

.single-option-btn {
  border: 2px solid #d4d4d8;
  border-radius: 0.75rem;
  padding: 10px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: right;
  width: 100%;
}

.single-option-btn:hover {
  border-color: #3C83F5;
  transform: translateY(-2px);
  background: #f8fafc;
}

.single-option-btn.selected {
  border-color: #3C83F5;
  background: #eff6ff;
}

.single-option-box {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  border: 2px solid #d4d4d8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
}

.single-option-btn.selected .single-option-box {
  border-color: #3C83F5;
  background: #3C83F5;
}

.single-option-btn.selected .single-option-box::after {
  content: '';
  width: 0.75rem;
  height: 0.75rem;
  background: white;
  border-radius: 0.125rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.single-option-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #18181b;
  text-align: right;
  flex-grow: 1;
}

/* Error Message */
.error-message {
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  animation: shake 0.3s ease-in-out;
}

.error-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #dc2626;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Survey Footer */
.survey-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid #e4e4e7;
}

.survey-footer.single-button {
  justify-content: flex-end;
}

.survey-btn-primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #3C83F5;
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.survey-btn-primary:hover:not(:disabled) {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(60, 131, 245, 0.3);
}

.survey-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.survey-btn-secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #f4f4f5;
  color: #52525b;
  border: none;
  border-radius: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.survey-btn-secondary:hover:not(:disabled) {
  background: #e4e4e7;
  transform: translateY(-2px);
}

.survey-btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading State */
.loading-container {
  text-align: center;
  padding: 3rem 1rem;
}

.loading-spinner {
  margin-bottom: 1.5rem;
}

.loading-spinner svg {
  animation: spin 1s linear infinite;
}

.loading-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #18181b;
  margin-bottom: 0.5rem;
}

.loading-subtitle {
  color: #71717a;
}

/* ========================================
   Result Popup Styles
   ======================================== */
.result-header {
  text-align: center;
  margin-bottom: 2rem;
}

.success-icon {
  margin-bottom: 1rem;
}

.result-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #18181b;
  margin-bottom: 0.5rem;
}

.result-subtitle {
  color: #71717a;
  font-size: 0.875rem;
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.software-card {
  border: 2px solid #e4e4e7;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: block;
  position: relative;
}

.software-card:hover {
  border-color: #3C83F5;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(60, 131, 245, 0.1);
}

.software-icon {
  margin-bottom: 1rem;
  color: #3C83F5;
}

.software-icon svg {
  width: 30px !important;
}

.software-name {
  font-size: 0.7rem;
}

.software-card {
  padding: 0.5rem;
}

.software-name {
  font-size: 1rem;
  font-weight: 600;
  color: #18181b;
  margin-bottom: 0.5rem;
}

.software-description {
  font-size: 0.875rem;
  color: #71717a;
}

.result-note {
  text-align: center;
  color: #71717a;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.result-footer {
  text-align: center;
}

/* Recommended Product */
.software-card.recommended {
  background-color: #EFF6FF !important;
  border: 2px solid #2563EB !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.software-card.recommended:hover {
  background-color: #DBEAFE !important;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.software-card.recommended .software-name {
  color: #1E40AF !important;
}

.software-card.recommended .software-icon svg path {
  stroke: #2563EB !important;
}

.selected-tick {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 10;
  animation: popIn 0.3s ease-out;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1024px) {
  .section-title {
    margin-top: 10px !important;
  }
}

@media (max-width: 768px) {
  /* S1 — the snap overrides that used to live here are gone with the deck.
     Sections size to content at every width now, so there is nothing to undo. */
  .snap-section.content-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .snap-nav {
    display: none;
  }

  p {
    font-size: 0.75rem;
  }

  h1 {
    font-weight: 800;
  }
}

@media (max-width: 640px) {
  .pooyesh-modal-content {
    padding: 1.5rem;
  }

  .modal-title {
    font-size: 1rem;
  }

  .success-checkmark {
    width: 70px;
    height: 70px;
  }

  .check-icon {
    width: 70px;
    height: 70px;
  }

  .check-icon .icon-circle {
    width: 70px;
    height: 70px;
    top: -2px;
    left: -2px;
    border-width: 2px;
  }

  .icon-fix {
    height: 75px;
    display: none;
  }

  .icon-line.line-tip {
    top: 38px;
    left: 12px;
    width: 22px;
    height: 4px;
  }

  .icon-line.line-long {
    top: 32px;
    right: 9px;
    width: 38px;
    height: 4px;
  }

  .survey-popup-container {
    padding: 1.5rem;
    max-width: 90%;
    max-height: 85vh;
  }

  .step-number {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
  }

  .step-line {
    width: 1.5rem;
  }

  .step-indicator {
    gap: 0.25rem;
  }

  .survey-header {
    margin-bottom: 1.5rem;
  }

  .survey-subtitle {
    font-size: 0.75rem;
  }

  .single-option-btn {
    padding: 8px;
    gap: 0.5rem;
    min-height: 48px;
  }

  .single-option-text {
    font-size: 0.75rem;
    line-height: 1.2;
    word-break: break-word;
  }

  .single-option-box {
    width: 1.25rem;
    height: 1.25rem;
  }

  .single-option-btn.selected .single-option-box::after {
    width: 0.6rem;
    height: 0.6rem;
  }

  #concernsInput {
    height: 120px;
    font-size: 0.75rem;
  }

  .survey-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    gap: 0.5rem;
  }

  .survey-btn-primary,
  .survey-btn-secondary {
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    min-height: 44px;
  }

  .survey-btn-primary svg,
  .survey-btn-secondary svg {
    width: 1rem;
    height: 1rem;
  }

  .loading-container {
    padding: 2rem 1rem;
  }

  .loading-spinner svg {
    width: 2.5rem;
    height: 2.5rem;
  }

  .loading-title {
    font-size: 1rem;
  }

  .loading-subtitle {
    font-size: 0.75rem;
  }

  .error-message {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  #otherFieldInput {
    height: 2.5rem;
    font-size: 0.75rem;
    padding: 0 0.75rem;
    min-height: 44px;
  }

  .single-option-grid {
    gap: 8px;
  }

  .software-icon {
    margin-bottom: 0.5rem;
  }

  .software-icon svg {
    width: 30px !important;
  }

  .software-name {
    font-size: 0.7rem;
  }

  .software-card {
    padding: 0.5rem;
  }
}

@media (max-width: 380px) {
  .survey-popup-container {
    padding: 1rem;
  }

  .step-number {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.7rem;
  }

  .step-line {
    width: 1rem;
  }

  .modal-title {
    font-size: 1.125rem;
  }

  .single-option-btn {
    padding: 6px;
  }

  .single-option-text {
    font-size: 0.7rem;
  }

  .single-option-box {
    width: 1.125rem;
    height: 1.125rem;
  }

  .survey-footer {
    flex-direction: column;
  }

  .survey-footer:not(.single-button) {
    flex-direction: column-reverse;
  }

  .survey-btn-primary,
  .survey-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .success-checkmark {
    width: 60px;
    height: 60px;
  }

  .check-icon {
    width: 60px;
    height: 60px;
  }

  .check-icon .icon-circle {
    width: 60px;
    height: 60px;
  }

  .icon-line.line-tip {
    top: 32px;
    left: 8px;
    width: 18px;
    height: 5px;
  }

  .icon-line.line-long {
    top: 27px;
    right: 6px;
    width: 32px;
    height: 5px;
  }
}

/* Button Styles */
.start-survey-btn {
  background: linear-gradient(135deg, #3C83F5 0%, #2A5CAB 100%);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
  display: inline-flex section-title;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  min-width: 120px;
}

.start-survey-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(60, 131, 245, 0.3);
}

#closeResult.survey-btn-primary {
  background-color: #2563EB;
}

#closeResult.survey-btn-primary:hover {
  background-color: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.faq-section::-webkit-scrollbar {
  width: 4px;
}

.faq-section::-webkit-scrollbar-track {
  background-color: rgb(233, 233, 233);
  border-radius: 4px;
}

.faq-section::-webkit-scrollbar-thumb {
  background-color: rgb(207, 207, 208);
  border-radius: 4px;
}

/* panel sidebar */
#sidebar {
  transition: transform 0.3s ease-in-out;
}

@media (max-width: 1023px) {
  #sidebar {
    transform: translateX(100%);
  }

  #sidebar.show {
    transform: translateX(0);
  }

  main {
    margin-right: 0 !important;
  }
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 35;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

#training-filter-section .filter-btn.active:hover,
#download-filter-section .filter-btn.active:hover {
  color: rgb(182, 225, 247);
}


.faq-section::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
  width: 4px;
}

.faq-section::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
  background-color: rgb(233, 233, 233);
  border-radius: 4px;
}

.faq-section::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
  background-color: rgb(207, 207, 208);
  border-radius: 4px;
}


/* Swiper CSS and JS  */
.swiper {
  padding: 10px 5px !important;
  overflow: visible !important;
}

.swiper-wrapper {
  padding: 5px 0 15px 0;
}

.swiper-slide {
  height: auto !important;
}

.swiper-button-next,
.swiper-button-prev {
  background-color: white;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  border: 1px solid #e4e4e7;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px;
  font-weight: bold;
  color: #3f3f46;
}

/* استایل دکمه‌های صفحه‌بندی (dots) */
.swiper-pagination-bullet {
  background-color: #a1a1aa;
  opacity: 0.6;
  width: 8px;
  height: 8px;
  margin: 0 6px;
  transition: all 0.2s;
}

.swiper-pagination-bullet-active {
  background: #A176D0 !important;
  opacity: 1;
  width: 24px;
  border-radius: 10px;
}

.swiper-button-next,
.swiper-button-prev {
  width: 30px !important;
  height: 30px !important;
  top: 59% !important;
}

.swiper-button-next,
.swiper-rtl .swiper-button-prev {
  right: 2% !important;
}

.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after,
.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
  content: '' !important;
}

.swiper-horizontal>.swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  bottom: 0 !important;
}

/* ریسپانسیو برای دکمه‌ها در موبایل */
@media (max-width: 640px) {

  .swiper-button-next,
  .swiper-button-prev {
    top: 61% !important;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 32px;
    height: 32px;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 16px;
  }

  .service-content-wrapper {
    width: 75%;
  }

  #pageTitle {
    font-size: medium;
  }
}

@media (min-width: 768px) {
  .swiper {
    overflow: hidden !important;
  }
}

.glow {
  transition: all 1500ms;
}

.group:hover .glow-1 {
  /* transform: translate(-40px, 30px) scale(1.05); */
  bottom: -4%;
  right: -25%;
}

.group:hover .glow-2 {
  bottom: 10%;
  right: 20%;
}

.group:hover .glow-3 {
  /* transform: translate(-20px, -25px) scale(1.05); */
  bottom: 40%;
  right: 65%;
}

.service-card {
  transition: all 1500ms;
}

.service-glow {
  transition: all 1500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-glow-1 {
  bottom: -4%;
  right: -25%;
}

.service-card:hover .service-glow-2 {
  bottom: 10%;
  right: 20%;
}

.service-card:hover .service-glow-4 {
  transform: scale(1.08);
  opacity: 0.1;
}

.service-icon-wrapper {
  transition: all 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon-wrapper {
  transform: scale(1.05);
}

.service-icon {
  transition: all 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon path {
  transition: stroke 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.service-text {
  transition: all 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* #heroLeadMessage div {
  background: #ffffffb3;
  padding: 5px;
  border-radius: 22px;
  color: #22c55e;
} */

#heroLeadMessage {
  background: #ffffffb3;
  padding: 5px;
  border-radius: 8px;
  color: #22c55e;
}

#servicesMenu {
  width: 225px !important;
}

/* search input in blog */
.search-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 48px;
  border: 2px solid #e4e4e7;
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input:not(:placeholder-shown)+label {
  display: none;
}

.clear-search {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  display: none;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s;
  z-index: 10;
}

.clear-search:hover {
  background: #f3f4f6;
  color: #6b7280;
}

.clear-search.visible {
  display: block;
}

/* جعبه نتایج جستجو */
.search-results-box {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-results-box.active {
  display: block;
}

.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f3f4f6;
}

.search-result-item:hover {
  background: #f9fafb;
}

.search-result-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
  font-size: 14px;
}

.search-result-category {
  font-size: 11px;
  color: #6b7280;
  display: inline-block;
  padding: 2px 8px;
  background: #f3f4f6;
  border-radius: 12px;
}

.search-result-excerpt {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.4;
}

.search-highlight {
  background-color: #fef3c7;
  color: #d97706;
  font-weight: 500;
}

.no-results {
  padding: 24px;
  text-align: center;
  color: #6b7280;
}

/* sidebar for user dashboard */
.custom-scrollbar {
  max-height: 38vh;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* sidebar for admin dashboard */
.custom-scrollbar-admin {
  max-height: 60vh;
}

.custom-scrollbar-admin::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.custom-scrollbar-admin::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.custom-scrollbar-admin::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.custom-scrollbar-admin::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  html {
    font-size: 13px;
  }
}

#training-filter-section {
  flex-wrap: nowrap !important;
  white-space: nowrap;
  gap: 10px;
  overflow-x: scroll;
  padding-bottom: 10px;
}

.services-logo img {
  max-width: 100px;
  min-width: 60px;
  max-height: 54px;
  margin: 0px 12px;
  filter: grayscale(100%);
  transition-duration: 0.3s;
  vertical-align: middle;
}

.services-logo img:hover {
  filter: grayscale(0%);
}

/* select2 */
.select2-container--default .select2-selection--single {
  height: 3rem !important;
  border: 1px solid #d4d4d8;
  border-radius: 0.75rem !important;
  display: flex !important;
  align-items: center !important;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  background-color: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 25% !important;
}

.select2-container--default .select2-selection--single {
  border: 1px solid #d4d4d8 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: normal;
  padding: 0;
  color: #3f3f46;
}

#citySelect:disabled+.select2-container--default .select2-selection--single {
  background-color: #f3f4f6;
  cursor: not-allowed ;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--main-color, #3b82f6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  outline: none;
}
/* ========================================
   Landing redesign (LP-01…LP-09)
   Accent-driven via CSS vars set on <body> by each landing template:
   --lp-accent / --lp-accent-soft / --lp-accent-strong
   ======================================== */

/* Reassurance microcopy under lead forms (LP-06) */
.lp-reassure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #71717a;
  font-size: 12px;
}

/* Benefit card hover lift (Benefits section) */
.lp-benefit {
  transition: box-shadow .25s ease, transform .25s ease;
}

.lp-benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .35);
}

/* Video section (LP-02) */
.lp-video-section {
  background: linear-gradient(180deg, #fff 0%, #f6f8fc 100%);
}

.lp-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  background: radial-gradient(circle at 50% 40%, #1e3a63 0%, #0f1f38 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 40px 90px -40px rgba(15, 31, 56, .7);
}

.lp-video-frame iframe,
.lp-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.lp-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .28;
}

.lp-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.lp-play-wrap {
  position: relative;
  width: 88px;
  height: 88px;
}

.lp-play-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--lp-accent, #0C66E4);
  animation: lp-pulse 2.4s ease-out infinite;
}

.lp-play-btn {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

.lp-video-note {
  font-size: 12.5px;
  color: #cbd5e1;
  margin-top: 6px;
}

@keyframes lp-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: .55;
  }

  50% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* ---- Laptop mockup around the intro video (LP-02) ----
   The chrome WRAPS .lp-video-frame on purpose: landing.js replaces the frame's
   innerHTML with the <video>/<iframe> on play, so anything placed *inside* the
   frame would be wiped. The lid + deck live outside it and survive playback.
   Everything scales with the viewport (clamp) so the bezel stays proportional
   from phone to desktop; the layout is symmetric, so RTL needs no special-casing. */
.lp-laptop {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Lid — a black screen bezel with a slim metal rim; the 16:9 screen sits inside. */
.lp-laptop-lid {
  position: relative;
  width: 100%;
  padding: clamp(12px, 2vw, 22px);
  padding-top: clamp(17px, 2.7vw, 31px);
  border-radius: clamp(16px, 2.2vw, 26px) clamp(16px, 2.2vw, 26px) 9px 9px;
  background: linear-gradient(180deg, #23262d 0%, #131519 100%);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 44px 80px -48px rgba(15, 31, 56, .8);
}

/* Camera pinhole, centred on the top bezel. */
.lp-laptop-cam {
  position: absolute;
  top: clamp(6px, 1vw, 12px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(5px, 0.6vw, 7px);
  height: clamp(5px, 0.6vw, 7px);
  border-radius: 50%;
  background: #2a2f3a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 3px rgba(120, 170, 255, .4);
}

/* Screen — reuse .lp-video-frame but drop its standalone shadow + big radius;
   the lid supplies the depth now, and the corners tuck into the bezel. */
.lp-laptop .lp-video-frame {
  border-radius: clamp(4px, 0.7vw, 9px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45);
  border: 0;
}

/* Deck — the aluminium base, a touch wider than the lid so it reads as a laptop
   seen slightly from above. The notch is the lid-open finger cutout. */
.lp-laptop-deck {
  position: relative;
  width: 106%;
  height: clamp(13px, 1.9vw, 22px);
  border-radius: 2px 2px clamp(9px, 1.3vw, 14px) clamp(9px, 1.3vw, 14px);
  background: linear-gradient(180deg, #dfe4ea 0%, #b4bdc9 46%, #8b94a3 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .65),
    inset 0 -1px 2px rgba(15, 31, 56, .25),
    0 26px 30px -20px rgba(15, 31, 56, .5);
}

.lp-laptop-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(64px, 12%, 132px);
  height: clamp(5px, 0.8vw, 9px);
  border-radius: 0 0 clamp(6px, 1vw, 10px) clamp(6px, 1vw, 10px);
  background: linear-gradient(180deg, #8b95a4 0%, #aab4c2 100%);
  box-shadow: inset 0 -1px 1px rgba(15, 31, 56, .25);
}

/* Stats row inside the customers section (LP-04) */
.lp-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
}

.lp-stat-card {
  background: linear-gradient(180deg, var(--lp-accent-soft, #EBF3FE) 0%, #fff 100%);
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 26px 16px;
  text-align: center;
  box-shadow: 0 14px 30px -22px var(--lp-shadow, rgba(12, 102, 228, .4));
}

.lp-stat-value {
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 800;
  color: var(--lp-accent, #0C66E4);
  line-height: 1;
}

.lp-stat-suffix {
  font-size: .55em;
  vertical-align: top;
}

.lp-stat-label {
  font-size: 13px;
  color: #52525b;
  margin-top: 10px;
  font-weight: 600;
}

/* Logo wall — uniform tiles, grayscale→color on hover (LP-05) */
.logo-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 16px;
}

.logo-tile {
  height: 100px;
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}

.logo-tile img {
  max-height: 48px;
  max-width: 82%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .5;
  transition: filter .3s, opacity .3s;
}

.logo-tile:hover {
  border-color: var(--lp-accent, #0C66E4);
  transform: translateY(-5px);
  box-shadow: 0 18px 36px -24px rgba(0, 0, 0, .3);
}

.logo-tile:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* Hardware device float (device section) */
.lp-float {
  animation: lp-float 5s ease-in-out infinite;
}

@keyframes lp-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* SEO-content accordion (LP-03) — bodies stay in the DOM, collapsed via
   max-height so crawlers read the full text. landing.js toggles .open. */
.lp-seo-section {
  background: #fafafa;
  border-top: 1px solid #f0f0f2;
}

.lp-acc {
  border-bottom: 1px solid #e7e7ea;
}

.lp-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: right;
}

.lp-acc-heading {
  font-weight: 700;
  font-size: 15px;
  color: #27272a;
  margin: 0;
}

.lp-acc-icon {
  flex: none;
  transition: transform .3s;
}

.lp-acc.open .lp-acc-icon {
  transform: rotate(45deg);
}

.lp-acc-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
}

.lp-acc-body {
  padding: 0 4px 20px;
  color: #71717a;
  font-size: 13.5px;
  line-height: 2.1;
}

/* Sticky mobile CTA bar (LP-07) — landing.js toggles .is-visible after
   ~600px of scroll; hidden entirely on >=768px viewports. */
.lp-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e4e4e7;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
}

@media (max-width: 767px) {
  .lp-sticky-cta.is-visible {
    display: block;
  }
}

.lp-sticky-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  background: var(--lp-accent, #0C66E4);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

/* Rich-text content styling — used by the generic landing content block and
   the SEO-content accordion bodies on every landing template. */
.rich-content h2 { font-size: 1.35em; font-weight: 700; margin: 1.2em 0 .6em; }
.rich-content h3 { font-size: 1.15em; font-weight: 700; margin: 1em 0 .5em; }
.rich-content p { margin-bottom: .9em; }
.rich-content ul, .rich-content ol { margin: 0 1.25em .9em; }
.rich-content ul { list-style: disc; }
.rich-content ol { list-style: decimal; }
.rich-content a { color: var(--lp-accent, #0C66E4); text-decoration: underline; }
.rich-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1em auto; }
.rich-content blockquote { border-right: 3px solid #e4e4e7; padding-right: 1em; color: #52525b; margin-bottom: .9em; }

/* ========================================
   Landing Redesign V3
   Typography scale, benefit cards, consultation
   layout, and the dark footer helpers.

   Everything visual is scoped under `.lp-page`
   (added to the four landing <body> tags + the
   home <body>) so it never leaks into admin or
   other templates. global.css loads BEFORE
   output.css (Tailwind), so single-class Tailwind
   utilities would win a cascade tie — the
   `.lp-page`-scoped selectors here are (0,2,0)+ and
   reliably override them without a Tailwind rebuild.
   ======================================== */

/* --- Typography: stronger hierarchy ---------------
   Heavier headings + tighter tracking. Colour is left
   untouched so the white headings on the Features /
   Hardware gradients stay white. */
.lp-page h1,
.lp-page h2 {
  font-weight: 800;
  letter-spacing: -0.012em;
}

.lp-page h3 {
  letter-spacing: -0.006em;
}

/* Section badge pills read as small labels */
.lp-page .section-title {
  font-weight: 600;
  letter-spacing: 0.008em;
}

/* Section intro subtitles: calmer, more readable */
.lp-page .lp-subtitle {
  color: #71717a;
  line-height: 2;
}

/* --- Shared responsive card grid ------------------
   auto-fit + minmax replaces the crowded fixed
   4-across grid on tablets; wraps gracefully on every
   width. Used by the Benefits sections and the home
   services grid. */
.lp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  width: 100%;
}

@media (max-width: 480px) {
  .lp-card-grid { gap: 16px; }
}

/* --- Benefits card: left-aligned V3 arrangement ---
   icon tile -> title -> text, aligned to the start.
   The .lp-benefit hover lift is defined earlier. */
.lp-page .lp-benefit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  padding: 26px 22px;
  overflow: hidden;
  min-height: 210px;
}

.lp-page .lp-benefit .lp-b-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lp-page .lp-benefit .lp-b-icon {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #d4d4d8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.lp-page .lp-benefit .lp-b-title {
  font-size: 1.0625rem;   /* 17px */
  font-weight: 800;
  color: #27272a;
  line-height: 1.5;
  margin: 0 0 8px;
}

.lp-page .lp-benefit .lp-b-text {
  font-size: 0.84rem;     /* ~13.5px */
  font-weight: 500;
  color: #71717a;
  line-height: 1.95;
  margin: 0;
}

@media (max-width: 480px) {
  .lp-page .lp-benefit { padding: 22px 20px; min-height: 0; }
}

/* Cheque uses a Swiper carousel for Benefits — let cards fill the
   slide so their bottoms line up across the row. */
.swiper-slide > .lp-benefit { height: 100%; }

/* --- Consultation: equal two columns --------------
   The order utilities on the two children put the
   form card on the LEFT (desktop) / first (mobile). */
.lp-consult-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .lp-consult-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* --- Dark redesigned footer (site-wide) -----------
   `--footer-accent` is set per page via an inline
   style on the <footer> (blue / cheque purple / asset
   teal). Falls back to blue. */
.site-footer {
  --footer-accent: #3C83F5;
  background: #0f1f38;
  color: #cbd5e1;
}

.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 34px 28px;
}

.site-footer h4 {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  margin: 0 0 14px;
}

.site-footer a { color: #94a3b8; transition: color .2s ease; }
.site-footer a:hover { color: #fff; }

.site-footer .footer-brand-title { font-weight: 800; color: #fff; font-size: 16px; }
.site-footer .footer-brand-sub { font-size: 11px; color: #94a3b8; }
.site-footer .footer-about { font-size: 12.5px; color: #94a3b8; line-height: 2; }
.site-footer .footer-col-links { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.site-footer .footer-contact-list { display: flex; flex-direction: column; gap: 11px; font-size: 12.5px; }
.site-footer .footer-contacts { min-width: 0; }
.site-footer .footer-contact-channels { display: grid; gap: 0; }
.site-footer .footer-contact-channels a { color: #dce8f8; min-height: 44px; }
.site-footer .footer-direct-phone { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 12px; }
.site-footer .footer-direct-phone b { font-size: 20px; font-weight: 800; letter-spacing: .4px; }
.site-footer .footer-direct-phone>span { color: #93b9eb; }
.site-footer .footer-labelled-phone { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; border-top: 1px solid #ffffff15; padding-block: 12px; }
.site-footer .footer-labelled-phone>span { font-size: 11px; color: #a9b8cc; }
.site-footer .footer-labelled-phone>b { font-size: 12px; white-space: nowrap; }
.site-footer .footer-office-phones { display: flex; flex-wrap: wrap; gap: 6px 18px; border-top: 1px solid #ffffff15; padding-top: 12px; font-size: 12px; }
.site-footer .footer-office-phones>a { text-align: right; }

.site-footer .footer-logo-tile {
  width: 44px; height: 44px; flex: none;
  object-fit: contain; background: #fff;
  border-radius: 10px; padding: 4px;
}

.site-footer .footer-social {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  display: flex; align-items: center; justify-content: center;
  color: #cbd5e1;
  transition: background .2s ease, color .2s ease;
}
.site-footer .footer-social:hover { background: var(--footer-accent); color: #fff; }

.site-footer .footer-branch { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: #94a3b8; line-height: 1.9; }
.site-footer .footer-branch b { color: #cbd5e1; font-weight: 700; }
.site-footer .footer-branch svg { flex: none; margin-top: 2px; }

.site-footer .footer-bottom {
  max-width: 1200px;
  margin: 34px auto 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 18px 0;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

/* Phone layout: explicit rows instead of the auto-fit guesswork. Brand,
   branches and contact each take a full row; the two short link lists share
   one row. Everything stays right-aligned (natural RTL scan) and the inline
   min-widths on the columns are neutralized so nothing overflows a 360px
   screen. */
@media (max-width: 700px) {
  .site-footer .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px 18px;
  }
  .site-footer .footer-inner > div { min-width: 0 !important; }
  .site-footer .footer-inner > div:nth-child(1),
  .site-footer .footer-inner > div:nth-child(4),
  .site-footer .footer-inner > div:nth-child(5) { grid-column: 1 / -1; }

  /* Brand row + socials: keep start-aligned (the Tailwind justify-center
     kicks in below 640px and fights the rest of the layout). */
  .site-footer .footer-inner > div:first-child > .flex { justify-content: flex-start !important; }

  /* Comfortable tap targets for link lists */
  .site-footer .footer-col-links { gap: 6px; }
  .site-footer .footer-col-links a,
  .site-footer .footer-contact-list a { padding-block: 5px; }

  .site-footer .footer-bottom {
    margin-top: 26px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
}

/* ============================================================================
   LP-11 — the "problem" section on CMS landing pages.

   Sits between the hero and the benefits. It uses the same card grammar as
   .lp-benefit, deliberately detuned: no icon tiles, a warning-toned rule on the
   reading edge (right, in RTL), a muted surface. The reader should feel the
   temperature drop here and lift again on the benefits — meeting a second wall
   of blue cards would flatten the argument into one long feature list.

   Hand-authored rather than Tailwind utilities: public/css/output.css is a
   committed build with no rebuild step in `npm start`, so a newly invented
   utility class would simply not exist at runtime. Same reason blog.css exists.
   ========================================================================== */
.lp-page .lp-problem-section {
  background: #FAFAFA;
}

.lp-page .lp-problem-badge {
  background: #FEF3C7;
  color: #92400E;
}

.lp-problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  width: 100%;
}

.lp-page .lp-problem-card {
  position: relative;
  background: #fff;
  border: 1px solid #e4e4e7;
  /* Reading edge: `border-inline-start` follows RTL without a separate rule. */
  border-inline-start: 3px solid #F59E0B;
  border-radius: 12px;
  padding: 18px 20px;
}

.lp-page .lp-problem-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #3F3F46;
  line-height: 1.6;
  margin: 0 0 6px;
}

.lp-page .lp-problem-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: #71717a;
  line-height: 1.9;
  margin: 0;
}

/* The bridge out of the problem and into the solution. Accent-coloured so it
   reads as the answer rather than one more complaint. */
.lp-problem-bridge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 46rem;
  margin: 26px auto 0;
  padding: 16px 20px;
  background: var(--lp-accent-soft, #EBF3FE);
  border-radius: 12px;
  color: var(--lp-accent-strong, #0A57C2);
}

.lp-problem-bridge svg { flex: none; margin-top: 3px; }

.lp-problem-bridge p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.95;
}

@media (max-width: 480px) {
  .lp-problem-grid { gap: 12px; }
  .lp-page .lp-problem-card { padding: 16px 18px; }
  .lp-problem-bridge { padding: 14px 16px; margin-top: 20px; }
  .lp-problem-bridge p { font-size: 0.85rem; }
}

/* ============================================================================
   LP-12 — per-landing colour theming for the generic CMS template.

   Every CMS landing used to be the same blue as time-attendance, because
   generic.ejs hardcoded `--lp-accent:#0C66E4` and then ignored it in favour of
   Tailwind's `bg-blue-50` / `bg-main-color` / `.sec3-bg` anyway. A CMS-created
   product was visually indistinguishable from the one it competed with for
   attention.

   These classes read the custom properties the controller sets on <body> from
   utils/color.landingPalette(). A landing with no theme gets the site blue
   through the var fallbacks, so the three hand-built templates are unaffected.

   Hand-authored, like everything else on these pages: output.css is a committed
   Tailwind build with no rebuild step, so an invented utility does nothing.
   ========================================================================== */

/* Badges — "مزایا", "امکانات", the hero eyebrow. */
.lp-page .lp-badge {
  background: var(--lp-accent-soft, #EBF3FE);
  color: var(--lp-accent-strong, #0A57C2);
}
.lp-page .lp-badge-dot { background: var(--lp-accent, #0C66E4); }

/* Primary CTA — the hero lead form's submit. */
.lp-page .lp-cta-btn {
  background: var(--lp-accent, #0C66E4);
  color: var(--lp-on-accent, #fff);
}
.lp-page .lp-cta-btn:hover { background: var(--lp-accent-strong, #0A57C2); }
.lp-page .lp-cta-btn svg { color: currentColor; }

.lp-page .lp-input:focus { border-color: var(--lp-accent, #0C66E4); }

/* Decorative blobs behind benefit cards and the customers band. Previously
   `bg-blue-400/30` and `bg-indigo-500/20` — fixed blue regardless of theme. */
.lp-page .lp-blob-a { background: color-mix(in srgb, var(--lp-accent, #0C66E4) 30%, transparent); }
.lp-page .lp-blob-b { background: color-mix(in srgb, var(--lp-accent-strong, #0A57C2) 20%, transparent); }
.lp-page .lp-blob-c { background: var(--lp-accent, #0C66E4); }

/* The dark feature band. Replaces .sec3-bg's fixed blue gradient; the three
   stops come from the derived palette so any accent produces a band with the
   same tonal shape.

   SINGLE class on purpose — do not scope this under .lp-page.
   `.snap-section.content-section` used to set `min-height: 97dvh` to fill the
   viewport on the (now removed, see S1) snap deck. At (0,2,0) a
   `.lp-page .lp-band` selector TIED with it and, being declared later in this
   file, won its `min-height: 400px` — so the features band collapsed to 400px
   and left a white strip below it before the next section. `.sec3-bg` never had
   that problem precisely because it is one class (0,1,0) and loses the tie.
   The dvh clamp is gone, so the tie no longer decides anything — but keeping
   this at one class costs nothing and keeps the band's own 400px floor honest. */
.lp-band {
  background: linear-gradient(69.27deg,
    var(--lp-accent-lite, #67A2FF) 2.95%,
    var(--lp-accent, #2E67C3) 75%,
    var(--lp-accent-strong, #20519F) 111.08%);
  overflow: hidden;
  min-height: 400px;
}

/* The hardware band uses a radial arrangement rather than a diagonal one. */
.lp-band--radial {
  background: radial-gradient(circle at center,
    var(--lp-accent-lite, #6FA6FE) 0%,
    var(--lp-accent-strong, #366FCB) 100%);
}

/* Muted text on the band. Was `text-blue-100`, which is invisible on a green
   or purple band. A white wash of the accent tracks whatever the accent is. */
.lp-page .lp-band-sub { color: color-mix(in srgb, #fff 82%, var(--lp-accent-lite, #67A2FF)); }

/* The band's own CTA — a light button on a dark field, so it inverts. */
.lp-page .lp-band-btn {
  background: #fff;
  color: var(--lp-accent-strong, #0A57C2);
  font-weight: 700;
  transition: background-color .15s ease, color .15s ease;
}
.lp-page .lp-band-btn:hover {
  background: var(--lp-accent-strong, #0A57C2);
  color: #fff;
}

/* color-mix is ~94% supported; these fallbacks keep older browsers on the
   site blue rather than on `transparent`, which would drop the decoration. */
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .lp-page .lp-blob-a { background: rgba(96, 165, 250, .3); }
  .lp-page .lp-blob-b { background: rgba(99, 102, 241, .2); }
  .lp-page .lp-band-sub { color: #DBEAFE; }
}

/* --------------------------------------------------------------------------
   The gold layer. Only rendered when a landing declares a second colour
   (sections.theme.accent2), which today is payroll's gold against its green.

   Restraint is the point: gold on white is ~2.6:1, which is a fine hairline
   and an unreadable paragraph. It appears as rules, glyphs and figures — never
   as body text. Text that must be gold uses --lp-accent-2-ink, the darkened
   variant.
   -------------------------------------------------------------------------- */

/* A thin gold rule under the hero, reading as a foil edge rather than a border. */
.lp-page.lp-lux .hero-section::after {
  content: "";
  display: block;
  height: 1px;
  margin: 28px auto 0;
  max-width: 62rem;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--lp-accent-2, #C9A227) 22%,
    var(--lp-accent-2, #C9A227) 78%,
    transparent 100%);
  opacity: .55;
}

/* Stat figures — the numbers a payroll buyer is here to think about. */
.lp-page.lp-lux .lp-stat-value { color: var(--lp-accent-2-ink, #896E1B); }
.lp-page.lp-lux .lp-stat-suffix { color: var(--lp-accent-2, #C9A227); }

/* Benefit cards get a gold top edge and a gold-tinted icon plate. */
.lp-page.lp-lux .lp-benefit { border-top: 2px solid var(--lp-accent-2, #C9A227); }
.lp-page.lp-lux .lp-benefit .lp-b-icon {
  background: var(--lp-accent-2-soft, #F9F4E5);
  border-color: color-mix(in srgb, var(--lp-accent-2, #C9A227) 40%, #fff);
}

/* The glass cards on the dark band pick up a gold hairline so the band does
   not read as a flat block of green. */
.lp-page.lp-lux .glass-box { border-color: color-mix(in srgb, var(--lp-accent-2, #C9A227) 45%, transparent); }

/* Accordion markers in the SEO block. */
.lp-page.lp-lux .lp-acc-icon { stroke: var(--lp-accent-2-ink, #896E1B); }

@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .lp-page.lp-lux .lp-benefit .lp-b-icon { border-color: #E8D9A8; }
  .lp-page.lp-lux .glass-box { border-color: rgba(201, 162, 39, .45); }
}

/* LP-12 — header consultation button on landing pages. Reads the palette the
   <body> sets, so it themes itself for any landing rather than needing a
   hardcoded branch per template. */
.lp-page .lp-header-cta {
  background: var(--lp-accent, #0C66E4);
  color: var(--lp-on-accent, #fff);
}
.lp-page .lp-header-cta:hover {
  background: var(--lp-accent-strong, #0A57C2);
  color: var(--lp-on-accent, #fff);
}


/* ── Demo-time picker, last step of the survey (moved out of the landing hero).
   Scoped under .survey-* so it inherits the modal's own spacing rather than
   the page's, and styled quietly on purpose: it is an optional question at the
   end of a flow, not the call to action. ── */
.survey-slots { margin-top: 16px; text-align: right; }
.survey-slots__label { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #27303a; }
.survey-slots__label span { font-weight: 400; color: #7c8790; }
.survey-slots__row { display: flex; flex-wrap: wrap; gap: 8px; }
.survey-slot {
  font: inherit; font-size: 12.5px; line-height: 1.2; padding: 8px 13px; cursor: pointer;
  border: 1.5px solid #d5dbe0; border-radius: 9px; background: #fff; color: #3a4550;
  transition: border-color .15s, background .15s, color .15s;
}
.survey-slot:hover { border-color: #0e6360; color: #0e6360; }
.survey-slot:focus-visible { outline: 2px solid #12817d; outline-offset: 2px; }
.survey-slot.is-selected { background: #0e6360; border-color: #0e6360; color: #fff; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .survey-slot { transition: none; } }

/* ============================================================================
   Organisation chart — /about
   ----------------------------------------------------------------------------
   The About page's team section is a chart of the company's OFFICES, not a grid
   of faces (see the comment at the top of views/about.ejs for why).

   Written as real CSS rather than Tailwind utilities on purpose: public/css/
   output.css is a COMMITTED build with no guaranteed rebuild step in deploy, so
   a new arbitrary utility would silently do nothing in production. Every class
   here is bespoke, so nothing in the Tailwind layer can collide with it.

   Connectors are pure CSS and decorative (aria-hidden / pseudo-elements): the
   markup is a real <ul> so a screen reader hears a list of offices.
   ============================================================================ */
.org { --org-line: #dbe2ea; --org-accent: var(--main-color, #3C83F5); margin-top: 6px; }

.org__root { display: flex; justify-content: center; }
.org__trunk { width: 2px; height: 26px; margin: 0 auto; background: var(--org-line); }

.org__branches { position: relative; padding-top: 26px; }
/* The rail the offices hang from. `inset-inline` keeps it correct in RTL and
   robust to any number of branches — it does not try to land exactly on the
   outer card centres, which would break the moment a branch is added. */
.org__branches::before {
  content: ""; position: absolute; top: 0; inset-inline: 12%;
  height: 2px; background: var(--org-line);
}
.org__row {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px;
}
.org__row > li { position: relative; flex: 1 1 220px; max-width: 270px; }
/* the drop from the rail into each card */
.org__row > li::before {
  content: ""; position: absolute; top: -26px; inset-inline-start: 50%;
  width: 2px; height: 26px; background: var(--org-line);
}

.org-card {
  height: 100%; background: #fff; border: 1px solid #e6ebf1; border-radius: 14px;
  padding: 16px 16px 14px; text-align: right;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.org-card:hover { border-color: #c9d6e6; box-shadow: 0 10px 28px rgba(16, 39, 71, .09); transform: translateY(-2px); }

.org-card--root {
  border-color: var(--org-accent); text-align: center; min-width: 250px;
  box-shadow: 0 10px 30px rgba(60, 131, 245, .12);
}
.org-card--root:hover { transform: none; }

.org-card__kind {
  display: inline-block; font-size: 11px; font-weight: 600; line-height: 1;
  padding: 5px 9px; border-radius: 999px; margin-bottom: 9px;
  background: #f1f5f9; color: #64748b;
}
.org-card__kind.is-hq { background: #eaf2ff; color: var(--org-accent); }
.org-card--root .org-card__kind { background: var(--org-accent); color: #fff; }

.org-card__title { margin: 0; font-size: 17px; font-weight: 700; color: #1f2937; }
.org-card--root .org-card__title { font-size: 20px; }
.org-card__sub   { margin: 3px 0 0; font-size: 12px; color: #7c8790; }
.org-card__meta  { margin: 6px 0 0; font-size: 12.5px; color: #64748b; }
.org-card__addr  { margin: 8px 0 0; font-size: 12.5px; line-height: 1.8; color: #64748b; }

.org-card__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.org-card__tel {
  font-size: 13px; font-weight: 700; color: var(--org-accent); text-decoration: none;
  padding: 6px 10px; border-radius: 8px; background: #f3f7ff;
}
.org-card__tel:hover { background: #e6efff; }
.org-card__map { font-size: 12px; color: #7c8790; text-decoration: none; }
.org-card__map:hover { color: var(--org-accent); text-decoration: underline; }

/* Mobile: the chart metaphor stops paying for itself below ~768px, so the
   connectors go and it becomes what it always was semantically — a list. */
@media (max-width: 767px) {
  .org__trunk { height: 18px; }
  .org__branches { padding-top: 14px; }
  .org__branches::before, .org__row > li::before { display: none; }
  .org__row { flex-direction: column; gap: 12px; }
  .org__row > li { max-width: none; }
  .org-card--root { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .org-card { transition: none; }
  .org-card:hover { transform: none; }
}

/* ============================================================================
   Homepage rebuild + shared intent controls          (UX-11 … UX-16, L4, L5, R3)

   Hand-authored rather than Tailwind utilities, and deliberately so:
   public/css/output.css is a COMMITTED build that nothing in the deploy
   regenerates, so a utility class that is not already in it does not exist at
   runtime. That is how the first version of /trainings shipped with 40 of its
   133 classes missing — every grid-cols, every gap, every responsive text size —
   and rendered as an unspaced single-column stack. Anything new here is written
   out in full.
   ========================================================================== */

/* ---------------------------------------------------------------- hero form
   Stacked on a phone, side by side from 480px up.

   It used to be `flex flex-row flex-wrap` at every width, so at 360px a
   `whitespace-nowrap` button with a label and an arrow left the phone input
   about 200px wide, and both controls sat under the 48px minimum touch height
   on the most-used control on the site. */
.hero-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-form__input {
  width: 100%;
  min-height: 48px;
  font-size: 16px;            /* iOS zooms the page in below 16px */
  background: #fff;
}

.hero-form__btn {
  width: 100%;
  min-height: 48px;
  font-weight: 700;
  cursor: pointer;
}

/* The slot picker spans the whole form row, under both controls. */
.hero-form__slots {
  width: 100%;
  order: 3;
}

/* On the blue hero the picker default dark-on-white labels are unreadable. */
.hero-section .demo-slots__label,
.hero-section .demo-slots__hint {
  color: rgba(255, 255, 255, .88);
}

.hero-section .demo-slot {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}

.hero-section .demo-slot:hover {
  background: rgba(255, 255, 255, .2);
  border-color: #fff;
  color: #fff;
}

.hero-section .demo-slot.is-selected {
  background: #fff;
  border-color: #fff;
  color: var(--lp-accent, #2A5CAB);
  font-weight: 700;
}

/* Emphasised when a returning visitor is being offered a time instead of a
   second submit (UX-14). */
.demo-slots--emphasis .demo-slots__label {
  font-weight: 700;
}

@media (min-width: 480px) {
  .hero-form {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .hero-form__input { flex: 1 1 auto; width: auto; }
  .hero-form__btn   { flex: 0 0 auto; width: auto; padding-inline: 22px; }
}

/* The returning-visitor notice. Hidden at rest via the `hidden` attribute. */
.hero-return {
  max-width: 30rem;
  margin: 0 auto 6px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-size: 13px;
  line-height: 1.9;
  text-align: center;
}

/* The escape hatch: a phone number and the customer path, next to the form. */
.hero-escape {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 2;
  color: rgba(255, 255, 255, .82);
}

.hero-escape a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
}

.hero-escape a:hover { border-bottom-color: #fff; }
.hero-escape__sep { margin: 0 8px; opacity: .55; }

/* ------------------------------------------------------------ product cards
   Replaces four cards that had a title, an icon and nothing else: no link, no
   description, no CTA.

   TWO ACROSS, not four. The first pass used `auto-fit, minmax(260px, 1fr)`,
   which puts all four in one row on any desktop — four 260px columns of 12.5px
   type, and a section 777px tall sitting between a 1048px hero and an 829px
   proof block. On a laptop the page reads as a sequence of full screens and
   this one step was visibly short, which is exactly what it looked like: a
   list, not a section. Two columns give each card room for the mark, a title at
   the size the rest of the page uses, and three lines of evidence — and two
   rows put the section back on the page's own rhythm without padding it out
   with empty space. */
.home-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
}

@media (min-width: 680px) {
  .home-product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

.home-product {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  transition: border-color .15s, box-shadow .15s;
  /* Makes this a stacking context, which is what lets the glow behind the mark
     use z-index:-1: negative children paint above THIS element's background and
     below its content, so the wash spills around the tile and is covered by the
     tile itself. Without it the glow escapes to the section behind the card's
     white background and vanishes. */
  isolation: isolate;
}

.home-product:hover {
  border-color: #c7d7f5;
  box-shadow: 0 6px 22px rgba(12, 102, 228, .08);
}

/* The mark sits BESIDE the title rather than above it. Above, it becomes a
   decorative stripe down the section; beside, it reads as the product's own
   sign and costs no vertical space. */
.home-product__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-product__mark {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dcdce0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(24, 24, 27, .05);
}

/* One soft blue wash behind the tile — the old cards carried three coloured
   glows each, which at four cards was twelve blurred blobs competing with the
   words. One is enough to keep the tile from sitting on flat white. */
.home-product__mark::before {
  content: "";
  position: absolute;
  inset: -18px -14px -10px -20px;
  border-radius: 50%;
  background: rgba(60, 131, 245, .18);
  filter: blur(22px);
  z-index: -1;
}

.home-product__mark svg {
  width: 30px;
  height: 30px;
  overflow: visible;
}

.home-product__title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  color: #18181b;
}

.home-product__title a { color: inherit; text-decoration: none; }
.home-product__title a:hover { color: var(--main-color, #0C66E4); }

/* The line that decides whether the card is read: their situation, not our
   feature list. */
.home-product__problem {
  margin: 0;
  font-size: 14.5px;
  line-height: 2;
  color: #52525b;
}

.home-product__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-product__list li {
  position: relative;
  padding-inline-start: 17px;
  font-size: 13.5px;
  line-height: 2;
  color: #3f3f46;
}

.home-product__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--main-color, #0C66E4);
  opacity: .5;
}

.home-product__actions {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.home-product__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--main-color, #0C66E4);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.home-product__cta:hover { background: #0a57c2; color: #fff; }

/* Tertiary: a text link, never a button. A device researcher on the demo path
   costs a rep a call; a demo prospect on the specs path buys nothing. */
.home-product__link {
  font-size: 12.5px;
  color: #52525b;
  text-decoration: none;
  border-bottom: 1px dashed #c4c4c8;
}

.home-product__link:hover { color: var(--main-color, #0C66E4); border-bottom-color: currentColor; }

/* ---------------------------------------------------------- hardware row */
.home-hardware {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px dashed #d9dde3;
  border-radius: 14px;
  background: #fafafa;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.home-hardware__text {
  margin: 0;
  font-size: 13px;
  color: #52525b;
  flex: 1 1 260px;
}

.home-hardware__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.home-hardware__links a {
  font-size: 12.5px;
  color: #3f3f46;
  text-decoration: none;
  border-bottom: 1px solid #d4d4d8;
}

.home-hardware__links a:hover { color: var(--main-color, #0C66E4); border-bottom-color: currentColor; }
.home-hardware__all { font-weight: 700; color: var(--main-color, #0C66E4) !important; }

/* ------------------------------------------------------- integration strip
   The mechanisms behind «۲۵ سال». The claim on its own converts nobody; the
   same claim beside three things that are only true of us does. */
.home-integrations {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
}

.home-integrations li {
  padding: 7px 14px;
  border-radius: 999px;
  background: #f4f7fd;
  border: 1px solid #dce6f8;
  color: #33415c;
  font-size: 12.5px;
  line-height: 1.7;
}

/* ----------------------------------------------------------- intent chips
   Purpose (BUY | SUPPORT) and the optional product pick. Shared by the consult
   card on the homepage, /contact-us and anywhere else the include asks for it.
   public/js/public.js owns the toggling. */
.intent { display: flex; flex-direction: column; gap: 7px; }

.intent__label {
  font-size: 12px;
  font-weight: 600;
  color: #3f3f46;
}

.intent__label em { font-style: normal; font-weight: 400; color: #a1a1aa; }

.intent__row { display: flex; flex-wrap: wrap; gap: 6px; }

.intent__chip {
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
  min-height: 38px;
  padding: 8px 12px;
  cursor: pointer;
  background: #fff;
  color: #3f3f46;
  border: 1.5px solid #d4d4d8;
  border-radius: 9px;
  transition: border-color .15s, background .15s, color .15s;
}

.intent__chip:hover { border-color: var(--main-color, #0C66E4); color: var(--main-color, #0C66E4); }
.intent__chip:focus-visible { outline: 2px solid var(--main-color, #0C66E4); outline-offset: 2px; }

.intent__chip.is-selected {
  background: var(--main-color, #0C66E4);
  border-color: var(--main-color, #0C66E4);
  color: #fff;
  font-weight: 700;
}

/* The support answer, shown in place of a callback. Answering here is faster
   for the customer than any lead ever was, and it is what keeps support out of
   the sales queue. */
.intent-answer {
  padding: 12px 14px;
  border-radius: 10px;
  background: #f4f7fd;
  border: 1px solid #dce6f8;
  font-size: 12.5px;
  line-height: 2;
  color: #33415c;
}

.intent-answer p { margin: 0 0 4px; }
.intent-answer p:last-child { margin-bottom: 0; }
.intent-answer__title { font-weight: 700; }
.intent-answer__note { color: #64748b; font-size: 11.5px; }
.intent-answer a { color: var(--main-color, #0C66E4); font-weight: 600; }

/* --------------------------------------------------------- customer strip
   The one place on the site that speaks to somebody who has already bought.
   Quiet on purpose: its job is to be findable by the person looking for it, not
   to compete with the demo CTA. */
.customer-strip {
  width: 100%;
  padding: 18px clamp(16px, 5vw, 80px);
  background: #f4f7fd;
  border-top: 1px solid #e4ebf7;
  border-bottom: 1px solid #e4ebf7;
}

.customer-strip__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  text-align: center;
}

.customer-strip__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: #33415c;
}

.customer-strip__link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--main-color, #0C66E4);
  text-decoration: none;
  white-space: nowrap;
}

.customer-strip__link:hover { text-decoration: underline; }

/* ------------------------------------------------- sticky bar, second action
   The landings bar is a single button. Both audiences are on the homepage, so
   its bar carries both paths — and both of them have to look like something you
   can press.

   This was shipped as `display:block` bare text under the blue button: same
   bar, same job, one of them a 50px filled control and the other a 12.5px line
   of grey type with no edge, no height and a 17px tap target. On a phone it did
   not read as an action at all. It is a button now — outlined rather than
   filled, because «دریافت دمو» stays the one primary label on the site and a
   second solid button would put two primaries in a 50px strip. */
.home-sticky {
  display: none;                 /* .lp-sticky-cta.is-visible flips this */
  gap: 10px;
}

@media (max-width: 767px) {
  .lp-sticky-cta.home-sticky.is-visible {
    display: flex;
    align-items: stretch;
  }
}

/* The demo stays the wider of the two: same weight of voice as everywhere else
   on the site, without hiding the customer path behind a text link. */
.home-sticky .lp-sticky-cta-btn { flex: 1.35 1 0; }

.lp-sticky-cta-alt {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 50px;
  padding: 0 10px;
  border: 1.5px solid #c7d7f5;
  border-radius: 12px;
  background: #fff;
  color: var(--main-color, #0C66E4);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.lp-sticky-cta-alt:hover,
.lp-sticky-cta-alt:focus-visible {
  background: #f4f7fd;
  border-color: var(--main-color, #0C66E4);
  color: var(--main-color, #0C66E4);
}

/* 360px phones: «آموزش و پشتیبانی» is 15 characters and will not sit on one
   line beside the demo button at that width. Wrapping it is better than
   shrinking the type below the point where it reads as a label. */
@media (max-width: 359px) {
  .lp-sticky-cta-alt { font-size: 12px; padding: 0 6px; }
}
/* Role-specific channels coexist with CMS office and branch numbers. */
.contact-roles{display:grid;gap:12px;margin:16px 0 24px}.contact-roles>a{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;align-items:center;font-size:12px;line-height:1.9}.site-footer .contact-roles>a{color:#e4efff}.contact-roles>a>span{font-size:11px}.contact-roles--page{max-width:1120px;margin:32px auto;grid-template-columns:repeat(3,1fr);padding:20px;gap:20px}.contact-roles--page>a{padding:18px;background:#f0f6ff;border:1px solid #d5e3f4;border-radius:10px;color:#1657a7}.contact-roles a:focus-visible{outline:3px solid #70a9fa;outline-offset:4px}@media(max-width:767px){.contact-roles--page{grid-template-columns:1fr;margin:16px auto}}

.attendance-upgrade-link{margin:18px auto 0;max-width:550px;font-size:12px;line-height:2;color:#52647a;text-align:center}.attendance-upgrade-link a{color:#0a57bd;font-weight:600;text-decoration:underline;text-underline-offset:4px}
@media(min-width:701px) and (max-width:1199px){.site-footer .footer-inner{width:100%;min-width:0}.site-footer .footer-inner>div{min-width:0!important}}
