/* Abrak Site — RTL-native, original design. License OPL-1 */
@font-face {
  font-family: "AnjomanMax";
  src: url("/abrak_theme/static/src/fonts/AnjomanMax-Regular.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "AnjomanMax";
  src: url("/abrak_theme/static/src/fonts/AnjomanMax-Bold.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}

:root {
  --ab-primary: #714b67;
  --ab-primary-dark: #5a3b52;
  --ab-accent: #017e84;
  --ab-ink: #1f2430;
  --ab-muted: #6b7280;
  --ab-bg: #ffffff;
  --ab-bg-alt: #f6f4f7;
  --ab-border: #e5e2e8;
  --ab-radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; direction: rtl;
  font-family: "AnjomanMax", Vazirmatn, Tahoma, sans-serif;
  color: var(--ab-ink); background: var(--ab-bg);
  line-height: 1.9; font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.ab-container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

/* header + mega menu */
.ab-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ab-border);
}
.ab-header-row { display: flex; align-items: center; gap: 2rem; height: 64px; }
.ab-logo { font-size: 1.5rem; font-weight: 700; color: var(--ab-primary); }
.ab-nav { display: flex; gap: 1.5rem; flex: 1; }
.ab-nav-item > a { color: var(--ab-ink); font-weight: 500; padding: .5rem 0; display: block; }
.ab-nav-item > a:hover { color: var(--ab-primary); }
.ab-nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; background: var(--ab-bg-alt); border: 1px solid var(--ab-border);
  border-radius: 10px; cursor: pointer; padding: 0; margin-inline-start: auto; flex-shrink: 0;
}
.ab-nav-toggle span { display: block; width: 20px; height: 2.5px; background: var(--ab-primary); border-radius: 2px; }
.ab-nav-cta { display: none; }
.ab-has-mega { position: static; }
.ab-mega {
  position: absolute; inset-inline: 0; top: 64px;
  background: #fff; border-bottom: 1px solid var(--ab-border);
  box-shadow: 0 24px 48px -24px rgba(31,36,48,.25);
  padding: 1.5rem; display: none;
}
.ab-has-mega:hover .ab-mega, .ab-has-mega:focus-within .ab-mega { display: block; }
.ab-mega-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem;
}
.ab-mega-app {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .75rem; border-radius: 10px; font-size: .9rem;
}
.ab-mega-app:hover { background: var(--ab-bg-alt); }
.ab-mega-app img { width: 28px; height: 28px; border-radius: 7px; }
.ab-mega-all { display: block; text-align: center; margin-top: 1rem; color: var(--ab-primary); font-weight: 600; }

/* logged-in user menu — همان ارتفاع/وزن بصری بقیه‌ی آیتم‌های nav، بدون قاب اضافه */
.ab-has-user { position: relative; }
.ab-nav-item .ab-user-trigger {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem 0 !important; color: var(--ab-ink); font-weight: 500;
}
.ab-user-trigger:hover .ab-user-name { color: var(--ab-primary); }
.ab-user-avatar {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--ab-primary); color: #fff; font-weight: 700; font-size: .72rem;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.ab-user-name { font-size: 1rem; }
.ab-user-menu {
  display: none; position: absolute; inset-inline-end: 0; top: 100%; margin-top: .5rem;
  min-width: 12rem; background: #fff; border: 1px solid var(--ab-border); border-radius: 12px;
  box-shadow: 0 24px 48px -24px rgba(31,36,48,.3); padding: .4rem; z-index: 60;
}
.ab-has-user:hover .ab-user-menu, .ab-has-user:focus-within .ab-user-menu { display: block; }
.ab-user-menu-header { padding: .5rem .75rem .6rem; border-bottom: 1px solid var(--ab-border); margin-bottom: .3rem; }
.ab-user-menu-name { font-weight: 700; font-size: .88rem; color: var(--ab-ink); }
.ab-user-menu-company { font-size: .76rem; color: var(--ab-muted); margin-top: .1rem; }
.ab-user-menu a { display: block; padding: .5rem .75rem; border-radius: 8px; font-size: .88rem; }
.ab-user-menu a:hover { background: var(--ab-bg-alt); }
.ab-user-logout { color: #b3261e !important; }

/* buttons */
.ab-btn {
  display: inline-block; padding: .55rem 1.4rem; border-radius: 999px;
  font-weight: 600; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease; font-size: 1rem;
}
.ab-btn:hover { transform: translateY(-1px); }
.ab-btn-primary { background: var(--ab-primary); color: #fff; box-shadow: 0 8px 20px -8px var(--ab-primary); }
.ab-btn-primary:hover { background: var(--ab-primary-dark); }
.ab-btn-light { background: #fff; color: var(--ab-primary); }
.ab-btn-ghost { background: transparent; border-color: var(--ab-border); color: var(--ab-muted); }
.ab-btn-lg { padding: .8rem 2.2rem; font-size: 1.1rem; }
.ab-btn-block { width: 100%; }

/* hero */
.ab-hero { padding: 5.5rem 0 4rem; text-align: center; background:
  radial-gradient(1200px 500px at 50% -10%, #f3ecf1 0%, transparent 70%); }
.ab-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.4; margin: 0 0 1rem; }
.ab-accent { color: var(--ab-primary); }
.ab-hero-sub { color: var(--ab-muted); font-size: 1.15rem; max-width: 40rem; margin: 0 auto 2rem; }
.ab-hero-note { color: var(--ab-muted); font-size: .9rem; margin-top: .75rem; }
.ab-hero-app { padding: 4rem 0 3rem; }
.ab-app-hero-icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 16px 40px -16px rgba(31,36,48,.35); }

/* sections */
.ab-section { padding: 4rem 0; }
.ab-section-alt { background: var(--ab-bg-alt); }
.ab-section-title { text-align: center; font-size: 1.7rem; margin: 0 0 2.5rem; }
.ab-page-title { font-size: 2rem; margin: 0 0 2rem; }
.ab-cat-title { font-size: 1.15rem; color: var(--ab-muted); margin: 2.5rem 0 1rem; }

/* app grid */
.ab-app-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem;
}
.ab-app-card {
  background: #fff; border: 1px solid var(--ab-border); border-radius: var(--ab-radius);
  padding: 1.25rem 1rem; text-align: center;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s;
}
.ab-app-card:hover { box-shadow: 0 16px 32px -18px rgba(31,36,48,.3); transform: translateY(-3px); }
.ab-app-card img { width: 52px; height: 52px; border-radius: 13px; margin-bottom: .6rem; }
.ab-app-name { font-weight: 700; }
.ab-app-tagline { color: var(--ab-muted); font-size: .82rem; margin-top: .25rem; }

/* features */
.ab-feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.ab-feature h3 { color: var(--ab-primary); }
.ab-cta-band { background: var(--ab-primary); color: #fff; text-align: center; }
.ab-cta-band h2 { margin: 0 0 1.5rem; }

/* pricing */
.ab-plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 3rem; }
.ab-plan-card {
  border: 1px solid var(--ab-border); border-radius: var(--ab-radius);
  padding: 1.75rem 1.5rem; text-align: center; background: #fff;
}
.ab-plan-featured { border-color: var(--ab-primary); box-shadow: 0 20px 44px -20px rgba(113,75,103,.4); }
.ab-plan-price { font-size: 1.6rem; font-weight: 700; margin: .75rem 0; }
.ab-plan-price span { font-size: .85rem; color: var(--ab-muted); font-weight: 400; }

.ab-config-bar {
  position: sticky; top: 64px; z-index: 40;
  display: flex; align-items: stretch; gap: 1.5rem; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--ab-border); border-radius: var(--ab-radius);
  padding: 1rem 1.25rem; margin-bottom: 2rem;
  box-shadow: 0 12px 32px -20px rgba(31,36,48,.35);
}
.ab-config-bar > .ab-btn { align-self: center; }
.ab-config-controls { display: flex; gap: 1.75rem; align-items: center; flex-wrap: wrap; }
.ab-field { display: flex; flex-direction: column; gap: .4rem; }
.ab-field-label { font-size: .78rem; font-weight: 600; color: var(--ab-muted); }
.ab-start-form input {
  border: 1px solid var(--ab-border); border-radius: 10px; padding: .5rem .75rem;
  font: inherit; margin-top: .25rem; background: #fff;
}

/* استپر یکپارچه: − عدد + داخل یک قرص واحد */
.ab-seat-stepper {
  display: inline-flex; align-items: center; height: 2.6rem;
  border: 1px solid var(--ab-border); border-radius: 999px;
  overflow: hidden; background: #fff;
}
.ab-seat-stepper:focus-within { border-color: var(--ab-primary); box-shadow: 0 0 0 3px rgba(113,75,103,.12); }
.ab-seat-stepper button {
  width: 2.4rem; height: 100%; border: none; background: transparent;
  font-size: 1.15rem; line-height: 1; cursor: pointer; color: var(--ab-primary);
  transition: background .12s ease;
}
.ab-seat-stepper button:hover { background: var(--ab-bg-alt); }
#ab-seats {
  width: 3rem; height: 100%; border: none; text-align: center;
  font: inherit; font-weight: 700; color: var(--ab-ink); background: transparent;
  appearance: textfield; -moz-appearance: textfield;
}
#ab-seats::-webkit-outer-spin-button, #ab-seats::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#ab-seats:focus { outline: none; }

/* دوره‌ی پرداخت: segmented control به‌جای select خام */
.ab-seg {
  display: inline-flex; align-items: stretch; height: 2.6rem; box-sizing: border-box;
  border: 1px solid var(--ab-border); border-radius: 999px;
  background: var(--ab-bg-alt); padding: .25rem;
}
.ab-seg button {
  border: none; background: transparent; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ab-muted);
  padding: 0 1rem; display: inline-flex; align-items: center; gap: .45rem;
  transition: background .15s ease, color .15s ease;
}
.ab-seg button.is-active { background: #fff; color: var(--ab-primary); box-shadow: 0 2px 8px -2px rgba(31,36,48,.25); }
.ab-seg button em {
  font-style: normal; font-size: .68rem; line-height: 1.6;
  background: var(--ab-accent); color: #fff; border-radius: 999px; padding: 0 .5rem;
}

.ab-config-summary {
  flex: 1; min-width: 12rem; text-align: left;
  display: flex; flex-direction: column; justify-content: center;
  border-inline-start: 1px solid var(--ab-border); padding-inline-start: 1.5rem;
}
.ab-plan-label { color: var(--ab-muted); font-size: .9rem; }
.ab-price-live { font-size: 1.4rem; font-weight: 700; color: var(--ab-primary); }

@media (max-width: 900px) {
  .ab-config-bar { position: static; flex-direction: column; align-items: stretch; gap: 1rem; }
  .ab-config-controls { justify-content: space-between; }
  .ab-config-summary {
    border-inline-start: none; padding-inline-start: 0; text-align: right;
    border-top: 1px dashed var(--ab-border); padding-top: .75rem;
    flex-direction: row; justify-content: space-between; align-items: baseline;
  }
  .ab-config-bar > .ab-btn { text-align: center; }
}

.ab-app-picker .ab-app-card { cursor: pointer; position: relative; user-select: none; }
.ab-app-card.ab-selected { border-color: var(--ab-primary); background: #faf7f9; box-shadow: 0 0 0 1px var(--ab-primary); }
.ab-app-card.ab-dep { border-style: dashed; border-color: var(--ab-accent); }
.ab-app-card .ab-badge {
  position: absolute; top: .5rem; inset-inline-start: .5rem;
  background: var(--ab-accent); color: #fff; border-radius: 999px;
  font-size: .68rem; padding: 0 .5rem; display: none;
}
.ab-app-card.ab-dep .ab-badge { display: inline-block; }
.ab-app-card .ab-check {
  position: absolute; top: .5rem; inset-inline-end: .5rem;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--ab-primary); color: #fff;
  font-size: .8rem; line-height: 1.3rem; text-align: center;
  display: none;
}
.ab-app-card.ab-selected .ab-check { display: block; }
.ab-picker-compact { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.ab-picker-compact .ab-app-card { padding: .75rem .5rem; }
.ab-picker-compact .ab-app-card img { width: 36px; height: 36px; }
.ab-picker-compact .ab-app-tagline { display: none; }

/* funnel */
.ab-start-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.ab-start-form label { display: block; margin-bottom: 1rem; font-weight: 600; }
.ab-start-form input { width: 100%; }
.ab-alert {
  background: #fdecea; color: #b3261e; border-radius: 10px;
  padding: .75rem 1rem; margin-bottom: 1.25rem;
}
.ab-pay-box { max-width: 32rem; }
.ab-pay-summary { border: 1px solid var(--ab-border); border-radius: var(--ab-radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.ab-pay-summary > div { display: flex; justify-content: space-between; padding: .3rem 0; }
.ab-pay-total { border-top: 1px dashed var(--ab-border); margin-top: .5rem; padding-top: .75rem !important; font-size: 1.1rem; }
.ab-sandbox-badge {
  display: inline-block; background: #fff8e1; color: #8d6e00;
  border-radius: 999px; padding: .2rem 1rem; font-size: .85rem; margin-bottom: 1rem;
}
.ab-pay-actions { display: flex; gap: 1rem; }
.ab-welcome { text-align: center; }

/* footer */
.ab-footer { background: #211a20; color: #cfc7cd; margin-top: 4rem; }
.ab-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 2rem; padding: 3rem 1.25rem; }
.ab-footer h4 { color: #fff; margin: 0 0 .75rem; }
.ab-footer a { display: block; padding: .2rem 0; color: #cfc7cd; }
.ab-footer a:hover { color: #fff; }
.ab-logo-footer { color: #fff; margin-bottom: .5rem; font-size: 1.3rem; font-weight: 700; }
.ab-footer-bottom { border-top: 1px solid #3a3038; padding: 1.25rem; font-size: .85rem; }

/* eNAMAD trust seal — بک‌گراند سفید اجباری برای خوانایی روی فوتر تیره */
.ab-trust-col { display: flex; flex-direction: column; align-items: flex-start; }
.ab-enamad {
  background: #fff; border-radius: 10px; padding: .5rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.ab-enamad img { width: 88px; height: auto; display: block; }

@media (max-width: 900px) {
  .ab-footer-grid { grid-template-columns: 1fr 1fr; }
  .ab-trust-col { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .ab-mega-grid { grid-template-columns: repeat(3, 1fr); }
  .ab-feature-row, .ab-plan-cards { grid-template-columns: 1fr; }
  .ab-start-grid { grid-template-columns: 1fr; }
  .ab-footer-grid { grid-template-columns: 1fr 1fr; }
  .ab-header-row > .ab-btn-primary { display: none; }
  .ab-nav-toggle { display: flex; order: 3; }
  .ab-nav {
    display: none; position: absolute; inset-inline: 0; top: 64px;
    background: #fff; flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem;
    border-bottom: 1px solid var(--ab-border);
    box-shadow: 0 24px 48px -24px rgba(31,36,48,.25);
  }
  .ab-nav.is-open { display: flex; }
  .ab-nav-item { width: 100%; }
  .ab-nav-item > a { padding: .75rem 0; border-bottom: 1px solid var(--ab-border); }
  .ab-nav-cta { display: block; margin-top: .75rem; }
  .ab-nav-cta .ab-btn { display: block; text-align: center; }
  .ab-has-mega .ab-mega { position: static; display: none; box-shadow: none; border: none; padding: .5rem 0 .5rem 1rem; }
  .ab-has-mega.is-mega-open .ab-mega { display: block; }
  .ab-mega-grid { grid-template-columns: repeat(2, 1fr); }
  .ab-user-trigger { background: transparent; border: none; padding: .5rem 0 !important; }
  .ab-user-menu {
    display: block; position: static; margin-top: 0; box-shadow: none; border: none;
    border-top: 1px solid var(--ab-border); border-radius: 0; padding: .5rem 0 0 1rem;
  }
}

/* --- upgrade 2026-07-13: SEO/UX additions --- */
.ab-skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 100;
  background: var(--ab-primary); color: #fff; padding: .5rem 1rem; border-radius: 0 0 10px 10px;
}
.ab-skip-link:focus { inset-inline-start: 1rem; }

.ab-inline-link { color: var(--ab-primary); font-weight: 600; border-bottom: 1px dashed var(--ab-primary); }

.ab-chips {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
}
.ab-chips li {
  background: #fff; border: 1px solid var(--ab-border); border-radius: 999px;
  padding: .3rem 1rem; font-size: .85rem; color: var(--ab-muted);
}

.ab-odoo-teaser { max-width: 46rem; text-align: center; }
.ab-odoo-teaser h2 { font-size: 1.7rem; margin: 0 0 1rem; }
.ab-odoo-teaser p { color: var(--ab-muted); margin: 0 0 1.5rem; }

.ab-prose { max-width: 46rem; }
.ab-prose h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
.ab-prose p { color: var(--ab-ink); }

.ab-compare-wrap { overflow-x: auto; }
.ab-compare {
  width: 100%; max-width: 52rem; margin: 0 auto; border-collapse: collapse;
  background: #fff; border-radius: var(--ab-radius); overflow: hidden;
  box-shadow: 0 12px 32px -20px rgba(31,36,48,.25);
}
.ab-compare th, .ab-compare td { padding: .8rem 1.25rem; text-align: right; border-bottom: 1px solid var(--ab-border); }
.ab-compare thead th { background: var(--ab-primary); color: #fff; font-weight: 700; }
.ab-compare thead th:last-child { background: var(--ab-primary-dark); }
.ab-compare td:first-child { font-weight: 600; }
.ab-compare td:last-child { color: var(--ab-accent); font-weight: 600; }
.ab-compare tbody tr:last-child td { border-bottom: none; }

.ab-faq { max-width: 46rem; margin: 0 auto; }
.ab-faq-pricing { margin-top: 4rem; }
.ab-faq-item {
  border: 1px solid var(--ab-border); border-radius: var(--ab-radius);
  padding: 0; margin-bottom: .75rem; background: #fff;
}
.ab-faq-item summary {
  cursor: pointer; font-weight: 700; padding: 1rem 1.25rem; list-style: none;
  position: relative;
}
.ab-faq-item summary::-webkit-details-marker { display: none; }
.ab-faq-item summary::after {
  content: "+"; position: absolute; inset-inline-end: 1.25rem; top: 50%;
  transform: translateY(-50%); color: var(--ab-primary); font-size: 1.2rem;
}
.ab-faq-item[open] summary::after { content: "−"; }
.ab-faq-item p { margin: 0; padding: 0 1.25rem 1rem; color: var(--ab-muted); }
