/* =========================================================
   Apadana CRM — Marketing Site (RTL / Persian)
   Brand: #61184a
   ========================================================= */

:root {
  /* Brand */
  --ap-primary:        #61184a;
  --ap-primary-700:    #4d1239;
  --ap-primary-800:    #3d0e2d;
  --ap-primary-900:    #2a0a20;
  --ap-primary-100:    #f5ecf1;
  --ap-primary-50:     #faf5f8;
  --ap-accent:         #c9a24b;
  --ap-accent-100:     #f7efd8;

  /* Aliases matching original template */
  --brand:             #61184a;
  --brand-pale:        #f5ecf1;
  --text-main:         #1a1322;

  /* Neutrals */
  --ap-ink:            #1a1322;
  --ap-ink-2:          #2a2233;
  --ap-muted:          #6b6677;
  --ap-muted-2:        #8a8694;
  --ap-line:           #ece9ef;
  --ap-line-2:         #d9d5df;
  --ap-bg:             #fbfaf9;
  --ap-bg-2:           #f4f1ee;
  --ap-bg-3:           #efebe6;
  --ap-white:          #ffffff;

  --ap-grad-soft:      radial-gradient(1200px 600px at 20% -10%, rgba(97,24,74,.08), transparent 60%),
                       radial-gradient(800px 500px at 110% 30%, rgba(201,162,75,.07), transparent 60%);

  /* Type — Persian-first */
  --ap-font-sans:      "Vazirmatn", "IRANSans", "Tahoma", ui-sans-serif, system-ui, sans-serif;
  --ap-font-mono:      "Vazirmatn", ui-monospace, monospace;

  /* Radii */
  --ap-r-sm:           8px;
  --ap-r-md:           12px;
  --ap-r-lg:           16px;
  --ap-r-xl:           22px;
  --ap-r-pill:         999px;
  --radius-xl:         22px;

  /* Shadows */
  --ap-sh-xs:          0 1px 2px rgba(26,19,34,.04), 0 1px 1px rgba(26,19,34,.03);
  --ap-sh-sm:          0 4px 10px rgba(26,19,34,.05), 0 1px 2px rgba(26,19,34,.04);
  --ap-sh-md:          0 10px 30px rgba(26,19,34,.07), 0 2px 6px rgba(26,19,34,.04);
  --ap-sh-lg:          0 24px 60px rgba(42,10,32,.12), 0 6px 14px rgba(26,19,34,.05);

  /* Motion */
  --ap-ease:           cubic-bezier(.2,.7,.2,1);
  --ap-ease-out:       cubic-bezier(.16,1,.3,1);

  /* Density */
  --ap-section-y:      5.5rem;
  --ap-container-px:   1.25rem;
}

@media (max-width: 768px) {
  :root { --ap-section-y: 3rem; }
}

/* =========================================================
   Base
   ========================================================= */
html { scroll-behavior: smooth; }

body {
  font-family: var(--ap-font-sans);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ap-ink);
  background: var(--ap-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
}

::selection { background: var(--ap-primary); color: #fff; }

img, svg { max-width: 100%;
    /*display: block;*/
}

a {
  color: var(--ap-primary);
  text-decoration: none;
  transition: color .15s var(--ap-ease);
}
a:hover { color: var(--ap-primary-700); }

/* =========================================================
   Typography
   ========================================================= */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--ap-font-sans);
  color: var(--ap-ink);
  line-height: 1.4;
  font-weight: 700;
  text-wrap: balance;
}

.ap-display-1 {
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.005em;
}
.ap-display-2 {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.35;
  font-weight: 700;
}
.ap-h1 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 700; }
.ap-h2 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 700; }
.ap-h3 { font-size: 1.15rem; font-weight: 700; }

.ap-lead {
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.85;
  color: var(--ap-muted);
  text-wrap: pretty;
  font-weight: 400;
}

.ap-text-brand { color: var(--ap-primary) !important; }
.text-brand    { color: var(--ap-primary) !important; }

.ap-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ap-primary);
  background: var(--ap-primary-50);
  border: 1px solid var(--ap-primary-100);
  padding: 0.35rem 0.9rem;
  border-radius: var(--ap-r-pill);
}
.ap-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ap-primary);
}

.ap-muted { color: var(--ap-muted); }
.ap-ink   { color: var(--ap-ink); }

/* Persian-friendly number formatting hint */
.persian-num { font-feature-settings: "ss01"; }

/* =========================================================
   Containers & sections
   ========================================================= */
.container, .container-fluid, .container-lg, .container-xl {
  padding-left: var(--ap-container-px);
  padding-right: var(--ap-container-px);
}
@media (min-width: 1200px) {
  .container, .container-lg, .container-xl { max-width: 1200px; }
}

.ap-section {
  padding-top: var(--ap-section-y);
  padding-bottom: var(--ap-section-y);
  position: relative;
}
.ap-section--tight { padding-top: 2.75rem; padding-bottom: 2.75rem; }
.ap-section--soft  { background: var(--ap-bg-2); }
.ap-section--ink   {
  background: var(--ap-primary-900);
  color: #f5ecf1;
}
.ap-section--ink h1, .ap-section--ink h2, .ap-section--ink h3, .ap-section--ink h4 { color: #fff; }
.ap-section--ink .ap-muted { color: rgba(255,255,255,0.7); }
.ap-section--ink .ap-eyebrow {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.15);
  color: var(--ap-accent);
}
.ap-section--ink .ap-eyebrow::before { background: var(--ap-accent); }

.ap-section-head {
  max-width: 760px;
  margin-bottom: 3rem;
}
.ap-section-head.is-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.ap-section-head h2 { margin: 0.85rem 0 1rem; }
.ap-section-head p  { margin: 0; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  --bs-btn-border-radius: var(--ap-r-pill);
  --bs-btn-padding-x: 1.4rem;
  --bs-btn-padding-y: 0.7rem;
  --bs-btn-font-weight: 600;
  --bs-btn-font-size: 0.95rem;
  font-family: var(--ap-font-sans);
  transition: transform .2s var(--ap-ease), background-color .2s var(--ap-ease),
              box-shadow .2s var(--ap-ease), color .2s var(--ap-ease), border-color .2s var(--ap-ease);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-width: 1px;
}
.btn:active { transform: translateY(1px); }

.btn-primary, .btn-site {
  --bs-btn-bg: var(--ap-primary);
  --bs-btn-color: #fff;
  --bs-btn-border-color: var(--ap-primary);
  --bs-btn-hover-bg: var(--ap-primary-700);
  --bs-btn-hover-border-color: var(--ap-primary-700);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--ap-primary-800);
  background: var(--ap-primary);
  color: #fff !important;
  border: 1px solid var(--ap-primary);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 18px rgba(97,24,74,.25);
}
.btn-primary:hover, .btn-site:hover {
  background: var(--ap-primary-700);
  border-color: var(--ap-primary-700);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 10px 24px rgba(97,24,74,.32);
}

.btn-outline-primary {
  --bs-btn-color: var(--ap-ink);
  --bs-btn-border-color: var(--ap-line-2);
  --bs-btn-bg: transparent;
  --bs-btn-hover-bg: var(--ap-white);
  --bs-btn-hover-color: var(--ap-ink);
  --bs-btn-hover-border-color: var(--ap-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ap-ink);
  border: 1px solid transparent;
}
.btn-ghost:hover { background: rgba(26,19,34,.05); color: var(--ap-ink); }

.btn-light-on-dark {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-light-on-dark:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.btn-lg {
  --bs-btn-padding-x: 1.75rem;
  --bs-btn-padding-y: 0.9rem;
  --bs-btn-font-size: 1.02rem;
}
.btn-sm {
  --bs-btn-padding-x: 0.9rem;
  --bs-btn-padding-y: 0.5rem;
  --bs-btn-font-size: 0.825rem;
}

/* Nav CTA — matches original .btn-nav-cta class */
.btn-nav-cta {
  background: var(--ap-primary) !important;
  color: #fff !important;
  border: 1px solid var(--ap-primary) !important;
  border-radius: var(--ap-r-pill) !important;
  padding: 0.55rem 1.2rem !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  box-shadow: 0 6px 18px rgba(97,24,74,.2);
  transition: all .2s var(--ap-ease);
}
.btn-nav-cta:hover {
  background: var(--ap-primary-700) !important;
  border-color: var(--ap-primary-700) !important;
  box-shadow: 0 10px 24px rgba(97,24,74,.3);
  transform: translateY(-1px);
}

/* Arrows for RTL — flip the arrow direction */
.btn .ap-arrow { transition: transform .25s var(--ap-ease); }
.btn:hover .ap-arrow { transform: translateX(-3px); }
.ap-link-arrow .ap-arrow-x { transition: transform .2s var(--ap-ease); display: inline-block; }
.ap-link-arrow:hover .ap-arrow-x { transform: translateX(-3px); }

/* =========================================================
   Navbar
   ========================================================= */
.ap-nav, .menu .navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(251,250,249,0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ap-ease), background-color .2s var(--ap-ease);
}
.ap-nav.is-scrolled,
.menu .navbar.nav-scrolled {
  border-bottom-color: var(--ap-line);
  background: rgba(251,250,249,0.96);
  box-shadow: 0 6px 30px rgba(0,0,0,0.06);
}

.ap-nav .navbar-brand,
.menu .navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ap-ink);
  padding: 0.6rem 0;
}
.ap-nav .navbar-brand img { max-height: 44px; width: auto; }

.ap-nav .nav-link,
.navbar-expand-lg .navbar-nav .nav-link {
  color: var(--ap-ink-2) !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  padding: 0.55rem 0.9rem !important;
  border-radius: var(--ap-r-pill);
  transition: color .15s var(--ap-ease), background-color .15s var(--ap-ease);
  position: relative;
}
.ap-nav .nav-link:hover,
.ap-nav .nav-link.active,
.navbar-expand-lg .navbar-nav .nav-link:hover,
.navbar-expand-lg .navbar-nav .nav-link.active {
  color: var(--ap-primary) !important;
  background: var(--ap-primary-50);
}

.navbar-toggler {
  border: 1px solid var(--ap-line) !important;
  border-radius: var(--ap-r-sm) !important;
  padding: 0.35rem 0.5rem !important;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--ap-primary-100) !important; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2361184a' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 7h18M3 12h18M3 17h18'/%3E%3C/svg%3E") !important;
}

@media (max-width: 991.98px) {
  .ap-nav .navbar-collapse,
  .menu #navbarSupportedContent {
    background: var(--ap-white);
    border: 1px solid var(--ap-line);
    border-radius: var(--ap-r-lg);
    padding: 1rem;
    margin-top: 0.75rem;
    box-shadow: var(--ap-sh-md);
  }
  .ap-nav .nav-link { padding: 0.75rem 0.9rem !important; margin-bottom: 0.15rem; }
}

/* =========================================================
   Hero
   ========================================================= */
.ap-hero, .back-header {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
  background: var(--ap-bg);
}
.ap-hero::before, .back-header::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ap-grad-soft);
  pointer-events: none;
  z-index: 0;
}
.ap-hero > .container, .back-header > .container { position: relative; z-index: 1; }

.ap-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem 0.4rem 0.45rem;
  background: var(--ap-white);
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-r-pill);
  font-size: 0.82rem;
  color: var(--ap-ink-2);
  box-shadow: var(--ap-sh-xs);
}
.ap-hero-pill .ap-pill-tag {
  background: var(--ap-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--ap-r-pill);
}

.ap-hero h1 { margin: 1.5rem 0 1.25rem; }
.ap-hero-actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  margin-top: 2rem;
}
.ap-hero-meta {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--ap-muted);
}
.ap-hero-meta .ap-check {
  width: 18px; height: 18px;
  display: inline-block;
  background: var(--ap-primary-100);
  color: var(--ap-primary);
  border-radius: 999px;
  position: relative;
  margin-left: 0.4rem;
  vertical-align: -4px;
}
.ap-hero-meta .ap-check::after {
  content: "";
  position: absolute;
  left: 5px; top: 4px;
  width: 5px; height: 9px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg);
}

.ap-hero--centered { text-align: center; }
.ap-hero--centered .ap-hero-actions { justify-content: center; }
.ap-hero--centered .ap-hero-meta { justify-content: center; }

/* =========================================================
   Hero stats strip
   ========================================================= */
.ap-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3rem;
  padding: 1.5rem;
  border-radius: var(--ap-r-xl);
  background: var(--ap-primary-900);
  color: #fff;
  box-shadow: var(--ap-sh-lg);
}
.ap-hero-stat {
  text-align: center;
  padding: 0.5rem 1rem;
  position: relative;
}
.ap-hero-stat + .ap-hero-stat::before {
  content: "";
  position: absolute;
  right: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}
.ap-hero-stat .num {
  display: block;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.1;
}
.ap-hero-stat .lbl {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.4rem;
}
@media (max-width: 768px) {
  .ap-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .ap-hero-stat + .ap-hero-stat::before { display: none; }
}

/* =========================================================
   Hero image (real product screenshot)
   ========================================================= */
.ap-hero-img {
  border-radius: var(--ap-r-xl);
  box-shadow: var(--ap-sh-lg);
  overflow: hidden;
  border: 1px solid var(--ap-line);
  background: #fff;
}
.ap-hero-img img { display: block; width: 100%; height: auto; }

/* =========================================================
   Rich product mockup (HTML/CSS dashboard preview)
   ========================================================= */
.ap-mock-wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 40px;
}
@media (max-width: 768px) {
  .ap-mock-wrap { padding: 50px 12px; }
}

.ap-mock-wrap::before {
  content: "";
  position: absolute;
  inset: 10% -5%;
  background:
    radial-gradient(60% 50% at 30% 50%, rgba(97,24,74,.18), transparent 70%),
    radial-gradient(50% 40% at 80% 60%, rgba(201,162,75,.18), transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.ap-mock {
  position: relative;
  z-index: 2;
  background: var(--ap-white);
  border-radius: 22px;
  border: 1px solid var(--ap-line);
  box-shadow:
    0 30px 80px rgba(42,10,32,.18),
    0 8px 20px rgba(26,19,34,.08);
  overflow: hidden;
}

/* window bar (browser-style) */
.ap-mock__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--ap-line);
  background: linear-gradient(180deg, #fff, var(--ap-bg));
}
.ap-mock__bar .dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #e3dee6;
}
.ap-mock__bar .url {
  margin-right: 0.85rem;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--ap-muted);
  background: var(--ap-white);
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}

/* body grid: sidebar (right in RTL) + main */
.ap-mock__body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 440px;
}
@media (max-width: 768px) {
  .ap-mock__body { grid-template-columns: 1fr; }
  .ap-mock__sidebar { display: none; }
}

/* sidebar */
.ap-mock__sidebar {
  background: var(--ap-bg);
  border-left: 1px solid var(--ap-line);
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.ap-mock__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.5rem 0.85rem;
  border-bottom: 1px solid var(--ap-line);
  margin-bottom: 0.6rem;
}
.ap-mock__brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--ap-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.ap-mock__brand-text {
  font-weight: 700;
  font-size: 0.9rem;
}
.ap-mock__sect {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--ap-muted-2);
  font-weight: 600;
  padding: 0.85rem 0.6rem 0.4rem;
}
.ap-mock__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.83rem;
  color: var(--ap-ink-2);
  font-weight: 500;
  cursor: default;
  transition: background .2s var(--ap-ease);
}
.ap-mock__item:hover { background: rgba(97,24,74,.05); }
.ap-mock__item.is-active {
  background: var(--ap-primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(97,24,74,.25);
}
.ap-mock__ico {
  width: 16px; height: 16px;
  display: inline-block;
  flex-shrink: 0;
}
.ap-mock__ico svg { width: 100%; height: 100%; }
.ap-mock__badge {
  margin-right: auto;
  background: var(--ap-accent);
  color: var(--ap-primary-900);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}
.ap-mock__item.is-active .ap-mock__badge { background: rgba(255,255,255,.2); color: #fff; }

/* main */
.ap-mock__main {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
}

/* top */
.ap-mock__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ap-mock__greeting {
  font-size: 0.95rem;
  font-weight: 700;
}
.ap-mock__greeting span {
  color: var(--ap-muted);
  font-weight: 500;
  font-size: 0.82rem;
  margin-right: 0.4rem;
}
.ap-mock__search {
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  color: var(--ap-muted);
  background: var(--ap-bg);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.ap-mock__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ap-primary), var(--ap-accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

/* KPI grid */
.ap-mock__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
@media (max-width: 480px) { .ap-mock__kpis { grid-template-columns: 1fr 1fr; } }

.ap-mock__kpi {
  border: 1px solid var(--ap-line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: var(--ap-bg);
  position: relative;
  overflow: hidden;
}
.ap-mock__kpi--accent {
  background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-700));
  border-color: var(--ap-primary);
  color: #fff;
}
.ap-mock__kpi .lbl {
  font-size: 0.7rem;
  color: var(--ap-muted);
}
.ap-mock__kpi--accent .lbl { color: rgba(255,255,255,.75); }
.ap-mock__kpi .val {
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 0.2rem;
  letter-spacing: -.01em;
}
.ap-mock__kpi--accent .val { color: #fff; }
.ap-mock__kpi .delta {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #1e7a4f;
  margin-top: 0.15rem;
}
.ap-mock__kpi--accent .delta { color: var(--ap-accent); }
.ap-mock__kpi .spark {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  width: 50px;
  height: 22px;
  opacity: 0.4;
}
.ap-mock__kpi--accent .spark { opacity: 0.55; color: var(--ap-accent); }

/* chart */
.ap-mock__chart {
  border: 1px solid var(--ap-line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem 0.5rem;
  background: var(--ap-bg);
}
.ap-mock__chart-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.ap-mock__chart-hd h5 {
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0;
}
.ap-mock__chart-tabs {
  display: inline-flex;
  background: var(--ap-white);
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  padding: 2px;
  font-size: 0.7rem;
}
.ap-mock__chart-tabs span {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: var(--ap-muted);
  font-weight: 500;
}
.ap-mock__chart-tabs span.is-on {
  background: var(--ap-ink);
  color: #fff;
}
.ap-mock__chart-svg {
  width: 100%;
  height: 110px;
  display: block;
}

/* animated draw of chart line */
@keyframes ap-draw {
  from { stroke-dashoffset: 600; }
  to   { stroke-dashoffset: 0; }
}
.ap-mock__chart-svg .ap-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: ap-draw 2.2s var(--ap-ease-out) 0.4s forwards;
}
@keyframes ap-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.ap-mock__chart-svg .ap-area {
  opacity: 0;
  animation: ap-fade-in 1s var(--ap-ease-out) 1.6s forwards;
}
@media (prefers-reduced-motion: reduce) {
  .ap-mock__chart-svg .ap-line { animation: none; stroke-dashoffset: 0; }
  .ap-mock__chart-svg .ap-area { animation: none; opacity: 1; }
}

/* pipeline */
.ap-mock__pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
@media (max-width: 480px) { .ap-mock__pipeline { grid-template-columns: 1fr; } }

.ap-mock__pipe-col {
  border: 1px solid var(--ap-line);
  border-radius: 12px;
  padding: 0.55rem 0.55rem;
  background: var(--ap-bg);
}
.ap-mock__pipe-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  padding: 0 0.2rem;
}
.ap-mock__pipe-hd .tag {
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-weight: 600;
}
.ap-mock__pipe-hd .tag--cold { background: #dbeafe; color: #1e40af; }
.ap-mock__pipe-hd .tag--warm { background: #fef3c7; color: #92400e; }
.ap-mock__pipe-hd .tag--hot  { background: var(--ap-accent-100); color: var(--ap-primary-700); }

.ap-mock__pipe-card {
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
}
.ap-mock__pipe-card:last-child { margin-bottom: 0; }
.ap-mock__pipe-card .name { font-weight: 600; }
.ap-mock__pipe-card .amt {
  color: var(--ap-muted);
  font-size: 0.66rem;
  margin-top: 0.15rem;
  display: flex;
  justify-content: space-between;
}

/* floating accent cards */
.ap-mock__float {
  position: absolute;
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: 0 16px 36px rgba(42,10,32,.18);
  font-size: 0.82rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 280px;
}
.ap-mock__float--tl {
  top: 20px;
  right: 0;
  animation: ap-float-y 5s ease-in-out infinite;
}
.ap-mock__float--bl {
  bottom: 30px;
  right: -10px;
  animation: ap-float-y 6s ease-in-out 1s infinite;
}
.ap-mock__float--tr {
  top: 30px;
  left: 0;
  animation: ap-float-y 5.5s ease-in-out 0.5s infinite;
}
.ap-mock__float--br {
  bottom: 40px;
  left: -10px;
  animation: ap-float-y 6.5s ease-in-out 1.5s infinite;
}
@keyframes ap-float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .ap-mock__float--tl, .ap-mock__float--bl,
  .ap-mock__float--tr, .ap-mock__float--br { animation: none; }
}
@media (max-width: 992px) {
  .ap-mock__float { display: none; }
}

.ap-mock__float-ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ap-primary-50);
  color: var(--ap-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ap-mock__float--success .ap-mock__float-ico { background: #ddf2e6; color: #1e7a4f; }
.ap-mock__float--accent  .ap-mock__float-ico { background: var(--ap-accent-100); color: var(--ap-primary-700); }
.ap-mock__float-title {
  font-weight: 700;
  font-size: 0.83rem;
}
.ap-mock__float-sub {
  font-size: 0.7rem;
  color: var(--ap-muted);
  margin-top: 0.1rem;
}

/* pulse dot for live indicator */
.ap-mock__pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1e7a4f;
  position: relative;
}
.ap-mock__pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(30,122,79,.3);
  animation: ap-pulse 1.8s ease-out infinite;
}
@keyframes ap-pulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* slight tilt on hover for the whole mock */
@media (hover: hover) {
  .ap-mock-wrap:hover .ap-mock {
    transform: perspective(1500px) rotateX(0.5deg) rotateY(-0.5deg);
    transition: transform 0.6s var(--ap-ease-out);
  }
}

/* =========================================================
   مزایا — Punchy stats (redesigned, compact)
   ========================================================= */
.ap-benefits {
  background: var(--ap-primary-900);
  color: #fff;
  padding: var(--ap-section-y) 0;
  position: relative;
  overflow: hidden;
}
.ap-benefits::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 600px at 90% 10%, rgba(201,162,75,.10), transparent 60%),
    radial-gradient(600px 500px at 10% 100%, rgba(97,24,74,.55), transparent 70%);
  pointer-events: none;
}
.ap-benefits > .container { position: relative; z-index: 1; }
.ap-benefits h2 { color: #fff; }
.ap-benefits .section-tag {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.15);
  color: var(--ap-accent);
}
.ap-benefits .section-tag::before { background: var(--ap-accent); }

/* Stats row */
.ap-stats-punch {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}
@media (max-width: 768px) {
  .ap-stats-punch { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .ap-stats-punch { grid-template-columns: 1fr; }
}

.ap-stat-punch {
  padding: 2rem 1.75rem;
  position: relative;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,0.08);
  transition: background .3s var(--ap-ease);
}
.ap-stat-punch:first-child { border-left: none; }
@media (max-width: 768px) {
  .ap-stat-punch:nth-child(2n+1) { border-left: none; }
  .ap-stat-punch:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.08); }
}
@media (max-width: 480px) {
  .ap-stat-punch { border-left: none !important; }
  .ap-stat-punch + .ap-stat-punch { border-top: 1px solid rgba(255,255,255,0.08); }
}

.ap-stat-punch:hover {
  background: rgba(255,255,255,0.04);
}

.ap-stat-punch__num {
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff, var(--ap-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.ap-stat-punch__num small {
  font-size: 1.05rem;
  font-weight: 600;
  margin-right: 0.25rem;
  -webkit-text-fill-color: var(--ap-accent);
  color: var(--ap-accent);
}
.ap-stat-punch__lbl {
  margin-top: 0.85rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
}
.ap-stat-punch__sub {
  margin-top: 0.4rem;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
}

/* =========================================================
   Early adopter / Promise section (for pre-launch product)
   ========================================================= */
.ap-promise {
  padding: var(--ap-section-y) 0;
  position: relative;
  background: var(--ap-bg);
}
.ap-promise::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 90% 10%, rgba(97,24,74,.06), transparent 60%);
  pointer-events: none;
}
.ap-promise > .container { position: relative; z-index: 1; }

.ap-promise-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 992px) { .ap-promise-grid { grid-template-columns: 1fr; } }

/* Left: manifesto card */
.ap-manifesto {
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 24px;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  position: relative;
  overflow: hidden;
}
.ap-manifesto::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 280px; height: 280px;
  background: radial-gradient(circle at top right, var(--ap-primary-50), transparent 70%);
  pointer-events: none;
}
.ap-manifesto > * { position: relative; }

.ap-manifesto__seal {
  position: absolute;
  top: 1.75rem;
  left: 1.75rem;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--ap-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0;
  padding: 0.5rem;
  box-shadow: 0 8px 20px rgba(97,24,74,.3), inset 0 0 0 2px rgba(255,255,255,.15);
  transform: rotate(-8deg);
}
.ap-manifesto__seal span:first-child {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ap-accent);
}
.ap-manifesto__seal span:last-child {
  font-size: 0.62rem;
  margin-top: 0.15rem;
  opacity: 0.85;
}

.ap-manifesto__title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
  max-width: 540px;
  line-height: 1.4;
}
.ap-manifesto__title em {
  font-style: normal;
  color: var(--ap-primary);
}

.ap-manifesto__intro {
  font-size: 1.02rem;
  line-height: 1.95;
  color: var(--ap-ink-2);
  margin: 0 0 1.75rem;
  max-width: 600px;
}

/* Promise list */
.ap-promises {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.ap-promises li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--ap-bg-2);
  border-right: 3px solid var(--ap-primary);
  border-radius: 10px;
}
.ap-promises__ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #fff;
  color: var(--ap-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.ap-promises__ico svg { width: 18px; height: 18px; }
.ap-promises strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ap-ink);
  margin-bottom: 0.2rem;
}
.ap-promises__txt {
  font-size: 0.88rem;
  color: var(--ap-muted);
  line-height: 1.7;
}

/* Signature row */
.ap-manifesto__sig {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ap-line);
}
.ap-manifesto__sig-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ap-primary), var(--ap-accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.ap-manifesto__sig-text strong {
  font-size: 0.95rem;
  display: block;
}
.ap-manifesto__sig-text small {
  font-size: 0.8rem;
  color: var(--ap-muted);
}

/* Right: early adopter card */
.ap-early {
  background: linear-gradient(160deg, var(--ap-primary-900), var(--ap-primary-800));
  color: #fff;
  border-radius: 24px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ap-early::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 300px at 100% 0%, rgba(201,162,75,.22), transparent 60%),
    radial-gradient(300px 250px at 0% 100%, rgba(201,162,75,.08), transparent 60%);
  pointer-events: none;
}
.ap-early > * { position: relative; z-index: 1; }

.ap-early__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ap-accent);
  color: var(--ap-primary-900);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 1rem;
}
.ap-early__badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ap-primary-900);
  animation: ap-blink 1.5s ease-in-out infinite;
}
@keyframes ap-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.ap-early__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: #fff;
  line-height: 1.4;
}
.ap-early__sub {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  margin: 0 0 1.5rem;
}

.ap-early__perks {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  padding: 0;
  list-style: none;
}
.ap-early__perks li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.92);
}
.ap-early__perks li svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--ap-accent);
}

.ap-early__pricing {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.25rem;
}
.ap-early__pricing-lbl {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.3rem;
}
.ap-early__pricing-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}
.ap-early__pricing-now {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ap-accent);
  letter-spacing: -0.02em;
}
.ap-early__pricing-now small {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-right: 0.3rem;
  font-weight: 500;
}
.ap-early__pricing-was {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  text-decoration: line-through;
}
.ap-early__pricing-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ap-primary-900);
  background: var(--ap-accent);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-right: auto;
}

.ap-early__limited {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
  margin-top: 1rem;
}
.ap-early__limited strong {
  color: var(--ap-accent);
  font-weight: 700;
}

/* Trust strip (kept) — adapted for new product */
.ap-tm-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2rem;
  border: 1px solid var(--ap-line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
@media (max-width: 768px) { .ap-tm-strip { grid-template-columns: repeat(2, 1fr); } }
.ap-tm-strip__item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-left: 1px solid var(--ap-line);
}
.ap-tm-strip__item:first-child { border-left: none; }
@media (max-width: 768px) {
  .ap-tm-strip__item:nth-child(2n+1) { border-left: none; }
  .ap-tm-strip__item:nth-child(n+3)  { border-top: 1px solid var(--ap-line); }
}
.ap-tm-strip__num {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: var(--ap-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.ap-tm-strip__lbl {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--ap-muted);
  font-weight: 500;
}
.ap-tm-section {
  padding: var(--ap-section-y) 0;
  position: relative;
  background: var(--ap-bg);
}
.ap-tm-section::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 90% 10%, rgba(97,24,74,.06), transparent 60%),
    radial-gradient(500px 400px at 10% 90%, rgba(201,162,75,.05), transparent 60%);
  pointer-events: none;
}
.ap-tm-section > .container { position: relative; z-index: 1; }

/* Asymmetric grid */
.ap-tm-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 992px) { .ap-tm-grid { grid-template-columns: 1fr; } }

.ap-tm-col-stack {
  display: grid;
  gap: 1.5rem;
  grid-template-rows: 1fr 1fr;
}

/* Card */
.ap-tm {
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 20px;
  padding: 1.6rem 1.75rem;
  position: relative;
  transition: transform .35s var(--ap-ease), box-shadow .35s var(--ap-ease), border-color .35s var(--ap-ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ap-tm:hover {
  transform: translateY(-4px);
  box-shadow: var(--ap-sh-md);
  border-color: var(--ap-line-2);
}

/* Featured (big) card */
.ap-tm--feat {
  background: linear-gradient(160deg, var(--ap-primary-900), var(--ap-primary-800));
  border-color: var(--ap-primary-900);
  color: #fff;
  padding: 2.5rem 2.5rem 2rem;
}
.ap-tm--feat::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(201,162,75,.18), transparent 60%);
  pointer-events: none;
}
.ap-tm--feat > * { position: relative; z-index: 1; }
.ap-tm--feat:hover { border-color: var(--ap-accent); }

/* Big quote glyph */
.ap-tm__qmark {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 5.5rem;
  line-height: 1;
  font-family: serif;
  color: var(--ap-primary);
  opacity: 0.12;
  font-weight: 700;
  pointer-events: none;
}
.ap-tm--feat .ap-tm__qmark {
  color: var(--ap-accent);
  opacity: 0.4;
  font-size: 7rem;
  top: 1.2rem;
}

.ap-tm__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ap-tm__stars {
  color: var(--ap-accent);
  font-size: 0.95rem;
  letter-spacing: 2px;
  font-weight: 600;
}

.ap-tm__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ap-primary);
  background: var(--ap-primary-50);
  border: 1px solid var(--ap-primary-100);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.ap-tm--feat .ap-tm__verified {
  color: var(--ap-accent);
  background: rgba(201,162,75,.12);
  border-color: rgba(201,162,75,.3);
}
.ap-tm__verified svg { width: 12px; height: 12px; }

.ap-tm__text {
  font-size: 0.98rem;
  line-height: 1.95;
  color: var(--ap-ink-2);
  margin: 0 0 1.5rem;
  text-align: justify;
  flex: 1;
}
.ap-tm--feat .ap-tm__text {
  font-size: 1.25rem;
  line-height: 1.85;
  color: #fff;
  font-weight: 500;
  margin-bottom: 2rem;
}

.ap-tm__foot {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ap-line);
}
.ap-tm--feat .ap-tm__foot {
  border-top-color: rgba(255,255,255,0.12);
}

.ap-tm__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ap-primary-100);
  color: var(--ap-primary);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  overflow: hidden;
  position: relative;
}
.ap-tm--feat .ap-tm__avatar {
  width: 56px; height: 56px;
  background: var(--ap-accent);
  color: var(--ap-primary-900);
  font-size: 1.15rem;
  border: 2px solid var(--ap-accent);
}
.ap-tm__avatar img { width: 100%; height: 100%; object-fit: cover; }

.ap-tm__author {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}
.ap-tm__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ap-ink);
}
.ap-tm--feat .ap-tm__name { color: #fff; font-size: 1.05rem; }
.ap-tm__role {
  font-size: 0.82rem;
  color: var(--ap-muted);
}
.ap-tm--feat .ap-tm__role { color: rgba(255,255,255,.65); }

.ap-tm__company {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ap-muted);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--ap-line-2);
  border-radius: 8px;
  background: var(--ap-bg-2);
  flex-shrink: 0;
}
.ap-tm--feat .ap-tm__company {
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.15);
}

/* Trust strip below */
.ap-tm-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2rem;
  border: 1px solid var(--ap-line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
@media (max-width: 768px) { .ap-tm-strip { grid-template-columns: repeat(2, 1fr); } }

.ap-tm-strip__item {
  text-align: center;
  padding: 1.25rem 1rem;
  border-left: 1px solid var(--ap-line);
}
.ap-tm-strip__item:first-child { border-left: none; }
@media (max-width: 768px) {
  .ap-tm-strip__item:nth-child(2n+1) { border-left: none; }
  .ap-tm-strip__item:nth-child(n+3)  { border-top: 1px solid var(--ap-line); }
}
.ap-tm-strip__num {
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: var(--ap-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.ap-tm-strip__num .star {
  color: var(--ap-accent);
  font-size: 0.95em;
  margin-right: 0.15rem;
}
.ap-tm-strip__lbl {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--ap-muted);
  font-weight: 500;
}

/* Features chip strip */
.ap-features-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.ap-features-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  transition: all .2s var(--ap-ease);
}
.ap-features-strip span:hover {
  background: rgba(201,162,75,.12);
  border-color: rgba(201,162,75,.4);
  color: #fff;
}
.ap-features-strip svg {
  width: 14px; height: 14px;
  color: var(--ap-accent);
  flex-shrink: 0;
}

/* =========================================================
   CTA — "۱۵ روز رایگان" trial (premium v2)
   ========================================================= */
.ap-trial {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 110% -20%, rgba(201,162,75,.22), transparent 60%),
    radial-gradient(700px 500px at -10% 120%, rgba(97,24,74,.6), transparent 60%),
    linear-gradient(135deg, #2a0a20, #3d0e2d);
  color: #fff;
}
.ap-trial::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.4;
}
.ap-trial::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 50% 0%, transparent 40%, rgba(0,0,0,.15));
  pointer-events: none;
}

.ap-trial-inner {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 4rem) 0;
  position: relative;
  z-index: 1;
}

/* Top header */
.ap-trial__top {
  text-align: center;
  margin-bottom: 3rem;
}
.ap-trial__top .ap-trial__eyebrow { margin-bottom: 1.25rem; }

/* Eyebrow with pulse */
.ap-trial__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ap-accent);
  background: rgba(201,162,75,.12);
  border: 1px solid rgba(201,162,75,.3);
  padding: 0.45rem 1rem;
  border-radius: 999px;
}
.ap-trial__eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ap-accent);
  box-shadow: 0 0 0 3px rgba(201,162,75,.2);
  animation: ap-pulse-small 2s ease-in-out infinite;
}
@keyframes ap-pulse-small {
  0%, 100% { box-shadow: 0 0 0 3px rgba(201,162,75,.2); }
  50% { box-shadow: 0 0 0 6px rgba(201,162,75,.1); }
}

.ap-trial__title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  margin: 0 auto 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 760px;
  text-wrap: balance;
}
.ap-trial__title .accent {
  background: linear-gradient(90deg, var(--ap-accent), #e8c876);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ap-trial__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.9;
  margin: 0 auto;
  max-width: 600px;
}

/* Keep the trial header centered — override the legacy grid-variant rules below */
.ap-trial__top { text-align: center; }
.ap-trial__top .ap-trial__title { margin-left: auto; margin-right: auto; max-width: 760px; }
.ap-trial__top .ap-trial__sub { margin-left: auto; margin-right: auto; max-width: 600px; }

/* Premium journey timeline */
.ap-trial__journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
}
@media (max-width: 768px) { .ap-trial__journey { grid-template-columns: 1fr; gap: 1.25rem; } }

/* Connector line */
.ap-trial__journey::before {
  content: "";
  position: absolute;
  top: 38px;
  right: 10%;
  left: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,75,.5) 20%, rgba(201,162,75,.5) 80%, transparent);
}
@media (max-width: 768px) {
  .ap-trial__journey::before { display: none; }
}

.ap-trial__step {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: transform .3s var(--ap-ease), background .3s var(--ap-ease), border-color .3s var(--ap-ease);
}
.ap-trial__step:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,162,75,.35);
}

.ap-trial__step-num {
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ap-accent), #b58a30);
  color: var(--ap-primary-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  margin: -2.5rem auto 1.25rem;
  box-shadow: 0 8px 20px rgba(201,162,75,.3), inset 0 0 0 4px var(--ap-primary-900);
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.ap-trial__step-num span:first-child {
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}
.ap-trial__step-num span:last-child {
  font-size: 0.6rem;
  opacity: 0.75;
}

.ap-trial__step-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  text-align: center;
}
.ap-trial__step-desc {
  font-size: 0.88rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.7);
  margin: 0;
  text-align: center;
}

/* Features 2-col grid */
.ap-trial__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1.25rem;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}
@media (max-width: 576px) { .ap-trial__features { grid-template-columns: 1fr; } }

.ap-trial__feat {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.94rem;
  color: rgba(255,255,255,0.85);
  padding: 0.4rem 0;
}
.ap-trial__feat svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--ap-accent);
  background: rgba(201,162,75,.15);
  border-radius: 50%;
  padding: 4px;
}

/* CTA block */
.ap-trial__cta {
  text-align: center;
  padding: 2rem 0;
}
.ap-trial__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.ap-trial__actions .btn { font-weight: 700; min-width: 200px; justify-content: center; }
.ap-trial__hints {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.ap-trial__hints span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.ap-trial__hints svg {
  width: 14px; height: 14px;
  color: var(--ap-accent);
}

/* Bottom trust bar */
.ap-trial__bottom {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ap-trial__bottom-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.ap-trial__bottom-text strong {
  color: var(--ap-accent);
  font-weight: 700;
}
.ap-trial__bottom-certs {
  display: flex;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
}
.ap-trial__bottom-certs span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}
.ap-trial__bottom-certs span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ap-accent);
}
.ap-trial::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,75,.18), transparent 70%);
  pointer-events: none;
}
.ap-trial::after {
  content: "";
  position: absolute;
  bottom: -120px; left: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

.ap-trial__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 992px) {
  .ap-trial__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.ap-trial__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ap-accent);
  background: rgba(201,162,75,.15);
  border: 1px solid rgba(201,162,75,.3);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
}
.ap-trial__eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ap-accent);
  box-shadow: 0 0 0 3px rgba(201,162,75,.3);
}

.ap-trial__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin: 1.25rem 0 1rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.ap-trial__title .accent {
  background: linear-gradient(90deg, var(--ap-accent), #e8c876);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ap-trial__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.95;
  margin: 0 0 1.75rem;
  max-width: 480px;
}

.ap-trial__checklist {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.ap-trial__checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
}
.ap-trial__checklist li svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  background: rgba(201,162,75,.2);
  color: var(--ap-accent);
  border-radius: 999px;
  padding: 3px;
}

.ap-trial__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.ap-trial__actions .btn { font-weight: 700; }
.ap-trial__hint {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Right visual: stacked layered card with the big "15" */
.ap-trial__visual {
  position: relative;
  min-height: 360px;
}
@media (max-width: 992px) {
  .ap-trial__visual { min-height: 320px; }
}

.ap-trial__big {
  position: absolute;
  top: 50%; right: 50%;
  transform: translate(50%, -50%);
  font-size: clamp(11rem, 20vw, 16rem);
  font-weight: 900;
  line-height: 0.85;
  background: linear-gradient(180deg, rgba(201,162,75,.5), rgba(201,162,75,.05));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.05em;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.ap-trial__card {
  position: absolute;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}

.ap-trial__card-1 {
  top: 0;
  right: 0;
  transform: rotate(-3deg);
  width: 260px;
}
.ap-trial__card-2 {
  bottom: 20px;
  left: 0;
  transform: rotate(2deg);
  width: 240px;
}
.ap-trial__card-3 {
  top: 50%;
  right: 50%;
  transform: translate(50%, -10%);
  width: 220px;
  background: linear-gradient(135deg, var(--ap-accent), #b58a30);
  border: none;
  color: var(--ap-primary-900);
}

.ap-trial__card-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.ap-trial__card-3 .ap-trial__card-eyebrow { color: rgba(42,10,32,0.65); }
.ap-trial__card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  color: #fff;
}
.ap-trial__card-3 .ap-trial__card-title { color: var(--ap-primary-900); }
.ap-trial__card-meta {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}
.ap-trial__card-3 .ap-trial__card-meta { color: rgba(42,10,32,0.7); }

.ap-trial__pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  margin-left: 6px;
  position: relative;
}
.ap-trial__pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(74,222,128,.4);
  animation: ap-pulse 1.8s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ap-trial__pulse-dot::after { animation: none; }
}

/* =========================================================
   Feature rows (numbered)
   ========================================================= */
.ap-feature-row {
  padding: 2rem 0;
}
.ap-feature-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  font-family: "Vazirmatn", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--ap-primary-50);
  color: var(--ap-primary);
  border-radius: 14px;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.ap-feature-row h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.ap-feature-row p { color: var(--ap-muted); line-height: 1.95; text-align: justify; }

.ap-feature-art {
  border-radius: var(--ap-r-xl);
  background: linear-gradient(135deg, var(--ap-primary-50), var(--ap-bg-2));
  border: 1px solid var(--ap-line);
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-feature-art img { max-width: 80%; max-height: 80%; }
.ap-feature-art::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 14px, rgba(97,24,74,0.05) 14px 15px);
  pointer-events: none;
}

/* =========================================================
   Why us / capabilities (6 boxes on dark)
   ========================================================= */
.ap-why {
  background: var(--ap-primary-900);
  color: #fff;
  padding: var(--ap-section-y) 0;
  position: relative;
  overflow: hidden;
}
.ap-why::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 80% 0%, rgba(201,162,75,.12), transparent 60%);
  pointer-events: none;
}
.ap-why > .container { position: relative; z-index: 1; }
.ap-why h2 { color: #fff; }

.ap-why-box {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--ap-r-lg);
  transition: background .25s var(--ap-ease), border-color .25s var(--ap-ease), transform .25s var(--ap-ease);
}
.ap-why-box:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(201,162,75,.4);
  transform: translateY(-2px);
}
.ap-why-icon {
  width: 56px; height: 56px;
  background: #fff;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ap-why-icon img { width: 32px; height: 32px; object-fit: contain; }
.ap-why-box h4 { color: #fff; font-size: 1.05rem; margin: 0 0 0.25rem; font-weight: 700; }
.ap-why-box .sub { color: rgba(255,255,255,0.65); font-size: 0.85rem; margin: 0; }

/* center column (question + dashboard image) */
.ap-why-center {
  text-align: center;
  padding: 1rem 0;
}
.ap-why-center .q-mark {
  width: 84px;
  margin: 0 auto 1.5rem;
  display: block;
}
.ap-why-center .dash-img {
  width: 100%;
  border-radius: var(--ap-r-xl);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

/* =========================================================
   FAQ accordion
   ========================================================= */
.ap-faq .accordion-item {
  background: transparent;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-r-lg) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.ap-faq .accordion-button {
  background: var(--ap-white);
  font-weight: 600;
  color: var(--ap-ink);
  padding: 1.15rem 1.25rem;
  font-size: 1rem;
  box-shadow: none !important;
  font-family: var(--ap-font-sans);
}
.ap-faq .accordion-button:not(.collapsed) {
  color: var(--ap-primary);
  background: var(--ap-primary-50);
}
.ap-faq .accordion-button:focus { box-shadow: none; }
.ap-faq .accordion-button::after {
  background: none;
  width: 12px; height: 12px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s var(--ap-ease);
  margin-right: auto;
  margin-left: 0;
}
.ap-faq .accordion-button:not(.collapsed)::after {
  transform: rotate(-135deg);
}
.ap-faq .accordion-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--ap-muted);
  font-size: 0.95rem;
  line-height: 1.95;
  background: var(--ap-white);
  text-align: justify;
}

/* =========================================================
   Testimonials
   ========================================================= */
.ap-quote {
  background: var(--ap-white);
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-r-lg);
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ap-ease), box-shadow .3s var(--ap-ease);
  position: relative;
}
.ap-quote:hover {
  transform: translateY(-3px);
  box-shadow: var(--ap-sh-md);
}
.ap-quote .stars {
  color: var(--ap-accent);
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.ap-quote .quote-mark {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--ap-primary);
  opacity: 0.1;
  font-family: serif;
}
.ap-quote blockquote {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ap-ink-2);
  margin: 0 0 1.5rem;
  flex: 1;
  text-align: justify;
  text-wrap: pretty;
}
.ap-quote-author {
  display: flex; align-items: center; gap: 0.85rem;
  margin-top: auto;
}
.ap-quote-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ap-primary-100);
  color: var(--ap-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  overflow: hidden;
  flex-shrink: 0;
}
.ap-quote-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ap-quote-name { font-weight: 700; font-size: 0.94rem; }
.ap-quote-role { font-size: 0.82rem; color: var(--ap-muted); }

/* =========================================================
   Testimonials — elegant cards (homepage نظرات مشتریان)
   ========================================================= */
.ap-tgrid { margin-top: 2.5rem; }
.ap-tcard {
  position: relative;
  background: var(--ap-white, #fff);
  border: 1px solid var(--ap-line, #ece9ef);
  border-radius: var(--ap-r-lg, 20px);
  padding: 2.1rem 1.85rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .35s var(--ap-ease, cubic-bezier(.4,0,.2,1)),
              box-shadow .35s var(--ap-ease, cubic-bezier(.4,0,.2,1)),
              border-color .35s var(--ap-ease, cubic-bezier(.4,0,.2,1));
}
.ap-tcard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ap-primary, #61184a), var(--ap-accent, #c9a24b));
  opacity: 0;
  transition: opacity .35s var(--ap-ease, cubic-bezier(.4,0,.2,1));
}
.ap-tcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(97, 24, 74, .13);
  border-color: transparent;
}
.ap-tcard:hover::before { opacity: 1; }
.ap-tcard__mark {
  position: absolute;
  top: .35rem;
  left: 1.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.5rem;
  line-height: 1;
  color: var(--ap-primary, #61184a);
  opacity: .08;
  pointer-events: none;
  user-select: none;
}
.ap-tcard__stars {
  color: var(--ap-accent, #c9a24b);
  letter-spacing: 3px;
  font-size: .95rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.ap-tcard__text {
  font-size: 1rem;
  line-height: 2;
  color: var(--ap-ink-2, #4a3f52);
  margin: 0 0 1.5rem;
  flex: 1;
  text-align: justify;
  text-wrap: pretty;
  position: relative;
  z-index: 1;
}
.ap-tcard__author {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid var(--ap-line, #ece9ef);
}
.ap-tcard__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ap-primary-100, #f5ecf1);
  color: var(--ap-primary, #61184a);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 0 0 2px var(--ap-white, #fff), 0 0 0 4px var(--ap-primary-100, #f5ecf1);
}
.ap-tcard__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ap-tcard__name { font-weight: 700; font-size: .95rem; color: var(--ap-ink, #20131c); }
.ap-tcard__role { font-size: .82rem; color: var(--ap-muted, #8a7f93); }

/* =========================================================
   Blog cards (real images)
   ========================================================= */
.ap-post {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  text-decoration: none;
  color: var(--ap-ink);
  background: var(--ap-white);
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-r-lg);
  overflow: hidden;
  transition: transform .3s var(--ap-ease), box-shadow .3s var(--ap-ease), border-color .3s var(--ap-ease);
}
.ap-post:hover {
  color: var(--ap-ink);
  transform: translateY(-3px);
  box-shadow: var(--ap-sh-md);
  border-color: var(--ap-line-2);
}
.ap-post-thumb {
  aspect-ratio: 16/10;
  background: var(--ap-bg-2);
  position: relative;
  overflow: hidden;
}
.ap-post-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ap-ease);
}
.ap-post:hover .ap-post-thumb img { transform: scale(1.04); }
.ap-post-thumb .ap-post-cat {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--ap-white);
  color: var(--ap-ink);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--ap-r-pill);
}
.ap-post-body { padding: 1rem 1.25rem 1.5rem; }
.ap-post-meta {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--ap-muted);
  margin-bottom: 0.6rem;
}
.ap-post-body h3 {
  font-size: 1.1rem;
  line-height: 1.55;
  margin: 0 0 0.6rem;
  font-weight: 700;
}
.ap-post:hover .ap-post-body h3 { color: var(--ap-primary); }
.ap-post-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ap-muted);
  line-height: 1.85;
}

/* =========================================================
   CTA banner
   ========================================================= */
.ap-cta-banner {
  background: var(--ap-primary-900);
  color: #fff;
  border-radius: var(--ap-r-xl);
  padding: clamp(2rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.ap-cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 10% 100%, rgba(201,162,75,.18), transparent 60%),
    radial-gradient(600px 400px at 90% 0%, rgba(255,255,255,.06), transparent 60%);
  pointer-events: none;
}
.ap-cta-banner > * { position: relative; z-index: 1; }
.ap-cta-banner h2 { color: #fff; }

.ap-cta-banner .cta-img {
  max-width: 100%;
  height: auto;
}

/* =========================================================
   Page header (sub-pages)
   ========================================================= */
.ap-pagehead {
  padding: 4.5rem 0 2.75rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ap-line);
  background: var(--ap-bg);
}
.ap-pagehead::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ap-grad-soft);
  z-index: 0;
}
.ap-pagehead > .container { position: relative; z-index: 1; }
.ap-pagehead .breadcrumb {
  margin: 0 0 1rem;
  font-size: 0.88rem;
}
.ap-pagehead .breadcrumb-item a { color: var(--ap-muted); }
.ap-pagehead .breadcrumb-item.active { color: var(--ap-ink-2); }
.ap-pagehead .breadcrumb-item + .breadcrumb-item::before {
  content: "‹";
  color: var(--ap-muted-2);
}

/* =========================================================
   Pricing
   ========================================================= */
.ap-price-toggle {
  display: inline-flex;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-r-pill);
  padding: 4px;
  background: var(--ap-white);
}
.ap-price-toggle button {
  background: transparent;
  border: none;
  border-radius: var(--ap-r-pill);
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ap-muted);
  cursor: pointer;
  transition: all .15s var(--ap-ease);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ap-font-sans);
}
.ap-price-toggle button.is-active {
  background: var(--ap-ink);
  color: #fff;
}
.ap-price-toggle .ap-save-tag {
  background: var(--ap-accent-100);
  color: var(--ap-primary-700);
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: var(--ap-r-pill);
  font-weight: 700;
}
.ap-price-toggle button.is-active .ap-save-tag { background: rgba(255,255,255,.18); color: #fff; }

.ap-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 992px) { .ap-pricing-grid { grid-template-columns: 1fr; } }

.ap-price {
  background: var(--ap-white);
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.ap-price.is-featured {
  background: var(--ap-primary-900);
  color: #f5ecf1;
  border-color: var(--ap-primary-900);
  transform: translateY(-8px);
  box-shadow: var(--ap-sh-lg);
}
@media (max-width: 992px) { .ap-price.is-featured { transform: none; } }

.ap-price .ap-price-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ap-muted);
}
.ap-price.is-featured .ap-price-name { color: var(--ap-accent); }
.ap-price .ap-price-amt {
  margin: 1rem 0 0.25rem;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}
.ap-price.is-featured .ap-price-amt { color: #fff; }
.ap-price .ap-price-amt small {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ap-muted);
}
.ap-price.is-featured .ap-price-amt small { color: rgba(255,255,255,.65); }
.ap-price .ap-price-desc {
  font-size: 0.9rem;
  color: var(--ap-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.ap-price.is-featured .ap-price-desc { color: rgba(255,255,255,.7); }

.ap-price ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1;
  display: grid;
  gap: 0.6rem;
}
.ap-price ul li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--ap-ink-2);
  line-height: 1.7;
}
.ap-price.is-featured ul li { color: rgba(255,255,255,.88); }
.ap-price ul li svg { flex-shrink: 0; margin-top: 5px; color: var(--ap-primary); }
.ap-price.is-featured ul li svg { color: var(--ap-accent); }

.ap-price-tag {
  position: absolute;
  top: 1.4rem;
  left: 1.5rem;
  background: var(--ap-accent);
  color: var(--ap-primary-900);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--ap-r-pill);
}

/* =========================================================
   Form / Contact
   ========================================================= */
.ap-form .form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ap-ink-2);
  margin-bottom: 0.4rem;
  font-family: var(--ap-font-sans);
}
.ap-form .form-control,
.ap-form .form-select {
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-r-md);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background: var(--ap-white);
  transition: border-color .15s var(--ap-ease), box-shadow .15s var(--ap-ease);
  font-family: var(--ap-font-sans);
}
.ap-form .form-control:focus,
.ap-form .form-select:focus {
  border-color: var(--ap-primary);
  box-shadow: 0 0 0 4px var(--ap-primary-100);
}
.ap-form textarea.form-control { min-height: 140px; }

.ap-contact-card {
  background: var(--ap-white);
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-r-lg);
  padding: 1.25rem 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color .2s var(--ap-ease), transform .2s var(--ap-ease);
}
.ap-contact-card:hover {
  border-color: var(--ap-primary-100);
  transform: translateY(-2px);
}
.ap-contact-card .ap-feat-ico {
  width: 44px; height: 44px;
  background: var(--ap-primary-50);
  color: var(--ap-primary);
  border-radius: var(--ap-r-md);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ap-contact-card h4 { font-size: 1rem; margin: 0 0 0.3rem; font-weight: 700; }
.ap-contact-card p { margin: 0; font-size: 0.9rem; color: var(--ap-muted); line-height: 1.7; }

/* =========================================================
   Article body
   ========================================================= */
.ap-article {
  max-width: 760px;
  margin: 0 auto;
}
.ap-article p {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--ap-ink-2);
  text-wrap: pretty;
  text-align: justify;
  margin-bottom: 1.25rem;
}
.ap-article h2 {
  font-size: 1.55rem;
  margin: 2.5rem 0 1rem;
  font-weight: 700;
}
.ap-article h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}
.ap-article blockquote {
  border-right: 3px solid var(--ap-primary);
  border-left: none;
  padding: 0.5rem 1.5rem 0.5rem 0;
  margin: 2rem 0;
  font-size: 1.1rem;
  color: var(--ap-ink);
  font-weight: 500;
  background: var(--ap-primary-50);
  border-radius: var(--ap-r-md);
  padding: 1rem 1.25rem;
}
.ap-article ul, .ap-article ol {
  padding-right: 1.25rem;
  padding-left: 0;
  font-size: 1rem;
  color: var(--ap-ink-2);
  line-height: 2;
}
.ap-article ul li, .ap-article ol li { margin-bottom: 0.5rem; }

/* =========================================================
   Scroll-reveal
   ========================================================= */
.ap-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ap-ease-out), transform .7s var(--ap-ease-out);
  will-change: opacity, transform;
}
.ap-reveal.is-in { opacity: 1; transform: translateY(0); }
.ap-reveal[data-delay="1"] { transition-delay: .08s; }
.ap-reveal[data-delay="2"] { transition-delay: .16s; }
.ap-reveal[data-delay="3"] { transition-delay: .24s; }
.ap-reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .ap-reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Footer
   ========================================================= */
.ap-footer {
  background: var(--ap-primary-900);
  color: rgba(255,255,255,0.85);
  padding-top: 4rem;
  padding-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.ap-footer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(201,162,75,.08), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(97,24,74,.4), transparent 60%);
  pointer-events: none;
}
.ap-footer > .container { position: relative; z-index: 1; }

.ap-footer .ap-foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 992px) { .ap-footer .ap-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .ap-footer .ap-foot-grid { grid-template-columns: 1fr; } }

.ap-footer h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.25rem;
}
.ap-footer ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0.7rem;
}
.ap-footer ul a {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  transition: color .15s var(--ap-ease);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.ap-footer ul a:hover { color: var(--ap-accent); }
.ap-footer ul a::before {
  content: "‹";
  color: var(--ap-accent);
  opacity: 0.7;
}

.ap-foot-brand img.brand-mark { max-height: 56px; margin-bottom: 1rem; filter: brightness(0) invert(1) opacity(.95); }
.ap-foot-brand .desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  margin: 1rem 0 1.25rem;
  line-height: 2;
  text-align: justify;
}
.ap-foot-certs {
  display: flex; gap: 0.75rem;
  margin-top: 1rem;
}
.ap-foot-certs img {
  width: 84px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--ap-r-sm);
  padding: 0.4rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.ap-foot-contact p {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.85;
}
.ap-foot-contact p svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--ap-accent);
}

.ap-foot-social {
  display: flex; gap: 0.5rem;
  margin-top: 1.25rem;
}
.ap-foot-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--ap-r-sm);
  color: #fff;
  transition: all .15s var(--ap-ease);
  background: rgba(255,255,255,0.04);
}
.ap-foot-social a:hover {
  background: var(--ap-accent);
  color: var(--ap-primary-900);
  border-color: var(--ap-accent);
}

.ap-foot-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.6);
}

/* =========================================================
   Scroll-to-top
   ========================================================= */
.ap-scroll-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ap-primary);
  color: #fff;
  border: none;
  z-index: 1500;
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s var(--ap-ease), transform .25s var(--ap-ease), background .2s var(--ap-ease);
  box-shadow: var(--ap-sh-md);
}
.ap-scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ap-scroll-top:hover { background: var(--ap-primary-700); }

/* =========================================================
   Tweaks panel
   ========================================================= */
.ap-tweaks {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 2000;
  width: 320px;
  max-height: calc(100vh - 2rem);
  background: var(--ap-white);
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-r-lg);
  box-shadow: var(--ap-sh-lg);
  font-size: 0.85rem;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--ap-font-sans);
}
.ap-tweaks.is-open { display: flex; }
.ap-tweaks-hd {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--ap-line);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ap-bg);
}
.ap-tweaks-hd h5 { margin: 0; font-size: 0.95rem; font-weight: 700; }
.ap-tweaks-hd button {
  background: transparent;
  border: none;
  color: var(--ap-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--ap-r-sm);
}
.ap-tweaks-hd button:hover { color: var(--ap-ink); background: var(--ap-line); }
.ap-tweaks-bd {
  padding: 1rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ap-tweak-grp h6 {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ap-muted);
  font-weight: 600;
}
.ap-tweak-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.88rem;
}
.ap-tweak-swatches {
  display: flex; gap: 0.45rem; flex-wrap: wrap;
}
.ap-tweak-swatches button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform .15s var(--ap-ease);
}
.ap-tweak-swatches button:hover { transform: scale(1.08); }
.ap-tweak-swatches button.is-active { border-color: var(--ap-ink); box-shadow: 0 0 0 2px #fff inset; }

.ap-tweak-seg {
  display: flex;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-r-pill);
  padding: 2px;
  background: var(--ap-bg);
}
.ap-tweak-seg button {
  background: transparent;
  border: none;
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--ap-r-pill);
  cursor: pointer;
  color: var(--ap-muted);
  flex: 1;
  font-family: var(--ap-font-sans);
}
.ap-tweak-seg button.is-active { background: var(--ap-ink); color: #fff; }

.ap-tweak-switch {
  position: relative;
  width: 36px; height: 20px;
  background: var(--ap-line-2);
  border-radius: var(--ap-r-pill);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .15s var(--ap-ease);
}
.ap-tweak-switch::after {
  content: "";
  position: absolute;
  top: 2px; right: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s var(--ap-ease);
}
.ap-tweak-switch.is-on { background: var(--ap-primary); }
.ap-tweak-switch.is-on::after { transform: translateX(-16px); }

.ap-tweaks-fab {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 1999;
  background: var(--ap-ink);
  color: #fff;
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  box-shadow: var(--ap-sh-md);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform .2s var(--ap-ease);
}
.ap-tweaks-fab:hover { transform: scale(1.05); }
.ap-tweaks-fab.is-visible { display: inline-flex; }

@media (max-width: 480px) {
  .ap-tweaks { width: calc(100vw - 2rem); }
}

/* =========================================================
   Utilities
   ========================================================= */
.ap-divider {
  height: 1px;
  background: var(--ap-line);
  border: none;
}
.ap-tag {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--ap-r-pill);
  background: var(--ap-primary-100);
  color: var(--ap-primary);
}
.ap-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ap-primary);
}

/* CTA banner image with halo */
.ap-cta-img-wrap {
  position: relative;
  display: inline-block;
}
.ap-cta-img-wrap::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(201,162,75,.18), transparent 60%);
  z-index: 0;
}
.ap-cta-img-wrap img { position: relative; z-index: 1; }

/* =========================================================
   Compatibility with original template class names
   (so backend templating remains functional)
   ========================================================= */

/* original ".facilities" feature rows */
.facilities { padding: var(--ap-section-y) 0; }
.facilities .facility-row {
  padding: 1.5rem 0;
  align-items: center;
}
.facilities .facility-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  font-size: 1.15rem;
  font-weight: 800;
  background: var(--ap-primary-50);
  color: var(--ap-primary);
  border-radius: 14px;
  margin-bottom: 1rem;
}
.facilities h3 { font-size: 1.5rem; margin-bottom: 1rem; font-weight: 700; }
.facilities p { color: var(--ap-muted); line-height: 1.95; text-align: justify; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ap-primary);
  background: var(--ap-primary-50);
  border: 1px solid var(--ap-primary-100);
  padding: 0.35rem 0.9rem;
  border-radius: var(--ap-r-pill);
}
.section-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ap-primary);
}
.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 800;
  margin: 1rem 0;
  letter-spacing: -0.005em;
}
.section-subtitle {
  color: var(--ap-muted);
  font-size: 1.02rem;
  line-height: 1.85;
  max-width: 640px;
  margin: 0 auto;
}
.section-divider {
  width: 60px; height: 3px;
  background: var(--ap-primary);
  border-radius: 999px;
  margin: 1.5rem auto 0;
}

/* original ".capability" dark section */
.capability {
  background: var(--ap-primary-900);
  color: #fff;
  padding: var(--ap-section-y) 0;
  position: relative;
  overflow: hidden;
}
.capability::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 80% 0%, rgba(201,162,75,.12), transparent 60%);
  pointer-events: none;
}
.capability > .container { position: relative; z-index: 1; }
.capability h2 { color: #fff !important; }
.capability .section-tag {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  color: var(--ap-accent);
}
.capability .section-tag::before { background: var(--ap-accent); }
.capability .section-divider { background: var(--ap-accent); }

.capability .box-right > div,
.capability .box-left > div {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--ap-r-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  transition: background .25s var(--ap-ease), border-color .25s var(--ap-ease), transform .25s var(--ap-ease);
}
.capability .box-right > div:hover,
.capability .box-left > div:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(201,162,75,.4);
  transform: translateY(-2px);
}
.capability .box-icon {
  width: 56px; height: 56px;
  background: #fff;
  border-radius: 14px;
  flex-shrink: 0;
}
.capability .box-icon .icon { width: 32px; height: 32px; object-fit: contain; padding: 0 !important; }
.capability h4 { color: #fff !important; font-size: 1.02rem; margin: 0; font-weight: 700; }
.capability h5 { color: rgba(255,255,255,0.6) !important; font-size: 0.83rem; margin: 0; }
.capability .hr-w {
  border-color: rgba(255,255,255,0.1);
  margin: 0.4rem 0;
}

.capability .col-lg-4.d-lg-block { text-align: center; }
.capability .col-lg-4.d-lg-block img:first-of-type {
  margin: 0 auto 1.5rem;
  display: block;
}
.capability .col-lg-4.d-lg-block img:last-of-type {
  border-radius: var(--ap-r-xl);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

/* original ".question" (FAQ) */
.question { padding: var(--ap-section-y) 0; }
.question .accordion { max-width: 880px; margin: 0 auto; }
.question .accordion-item {
  background: transparent;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-r-lg) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.question .accordion-button {
  background: var(--ap-white);
  font-weight: 600;
  color: var(--ap-ink);
  padding: 1.15rem 1.25rem;
  font-size: 1rem;
  box-shadow: none !important;
  font-family: var(--ap-font-sans);
}
.question .accordion-button:not(.collapsed) {
  color: var(--ap-primary);
  background: var(--ap-primary-50);
}
.question .accordion-button:focus { box-shadow: none; }
.question .accordion-button::after {
  background: none;
  width: 12px; height: 12px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s var(--ap-ease);
  margin-right: auto;
  margin-left: 0;
}
.question .accordion-button:not(.collapsed)::after { transform: rotate(-135deg); }
.question .accordion-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--ap-muted);
  font-size: 0.95rem;
  line-height: 1.95;
  background: var(--ap-white);
  text-align: justify;
}

/* original ".comment" (testimonials) */
.comment { padding: var(--ap-section-y) 0; }
.comment .testimonial-quote {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--ap-primary);
  opacity: 0.1;
  font-family: serif;
}
.comment .testimonial-stars {
  color: var(--ap-accent);
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 0.85rem;
  display: block;
}
.comment .card {
  background: var(--ap-white);
  border: 1px solid var(--ap-line) !important;
  border-radius: var(--ap-r-lg) !important;
  padding: 1.75rem;
  height: 100%;
  position: relative;
  transition: transform .3s var(--ap-ease), box-shadow .3s var(--ap-ease);
}
.comment .card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ap-sh-md);
}
.comment .card .border-start {
  border: none !important;
  font-size: 0.96rem;
  color: var(--ap-ink-2);
  line-height: 1.9;
  padding: 0 0 1rem !important;
  text-align: justify;
}
.comment .card img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

/* original ".back-banner" — free trial CTA */
.back-banner {
  background: var(--ap-primary-900);
  color: #fff;
  border-radius: var(--ap-r-xl);
  padding: 2rem clamp(1.5rem, 3vw, 3rem);
  position: relative;
  overflow: hidden;
}
.back-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 10% 100%, rgba(201,162,75,.18), transparent 60%);
  pointer-events: none;
}
.back-banner > * { position: relative; z-index: 1; }
.back-banner h2, .back-banner h3 { color: #fff; }
.back-banner h3 { color: rgba(255,255,255,0.78); font-weight: 400; }
.back-banner .img-user {
  width: 90%;
  height: auto;
}
.call-icon {
  width: 56px;
  height: 56px;
  bottom: 10px;
  left: 30px;
  z-index: 2;
}

/* original ".articles" + ".card-article" */
.articles { padding: var(--ap-section-y) 0; }
.article-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.article-section-header h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  margin: 0;
}
.article-section-header a {
  color: var(--ap-primary);
  font-weight: 600;
  font-size: 0.95rem;
}
.card-article {
  background: var(--ap-white);
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-r-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ap-ease), box-shadow .3s var(--ap-ease), border-color .3s var(--ap-ease);
}
.card-article:hover {
  transform: translateY(-3px);
  box-shadow: var(--ap-sh-md);
  border-color: var(--ap-line-2);
}
.card-article > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .5s var(--ap-ease);
}
.card-article:hover > img { transform: scale(1.04); }
.card-article-body { padding: 1.25rem 1.4rem 1.5rem; }
.card-article-body h3 {
  font-size: 1.1rem;
  line-height: 1.55;
  margin: 0 0 0.6rem;
  font-weight: 700;
  color: var(--ap-ink);
}
.card-article:hover .card-article-body h3 { color: var(--ap-primary); }
.card-article-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ap-muted);
  line-height: 1.85;
}

/* original ".footer" */
.footer {
  background: var(--ap-primary-900);
  color: rgba(255,255,255,0.85);
  padding-top: 4rem;
  padding-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(201,162,75,.08), transparent 60%);
  pointer-events: none;
}
.footer > .container { position: relative; z-index: 1; }
.footer h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.25rem;
}
.footer p {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  line-height: 1.95;
  margin: 0 0 0.6rem;
}
.footer .text-justify {
  color: rgba(255,255,255,0.7);
  text-align: justify;
  line-height: 2;
  margin-top: 0.5rem;
  font-size: 0.92rem;
}
.footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.footer .footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color .15s var(--ap-ease);
}
.footer .footer-links a::before {
  content: "‹";
  color: var(--ap-accent);
  opacity: 0.7;
}
.footer .footer-links a:hover { color: var(--ap-accent); }

.footer .back-h {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  font-size: 0.86rem;
}

.footer .icon {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--ap-r-sm);
  background: rgba(255,255,255,0.04);
  color: #fff;
  transition: all .15s var(--ap-ease);
}
.footer .icon:hover, .footer a:hover .icon {
  background: var(--ap-accent);
  color: var(--ap-primary-900);
  border-color: var(--ap-accent);
}

/* circle play button */
.circle-play {
  width: 86px; height: 86px;
  background: rgba(97, 24, 74, 0.12);
  border: 1.5px solid rgba(97, 24, 74, 0.2);
  cursor: pointer;
  transition: all .25s var(--ap-ease);
  margin-bottom: 1.5rem;
}
.circle-play:hover {
  background: rgba(97, 24, 74, 0.18);
  transform: scale(1.05);
}
.circle-play .play-icon {
  width: 32px;
  height: auto;
}

/* hero-stats from original */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3rem;
  padding: 1.5rem;
  border-radius: var(--ap-r-xl);
  background: var(--ap-primary-900);
  color: #fff;
  box-shadow: var(--ap-sh-lg);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.hero-stat-item {
  text-align: center;
  padding: 0.5rem 1rem;
  position: relative;
}
.hero-stat-item + .hero-stat-item::before {
  content: "";
  position: absolute;
  right: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}
.hero-stat-num {
  display: block;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.hero-stat-label {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.4rem;
}
@media (max-width: 768px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1.25rem; }
  .hero-stat-item + .hero-stat-item::before { display: none; }
}

/* hero title styles */
.title-site {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.005em;
}
.font-btabasso {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--ap-ink-2);
}

/* misc */
.rounded-c { border-radius: var(--ap-r-lg) !important; }
.menu.fixed-top { position: sticky !important; top: 0; }
.menu .navbar { margin-top: 0 !important; box-shadow: none !important; }

/* fade-up (matches original animation hook) */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ap-ease-out), transform .7s var(--ap-ease-out);
}
.fade-up.visible, .fade-up.is-in { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: .08s; }
.fade-up.delay-2 { transition-delay: .16s; }
.fade-up.delay-3 { transition-delay: .24s; }

/* =========================================================
   HERO v2 — Premium two-column SaaS hero
   (content column + live dashboard visual)
   Scoped under .ap-hero2 so it never touches other sections.
   ========================================================= */
.ap-hero2 {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  background: var(--ap-bg);
  isolation: isolate;
}
/* layered, GPU-cheap background — no images => great LCP */
.ap-hero2::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(97,24,74,.10), transparent 60%),
    radial-gradient(760px 480px at 6% 8%, rgba(201,162,75,.10), transparent 62%),
    linear-gradient(180deg, #fff 0%, var(--ap-bg) 100%);
}
/* faint dotted grid pattern for depth */
.ap-hero2::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(97,24,74,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 25%, #000 0%, transparent 80%);
          mask-image: radial-gradient(70% 60% at 50% 25%, #000 0%, transparent 80%);
  pointer-events: none;
}

.ap-hero2__grid {
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}
@media (max-width: 991.98px) {
  .ap-hero2__grid { grid-template-columns: 1fr; gap: 2.75rem; text-align: center; }
}

/* ---------- content column ---------- */
.ap-hero2__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--ap-r-pill);
  background: var(--ap-white);
  border: 1px solid var(--ap-line);
  box-shadow: var(--ap-sh-xs);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ap-ink-2);
}
.ap-hero2__badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1e7a4f; position: relative; flex-shrink: 0;
}
.ap-hero2__badge .dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: rgba(30,122,79,.28); animation: ap-pulse 1.8s ease-out infinite;
}

.ap-hero2__title {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ap-ink);
  margin: 1.35rem 0 1.1rem;
  text-wrap: balance;
}
.ap-hero2__title .grad {
  background: linear-gradient(90deg, var(--ap-primary) 0%, #8e2c6e 55%, var(--ap-accent) 130%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.ap-hero2__lead {
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.95;
  color: var(--ap-muted);
  max-width: 540px;
  margin-bottom: 1.9rem;
  text-wrap: pretty;
}
@media (max-width: 991.98px) { .ap-hero2__lead { margin-left: auto; margin-right: auto; } }

.ap-hero2__actions {
  display: flex; flex-wrap: wrap; gap: 0.85rem;
  margin-bottom: 1.6rem;
}
@media (max-width: 991.98px) { .ap-hero2__actions { justify-content: center; } }

.ap-hero2 .btn-site,
.ap-hero2 .ap-hero2__demo {
  padding: 0.85rem 1.6rem;
  font-weight: 700;
  border-radius: var(--ap-r-md);
}
.ap-hero2__demo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--ap-white);
  color: var(--ap-ink) !important;
  border: 1px solid var(--ap-line-2);
  transition: border-color .2s var(--ap-ease), box-shadow .2s var(--ap-ease), transform .2s var(--ap-ease);
}
.ap-hero2__demo:hover {
  border-color: var(--ap-primary);
  box-shadow: var(--ap-sh-sm);
  transform: translateY(-1px);
}
.ap-hero2__demo .play {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ap-primary-50); color: var(--ap-primary);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ---------- trust indicators ---------- */
.ap-hero2__trust {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 1.1rem 1.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--ap-line);
}
@media (max-width: 991.98px) { .ap-hero2__trust { justify-content: center; } }
@media (max-width: 575.98px) { .ap-hero2__trust { grid-template-columns: repeat(2, auto); } }
.ap-hero2__trust-item { text-align: start; }
@media (max-width: 991.98px) { .ap-hero2__trust-item { text-align: center; } }
.ap-hero2__trust-num {
  font-size: 1.4rem; font-weight: 800; line-height: 1.1;
  color: var(--ap-primary); letter-spacing: -0.01em;
}
.ap-hero2__trust-lbl {
  display: block; font-size: 0.78rem; color: var(--ap-muted); margin-top: 0.25rem;
}
/* feature-style trust chips (ISMS / local support) */
.ap-hero2__trust-item.is-chip { display: flex; align-items: center; gap: 0.5rem; }
.ap-hero2__trust-item.is-chip .chk {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: var(--ap-primary-50); color: var(--ap-primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.ap-hero2__trust-item.is-chip .ap-hero2__trust-lbl { margin-top: 0; font-size: 0.84rem; color: var(--ap-ink-2); font-weight: 600; }

/* ---------- logo strip ---------- */
.ap-hero2__logos {
  margin-top: 2rem; display: flex; align-items: center; gap: 1.5rem;
  flex-wrap: wrap; opacity: .85;
}
@media (max-width: 991.98px) { .ap-hero2__logos { justify-content: center; } }
.ap-hero2__logos .lbl { font-size: 0.74rem; color: var(--ap-muted-2); }
.ap-hero2__logos .logo {
  font-weight: 800; color: var(--ap-muted-2); font-size: 0.95rem;
  filter: grayscale(1); opacity: .7;
}

/* ---------- visual column ---------- */
.ap-hero2__visual { position: relative; perspective: 1600px; }
.ap-hero2__visual .ap-mock {
  transform: rotateY(2deg) rotateX(1.5deg);
  transition: transform .6s var(--ap-ease-out);
  box-shadow: 0 40px 80px rgba(42,10,32,.16), 0 12px 28px rgba(26,19,34,.08);
}
@media (hover: hover) and (min-width: 992px) {
  .ap-hero2__visual:hover .ap-mock { transform: rotateY(0) rotateX(0); }
}
@media (max-width: 991.98px) { .ap-hero2__visual .ap-mock { transform: none; } }
/* glow behind dashboard */
.ap-hero2__visual::before {
  content: ""; position: absolute; inset: 6% -4% 2% -4%; z-index: -1;
  background:
    radial-gradient(55% 50% at 30% 40%, rgba(97,24,74,.20), transparent 70%),
    radial-gradient(50% 45% at 80% 70%, rgba(201,162,75,.18), transparent 72%);
  filter: blur(26px);
}

/* ---------- glass floating cards ---------- */
.ap-hero2__card {
  position: absolute;
  z-index: 5;
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 18px 40px rgba(42,10,32,.16);
  font-size: 0.8rem;
  max-width: 230px;
  will-change: transform;
}
.ap-hero2__card .ico {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ap-primary-50); color: var(--ap-primary);
}
.ap-hero2__card .ico svg { width: 18px; height: 18px; }
.ap-hero2__card .t { font-weight: 700; font-size: 0.82rem; color: var(--ap-ink); }
.ap-hero2__card .s { font-size: 0.7rem; color: var(--ap-muted); margin-top: 0.1rem; }
.ap-hero2__card.is-success .ico { background: #ddf2e6; color: #1e7a4f; }
.ap-hero2__card.is-accent  .ico { background: var(--ap-accent-100); color: var(--ap-primary-700); }
.ap-hero2__card.is-info    .ico { background: #e0ecfd; color: #1e40af; }

/* positions (RTL canvas) + gentle float */
.ap-hero2__card--tickets   { top: 6%;   inset-inline-start: -4%;  animation: ap-float-y 5.5s ease-in-out infinite; }
.ap-hero2__card--customers { top: 30%;  inset-inline-end: -6%;    animation: ap-float-y 6.5s ease-in-out .6s infinite; }
.ap-hero2__card--risk      { bottom: 20%; inset-inline-start: -6%; animation: ap-float-y 6s ease-in-out 1.1s infinite; }
.ap-hero2__card--process   { bottom: 2%;  inset-inline-end: 4%;   animation: ap-float-y 7s ease-in-out .3s infinite; }

@media (max-width: 1199.98px) {
  .ap-hero2__card { max-width: 200px; padding: 0.55rem 0.7rem; }
  .ap-hero2__card--tickets { inset-inline-start: 0; }
  .ap-hero2__card--customers { inset-inline-end: -2%; }
  .ap-hero2__card--risk { inset-inline-start: -2%; }
}
@media (max-width: 767.98px) {
  .ap-hero2__card { display: none; }
  .ap-hero2__card--customers, .ap-hero2__card--process { display: flex; }
  .ap-hero2__card--customers { top: -3%; inset-inline-end: 2%; }
  .ap-hero2__card--process   { bottom: -3%; inset-inline-start: 2%; }
}
@media (max-width: 420px) {
  .ap-hero2__card { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .ap-hero2__card { animation: none !important; }
}

/* entrance */
.ap-hero2 .fade-up { animation: ap-fade-up .7s var(--ap-ease-out) both; }
.ap-hero2 .fade-up.delay-1 { animation-delay: .08s; }
.ap-hero2 .fade-up.delay-2 { animation-delay: .16s; }
.ap-hero2 .fade-up.delay-3 { animation-delay: .24s; }
@keyframes ap-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .ap-hero2 .fade-up { animation: none; }
}

/* =========================================================
   TRUSTED BY — logo marquee + social proof bar
   ========================================================= */
.ap-trusted {
  padding: clamp(2.25rem, 4.5vw, 3.5rem) 0;
  background: var(--ap-white);
  border-top: 1px solid var(--ap-line);
  border-bottom: 1px solid var(--ap-line);
}
.ap-trusted__eyebrow {
  text-align: center; color: var(--ap-muted);
  font-size: 0.86rem; font-weight: 600; margin-bottom: 1.4rem;
}
.ap-trusted__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ap-trusted__track {
  display: flex; gap: 3rem; width: max-content;
  animation: ap-marquee 32s linear infinite;
}
.ap-trusted__marquee:hover .ap-trusted__track { animation-play-state: paused; }
@keyframes ap-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ap-trusted__logo {
  font-weight: 800; font-size: 1.15rem; white-space: nowrap;
  color: var(--ap-muted-2); filter: grayscale(1); opacity: .55;
  transition: opacity .25s var(--ap-ease), filter .25s var(--ap-ease);
}
.ap-trusted__logo:hover { opacity: .9; filter: grayscale(0); color: var(--ap-primary); }
.ap-trusted__bar {
  display: flex; align-items: center; justify-content: center;
  gap: 1.1rem; flex-wrap: wrap; margin-top: 2rem;
}
.ap-trusted__rating { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--ap-muted); }
.ap-trusted__rating .stars { color: var(--ap-accent); letter-spacing: 1px; }
.ap-trusted__rating strong { color: var(--ap-ink); }
.ap-trusted__metric { display: inline-flex; align-items: baseline; gap: .4rem; font-size: .86rem; color: var(--ap-muted); }
.ap-trusted__metric strong { color: var(--ap-primary); font-size: 1.2rem; font-weight: 800; }
.ap-trusted__sep { width: 1px; height: 26px; background: var(--ap-line-2); }
@media (max-width: 575.98px) { .ap-trusted__sep { display: none; } }
@media (prefers-reduced-motion: reduce) { .ap-trusted__track { animation: none; flex-wrap: wrap; justify-content: center; } }

/* =========================================================
   INTERACTIVE PRODUCT SHOWCASE — tabs + live mocks
   ========================================================= */
.ap-showcase { padding: var(--ap-section-y) 0; background: var(--ap-bg); position: relative; overflow: hidden; }
.ap-showcase::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(800px 460px at 85% 0%, rgba(97,24,74,.06), transparent 60%);
}
.ap-showcase > .container { position: relative; z-index: 1; }

.ap-showcase__rail {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: .75rem; margin: 2.25rem 0 1.75rem;
}
.ap-showcase__tab {
  display: flex; align-items: center; gap: .7rem; text-align: start;
  padding: .85rem .95rem; border: 1px solid var(--ap-line);
  border-radius: var(--ap-r-md); background: var(--ap-white);
  cursor: pointer; transition: border-color .2s var(--ap-ease), box-shadow .2s var(--ap-ease), background .2s var(--ap-ease), transform .2s var(--ap-ease);
}
.ap-showcase__tab:hover { transform: translateY(-2px); box-shadow: var(--ap-sh-sm); }
.ap-showcase__tab .ico {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ap-primary-50); color: var(--ap-primary);
  transition: background .2s var(--ap-ease), color .2s var(--ap-ease);
}
.ap-showcase__tab .ico svg { width: 20px; height: 20px; }
.ap-showcase__tab .meta { display: flex; flex-direction: column; line-height: 1.3; }
.ap-showcase__tab .t { font-weight: 700; font-size: .92rem; color: var(--ap-ink); }
.ap-showcase__tab .d { font-size: .74rem; color: var(--ap-muted); }
.ap-showcase__tab.is-active {
  border-color: var(--ap-primary); background: var(--ap-primary-50);
  box-shadow: 0 8px 22px rgba(97,24,74,.12);
}
.ap-showcase__tab.is-active .ico { background: var(--ap-primary); color: #fff; }

.ap-showcase__stage { position: relative; }
.ap-showcase__panel { display: none; grid-template-columns: 1.2fr .8fr; gap: clamp(1.5rem, 3vw, 2.75rem); align-items: center; }
.ap-showcase__panel.is-active { display: grid; animation: ap-fade-up .5s var(--ap-ease-out) both; }
.ap-showcase__copy h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 800; margin-bottom: .75rem; color: var(--ap-ink); }
.ap-showcase__copy > p { color: var(--ap-muted); line-height: 1.95; margin-bottom: 1.1rem; }
.ap-showcase__copy ul { list-style: none; padding: 0; margin: 0 0 1.3rem; }
.ap-showcase__copy li { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; font-size: .95rem; color: var(--ap-ink-2); }
.ap-showcase__copy li svg { width: 18px; height: 18px; color: var(--ap-primary); flex-shrink: 0; }
.ap-showcase__link { font-weight: 700; color: var(--ap-primary); text-decoration: none; }
.ap-showcase__link:hover { color: var(--ap-primary-700); }
@media (max-width: 991.98px) {
  .ap-showcase__rail { grid-template-columns: repeat(2, 1fr); }
  .ap-showcase__tab .d { display: none; }
  .ap-showcase__panel.is-active { grid-template-columns: 1fr; }
  .ap-showcase__copy { text-align: center; }
  .ap-showcase__copy li { justify-content: center; }
}

/* ---- showcase mock (.ap-scm) ---- */
.ap-scm {
  background: #fff; border: 1px solid var(--ap-line); border-radius: 18px;
  overflow: hidden; box-shadow: 0 30px 70px rgba(42,10,32,.14), 0 8px 18px rgba(26,19,34,.06);
}
.ap-scm__bar { display: flex; align-items: center; gap: 6px; padding: .65rem .9rem; border-bottom: 1px solid var(--ap-line); background: var(--ap-bg); }
.ap-scm__bar .d { width: 9px; height: 9px; border-radius: 50%; background: var(--ap-line-2); }
.ap-scm__bar .d:nth-child(1){ background:#f3a4a4; } .ap-scm__bar .d:nth-child(2){ background:#f3d08a; } .ap-scm__bar .d:nth-child(3){ background:#9bd6ab; }
.ap-scm__bar .u { margin-inline-start: auto; font-size: .68rem; color: var(--ap-muted-2); direction: ltr; }
.ap-scm__body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; min-height: 300px; }
.ap-scm__body--single, .ap-scm__body--flow, .ap-scm__body--chart { grid-template-columns: 1fr; }
.ap-scm__col { padding: 1rem; }
.ap-scm__col.w-100 { width: 100%; }
.ap-scm__hd { font-size: .8rem; font-weight: 700; color: var(--ap-ink); margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.badge-soft, .ap-scm__hd .badge-soft { font-size: .68rem; font-weight: 600; color: var(--ap-primary); background: var(--ap-primary-50); padding: .12rem .5rem; border-radius: 999px; }
/* crm rows */
.ap-scm__row { display: flex; align-items: center; gap: .6rem; padding: .55rem .4rem; border-radius: 10px; }
.ap-scm__row + .ap-scm__row { border-top: 1px solid var(--ap-line); }
.ap-scm__row .av { width: 30px; height: 30px; border-radius: 9px; background: var(--ap-primary-50); color: var(--ap-primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.ap-scm__row .nm { font-size: .8rem; font-weight: 600; color: var(--ap-ink); display: flex; flex-direction: column; line-height: 1.4; }
.ap-scm__row .nm small { color: var(--ap-muted); font-weight: 400; font-size: .68rem; }
.ap-scm__row .pill { margin-inline-start: auto; font-size: .64rem; font-weight: 600; padding: .12rem .5rem; border-radius: 999px; }
.pill--hot { background: var(--ap-accent-100); color: var(--ap-primary-700); }
.pill--warm { background: #fef3c7; color: #92400e; }
.pill--cold { background: #dbeafe; color: #1e40af; }
.ap-scm__side { padding: 1rem; background: var(--ap-bg); border-inline-start: 1px solid var(--ap-line); }
.ap-scm__profile { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.ap-scm__profile .big-av { width: 42px; height: 42px; border-radius: 12px; background: var(--ap-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.ap-scm__profile .nm2 { font-size: .85rem; font-weight: 700; display: flex; flex-direction: column; line-height: 1.4; }
.ap-scm__profile .nm2 small { color: var(--ap-muted); font-weight: 400; font-size: .7rem; }
.ap-scm__kv { display: flex; justify-content: space-between; font-size: .76rem; padding: .45rem 0; border-bottom: 1px dashed var(--ap-line); }
.ap-scm__kv span { color: var(--ap-muted); } .ap-scm__kv strong { color: var(--ap-ink); }
.ap-scm__btn { margin-top: .9rem; text-align: center; font-size: .78rem; font-weight: 700; color: #fff; background: var(--ap-primary); border-radius: 10px; padding: .55rem; }
/* tickets */
.ap-scm__tk { display: flex; align-items: center; gap: .6rem; padding: .6rem .4rem; border-bottom: 1px solid var(--ap-line); }
.ap-scm__tk .prio { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.prio--high { background: #e0496a; } .prio--mid { background: #e0a23b; } .prio--low { background: #3b9be0; }
.ap-scm__tk .nm { font-size: .8rem; font-weight: 600; display: flex; flex-direction: column; line-height: 1.4; }
.ap-scm__tk .nm small { color: var(--ap-muted); font-weight: 400; font-size: .68rem; }
.ap-scm__tk .sla { margin-inline-start: auto; font-size: .68rem; font-weight: 600; color: var(--ap-muted); white-space: nowrap; }
.ap-scm__tk .sla.ok { color: #1e7a4f; } .ap-scm__tk .sla.warn { color: #b4451f; }
/* process flow */
.ap-scm__body--flow { padding: 1.25rem; }
.ap-scm__flow-hd { font-size: .82rem; font-weight: 700; margin-bottom: 1.25rem; }
.ap-scm__flow { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.ap-scm__flow .step { display: flex; flex-direction: column; gap: .25rem; font-size: .76rem; font-weight: 700; color: var(--ap-muted-2); position: relative; }
.ap-scm__flow .step small { font-weight: 400; font-size: .66rem; color: var(--ap-muted); }
.ap-scm__flow .step .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ap-line-2); background: #fff; margin-bottom: .25rem; }
.ap-scm__flow .step.done { color: var(--ap-ink); } .ap-scm__flow .step.done .dot { background: #1e7a4f; border-color: #1e7a4f; }
.ap-scm__flow .step.current { color: var(--ap-primary); } .ap-scm__flow .step.current .dot { background: var(--ap-primary); border-color: var(--ap-primary); box-shadow: 0 0 0 4px var(--ap-primary-100); }
.ap-scm__flow .line { flex: 1; min-width: 18px; height: 2px; background: var(--ap-line-2); margin: 0 .4rem 1.1rem; }
.ap-scm__flow .line.done { background: #1e7a4f; }
.ap-scm__flow-foot { margin-top: 1.25rem; font-size: .76rem; color: var(--ap-muted); display: flex; align-items: center; gap: .5rem; }
.ap-scm__flow-foot .chk { width: 18px; height: 18px; border-radius: 50%; background: #ddf2e6; color: #1e7a4f; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; }
/* analytics chart */
.ap-scm__body--chart { padding: 1.25rem; }
.ap-scm__kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; margin-bottom: 1rem; }
.ap-scm__kpis .k { border: 1px solid var(--ap-line); border-radius: 12px; padding: .6rem; }
.ap-scm__kpis .k small { font-size: .68rem; color: var(--ap-muted); display: block; }
.ap-scm__kpis .k b { font-size: 1.1rem; font-weight: 800; color: var(--ap-ink); display: block; margin: .15rem 0; }
.ap-scm__kpis .k i { font-style: normal; font-size: .66rem; color: #1e7a4f; }
.ap-scm__chart { border: 1px solid var(--ap-line); border-radius: 12px; padding: .9rem; }
.ap-scm__bars { display: flex; align-items: flex-end; gap: .55rem; height: 130px; }
.ap-scm__bars span {
  flex: 1; height: var(--h); border-radius: 6px 6px 0 0; transform-origin: bottom; transform: scaleY(0);
  background: linear-gradient(180deg, var(--ap-primary) 0%, #8e2c6e 100%);
}
.ap-scm__bars span:last-child { background: linear-gradient(180deg, var(--ap-accent) 0%, #b3892f 100%); }
.ap-showcase__panel.is-active .ap-scm__bars span { animation: ap-bargrow .7s var(--ap-ease-out) forwards; }
.ap-showcase__panel.is-active .ap-scm__bars span:nth-child(1){ animation-delay:.04s } 
.ap-showcase__panel.is-active .ap-scm__bars span:nth-child(2){ animation-delay:.10s }
.ap-showcase__panel.is-active .ap-scm__bars span:nth-child(3){ animation-delay:.16s }
.ap-showcase__panel.is-active .ap-scm__bars span:nth-child(4){ animation-delay:.22s }
.ap-showcase__panel.is-active .ap-scm__bars span:nth-child(5){ animation-delay:.28s }
.ap-showcase__panel.is-active .ap-scm__bars span:nth-child(6){ animation-delay:.34s }
.ap-showcase__panel.is-active .ap-scm__bars span:nth-child(7){ animation-delay:.40s }
.ap-showcase__panel.is-active .ap-scm__bars span:nth-child(8){ animation-delay:.46s }
@keyframes ap-bargrow { to { transform: scaleY(1); } }
.ap-scm__chart-x { display: flex; justify-content: space-between; margin-top: .5rem; font-size: .62rem; color: var(--ap-muted-2); }
@media (prefers-reduced-motion: reduce) { .ap-showcase__panel.is-active .ap-scm__bars span { animation: none; transform: scaleY(1); } }
@media (max-width: 575.98px) { .ap-scm__body { grid-template-columns: 1fr; } .ap-scm__side { border-inline-start: none; border-top: 1px solid var(--ap-line); } }

/* =========================================================
   WORKFLOW AUTOMATION — when / then flow
   ========================================================= */
.ap-auto { padding: var(--ap-section-y) 0; background: var(--ap-white); }
.ap-auto__flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.ap-auto__node {
  flex: 1 1 240px; max-width: 300px; position: relative;
  background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-r-lg);
  padding: 1.4rem 1.25rem; box-shadow: var(--ap-sh-sm);
  transition: transform .25s var(--ap-ease), box-shadow .25s var(--ap-ease);
}
.ap-auto__node:hover { transform: translateY(-4px); box-shadow: var(--ap-sh-md); }
.ap-auto__node--trigger { border-top: 3px solid var(--ap-accent); }
.ap-auto__node--cond    { border-top: 3px solid #3b9be0; }
.ap-auto__node--action  { border-top: 3px solid #1e7a4f; }
.ap-auto__tag { display: inline-block; font-size: .68rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--ap-bg-2); color: var(--ap-muted); margin-bottom: .7rem; }
.ap-auto__node--trigger .ap-auto__tag { background: var(--ap-accent-100); color: var(--ap-primary-700); }
.ap-auto__node--cond .ap-auto__tag { background: #e0ecfd; color: #1e40af; }
.ap-auto__node--action .ap-auto__tag { background: #ddf2e6; color: #1e7a4f; }
.ap-auto__ico { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--ap-primary-50); color: var(--ap-primary); margin-bottom: .6rem; }
.ap-auto__ico svg { width: 20px; height: 20px; }
.ap-auto__node-title { font-weight: 700; font-size: 1rem; color: var(--ap-ink); }
.ap-auto__node-sub { font-size: .8rem; color: var(--ap-muted); margin-top: .2rem; }
/* connector arrow — RTL: points to the left toward next node */
.ap-auto__arrow { width: 42px; height: 2px; background: var(--ap-line-2); position: relative; flex: 0 0 auto; }
.ap-auto__arrow::after { content: ""; position: absolute; left: -1px; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-inline-end-color: var(--ap-line-2); }
@media (max-width: 767.98px) {
  .ap-auto__flow { flex-direction: column; }
  .ap-auto__node { max-width: 420px; width: 100%; }
  .ap-auto__arrow { width: 2px; height: 28px; }
  .ap-auto__arrow::after { left: 50%; top: auto; bottom: -1px; transform: translateX(-50%); border-inline-end-color: transparent; border-top-color: var(--ap-line-2); }
}
.ap-auto__recipes { margin-top: 3rem; }
.ap-auto__recipes-title { text-align: center; font-size: .85rem; font-weight: 700; color: var(--ap-muted); margin-bottom: 1.25rem; }
.ap-auto__recipes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; max-width: 880px; margin: 0 auto; }
@media (max-width: 767.98px) { .ap-auto__recipes-grid { grid-template-columns: 1fr; } }
.ap-auto__recipe { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; background: var(--ap-bg); border: 1px solid var(--ap-line); border-radius: var(--ap-r-md); font-size: .88rem; color: var(--ap-ink-2); }
.ap-auto__recipe-ico { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--ap-primary-50); color: var(--ap-primary); }
.ap-auto__recipe-ico svg { width: 17px; height: 17px; }

/* =========================================================
   FIXES — hero dashboard landscape + articles equal-height
   ========================================================= */

/* Hero dashboard: make it landscape (width > height).
   In the narrow hero column the full stacked dashboard ran tall,
   so we drop the kanban pipeline here and rebalance the heights. */
.ap-hero2__visual .ap-mock__body { min-height: 0; }
.ap-hero2__visual .ap-mock__pipeline { display: none; }
.ap-hero2__visual .ap-mock__main { gap: 0.8rem; justify-content: center; }
.ap-hero2__visual .ap-mock__chart-svg { height: 96px; }
@media (min-width: 992px) {
  .ap-hero2__visual .ap-mock { width: 100%; }
  /* keep a comfortable landscape ratio on desktop */
  .ap-hero2__visual .ap-mock__body { min-height: 320px; }
}

/* Articles: equal-height cards.
   blade nests  col > a > .card-article  — the inline <a> broke the
   height chain so cards didn't stretch. Re-establish it. */
.articles .row > [class*="col-"] { display: flex; flex-direction: column; }
.articles .row > [class*="col-"] > a { display: flex; flex: 1 1 auto; width: 100%; }
.articles .card-article { flex: 1 1 auto; }
.articles .card-article-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.articles .card-article-body h3 { min-height: 2.9em; }
