/* Design-system application layer. Loaded last.
   Interactive widgets keep their behavior; chrome/affordance may be refined. */

/* ---- Chrome ---- */
.site-header {
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  border-bottom: 1px solid transparent;
  box-shadow: none;
}

.site-header.is-scrolled {
  background: var(--color-surface);
  border-bottom-color: color-mix(in srgb, var(--color-primary) 22%, var(--color-border));
  box-shadow: 0 1px 0 rgb(4 112 194 / 0.08);
}

.brand-copy small {
  color: var(--color-muted);
  font-weight: var(--fw-medium);
}

/* ---- Header actions: prefs + CTAs ---- */
.header-actions {
  align-items: center;
  gap: 0.75rem;
}

.header-prefs {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.pref-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0 0.55rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.03em;
  transition: color var(--ease), background var(--ease);
}

.pref-lang-icon {
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.72;
}

.pref-lang:hover,
.pref-lang:focus-visible {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.pref-theme {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border-radius: var(--radius-full);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
}

.pref-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), box-shadow var(--ease);
}

.pref-theme-btn svg {
  width: 0.9rem;
  height: 0.9rem;
  display: block;
}

.pref-theme-btn.is-on {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: 0 1px 3px rgb(1 48 86 / 0.14);
}

.pref-theme-btn:not(.is-on):hover,
.pref-theme-btn:not(.is-on):focus-visible {
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary-soft) 70%, transparent);
}

.header-ctas {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.header-cta--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.header-cta--ghost:hover,
.header-cta--ghost:focus-visible {
  color: var(--color-primary);
  border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
  background: var(--color-primary-soft);
}

.header-cta--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border: 1px solid var(--color-primary);
  box-shadow: 0 1px 2px rgb(1 48 86 / 0.14);
}

.header-cta--primary:hover,
.header-cta--primary:focus-visible {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-on-primary);
}

.header-login {
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
}

/* ---- Buttons ---- */
.btn {
  border-radius: var(--radius-md);
  font-weight: var(--fw-semibold);
}

.btn-hardhat,
.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
  box-shadow: none;
}

.btn-hardhat:hover,
.btn-primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-on-primary);
  border-color: var(--color-primary-hover);
}

.btn-blueprint {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.btn-blueprint:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-deep);
  border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
}

/* ---- Type ---- */
.spec-label {
  font-family: var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  font-weight: var(--fw-semibold);
  color: var(--color-accent);
}

.spec-label::before {
  width: 0.7rem;
  opacity: 0.55;
  background: currentColor;
}

.spec-label .num {
  font-family: var(--font-sans);
  letter-spacing: 0;
  color: var(--color-primary);
}

.annot-head h2 {
  letter-spacing: -0.02em;
}

html[lang="ar"] .annot-head h2 {
  letter-spacing: 0;
}

.annot-head.center p {
  margin-inline: auto;
  justify-self: center;
}

.section {
  padding-block: clamp(3.25rem, 6vw, 5.5rem);
}

.section-muted {
  background: var(--color-surface-muted);
}

/* ---- Cards ---- */
.spec-card {
  border-radius: var(--radius-md);
  border-color: var(--color-border);
  box-shadow: none;
  padding: 1.35rem 1.35rem 1.45rem;
}

.spec-card::before {
  font-family: var(--font-sans);
  letter-spacing: 0;
  opacity: 0.55;
}

.spec-card .spec-icon {
  background: var(--color-primary-soft);
  border-color: transparent;
}

.spec-card .callout {
  font-family: var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
}

/* ---- Page heroes ---- */
.bp-hero {
  background:
    radial-gradient(900px 320px at 100% 0%, rgb(4 112 194 / 0.08), transparent 62%),
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

.bp-hero::before {
  opacity: 0.18;
  background-size: 48px 48px;
}

.bp-hero h1 {
  letter-spacing: -0.02em;
}

html[lang="ar"] .bp-hero h1 {
  letter-spacing: 0;
}

.cta-band,
.cta-band.cta-blueprint {
  background:
    radial-gradient(800px 280px at 100% 0%, rgb(43 166 184 / 0.16), transparent 55%),
    linear-gradient(180deg, var(--primary-800) 0%, var(--primary-900) 100%);
}

.cta-band.cta-blueprint::before {
  opacity: 0.12;
}

.cta-band .spec-label,
.cta-band .spec-label .num {
  color: rgb(255 255 255 / 0.72) !important;
}

.cta-band .spec-label[style] {
  color: rgb(255 255 255 / 0.72) !important;
}

.site-footer::before {
  opacity: 0.22;
}

.demo-pill {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
  border-radius: var(--radius-md);
}

.chip-flow span {
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border-color: var(--color-border);
}

.sp-frame {
  border-radius: var(--radius-lg);
  border-color: var(--color-border);
  box-shadow: var(--shadow-product);
}

/* ---- Homepage hero ---- */
.page-index .home-hero,
.page-index .scaffold-hero {
  background:
    radial-gradient(900px 380px at 88% 0%, rgb(4 112 194 / 0.08), transparent 58%),
    radial-gradient(640px 280px at 0% 20%, rgb(43 166 184 / 0.06), transparent 55%),
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  padding: clamp(2.75rem, 5.5vw, 5.5rem) 0 clamp(2.5rem, 4vw, 4rem);
}

.page-index .home-hero::before,
.page-index .scaffold-hero::before {
  opacity: 0.16;
  background-size: 56px 56px;
}

.page-index .home-kicker {
  margin: 0 0 0.85rem;
  color: var(--color-accent);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}

.page-index .home-hero-grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 960px) {
  .page-index .home-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.page-index .hero-headline {
  font-size: clamp(2.15rem, 4.4vw, 3.5rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  max-width: 16ch;
  font-weight: var(--fw-bold);
}

html[lang="ar"] .page-index .hero-headline {
  max-width: 18ch;
  line-height: 1.34;
  letter-spacing: 0;
}

.page-index .home-hero .lede {
  font-size: 1.2rem;
  max-width: 38rem;
}

.page-index .hero-proof-mono {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  margin-top: var(--space-5);
  color: var(--color-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.page-index .hero-proof,
.page-pricing .hero-proof {
  min-width: 0;
  width: 100%;
  display: block;
}

/* Connected-system card — hero visual (not a dashboard screenshot) */
.ops-hub {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 27rem;
  padding: 1.15rem 1.15rem 1.35rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(280px 160px at 50% 40%, rgb(43 166 184 / 0.14), transparent 68%),
    radial-gradient(420px 220px at 78% 8%, rgb(4 112 194 / 0.32), transparent 60%),
    radial-gradient(circle at 18% 88%, rgb(1 48 86 / 0.5), transparent 48%),
    linear-gradient(180deg, var(--primary-700) 0%, var(--primary-900) 46%, #011627 100%);
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: var(--shadow-product);
  overflow: hidden;
  color: #fff;
  transition:
    border-color var(--ease),
    box-shadow var(--ease);
}

.ops-hub::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgb(75 184 198 / 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgb(75 184 198 / 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.42;
  pointer-events: none;
}

.ops-hub::after {
  content: "";
  position: absolute;
  inset: 0.85rem;
  z-index: 0;
  border-radius: calc(var(--radius-xl) - 6px);
  border: 1px solid rgb(255 255 255 / 0.1);
  pointer-events: none;
}

.ops-hub:hover,
.ops-hub:focus-within {
  border-color: rgb(255 255 255 / 0.16);
  box-shadow:
    var(--shadow-product),
    0 0 0 1px rgb(43 166 184 / 0.14);
}

.ops-hub-badge {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--color-success);
  color: #fff;
  font-size: 0.75rem;
  font-weight: var(--fw-medium);
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.18);
}

.ops-hub-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #fff;
}

.ops-hub-canvas {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 17.25rem;
  margin-top: 2.15rem;
  margin-bottom: 0.2rem;
}

.ops-hub-links {
  position: absolute;
  inset: 10% 12% 16%;
  width: auto;
  height: auto;
  overflow: visible;
  pointer-events: none;
}

.ops-hub-links-base line {
  stroke: rgb(255 255 255 / 0.32);
  stroke-width: 0.7;
  stroke-linecap: round;
}

.ops-hub-links-flow line {
  stroke: var(--accent-400);
  stroke-width: 1.05;
  stroke-linecap: round;
  stroke-dasharray: 7 93;
  opacity: 0;
}

.ops-hub-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: var(--fw-medium);
  color: rgb(255 255 255 / 0.86);
  text-align: center;
}

.ops-hub-node:not(.is-center) {
  max-width: 6.25rem;
}

.ops-hub-node .spec-icon {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.16);
  color: #fff;
  box-shadow: 0 8px 18px rgb(0 0 0 / 0.16);
  transition:
    border-color var(--ease),
    background-color var(--ease),
    transform var(--ease),
    box-shadow var(--ease);
}

.ops-hub-node .spec-icon::before {
  width: 1.3rem;
  height: 1.3rem;
}

.ops-hub:hover .ops-hub-node .spec-icon,
.ops-hub:focus-within .ops-hub-node .spec-icon {
  border-color: rgb(75 184 198 / 0.38);
}

.ops-hub-node.is-tl {
  top: 10%;
  left: 6%;
}

.ops-hub-node.is-tr {
  top: 10%;
  right: 6%;
}

.ops-hub-node.is-bl {
  bottom: 14%;
  left: 6%;
}

.ops-hub-node.is-br {
  bottom: 14%;
  right: 8%;
}

.ops-hub-node.is-center {
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  gap: 0.5rem;
}

.ops-hub-core {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 4.85rem;
  height: 4.85rem;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 36% 28%, rgb(75 184 198 / 0.4), transparent 50%),
    radial-gradient(circle at 50% 54%, var(--primary-700) 0%, var(--primary-800) 42%, var(--primary-900) 78%, #011627 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.1),
    inset 0 0 18px rgb(43 166 184 / 0.18),
    0 0 0 1px rgb(75 184 198 / 0.42),
    0 0 0 7px rgb(1 22 39 / 0.45),
    0 0 32px rgb(43 166 184 / 0.32);
  transition:
    transform var(--ease),
    box-shadow var(--ease);
}

.ops-hub-core::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(rgb(75 184 198 / 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgb(75 184 198 / 0.1) 1px, transparent 1px);
  background-size: 11px 11px;
  opacity: 0.45;
  pointer-events: none;
}

.ops-hub-core::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: linear-gradient(165deg, rgb(255 255 255 / 0.14) 0%, transparent 38%);
  pointer-events: none;
}

.ops-hub-core img,
.ops-hub-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: block;
  width: 76%;
  height: 76%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  object-position: center;
  border-radius: 50%;
  background: transparent;
  mix-blend-mode: lighten;
}

.ops-hub-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ops-hub-node.is-center .ops-hub-ring {
  z-index: 0;
  top: -0.5rem;
  left: 50%;
  width: 5.85rem;
  height: 5.85rem;
  transform: translateX(-50%);
  border: 1px solid rgb(75 184 198 / 0.22);
  border-top-color: var(--accent-400);
  border-inline-start-color: rgb(75 184 198 / 0.45);
}

.ops-hub-node.is-center .ops-hub-core {
  z-index: 1;
}

.ops-hub-node.is-center > span:last-child {
  font-weight: var(--fw-semibold);
  font-size: 0.82rem;
}

.ops-hub-meters {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.1rem;
  width: min(15rem, 42%);
  margin-top: 0.35rem;
  margin-right: auto;
}

.ops-hub-meters span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  color: rgb(255 255 255 / 0.72);
}

.ops-hub-bar {
  display: flex;
  justify-content: flex-start;
  height: 0.38rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  overflow: hidden;
}

.ops-hub-bar::after {
  content: "";
  display: block;
  width: var(--fill, 90%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(to inline-end, var(--accent-600), var(--accent-400));
  transform-origin: left center;
}

[dir="rtl"] .ops-hub-bar::after {
  transform-origin: right center;
}

.ops-hub-callout {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1.15rem;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  max-width: min(14.5rem, 46%);
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: 0.72rem;
  font-weight: var(--fw-medium);
  line-height: 1.4;
  box-shadow: var(--shadow-md);
}

.ops-hub-callout .spec-icon {
  color: var(--color-success);
  flex-shrink: 0;
}

.ops-hub--logo {
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 24rem;
  padding: 2.75rem 1.85rem 2.1rem;
}

.ops-hub-mark {
  position: relative;
  z-index: 1;
  width: min(11.25rem, 46%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.ops-hub-mark .ops-hub-core {
  z-index: 1;
  width: 100%;
  height: 100%;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.12),
    inset 0 0 36px rgb(43 166 184 / 0.2),
    0 0 0 1px rgb(75 184 198 / 0.38),
    0 0 0 12px rgb(1 22 39 / 0.38),
    0 18px 40px rgb(0 0 0 / 0.3),
    0 0 48px rgb(43 166 184 / 0.26);
}

.ops-hub-mark .ops-hub-core::before {
  background-size: 18px 18px;
}

.ops-hub-mark .ops-hub-core img {
  width: 72%;
  height: 72%;
}

.ops-hub-mark .ops-hub-ring {
  z-index: 0;
  inset: -12%;
  border: 1px dashed rgb(75 184 198 / 0.32);
}

.ops-hub-mark::before {
  content: "";
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(43 166 184 / 0.4) 0%, transparent 68%);
  pointer-events: none;
}

.ops-hub-mark::after {
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  border: 1px solid rgb(75 184 198 / 0.16);
  border-top-color: var(--accent-400);
  border-inline-start-color: rgb(75 184 198 / 0.5);
  pointer-events: none;
}

.ops-hub-caption {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 22rem;
  text-align: center;
  color: rgb(255 255 255 / 0.86);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.ops-hub-caption::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 1px;
  margin: 0 auto 0.85rem;
  background: var(--accent-400);
  opacity: 0.8;
  transform-origin: center;
}

.ops-hub--logo:hover .ops-hub-core,
.ops-hub--logo:focus-within .ops-hub-core {
  animation-play-state: paused;
  transform: scale(1.03);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.16),
    inset 0 0 42px rgb(43 166 184 / 0.28),
    0 0 0 1px rgb(75 184 198 / 0.55),
    0 0 0 12px rgb(1 22 39 / 0.42),
    0 20px 46px rgb(0 0 0 / 0.32),
    0 0 56px rgb(43 166 184 / 0.34);
}

@keyframes ops-halo {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes ops-orbit {
  to { transform: rotate(360deg); }
}

@keyframes ops-orbit-rev {
  to { transform: rotate(-360deg); }
}

@keyframes ops-orbit-center {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes ops-mark-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes ops-caption-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ops-rule-in {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 0.8; }
}

@keyframes ops-grid-shift {
  to { background-position: 28px 28px; }
}

@keyframes ops-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0.55); }
  70% { box-shadow: 0 0 0 6px rgb(255 255 255 / 0); }
}

@keyframes ops-draw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

@keyframes ops-flow {
  from { stroke-dashoffset: 0; opacity: 0.85; }
  to { stroke-dashoffset: -100; opacity: 0.85; }
}

@keyframes ops-node-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ops-center-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ops-logo-breathe {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.1),
      inset 0 0 18px rgb(43 166 184 / 0.16),
      0 0 0 1px rgb(75 184 198 / 0.36),
      0 0 0 7px rgb(1 22 39 / 0.45),
      0 0 24px rgb(43 166 184 / 0.24);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.14),
      inset 0 0 24px rgb(43 166 184 / 0.3),
      0 0 0 1px rgb(75 184 198 / 0.58),
      0 0 0 7px rgb(1 22 39 / 0.45),
      0 0 40px rgb(43 166 184 / 0.42);
  }
}

@keyframes ops-sheen {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

@keyframes ops-bar-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes ops-callout-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .ops-hub::before {
    animation: ops-grid-shift 18s linear infinite;
  }

  .ops-hub-badge {
    animation: ops-center-in var(--ease-out) both;
  }

  .ops-hub-dot {
    animation: ops-dot-pulse 2.4s ease-out infinite;
  }

  .ops-hub-links-base line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: ops-draw var(--motion-draw) both;
  }

  .ops-hub-links-base line:nth-child(2) { animation-delay: 70ms; }
  .ops-hub-links-base line:nth-child(3) { animation-delay: 140ms; }
  .ops-hub-links-base line:nth-child(4) { animation-delay: 210ms; }

  .ops-hub-links-flow line {
    animation: ops-flow 2.6s linear 900ms infinite;
  }

  .ops-hub-links-flow line:nth-child(2) { animation-delay: 1.15s; }
  .ops-hub-links-flow line:nth-child(3) { animation-delay: 1.4s; }
  .ops-hub-links-flow line:nth-child(4) { animation-delay: 1.65s; }

  .ops-hub-node:not(.is-center) {
    animation: ops-node-in var(--ease-out) both;
  }

  .ops-hub-node.is-tl { animation-delay: 120ms; }
  .ops-hub-node.is-tr { animation-delay: 170ms; }
  .ops-hub-node.is-bl { animation-delay: 220ms; }
  .ops-hub-node.is-br { animation-delay: 270ms; }

  .ops-hub-node.is-center {
    animation: ops-center-in var(--ease-out) both;
  }

  .ops-hub-node .ops-hub-core {
    animation: ops-logo-breathe 3.2s ease-in-out 240ms infinite;
  }

  .ops-hub-core::before {
    animation: ops-grid-shift 18s linear infinite;
  }

  .ops-hub-core::after {
    animation: ops-sheen 3.6s ease-in-out infinite;
  }

  .ops-hub-node.is-center .ops-hub-ring {
    animation: ops-orbit-center 18s linear infinite;
  }

  .ops-hub-bar::after {
    transform: scaleX(0);
    animation: ops-bar-fill 280ms var(--ease-out) 280ms both;
  }

  .ops-hub-callout {
    animation: ops-callout-in var(--ease-out) 320ms both;
  }

  .ops-hub-mark {
    animation: ops-mark-in var(--ease-out) both;
  }

  .ops-hub-mark::before {
    animation: ops-halo 2.8s ease-in-out infinite;
  }

  .ops-hub-mark::after {
    animation: ops-orbit 16s linear infinite;
  }

  .ops-hub-mark .ops-hub-ring {
    animation: ops-orbit-rev 22s linear infinite;
  }

  .ops-hub-caption {
    animation: ops-caption-in var(--ease-out) 80ms both;
  }

  .ops-hub-caption::before {
    animation: ops-rule-in var(--ease-out) 120ms both;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ops-hub-node:not(.is-center):hover .spec-icon {
    transform: translateY(-2px);
    background: rgb(75 184 198 / 0.16);
    border-color: rgb(75 184 198 / 0.55);
    box-shadow: 0 10px 22px rgb(0 0 0 / 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ops-hub,
  .ops-hub::before,
  .ops-hub-badge,
  .ops-hub-dot,
  .ops-hub-logo,
  .ops-hub-core,
  .ops-hub-core::before,
  .ops-hub-core::after,
  .ops-hub-ring,
  .ops-hub-node,
  .ops-hub-bar::after,
  .ops-hub-callout,
  .ops-hub--logo,
  .ops-hub-mark,
  .ops-hub-mark::before,
  .ops-hub-mark::after,
  .ops-hub-mark img,
  .ops-hub-caption,
  .ops-hub-caption::before {
    animation: none;
    transition: none;
  }

  .ops-hub-links-base line {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  .ops-hub-links-flow {
    display: none;
  }
}

/* ---- Compare cards ---- */
.compare-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .compare-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.compare-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  min-height: 16rem;
  border: 1px solid var(--color-border);
}

.compare-card h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.compare-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.compare-card li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.compare-card .mark {
  flex: 0 0 auto;
  font-weight: var(--fw-bold);
  line-height: 1.4;
}

.compare-card.is-before {
  background: var(--color-surface);
}

.compare-card.is-before .mark {
  color: var(--color-muted);
}

.compare-card.is-after {
  background: var(--color-primary-soft);
  border-color: color-mix(in srgb, var(--color-primary) 18%, var(--color-border));
}

.compare-card.is-after .mark {
  color: var(--color-primary);
}

/* ---- Workflow pills ---- */
.flow-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.35rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.flow-pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.flow-pills .pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.flow-pills .arrow {
  color: var(--color-accent);
  font-size: 1.05rem;
  line-height: 1;
}

.flow-note {
  margin: 1.1rem 0 0;
  text-align: center;
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

/* ---- Dashboard screenshot toggle ---- */
.dash-toggle {
  margin-top: 1.6rem;
}

.dash-toggle-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.dash-toggle-tabs button {
  appearance: none;
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
}

.dash-toggle-tabs button[aria-selected="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

.dash-toggle .proof-shot[hidden] {
  display: none;
}

.cta-band.cta-blueprint h2,
.cta-band.cta-blueprint .closing-lines,
.cta-heading {
  color: #fff;
}

.cta-band h2,
.cta-heading {
  font-size: var(--fs-display);
  letter-spacing: -0.03em;
}

html[lang="ar"] .cta-band h2,
html[lang="ar"] .cta-heading {
  letter-spacing: 0;
}

.cta-band .closing-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.cta-band .closing-lines span,
.page-index .closing-lines span {
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.12);
  padding: 0.4rem 0.75rem;
  font-size: var(--fs-sm);
}

.problem-copy {
  max-width: 46rem;
  margin: 0 auto 1.75rem;
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: var(--lh-body);
  text-align: center;
}

.problem-copy p + p {
  margin-top: 0.85rem;
}

.home-module-grid .spec-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.home-module-grid .spec-card p {
  flex: 1;
}

.home-module-grid .spec-card .btn {
  margin-top: 1.1rem;
  align-self: flex-start;
}

.dash-proof {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.proof-shot.dash-frame {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.dash-frame .browser {
  width: 100%;
  box-shadow: var(--shadow-product);
}

.dash-frame--user .shot-crop {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  object-fit: cover;
  object-position: top center;
}

/* ---- Homepage dashboard proof copy (index only) ---- */
.page-index #proof .dash-proof .bp-split-prose > .spec-label {
  display: flex;
  justify-content: center;
  width: 100%;
  color: var(--color-primary);
}

.page-index #proof .dash-proof .bp-split-prose > h2 {
  text-align: center;
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
}

html[lang="ar"] .page-index #proof .dash-proof .bp-split-prose > h2 {
  line-height: 1.38;
}

.page-index #proof .dash-proof .bp-split-prose > p:first-of-type {
  text-align: center;
  font-size: 1.08rem;
  line-height: var(--lh-body);
  color: color-mix(in srgb, var(--color-text) 68%, var(--color-muted));
  margin-bottom: 1.15rem;
}

.page-index #proof .dash-proof .bp-split-prose ul.list {
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 1.25rem;
}

.page-index #proof .dash-proof .bp-split-prose ul.list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 0.7rem;
  font-weight: var(--fw-medium);
  line-height: 1.55;
  color: var(--color-text);
}

.page-index #proof .dash-proof .bp-split-prose ul.list li:last-child {
  margin-bottom: 0;
}

.page-index #proof .dash-proof .bp-split-prose ul.list li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.35rem;
  height: 0.35rem;
  margin-top: 0.55rem;
  background: var(--color-primary);
  border-radius: 1px;
}

.page-index #proof .dash-proof .bp-split-prose > ul.list ~ p {
  font-size: 0.98rem;
  line-height: var(--lh-body);
  color: var(--color-muted);
}

.page-index #proof .dash-proof .bp-split-prose > ul.list ~ p:last-of-type {
  font-weight: var(--fw-medium);
  color: color-mix(in srgb, var(--color-text) 52%, var(--color-muted));
}

.cta-close-lede {
  max-width: 40rem;
  margin: 0.9rem auto 0;
  color: rgb(255 255 255 / 0.82);
}

/* ---- FAQ accordion ---- */
.faq-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}

.faq {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.faq:last-child {
  border-bottom: 0;
}

.faq:hover,
.faq[open] {
  border-color: var(--color-border);
  box-shadow: none;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: var(--fw-semibold);
  font-size: 1.05rem;
  width: 100%;
  padding-block: 1.1rem;
  padding-inline-start: 1.25rem;
  padding-inline-end: 3rem;
  position: relative;
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  color: var(--color-text);
  transition: background var(--ease), color var(--ease);
}

.faq summary:hover,
.faq summary:focus-visible {
  background: var(--color-surface-muted);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 1.25rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-inline-end: 1.5px solid var(--color-text-secondary);
  border-bottom: 1.5px solid var(--color-text-secondary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--ease);
}

.faq[open] summary::after {
  transform: translateY(-20%) rotate(-135deg);
}

.faq p {
  margin: 0;
  padding-block: 0 1.2rem;
  padding-inline: 1.25rem;
  color: var(--color-muted);
  max-width: 46rem;
}

/* ---- Forms ---- */
.cta-split {
  gap: var(--space-7);
}

.cta-panel {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  padding: 1.65rem 1.5rem;
}

.cta-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.cta-panel > p {
  margin: 0 0 1.15rem;
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

.field label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
}

.field input,
.field textarea,
.field select {
  min-height: 52px;
  border-radius: var(--radius-sm);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--color-primary);
  box-shadow: var(--focus);
}

.form-alt {
  margin-top: 1rem;
  font-size: var(--fs-sm);
}

.card-action {
  margin-top: 0.85rem;
}

.proof-caption {
  font-family: var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  font-size: var(--fs-sm);
}

@media (max-width: 799px) {
  .page-index .hero-headline {
    max-width: none;
  }

  .ops-hub {
    min-height: 23.5rem;
    padding: 1rem 1rem 1.15rem;
  }

  .ops-hub-canvas {
    min-height: 15.25rem;
    margin-top: 2rem;
  }

  .ops-hub-meters {
    width: min(13rem, 44%);
  }

  .ops-hub-callout {
    bottom: 1rem;
    max-width: min(12.5rem, 48%);
    font-size: 0.68rem;
  }

  .ops-hub--logo {
    min-height: 20rem;
    padding: 2.15rem 1.35rem 1.7rem;
  }

  .ops-hub-mark {
    width: min(9.75rem, 52%);
  }

  .flow-pills {
    justify-content: flex-start;
  }
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgb(180 35 24 / 0.16);
}

.site-footer .footer-grid h3 {
  font-size: 0.85rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0;
  margin-bottom: 0.85rem;
  color: #fff;
}

.site-footer .footer-grid p {
  margin: 0;
}

.site-footer .footer-grid a {
  padding-block: 0.28rem;
}

.fab-dock .fab,
.fab-dock .back-to-top {
  border-radius: var(--radius-md);
}

.fab-dock .fab-wa {
  border-radius: 50%;
}

.fab-dock .fab-demo {
  border-radius: var(--radius-full);
}

.back-to-top {
  font-size: 0;
}

.back-to-top::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  /* Physical borders so the chevron stays up in RTL (logical inline-end pointed right). */
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-135deg);
  display: block;
}

html[dir="rtl"] .md-card.is-source[data-state="on"] {
  transform: translateX(6px);
}

@media (prefers-reduced-motion: reduce) {
  .spec-card:hover,
  .compare-card:hover,
  .faq summary {
    transition: none;
  }
}

/* ---- ERP atoms ---- */
.status {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-sm);
  line-height: 1.2;
  white-space: nowrap;
}

.status-draft {
  background: var(--status-draft-bg);
  color: var(--status-draft);
}

.status-saved,
.status-ontime {
  background: var(--status-ontime-bg);
  color: var(--status-ontime);
}

.status-posted {
  background: var(--status-posted-bg);
  color: var(--status-posted);
}

.status-delayed,
.status.is-late {
  background: var(--status-delayed-bg);
  color: var(--status-delayed);
}

.doc-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}

.metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 0;
  margin-top: var(--space-5);
}

.metric-strip > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-inline-end: 1.15rem;
  margin-inline-end: 1.15rem;
  border-inline-end: 1px solid var(--color-border);
  min-width: 7.5rem;
}

.metric-strip > div:last-child {
  border-inline-end: 0;
  margin-inline-end: 0;
  padding-inline-end: 0;
}

.metric-strip span:last-child {
  font-size: var(--fs-sm);
  color: var(--color-muted);
  font-weight: var(--fw-medium);
}

@media (max-width: 560px) {
  .metric-strip {
    gap: 0.75rem 1rem;
  }

  .metric-strip > div {
    min-width: 0;
    flex: 1 1 calc(50% - 1rem);
    border-inline-end: 0;
    margin-inline-end: 0;
    padding-inline-end: 0;
  }
}

.process-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

@media (min-width: 720px) {
  .process-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .process-rail {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.process-rail li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 0.9rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  position: relative;
}

.process-rail-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

.process-rail-label {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--color-text);
}

.split-proof .bp-split-prose,
.container.split-proof > .bp-split-prose {
  max-width: none;
}

.split-proof ul.list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 2rem;
  margin: 1.5rem 0;
  width: 100%;
  max-width: none;
}

@media (min-width: 700px) {
  .split-proof ul.list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .split-proof ul.list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.capability-board {
  display: grid;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}

@media (min-width: 800px) {
  .capability-board {
    grid-template-columns: 1fr 1fr;
  }
}

.capability-item {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  padding: 1.2rem 1.3rem;
  border-bottom: 1px solid var(--color-border);
}

.capability-item:last-child {
  border-bottom: 0;
}

@media (min-width: 800px) {
  .capability-item:nth-child(odd) {
    border-inline-end: 1px solid var(--color-border);
  }

  .capability-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

.capability-item .spec-icon {
  flex: 0 0 auto;
  background: var(--color-primary-soft);
  border-color: transparent;
}

.capability-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
}

.capability-item p {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

.compare-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.compare-card header h3 {
  margin: 0;
}

.compare-card.is-before {
  background: var(--color-surface-muted);
  border-color: color-mix(in srgb, var(--status-delayed) 16%, var(--color-border));
}

.compare-card.is-after {
  background: var(--status-posted-bg);
  border-color: color-mix(in srgb, var(--status-posted) 22%, var(--color-border));
}

.compare-card.is-after .mark {
  color: var(--status-posted);
}

.home-module-grid .spec-card .btn {
  background: transparent;
  color: var(--color-primary);
  border: 0;
  padding: 0;
  min-height: 0;
  box-shadow: none;
  font-weight: var(--fw-semibold);
}

.home-module-grid .spec-card .btn:hover {
  background: transparent;
  color: var(--color-primary-hover);
  text-decoration: none;
}

.q-meta {
  color: var(--color-muted);
  font-weight: 500;
}

.bp-hero {
  padding: clamp(2.4rem, 5vw, 4.5rem) 0 clamp(2.2rem, 4vw, 3.5rem);
}

.bp-hero .lede {
  max-width: 40rem;
}

.build-progress {
  margin-top: var(--space-6);
  gap: 0.55rem;
}

.build-progress .bp {
  font-family: var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  padding: 0.75rem 0.7rem 0.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top-width: 1px;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
}

.build-progress .bp.is-on {
  border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border));
  background: var(--color-accent-soft);
  color: var(--color-text);
}

.build-progress .bp .n {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.2rem;
}

.demo-pill.is-wa {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

.dash-frame .browser {
  border-radius: var(--radius-md);
}

.list-follow {
  margin-top: var(--space-6);
}

.bp-hero .metric-strip,
.page-index .home-hero .metric-strip {
  margin-top: var(--space-5);
}

.brick-timeline {
  gap: 0.85rem;
}

.page-demo .bp-hero,
.page-contact .bp-hero {
  padding-bottom: clamp(2rem, 4vw, 3.25rem);
}

/* ---- Contact channel cards ---- */
.contact-channels .spec-card {
  display: flex;
  flex-direction: column;
}

.contact-channels .spec-card.is-static .callout {
  opacity: 1;
  max-height: none;
  overflow: visible;
  margin-top: auto;
  padding-top: 0.75rem;
  line-height: 1.5;
}

.contact-channels .spec-card .callout a {
  color: inherit;
  text-decoration: none;
  font-weight: var(--fw-semibold);
}

.contact-channels .spec-card .callout a:hover,
.contact-channels .spec-card .callout a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.contact-channels .spec-card .card-action {
  margin-top: 0.85rem;
}

.site-footer {
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

/* ============================================================
   Enterprise polish — shared components, all pages
   ============================================================ */

.spec-label {
  color: var(--color-primary);
}

.page-index .home-kicker {
  color: var(--color-primary);
}

.md-log {
  font-family: var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  font-size: var(--fs-sm);
}

/* ---- Header: solid chrome, clear CTA pair ---- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid transparent;
  box-shadow: none;
}

.site-header::before {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header.is-scrolled {
  background: var(--color-surface);
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 0 rgb(2 86 154 / 0.06);
}

.header-actions {
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 1199px) {
  .header-cta {
    padding-inline: 0.85rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 1050px) {
  .header-ctas .header-demo {
    display: none;
  }
}

@media (max-width: 899px) {
  .header-prefs .pref-theme {
    display: none;
  }

  .header-ctas .header-demo {
    display: none;
  }

  .header-cta {
    min-height: 2.5rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
  }

  .header-cta--primary {
    box-shadow: none;
  }
}

.mega-menu {
  min-width: min(36rem, calc(100vw - 2rem));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border);
  padding: 0.65rem;
  gap: 0.35rem;
}

.mega-menu a {
  border-radius: var(--radius-md) !important;
  padding: 0.7rem 0.75rem !important;
  align-items: center;
}

.mega-menu a .mm-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.mega-menu a:hover .mm-icon,
.mega-menu a:focus-visible .mm-icon,
.mega-menu a.is-active .mm-icon {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

@media (max-width: 899px) {
  /* Drawer uses position:static; hide the closed mega-menu so it does not leave a blank gap. */
  .nav .nav-dropdown-menu {
    display: none;
  }

  .nav .nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0;
    width: auto;
    max-width: 100%;
    box-shadow: none;
    border: 0;
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }

  .mega-menu a {
    grid-template-columns: 2.25rem 1fr !important;
  }

  .mega-menu a .mm-icon {
    display: grid;
  }
}

/* ---- Buttons ---- */
.btn {
  border-radius: var(--radius-md);
  transition: background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.btn-hardhat,
.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}

.btn-hardhat:hover,
.btn-hardhat:focus-visible,
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-primary-hover);
  color: var(--color-on-primary);
  border-color: var(--color-primary-hover);
}

.cta-band .btn-hardhat,
.cta-band .btn-primary {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.cta-band .btn-hardhat:hover,
.cta-band .btn-hardhat:focus-visible,
.cta-band .btn-primary:hover,
.cta-band .btn-primary:focus-visible {
  background: var(--color-primary-soft);
  color: var(--color-primary-deep);
  border-color: var(--color-primary-soft);
}

.cta-band .btn-ghost,
.cta-band .btn-blueprint {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.45);
}

.cta-band .btn-ghost:hover,
.cta-band .btn-ghost:focus-visible,
.cta-band .btn-blueprint:hover,
.cta-band .btn-blueprint:focus-visible {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  border-color: #fff;
}

/* ---- Screenshot / product frame ---- */
.browser-bar span {
  background: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
}

.browser-bar span:nth-child(1),
.browser-bar span:nth-child(2),
.browser-bar span:nth-child(3) {
  background: color-mix(in srgb, var(--color-primary) 22%, var(--color-border));
}

.dash-frame .browser,
.proof-shot .browser {
  border-radius: var(--radius-lg);
}

/* Lead user-dashboard frame — first screenshot only */
.dash-frame--lead .browser,
.dash-frame--lead .preview-wrap {
  max-width: none;
  width: 100%;
  margin: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-product);
}

.dash-frame--lead .browser-body {
  --dash-lead-frame-height: clamp(20rem, 48vh, 30rem);
  height: var(--dash-lead-frame-height);
  overflow: hidden;
  position: relative;
  background: var(--color-browser-chrome);
}

.dash-frame--lead .shot-full {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform 10s ease-in-out;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.dash-frame--lead .preview-wrap:hover .shot-full,
.dash-frame--lead .preview-wrap:focus-within .shot-full {
  transform: translate3d(0, min(0px, calc(var(--dash-lead-frame-height) - 100%)), 0);
}

@media (min-width: 960px) {
  .bp-split:has(.dash-frame--lead) {
    grid-template-columns: 0.72fr 1.28fr;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

@media (hover: none) {
  .dash-frame--lead .browser-body {
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .dash-frame--lead .preview-wrap:hover .shot-full,
  .dash-frame--lead .preview-wrap:focus-within .shot-full {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-frame--lead .browser-body {
    overflow: auto;
    overscroll-behavior: contain;
  }

  .dash-frame--lead .preview-wrap:hover .shot-full,
  .dash-frame--lead .preview-wrap:focus-within .shot-full {
    transform: none;
  }
}

.bp-hero-visual {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---- Dashboards hero — GM indicators screenshot ---- */
.page-dashboards .bp-hero-grid {
  align-items: center;
}

@media (min-width: 960px) {
  .page-dashboards .bp-hero-grid {
    grid-template-columns: 0.92fr 1.08fr;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.page-dashboards .bp-hero-visual.bp-hero-shot {
  aspect-ratio: auto;
  max-width: none;
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  position: relative;
  isolation: isolate;
  padding: 0.35rem;
}

.page-dashboards .bp-hero-shot::before {
  content: "";
  position: absolute;
  inset: -0.55rem -0.35rem -0.85rem;
  z-index: -1;
  border-radius: calc(var(--radius-xl) + 6px);
  background:
    radial-gradient(360px 160px at 88% 12%, rgb(2 86 154 / 0.1), transparent 68%),
    radial-gradient(280px 140px at 8% 92%, rgb(43 166 184 / 0.08), transparent 62%),
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px, 22px 22px;
  opacity: 0.85;
  pointer-events: none;
}

.page-dashboards .bp-hero-shot .proof-shot.dash-frame {
  width: 100%;
  max-width: none;
  margin: 0;
}

.page-dashboards .bp-hero-shot .browser {
  width: 100%;
  margin: 0;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--color-primary) 14%, var(--color-border));
  box-shadow:
    var(--shadow-product),
    0 18px 48px rgb(2 86 154 / 0.1);
  overflow: hidden;
  background: var(--color-surface);
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
}

.page-dashboards .bp-hero-shot .browser:hover,
.page-dashboards .bp-hero-shot .browser:focus-within {
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
  box-shadow:
    var(--shadow-product),
    0 22px 56px rgb(2 86 154 / 0.14);
  transform: translateY(-2px);
}

.page-dashboards .bp-hero-shot .browser-bar {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-primary) 6%, var(--color-surface)) 0%,
    var(--color-surface) 100%
  );
  border-bottom: 1px solid var(--color-border);
}

.page-dashboards .bp-hero-shot .browser-url {
  color: color-mix(in srgb, var(--color-text) 55%, var(--color-muted));
  font-size: 0.72rem;
}

.page-dashboards .bp-hero-shot .browser-body,
.page-dashboards .bp-hero-shot .preview-wrap .browser-body {
  height: auto;
  max-height: none;
  min-height: 0;
  aspect-ratio: auto;
  overflow: hidden;
  position: relative;
  line-height: 0;
  background: var(--color-surface);
}

.page-dashboards .bp-hero-shot .browser .browser-body::after {
  display: none;
}

.page-dashboards .bp-hero-shot picture {
  display: block;
  width: 100%;
  height: auto;
}

.page-dashboards .bp-hero-shot .shot-full {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: auto;
  vertical-align: top;
  transition: none;
  transform: none;
  will-change: auto;
}

.page-dashboards .bp-hero-shot .preview-wrap:hover .shot-full,
.page-dashboards .bp-hero-shot .preview-wrap:focus-within .shot-full {
  transform: none;
}

.page-dashboards .bp-hero-shot .scroll-hint {
  display: none;
}

/* ---- Projects hero — product screenshot ---- */
.page-projects .bp-hero-grid {
  align-items: center;
}

@media (min-width: 960px) {
  .page-projects .bp-hero-grid {
    grid-template-columns: 0.88fr 1.12fr;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.page-projects .bp-hero-visual.bp-hero-shot {
  aspect-ratio: auto;
  max-width: min(100%, 48rem);
  width: 100%;
  justify-self: stretch;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  position: relative;
  isolation: isolate;
  padding: 0.35rem;
}

.page-projects .bp-hero-shot::before {
  content: "";
  position: absolute;
  inset: -0.55rem -0.35rem -0.85rem;
  z-index: -1;
  border-radius: calc(var(--radius-xl) + 6px);
  background:
    radial-gradient(360px 160px at 88% 12%, rgb(2 86 154 / 0.1), transparent 68%),
    radial-gradient(280px 140px at 8% 92%, rgb(43 166 184 / 0.08), transparent 62%),
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px, 22px 22px;
  opacity: 0.85;
  pointer-events: none;
}

.page-projects .bp-hero-shot .proof-shot.dash-frame {
  width: 100%;
  max-width: none;
  margin: 0;
}

.page-projects .bp-hero-shot .preview-wrap {
  max-width: none;
  margin: 0;
}

.page-projects .bp-hero-shot .browser {
  width: 100%;
  margin: 0;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--color-primary) 14%, var(--color-border));
  box-shadow:
    var(--shadow-product),
    0 18px 48px rgb(2 86 154 / 0.1);
  overflow: hidden;
  background: var(--color-surface);
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
}

.page-projects .bp-hero-shot .browser:hover,
.page-projects .bp-hero-shot .browser:focus-within {
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
  box-shadow:
    var(--shadow-product),
    0 22px 56px rgb(2 86 154 / 0.14);
  transform: translateY(-2px);
}

.page-projects .bp-hero-shot .browser-bar {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-primary) 6%, var(--color-surface)) 0%,
    var(--color-surface) 100%
  );
  border-bottom: 1px solid var(--color-border);
}

.page-projects .bp-hero-shot .browser-url {
  color: color-mix(in srgb, var(--color-text) 55%, var(--color-muted));
  font-size: 0.72rem;
}

.page-projects .bp-hero-shot .browser-body,
.page-projects .bp-hero-shot .preview-wrap .browser-body {
  height: auto;
  max-height: none;
  min-height: 0;
  aspect-ratio: auto;
  overflow: hidden;
  position: relative;
  line-height: 0;
  background: var(--color-surface);
}

.page-projects .bp-hero-shot .browser .browser-body::after {
  display: none;
}

.page-projects .bp-hero-shot picture {
  display: block;
  width: 100%;
  height: auto;
}

.page-projects .bp-hero-shot .shot-full {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: top center;
  transition: none;
  transform: none !important;
  will-change: auto;
}

.page-projects .bp-hero-shot .preview-wrap:hover .shot-full,
.page-projects .bp-hero-shot .preview-wrap:focus-within .shot-full {
  transform: none !important;
}

.page-projects .bp-hero-shot .scroll-hint {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-projects .bp-hero-shot .browser {
    transition: border-color var(--ease), box-shadow var(--ease);
  }

  .page-projects .bp-hero-shot .browser:hover,
  .page-projects .bp-hero-shot .browser:focus-within {
    transform: none;
  }
}

/* ---- Solution capabilities grid (projects, customers, hr, …) ---- */
.section-solution-capabilities {
  background:
    radial-gradient(680px 260px at 100% 0%, rgb(2 86 154 / 0.07), transparent 68%),
    var(--color-bg);
}

html[dir="ltr"] .section-solution-capabilities {
  background:
    radial-gradient(680px 260px at 0% 0%, rgb(2 86 154 / 0.07), transparent 68%),
    var(--color-bg);
}

@media (prefers-reduced-motion: no-preference) {
  .section-solution-capabilities .annot-head[data-reveal] .spec-label,
  .section-solution-capabilities .annot-head[data-reveal] h2,
  .section-solution-capabilities .annot-head[data-reveal] p {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity var(--motion-brick),
      transform var(--motion-brick);
  }

  .section-solution-capabilities .annot-head[data-reveal].is-visible .spec-label {
    opacity: 1;
    transform: none;
    transition-delay: 0ms;
  }

  .section-solution-capabilities .annot-head[data-reveal].is-visible h2 {
    opacity: 1;
    transform: none;
    transition-delay: 70ms;
  }

  .section-solution-capabilities .annot-head[data-reveal].is-visible p {
    opacity: 1;
    transform: none;
    transition-delay: 140ms;
  }

  .section-solution-capabilities .annot-head[data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

.solution-spec-grid {
  align-items: stretch;
}

.solution-spec-grid .spec-card {
  isolation: isolate;
  box-shadow: var(--shadow-sm);
  background:
    radial-gradient(120% 70% at 100% 0%, rgb(2 86 154 / 0.05), transparent 58%),
    var(--color-surface);
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    background-color var(--ease);
}

html[dir="ltr"] .solution-spec-grid .spec-card {
  background:
    radial-gradient(120% 70% at 0% 0%, rgb(2 86 154 / 0.05), transparent 58%),
    var(--color-surface);
}

.solution-spec-grid .spec-card::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 3px;
  background: color-mix(in srgb, var(--color-primary) 42%, transparent);
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
  transition: transform var(--motion-brick), background-color var(--ease);
}

.solution-spec-grid .spec-card[data-num]::before {
  top: 1.15rem;
  inset-inline-end: 1.15rem;
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-full);
  opacity: 1;
  line-height: 1.2;
  transition: background var(--ease), color var(--ease);
}

.solution-spec-grid .spec-card .spec-icon {
  transition:
    background var(--ease),
    color var(--ease),
    border-color var(--ease),
    transform var(--motion-brick);
}

.solution-spec-grid .spec-card .callout {
  opacity: 0.72;
  transform: translateY(4px);
  transition:
    opacity var(--motion-brick),
    transform var(--motion-brick),
    border-color var(--ease);
}

.solution-spec-grid .spec-card:hover,
.solution-spec-grid .spec-card:focus-within {
  transform: none;
  border-color: color-mix(in srgb, var(--color-primary) 32%, var(--color-border));
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.solution-spec-grid .spec-card:hover::after,
.solution-spec-grid .spec-card:focus-within::after {
  transform: scaleY(1);
  background: var(--color-primary);
}

.solution-spec-grid .spec-card[data-num]:hover::before,
.solution-spec-grid .spec-card[data-num]:focus-within::before {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.solution-spec-grid .spec-card:hover .spec-icon,
.solution-spec-grid .spec-card:focus-within .spec-icon {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
  transform: scale(1.04);
}

.solution-spec-grid .spec-card:hover .callout,
.solution-spec-grid .spec-card:focus-within .callout {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .solution-spec-grid.is-visible > .spec-card:nth-child(1)::after,
  [data-reveal].is-visible.solution-spec-grid > .spec-card:nth-child(1)::after {
    transform: scaleY(0.36);
    transition-delay: 180ms;
  }

  .solution-spec-grid.is-visible > .spec-card:nth-child(2)::after,
  [data-reveal].is-visible.solution-spec-grid > .spec-card:nth-child(2)::after {
    transform: scaleY(0.36);
    transition-delay: 260ms;
  }

  .solution-spec-grid.is-visible > .spec-card:nth-child(3)::after,
  [data-reveal].is-visible.solution-spec-grid > .spec-card:nth-child(3)::after {
    transform: scaleY(0.36);
    transition-delay: 340ms;
  }

  .solution-spec-grid.is-visible > .spec-card:nth-child(4)::after,
  [data-reveal].is-visible.solution-spec-grid > .spec-card:nth-child(4)::after {
    transform: scaleY(0.36);
    transition-delay: 420ms;
  }

  .solution-spec-grid.is-visible > .spec-card:nth-child(5)::after,
  [data-reveal].is-visible.solution-spec-grid > .spec-card:nth-child(5)::after {
    transform: scaleY(0.36);
    transition-delay: 500ms;
  }

  .solution-spec-grid.is-visible > .spec-card:nth-child(6)::after,
  [data-reveal].is-visible.solution-spec-grid > .spec-card:nth-child(6)::after {
    transform: scaleY(0.36);
    transition-delay: 580ms;
  }

  .solution-spec-grid.is-visible > .spec-card:nth-child(7)::after,
  [data-reveal].is-visible.solution-spec-grid > .spec-card:nth-child(7)::after {
    transform: scaleY(0.36);
    transition-delay: 660ms;
  }

  .solution-spec-grid.is-visible > .spec-card:nth-child(8)::after,
  [data-reveal].is-visible.solution-spec-grid > .spec-card:nth-child(8)::after {
    transform: scaleY(0.36);
    transition-delay: 740ms;
  }

  .solution-spec-grid.is-visible > .spec-card:nth-child(1) .callout,
  [data-reveal].is-visible.solution-spec-grid > .spec-card:nth-child(1) .callout {
    opacity: 1;
    transform: none;
    transition-delay: 240ms;
  }

  .solution-spec-grid.is-visible > .spec-card:nth-child(2) .callout,
  [data-reveal].is-visible.solution-spec-grid > .spec-card:nth-child(2) .callout {
    opacity: 1;
    transform: none;
    transition-delay: 320ms;
  }

  .solution-spec-grid.is-visible > .spec-card:nth-child(3) .callout,
  [data-reveal].is-visible.solution-spec-grid > .spec-card:nth-child(3) .callout {
    opacity: 1;
    transform: none;
    transition-delay: 400ms;
  }

  .solution-spec-grid.is-visible > .spec-card:nth-child(4) .callout,
  [data-reveal].is-visible.solution-spec-grid > .spec-card:nth-child(4) .callout {
    opacity: 1;
    transform: none;
    transition-delay: 480ms;
  }

  .solution-spec-grid.is-visible > .spec-card:nth-child(5) .callout,
  [data-reveal].is-visible.solution-spec-grid > .spec-card:nth-child(5) .callout {
    opacity: 1;
    transform: none;
    transition-delay: 560ms;
  }

  .solution-spec-grid.is-visible > .spec-card:nth-child(6) .callout,
  [data-reveal].is-visible.solution-spec-grid > .spec-card:nth-child(6) .callout {
    opacity: 1;
    transform: none;
    transition-delay: 640ms;
  }

  .solution-spec-grid.is-visible > .spec-card:nth-child(7) .callout,
  [data-reveal].is-visible.solution-spec-grid > .spec-card:nth-child(7) .callout {
    opacity: 1;
    transform: none;
    transition-delay: 720ms;
  }

  .solution-spec-grid.is-visible > .spec-card:nth-child(8) .callout,
  [data-reveal].is-visible.solution-spec-grid > .spec-card:nth-child(8) .callout {
    opacity: 1;
    transform: none;
    transition-delay: 800ms;
  }

  .solution-spec-grid.is-visible > .spec-card:hover::after,
  .solution-spec-grid.is-visible > .spec-card:focus-within::after,
  [data-reveal].is-visible.solution-spec-grid > .spec-card:hover::after,
  [data-reveal].is-visible.solution-spec-grid > .spec-card:focus-within::after {
    transform: scaleY(1);
    transition-delay: 0ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-solution-capabilities .annot-head[data-reveal] .spec-label,
  .section-solution-capabilities .annot-head[data-reveal] h2,
  .section-solution-capabilities .annot-head[data-reveal] p,
  .solution-spec-grid .spec-card::after,
  .solution-spec-grid .spec-card .callout,
  .solution-spec-grid .spec-card .spec-icon {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---- Customers hero — quotations screenshot ---- */
.page-customers .bp-hero-grid {
  align-items: center;
}

@media (min-width: 960px) {
  .page-customers .bp-hero-grid {
    grid-template-columns: 0.88fr 1.12fr;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.page-customers .bp-hero-visual.bp-hero-shot {
  aspect-ratio: auto;
  max-width: min(100%, 48rem);
  width: 100%;
  justify-self: stretch;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  position: relative;
  isolation: isolate;
  padding: 0.35rem;
}

.page-customers .bp-hero-shot::before {
  content: "";
  position: absolute;
  inset: -0.55rem -0.35rem -0.85rem;
  z-index: -1;
  border-radius: calc(var(--radius-xl) + 6px);
  background:
    radial-gradient(360px 160px at 88% 12%, rgb(2 86 154 / 0.1), transparent 68%),
    radial-gradient(280px 140px at 8% 92%, rgb(43 166 184 / 0.08), transparent 62%),
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px, 22px 22px;
  opacity: 0.85;
  pointer-events: none;
}

.page-customers .bp-hero-shot .proof-shot.dash-frame {
  width: 100%;
  max-width: none;
  margin: 0;
}

.page-customers .bp-hero-shot .preview-wrap {
  max-width: none;
  margin: 0;
}

.page-customers .bp-hero-shot .browser {
  width: 100%;
  margin: 0;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--color-primary) 14%, var(--color-border));
  box-shadow:
    var(--shadow-product),
    0 18px 48px rgb(2 86 154 / 0.1);
  overflow: hidden;
  background: var(--color-surface);
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
}

.page-customers .bp-hero-shot .browser:hover,
.page-customers .bp-hero-shot .browser:focus-within {
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
  box-shadow:
    var(--shadow-product),
    0 22px 56px rgb(2 86 154 / 0.14);
  transform: translateY(-2px);
}

.page-customers .bp-hero-shot .browser-bar {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-primary) 6%, var(--color-surface)) 0%,
    var(--color-surface) 100%
  );
  border-bottom: 1px solid var(--color-border);
}

.page-customers .bp-hero-shot .browser-url {
  color: color-mix(in srgb, var(--color-text) 55%, var(--color-muted));
  font-size: 0.72rem;
}

.page-customers .bp-hero-shot .browser-body,
.page-customers .bp-hero-shot .preview-wrap .browser-body {
  height: auto;
  max-height: none;
  min-height: 0;
  aspect-ratio: auto;
  overflow: hidden;
  position: relative;
  line-height: 0;
  background: var(--color-surface);
}

.page-customers .bp-hero-shot .browser .browser-body::after {
  display: none;
}

.page-customers .bp-hero-shot picture {
  display: block;
  width: 100%;
  height: auto;
}

.page-customers .bp-hero-shot .shot-full {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: top center;
  transition: none;
  transform: none !important;
  will-change: auto;
}

.page-customers .bp-hero-shot .preview-wrap:hover .shot-full,
.page-customers .bp-hero-shot .preview-wrap:focus-within .shot-full {
  transform: none !important;
}

.page-customers .bp-hero-shot .scroll-hint {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-customers .bp-hero-shot .browser {
    transition: border-color var(--ease), box-shadow var(--ease);
  }

  .page-customers .bp-hero-shot .browser:hover,
  .page-customers .bp-hero-shot .browser:focus-within {
    transform: none;
  }
}

/* ---- Finance hero — invoice screenshot ---- */
.page-finance .bp-hero-grid {
  align-items: center;
}

@media (min-width: 960px) {
  .page-finance .bp-hero-grid {
    grid-template-columns: 0.92fr 1.08fr;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.page-finance .bp-hero-visual.bp-hero-shot {
  aspect-ratio: auto;
  max-width: none;
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  position: relative;
  isolation: isolate;
  padding: 0.35rem;
}

.page-finance .bp-hero-shot::before {
  content: "";
  position: absolute;
  inset: -0.55rem -0.35rem -0.85rem;
  z-index: -1;
  border-radius: calc(var(--radius-xl) + 6px);
  background:
    radial-gradient(360px 160px at 88% 12%, rgb(2 86 154 / 0.1), transparent 68%),
    radial-gradient(280px 140px at 8% 92%, rgb(43 166 184 / 0.08), transparent 62%),
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px, 22px 22px;
  opacity: 0.85;
  pointer-events: none;
}

.page-finance .bp-hero-shot .proof-shot.dash-frame {
  width: 100%;
  max-width: none;
  margin: 0;
}

.page-finance .bp-hero-shot .browser {
  width: 100%;
  margin: 0;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--color-primary) 14%, var(--color-border));
  box-shadow:
    var(--shadow-product),
    0 18px 48px rgb(2 86 154 / 0.1);
  overflow: hidden;
  background: var(--color-surface);
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
}

.page-finance .bp-hero-shot .browser:hover,
.page-finance .bp-hero-shot .browser:focus-within {
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
  box-shadow:
    var(--shadow-product),
    0 22px 56px rgb(2 86 154 / 0.14);
  transform: translateY(-2px);
}

.page-finance .bp-hero-shot .browser-bar {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-primary) 6%, var(--color-surface)) 0%,
    var(--color-surface) 100%
  );
  border-bottom: 1px solid var(--color-border);
}

.page-finance .bp-hero-shot .browser-url {
  color: color-mix(in srgb, var(--color-text) 55%, var(--color-muted));
  font-size: 0.72rem;
}

.page-finance .bp-hero-shot .browser-body {
  height: clamp(14rem, 36vw, 22rem);
  overflow: hidden;
  position: relative;
  background: var(--color-browser-chrome);
}

.page-finance .bp-hero-shot .shot-full {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: top center;
  transition: transform 12s ease-in-out;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.page-finance .bp-hero-shot .preview-wrap:hover .shot-full,
.page-finance .bp-hero-shot .preview-wrap:focus-within .shot-full {
  transform: translate3d(0, min(0px, calc(clamp(14rem, 36vw, 22rem) - 100%)), 0);
}

@media (hover: none) {
  .page-finance .bp-hero-shot .browser-body {
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .page-finance .bp-hero-shot .preview-wrap:hover .shot-full,
  .page-finance .bp-hero-shot .preview-wrap:focus-within .shot-full {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-finance .bp-hero-shot .browser {
    transition: border-color var(--ease), box-shadow var(--ease);
  }

  .page-finance .bp-hero-shot .browser:hover,
  .page-finance .bp-hero-shot .browser:focus-within {
    transform: none;
  }

  .page-finance .bp-hero-shot .browser-body {
    overflow: auto;
    overscroll-behavior: contain;
  }

  .page-finance .bp-hero-shot .preview-wrap:hover .shot-full,
  .page-finance .bp-hero-shot .preview-wrap:focus-within .shot-full {
    transform: none;
  }

  .page-finance .bp-hero-shot .shot-full {
    transition: none;
  }
}

/* ---- Communications hero — outgoing letter screenshot ---- */
.page-communications .bp-hero-grid {
  align-items: center;
}

@media (min-width: 960px) {
  .page-communications .bp-hero-grid {
    grid-template-columns: 0.88fr 1.12fr;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.page-communications .bp-hero-visual.bp-hero-shot {
  aspect-ratio: auto;
  max-width: min(100%, 48rem);
  width: 100%;
  justify-self: stretch;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  position: relative;
  isolation: isolate;
  padding: 0.35rem;
}

.page-communications .bp-hero-shot::before {
  content: "";
  position: absolute;
  inset: -0.55rem -0.35rem -0.85rem;
  z-index: -1;
  border-radius: calc(var(--radius-xl) + 6px);
  background:
    radial-gradient(360px 160px at 88% 12%, rgb(2 86 154 / 0.1), transparent 68%),
    radial-gradient(280px 140px at 8% 92%, rgb(43 166 184 / 0.08), transparent 62%),
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px, 22px 22px;
  opacity: 0.85;
  pointer-events: none;
}

.page-communications .bp-hero-shot .proof-shot.dash-frame {
  width: 100%;
  max-width: none;
  margin: 0;
}

.page-communications .bp-hero-shot .preview-wrap {
  max-width: none;
  margin: 0;
}

.page-communications .bp-hero-shot .browser {
  width: 100%;
  margin: 0;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--color-primary) 14%, var(--color-border));
  box-shadow:
    var(--shadow-product),
    0 18px 48px rgb(2 86 154 / 0.1);
  overflow: hidden;
  background: var(--color-surface);
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
}

.page-communications .bp-hero-shot .browser:hover,
.page-communications .bp-hero-shot .browser:focus-within {
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
  box-shadow:
    var(--shadow-product),
    0 22px 56px rgb(2 86 154 / 0.14);
  transform: translateY(-2px);
}

.page-communications .bp-hero-shot .browser-bar {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-primary) 6%, var(--color-surface)) 0%,
    var(--color-surface) 100%
  );
  border-bottom: 1px solid var(--color-border);
}

.page-communications .bp-hero-shot .browser-url {
  color: color-mix(in srgb, var(--color-text) 55%, var(--color-muted));
  font-size: 0.72rem;
}

.page-communications .bp-hero-shot .browser-body,
.page-communications .bp-hero-shot .preview-wrap .browser-body {
  height: auto;
  max-height: none;
  min-height: 0;
  aspect-ratio: auto;
  overflow: hidden;
  position: relative;
  line-height: 0;
  background: var(--color-surface);
}

.page-communications .bp-hero-shot .browser .browser-body::after {
  display: none;
}

.page-communications .bp-hero-shot picture {
  display: block;
  width: 100%;
  height: auto;
}

.page-communications .bp-hero-shot .shot-full {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: top center;
  transition: none;
  transform: none !important;
  will-change: auto;
}

.page-communications .bp-hero-shot .preview-wrap:hover .shot-full,
.page-communications .bp-hero-shot .preview-wrap:focus-within .shot-full {
  transform: none !important;
}

.page-communications .bp-hero-shot .scroll-hint {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-communications .bp-hero-shot .browser {
    transition: border-color var(--ease), box-shadow var(--ease);
  }

  .page-communications .bp-hero-shot .browser:hover,
  .page-communications .bp-hero-shot .browser:focus-within {
    transform: none;
  }
}

/* ---- HR hero — employee profile screenshot ---- */
.page-hr .bp-hero-grid {
  align-items: center;
}

@media (min-width: 960px) {
  .page-hr .bp-hero-grid {
    grid-template-columns: 0.92fr 1.08fr;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.page-hr .bp-hero-visual.bp-hero-shot {
  aspect-ratio: auto;
  max-width: none;
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  position: relative;
  isolation: isolate;
  padding: 0.35rem;
}

.page-hr .bp-hero-shot::before {
  content: "";
  position: absolute;
  inset: -0.55rem -0.35rem -0.85rem;
  z-index: -1;
  border-radius: calc(var(--radius-xl) + 6px);
  background:
    radial-gradient(360px 160px at 88% 12%, rgb(2 86 154 / 0.1), transparent 68%),
    radial-gradient(280px 140px at 8% 92%, rgb(43 166 184 / 0.08), transparent 62%),
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px, 22px 22px;
  opacity: 0.85;
  pointer-events: none;
}

.page-hr .bp-hero-shot .proof-shot.dash-frame {
  width: 100%;
  max-width: none;
  margin: 0;
}

.page-hr .bp-hero-shot .browser {
  width: 100%;
  margin: 0;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--color-primary) 14%, var(--color-border));
  box-shadow:
    var(--shadow-product),
    0 18px 48px rgb(2 86 154 / 0.1);
  overflow: hidden;
  background: var(--color-surface);
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
}

.page-hr .bp-hero-shot .browser:hover,
.page-hr .bp-hero-shot .browser:focus-within {
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
  box-shadow:
    var(--shadow-product),
    0 22px 56px rgb(2 86 154 / 0.14);
  transform: translateY(-2px);
}

.page-hr .bp-hero-shot .browser-bar {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-primary) 6%, var(--color-surface)) 0%,
    var(--color-surface) 100%
  );
  border-bottom: 1px solid var(--color-border);
}

.page-hr .bp-hero-shot .browser-url {
  color: color-mix(in srgb, var(--color-text) 55%, var(--color-muted));
  font-size: 0.72rem;
}

.page-hr .bp-hero-shot .browser-body {
  height: clamp(15rem, 38vw, 24rem);
  overflow: hidden;
  position: relative;
  background: var(--color-browser-chrome);
}

.page-hr .bp-hero-shot .shot-full {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: top center;
  transition: transform 12s ease-in-out;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.page-hr .bp-hero-shot .preview-wrap:hover .shot-full,
.page-hr .bp-hero-shot .preview-wrap:focus-within .shot-full {
  transform: translate3d(0, min(0px, calc(clamp(15rem, 38vw, 24rem) - 100%)), 0);
}

@media (hover: none) {
  .page-hr .bp-hero-shot .browser-body {
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .page-hr .bp-hero-shot .preview-wrap:hover .shot-full,
  .page-hr .bp-hero-shot .preview-wrap:focus-within .shot-full {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hr .bp-hero-shot .browser {
    transition: border-color var(--ease), box-shadow var(--ease);
  }

  .page-hr .bp-hero-shot .browser:hover,
  .page-hr .bp-hero-shot .browser:focus-within {
    transform: none;
  }

  .page-hr .bp-hero-shot .browser-body {
    overflow: auto;
    overscroll-behavior: contain;
  }

  .page-hr .bp-hero-shot .preview-wrap:hover .shot-full,
  .page-hr .bp-hero-shot .preview-wrap:focus-within .shot-full {
    transform: none;
  }

  .page-hr .bp-hero-shot .shot-full {
    transition: none;
  }
}

/* ---- HR detail sections (attendance + self-service) ---- */
.page-hr .hr-detail .annot-head {
  max-width: 42rem;
  margin-bottom: 1.75rem;
}

.page-hr .hr-method-board {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 720px) {
  .page-hr .hr-method-board {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.page-hr .hr-method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  padding: 1.35rem 1.1rem 1.25rem;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
}

.page-hr .hr-method-card:hover {
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.page-hr .hr-method-card .spec-icon,
.page-hr .hr-detail-head .spec-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  border: 1px solid color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.page-hr .hr-detail-head .spec-icon {
  flex: 0 0 auto;
}

.page-hr .hr-method-card p {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.5;
  color: var(--color-text);
}

.page-hr .hr-detail-foot {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.page-hr .hr-detail-foot p {
  margin: 0 0 0.85rem;
  color: var(--color-muted);
}

.page-hr .hr-detail-foot p:last-child {
  margin-bottom: 0;
}

.page-hr .hr-detail-close {
  margin: 0;
  padding: 0.9rem 1.05rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-primary) 5%, var(--color-surface));
  border: 1px solid color-mix(in srgb, var(--color-primary) 12%, var(--color-border));
  border-radius: var(--radius-md);
  border-inline-start: 3px solid var(--color-primary);
}

.page-hr .hr-detail-panel {
  position: relative;
  max-width: 48rem;
  margin-inline: auto;
  padding: 1.65rem 1.5rem 1.55rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.page-hr .hr-detail-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.45;
  pointer-events: none;
}

.page-hr .hr-detail-panel > * {
  position: relative;
}

.page-hr .hr-detail-head {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.page-hr .hr-detail-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: var(--lh-heading);
}

.page-hr .hr-detail-head .spec-label {
  margin-bottom: 0.35rem;
}

.page-hr .hr-detail-panel > p:not(.hr-detail-close) {
  margin: 0 0 1rem;
  color: var(--color-muted);
  max-width: 40rem;
}

.page-hr .hr-detail-panel .hr-detail-close {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .page-hr .hr-method-card:hover {
    transform: none;
  }
}

/* ---- Status chips (Arabic-friendly) ---- */
.status {
  font-family: var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

.status-stalled {
  background: var(--status-stalled-bg);
  color: var(--status-stalled);
}

/* ---- Signature workflow rail ---- */
.process-rail {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.process-rail li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  position: relative;
}

.process-rail li::before {
  content: "";
  position: absolute;
  inset-inline-start: 1.2rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-border);
}

.process-rail li:first-child::before { top: 50%; }
.process-rail li:last-child::before { bottom: 50%; }

.process-rail-num {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
  background: var(--color-surface);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

.process-rail-label {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--color-text);
}

@media (min-width: 900px) {
  .process-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem 1rem;
  }

  .process-rail li {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.55rem;
    padding: 0;
  }

  .process-rail li::before {
    display: none;
  }

  .process-rail-label {
    max-width: 9rem;
  }
}

@media (min-width: 1080px) {
  .process-rail {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
  }

  .process-rail::before {
    content: "";
    position: absolute;
    inset-inline: 8%;
    top: 1.2rem;
    height: 1px;
    background: var(--color-border);
  }
}

/* ---- Process rail entrance (home #connected) ---- */
@keyframes process-rail-step {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes process-rail-node {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  #connected .process-rail li {
    opacity: 0;
    transform: translateY(14px);
  }

  #connected.is-visible .process-rail li {
    animation: process-rail-step 420ms var(--ease-out) both;
  }

  #connected.is-visible .process-rail li:nth-child(1) { animation-delay: 100ms; }
  #connected.is-visible .process-rail li:nth-child(2) { animation-delay: 190ms; }
  #connected.is-visible .process-rail li:nth-child(3) { animation-delay: 280ms; }
  #connected.is-visible .process-rail li:nth-child(4) { animation-delay: 370ms; }
  #connected.is-visible .process-rail li:nth-child(5) { animation-delay: 460ms; }
  #connected.is-visible .process-rail li:nth-child(6) { animation-delay: 550ms; }

  #connected.is-visible .process-rail li:nth-child(1) .process-rail-num { animation: process-rail-node 360ms 100ms var(--ease-out) both; }
  #connected.is-visible .process-rail li:nth-child(2) .process-rail-num { animation: process-rail-node 360ms 190ms var(--ease-out) both; }
  #connected.is-visible .process-rail li:nth-child(3) .process-rail-num { animation: process-rail-node 360ms 280ms var(--ease-out) both; }
  #connected.is-visible .process-rail li:nth-child(4) .process-rail-num { animation: process-rail-node 360ms 370ms var(--ease-out) both; }
  #connected.is-visible .process-rail li:nth-child(5) .process-rail-num { animation: process-rail-node 360ms 460ms var(--ease-out) both; }
  #connected.is-visible .process-rail li:nth-child(6) .process-rail-num { animation: process-rail-node 360ms 550ms var(--ease-out) both; }

  #connected .flow-note {
    opacity: 0;
    transform: translateY(10px);
  }

  #connected.is-visible .flow-note {
    animation: process-rail-step 380ms 640ms var(--ease-out) both;
  }

  @media (min-width: 1080px) {
    #connected .process-rail::before {
      transform: scaleX(0);
      transform-origin: inline-start;
      transition: transform 680ms cubic-bezier(0.22, 1, 0.36, 1) 60ms;
    }

    #connected.is-visible .process-rail::before {
      transform: scaleX(1);
    }
  }

  @media (max-width: 1079px) {
    #connected .process-rail li::before {
      transform: scaleY(0);
      transform-origin: top;
      transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    #connected.is-visible .process-rail li::before {
      transform: scaleY(1);
    }

    #connected.is-visible .process-rail li:nth-child(1)::before { transition-delay: 100ms; }
    #connected.is-visible .process-rail li:nth-child(2)::before { transition-delay: 190ms; }
    #connected.is-visible .process-rail li:nth-child(3)::before { transition-delay: 280ms; }
    #connected.is-visible .process-rail li:nth-child(4)::before { transition-delay: 370ms; }
    #connected.is-visible .process-rail li:nth-child(5)::before { transition-delay: 460ms; }
    #connected.is-visible .process-rail li:nth-child(6)::before { transition-delay: 550ms; }
  }
}

@media (prefers-reduced-motion: reduce) {
  #connected.is-visible .process-rail li,
  #connected.is-visible .process-rail-num,
  #connected.is-visible .flow-note {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---- Module / spec cards ---- */
.spec-card {
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.35rem 1.45rem;
  box-shadow: none;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.spec-card .spec-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.spec-card .callout {
  opacity: 1;
  max-height: none;
  overflow: visible;
}

.spec-card:hover,
.spec-card:focus-within {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
  box-shadow: var(--shadow-md);
}

/* ---- Homepage modules (#modules) ---- */
#modules {
  background:
    radial-gradient(720px 280px at 100% 0%, rgb(2 86 154 / 0.08), transparent 70%),
    var(--color-surface-muted);
}

html[dir="ltr"] #modules {
  background:
    radial-gradient(720px 280px at 0% 0%, rgb(2 86 154 / 0.08), transparent 70%),
    var(--color-surface-muted);
}

.home-module-grid {
  align-items: stretch;
}

.home-module-grid .spec-card {
  isolation: isolate;
  cursor: pointer;
  padding: 1.45rem 1.45rem 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background:
    radial-gradient(120% 70% at 100% 0%, rgb(2 86 154 / 0.06), transparent 58%),
    var(--color-surface);
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    background-color var(--ease);
}

html[dir="ltr"] .home-module-grid .spec-card {
  background:
    radial-gradient(120% 70% at 0% 0%, rgb(2 86 154 / 0.06), transparent 58%),
    var(--color-surface);
}

.home-module-grid .spec-card::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 3px;
  height: auto;
  background: color-mix(in srgb, var(--color-primary) 42%, transparent);
  opacity: 1;
  transform: scaleY(0.32);
  transform-origin: top;
  pointer-events: none;
  transition: transform var(--ease), background-color var(--ease);
}

.home-module-grid .spec-card:hover,
.home-module-grid .spec-card:focus-within {
  transform: none;
  border-color: color-mix(in srgb, var(--color-primary) 36%, var(--color-border));
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.home-module-grid .spec-card:hover::after,
.home-module-grid .spec-card:focus-within::after {
  transform: scaleY(1);
  background: var(--color-primary);
}

.home-module-grid .spec-card::before {
  top: 1.55rem;
  inset-inline-end: 1.45rem;
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-full);
  opacity: 1;
  line-height: 1.2;
  transition: background var(--ease), color var(--ease);
}

.home-module-grid .spec-card:hover::before,
.home-module-grid .spec-card:focus-within::before {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.home-module-grid .spec-card .spec-icon {
  width: 3.15rem;
  height: 3.15rem;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border: 1px solid color-mix(in srgb, var(--color-primary) 16%, transparent);
  margin-bottom: 1.2rem;
  transition: background var(--ease), color var(--ease), border-color var(--ease), scale var(--ease);
}

.home-module-grid .spec-card .spec-icon::before {
  width: 1.4rem;
  height: 1.4rem;
}

.home-module-grid .spec-card:hover .spec-icon,
.home-module-grid .spec-card:focus-within .spec-icon {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}

.home-module-grid .spec-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.home-module-grid .spec-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.home-module-grid .spec-card .btn {
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-content: space-between;
  gap: 0.65rem;
  position: static;
  isolation: auto;
  width: auto;
  margin: 1.2rem -1.45rem 0;
  padding: 0.95rem 1.45rem 1.05rem;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  font-size: var(--fs-sm);
  transition: color var(--ease), border-color var(--ease);
}

.home-module-grid .spec-card:hover .btn,
.home-module-grid .spec-card:focus-within .btn {
  color: var(--color-primary-deep);
  border-top-color: color-mix(in srgb, var(--color-primary) 22%, var(--color-border));
}

.home-module-grid .spec-card .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-module-grid .spec-card .btn::after {
  content: "";
  flex: 0 0 0.7rem;
  width: 0.7rem;
  height: 0.7rem;
  border: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: none;
  margin-inline-start: 0;
  transition: translate var(--ease);
}

html[dir="rtl"] .home-module-grid .spec-card .btn::after {
  transform: scaleX(-1);
}

.home-module-grid .spec-card .btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.home-module-grid .spec-card:focus-within {
  box-shadow: var(--shadow-md), var(--focus);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-module-grid .spec-card:hover,
  .home-module-grid .spec-card:focus-within {
    translate: 0 -4px;
  }

  .home-module-grid .spec-card:hover .spec-icon,
  .home-module-grid .spec-card:focus-within .spec-icon {
    scale: 1.06;
  }

  .home-module-grid .spec-card:hover .btn::after,
  .home-module-grid .spec-card:focus-within .btn::after {
    translate: 4px 0;
  }

  html[dir="rtl"] .home-module-grid .spec-card:hover .btn::after,
  html[dir="rtl"] .home-module-grid .spec-card:focus-within .btn::after {
    translate: -4px 0;
  }

  .home-module-grid .spec-card::after {
    transform: scaleY(0);
  }

  [data-reveal].is-visible .home-module-grid > .spec-card:nth-child(1)::after { transform: scaleY(0.32); transition-delay: 160ms; }
  [data-reveal].is-visible .home-module-grid > .spec-card:nth-child(2)::after { transform: scaleY(0.32); transition-delay: 220ms; }
  [data-reveal].is-visible .home-module-grid > .spec-card:nth-child(3)::after { transform: scaleY(0.32); transition-delay: 280ms; }
  [data-reveal].is-visible .home-module-grid > .spec-card:nth-child(4)::after { transform: scaleY(0.32); transition-delay: 340ms; }
  [data-reveal].is-visible .home-module-grid > .spec-card:nth-child(5)::after { transform: scaleY(0.32); transition-delay: 400ms; }
  [data-reveal].is-visible .home-module-grid > .spec-card:nth-child(6)::after { transform: scaleY(0.32); transition-delay: 460ms; }

  [data-reveal].is-visible .home-module-grid > .spec-card:hover::after,
  [data-reveal].is-visible .home-module-grid > .spec-card:focus-within::after {
    transform: scaleY(1);
    transition-delay: 0ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-module-grid .spec-card,
  .home-module-grid .spec-card .spec-icon,
  .home-module-grid .spec-card .btn,
  .home-module-grid .spec-card .btn::after,
  .home-module-grid .spec-card::after,
  .home-module-grid .spec-card::before {
    transition: none;
  }

  .home-module-grid .spec-card:hover,
  .home-module-grid .spec-card:focus-within {
    translate: 0;
  }

  .home-module-grid .spec-card .btn::after,
  .home-module-grid .spec-card:hover .btn::after,
  .home-module-grid .spec-card:focus-within .btn::after {
    translate: 0;
  }
}

/* ---- Compare / before-after ---- */
.compare-card {
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.compare-card.is-after {
  background: var(--status-posted-bg);
}

/* ---- FAQ ---- */
.faq-list {
  border-radius: var(--radius-lg);
}

.faq summary {
  font-size: 1.05rem;
  min-height: 3.4rem;
}

.faq summary::after {
  width: 0.55rem;
  height: 0.55rem;
  border-inline-end-width: 2px;
  border-bottom-width: 2px;
}

.faq[open] summary {
  color: var(--color-primary);
}

/* ---- Homepage testimonials (#voices) ---- */
#voices {
  --q-quote: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.2 7.2C6.6 8.5 5 10.8 5 14.1c0 2.2 1.5 3.9 3.6 3.9 1.9 0 3.3-1.5 3.3-3.4 0-1.9-1.3-3.3-3.1-3.3-.3 0-.7 0-1 .1.4-1.6 1.6-2.8 3.5-3.7L9.2 7.2zm9.1 0c-2.6 1.3-4.2 3.6-4.2 6.9 0 2.2 1.5 3.9 3.6 3.9 1.9 0 3.3-1.5 3.3-3.4 0-1.9-1.3-3.3-3.1-3.3-.3 0-.7 0-1 .1.4-1.6 1.6-2.8 3.5-3.7l-2.1-.5z'/%3E%3C/svg%3E");
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.75rem, 7vw, 6.25rem);
  background: var(--color-surface-muted);
}

#voices::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 240px at 10% 16%, rgb(2 86 154 / 0.1), transparent 64%),
    radial-gradient(500px 220px at 92% 86%, rgb(2 86 154 / 0.06), transparent 60%);
}

#voices > .container {
  position: relative;
  z-index: 1;
}

#voices .annot-head.center {
  max-width: 36rem;
  margin-bottom: var(--space-7);
}

#voices .annot-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 0.65rem;
}

#voices .annot-head h2::after {
  display: none;
}

#voices .annot-head p {
  max-width: 32rem;
  margin-inline: auto;
  color: var(--color-muted);
  font-size: var(--fs-body);
  line-height: 1.65;
}

.voices-carousel {
  --voices-autoplay: 5.6s;
  max-width: 60rem;
  margin-inline: auto;
}

.voices-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0;
}

.voices-viewport {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

html[dir="rtl"] .voices-nav svg {
  transform: scaleX(-1);
}

.voices-viewport::-webkit-scrollbar {
  display: none;
}

.voices-track {
  display: flex;
  width: max-content;
}

#voices .q-card {
  display: block;
  flex: 0 0 var(--voices-slide-w, 100%);
  width: var(--voices-slide-w, 100%);
  min-width: var(--voices-slide-w, 100%);
  position: relative;
  isolation: isolate;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(3.25rem, 6vw, 4.5rem);
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--color-primary) 8%, var(--color-border));
  background: var(--color-surface);
  box-shadow:
    0 1px 2px rgb(1 48 86 / 0.04),
    0 8px 32px rgb(2 86 154 / 0.07);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  opacity: 0.35;
  transition: opacity var(--ease-out);
  cursor: pointer;
}

#voices [data-voices].is-jumping .q-card {
  scroll-snap-stop: normal;
}

#voices .q-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset-inline-start: clamp(1.5rem, 4vw, 3rem);
  inset-block-start: clamp(0.75rem, 2vw, 1.25rem);
  width: clamp(5rem, 12vw, 8rem);
  height: clamp(5rem, 12vw, 8rem);
  pointer-events: none;
  background: var(--color-primary);
  opacity: 0.05;
  -webkit-mask: var(--q-quote) center / contain no-repeat;
          mask: var(--q-quote) center / contain no-repeat;
}

#voices .q-mark {
  position: absolute;
  z-index: 1;
  inset-block-start: clamp(1.5rem, 3vw, 2rem);
  inset-inline-start: clamp(1.5rem, 3vw, 2rem);
  display: block;
  width: 2rem;
  height: 2rem;
  margin: 0;
  background: color-mix(in srgb, var(--color-primary) 55%, transparent);
  -webkit-mask: var(--q-quote) center / contain no-repeat;
          mask: var(--q-quote) center / contain no-repeat;
}

#voices .q-card.is-active {
  opacity: 1;
  cursor: default;
}

#voices .q-card.is-active::before {
  opacity: 0.07;
}

#voices .q-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  min-height: clamp(8rem, 18vw, 11rem);
}

#voices .q-card-inner > p {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding-block-start: 1.75rem;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.85;
  color: var(--color-text-primary);
  text-align: start;
}

#voices .q-card-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  flex: 0 0 auto;
  width: min(100%, 12.5rem);
  padding: 0;
  text-align: center;
}

#voices .q-logo {
  --logo-bed: color-mix(in srgb, var(--color-brand-dark) 10%, var(--color-surface-muted));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  padding: 0.4rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--color-brand-dark) 11%, var(--color-border));
  background: var(--logo-bed);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.72),
    inset 0 0 0 1px rgb(255 255 255 / 0.28),
    0 1px 3px rgb(1 48 86 / 0.07);
  overflow: hidden;
  flex-shrink: 0;
}

#voices .q-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 0.35px rgb(12 34 56 / 0.28));
}

#voices .q-logo.is-placeholder {
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem;
}

#voices .q-logo.is-placeholder::before {
  content: "";
  position: static;
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  opacity: 0.72;
  background: var(--color-primary);
  -webkit-mask: url("../assets/testimonials/placeholder.svg") center / contain no-repeat;
          mask: url("../assets/testimonials/placeholder.svg") center / contain no-repeat;
}

#voices .q-logo.is-placeholder::after {
  content: attr(data-initials);
  position: static;
  font-size: 0.625rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  color: var(--color-primary);
  line-height: 1;
}

#voices .q-who {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  margin-top: 0.1rem;
  line-height: 1.45;
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}

#voices .q-meta {
  color: var(--color-muted);
  font-weight: var(--fw-medium);
  font-size: var(--fs-caption);
}

.voices-nav {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: var(--radius-full);
  border: 0;
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: 0 6px 16px rgb(2 86 154 / 0.28);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
}

.voices-nav[data-voices-prev] {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  margin-inline-start: -1.35rem;
}

.voices-nav[data-voices-next] {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  margin-inline-end: -1.35rem;
}

.voices-nav svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: translate var(--ease);
}

.voices-nav:hover,
.voices-nav:focus-visible {
  background: var(--color-primary-hover);
  box-shadow: 0 8px 20px rgb(2 86 154 / 0.34);
}

.voices-nav:active {
  transform: scale(0.94);
}

.voices-nav[data-voices-next]:hover svg,
.voices-nav[data-voices-next]:focus-visible svg {
  translate: 2px 0;
}

.voices-nav[data-voices-prev]:hover svg,
.voices-nav[data-voices-prev]:focus-visible svg {
  translate: -2px 0;
}

html[dir="rtl"] .voices-nav[data-voices-next]:hover svg,
html[dir="rtl"] .voices-nav[data-voices-next]:focus-visible svg {
  translate: -2px 0;
}

html[dir="rtl"] .voices-nav[data-voices-prev]:hover svg,
html[dir="rtl"] .voices-nav[data-voices-prev]:focus-visible svg {
  translate: 2px 0;
}

.voices-nav:focus-visible,
.voices-dot:focus-visible {
  outline: none;
  box-shadow: 0 6px 16px rgb(2 86 154 / 0.22), var(--focus);
}

.voices-dot:focus-visible {
  box-shadow: var(--focus);
}

.voices-dots {
  display: none;
}

.voices-dot {
  position: relative;
  overflow: hidden;
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--color-primary) 18%, var(--color-border));
  cursor: pointer;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto;
  transition: background var(--ease), transform var(--ease);
}

.voices-dot:hover {
  background: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
}

.voices-dot.is-active {
  background: var(--color-primary);
  transform: scale(1.15);
}

.voices-dot.is-playing::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: color-mix(in srgb, var(--color-on-primary) 35%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  animation: voices-progress var(--voices-autoplay, 5.6s) linear forwards;
}

html[dir="rtl"] .voices-dot.is-playing::after {
  transform-origin: right center;
}

[data-voices].is-paused .voices-dot.is-playing::after {
  animation-play-state: paused;
}

@keyframes voices-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #voices .q-card:hover,
  #voices .q-card:focus-within {
    opacity: 0.65;
  }

  #voices .q-card.is-active:hover,
  #voices .q-card.is-active:focus-within {
    opacity: 1;
  }
}

@media (max-width: 719px) {
  .voices-nav {
    width: 2.5rem;
    height: 2.5rem;
  }

  .voices-nav[data-voices-prev] {
    margin-inline-start: -0.85rem;
  }

  .voices-nav[data-voices-next] {
    margin-inline-end: -0.85rem;
  }

  #voices .q-card {
    padding: 1.35rem 1.25rem;
  }

  #voices .q-card-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    min-height: 0;
  }

  #voices .q-card-inner > p {
    padding-block-start: 1.25rem;
    font-size: 1rem;
    line-height: 1.8;
  }

  #voices .q-card-author {
    width: 100%;
    flex-direction: row;
    align-items: center;
    text-align: start;
    gap: 1rem;
  }

  #voices .q-logo {
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
    padding: 0.32rem;
  }

  #voices .q-logo.is-placeholder {
    padding: 0.45rem;
  }

  #voices .q-logo.is-placeholder::before {
    width: 1.85rem;
    height: 1.85rem;
  }

  #voices .q-who {
    align-items: flex-start;
    text-align: start;
    margin-top: 0;
    gap: 0.3rem;
  }

  #voices .q-mark {
    width: 1.65rem;
    height: 1.65rem;
  }

  #voices .q-card::before {
    width: 4.5rem;
    height: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #voices .q-card,
  #voices .q-card.is-active,
  #voices .q-card:hover,
  #voices .q-card:focus-within {
    transition: none;
  }

  #voices .q-mark,
  #voices .q-logo,
  .voices-nav,
  .voices-nav svg,
  .voices-dot {
    transition: none;
  }

  .voices-dot.is-active {
    background: var(--color-primary);
  }

  .voices-dot.is-playing::after {
    animation: none;
    transform: scaleX(1);
  }
}

/* ---- Interactive widgets ---- */
.micro-demo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.35rem 1.35rem 1.25rem;
}

.micro-demo::before {
  opacity: 0.22;
}

.micro-demo-title {
  font-family: var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
}

.micro-demo-title::after {
  content: "جرّب";
  margin-inline-start: auto;
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border-radius: var(--radius-full);
  padding: 0.18rem 0.55rem;
  letter-spacing: 0;
  text-transform: none;
}

html[lang="en"] .micro-demo-title::after {
  content: "Try it";
}

.md-card {
  border-radius: var(--radius-md);
  cursor: default;
}

.md-actions .btn {
  cursor: pointer;
}

.bp-workflow {
  border-radius: var(--radius-lg);
}

.bp-workflow::before {
  opacity: 0.28;
}

.bp-node {
  border-radius: var(--radius-md);
  cursor: pointer;
}

.bp-node.is-crown {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.bp-node.is-crown.is-on,
.bp-node.is-crown:hover,
.bp-node.is-crown:focus-visible {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}

.bp-caption::before {
  content: "جرّب · ";
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
}

html[lang="en"] .bp-caption::before {
  content: "Try it · ";
}

.palette {
  border-radius: var(--radius-lg);
}

.palette-chip {
  cursor: pointer;
}

.palette-chip.is-on {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}

/* ---- Homepage ask palette (index only) ---- */
.page-index #ask .palette {
  padding: 1.15rem 1.15rem 1.4rem;
}

.page-index #ask .palette-bar {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.9rem 1.1rem;
}

.page-index #ask .palette-bar .k {
  font-family: var(--font-mono);
}

.page-index #ask .palette-chips {
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.page-index #ask .palette-chip {
  font-size: 0.92rem;
  padding: 0.55rem 1rem;
}

.page-index #ask .palette-answer {
  text-align: center;
  margin-top: 1.15rem;
  padding: 1.25rem 1.2rem 1.35rem;
  border: 1px solid var(--color-border);
  min-height: 8rem;
}

.page-index #ask .palette-answer .a-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--color-primary);
  margin-bottom: 0.55rem;
}

.page-index #ask .palette-answer .a-text {
  font-size: 1.2rem;
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
  max-width: 28rem;
  margin: 0 auto 1.1rem;
  color: var(--color-text);
}

html[lang="ar"] .page-index #ask .palette-answer .a-text {
  line-height: 1.45;
}

.page-index #ask .palette-answer .a-tile {
  gap: 0.65rem;
}

.page-index #ask .palette-answer .a-tile > div {
  padding: 0.75rem 0.8rem 0.85rem;
  text-align: center;
}

.page-index #ask .palette-answer .a-tile > div b {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-muted);
  margin-bottom: 0.3rem;
}

.page-index #ask .palette-answer .a-val {
  display: block;
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 1.3;
}

/* ---- Footer contact channels ---- */
.footer-contact .fc {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.footer-contact .fc::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  margin-top: 0.35rem;
  background: currentColor;
  opacity: 0.7;
  -webkit-mask: center / contain no-repeat;
          mask: center / contain no-repeat;
}

.footer-contact .fc-phone::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5h4.2l1 4.2-2.2 1.3a12 12 0 0 0 5 5l1.3-2.2 4.2 1V19a1.5 1.5 0 0 1-1.5 1.5A16.5 16.5 0 0 1 5.5 7 1.5 1.5 0 0 1 7 3.5z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5h4.2l1 4.2-2.2 1.3a12 12 0 0 0 5 5l1.3-2.2 4.2 1V19a1.5 1.5 0 0 1-1.5 1.5A16.5 16.5 0 0 1 5.5 7 1.5 1.5 0 0 1 7 3.5z'/%3E%3C/svg%3E");
}

.footer-contact .fc-mail::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='6' width='17' height='12' rx='1.5'/%3E%3Cpath d='M4 7.5 12 13l8-5.5'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='6' width='17' height='12' rx='1.5'/%3E%3Cpath d='M4 7.5 12 13l8-5.5'/%3E%3C/svg%3E");
}

.footer-contact .fc-wa::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19.5 6.2 16A8.5 8.5 0 1 1 8 18.2z'/%3E%3Cpath d='M9.2 9.8c.2 1.6 1.5 3 3 3.4'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19.5 6.2 16A8.5 8.5 0 1 1 8 18.2z'/%3E%3Cpath d='M9.2 9.8c.2 1.6 1.5 3 3 3.4'/%3E%3C/svg%3E");
}

.footer-contact .fc-addr::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-5.4 7-11a7 7 0 1 0-14 0c0 5.6 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.2'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-5.4 7-11a7 7 0 1 0-14 0c0 5.6 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.2'/%3E%3C/svg%3E");
}

.site-footer .footer-grid a:focus-visible {
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.28);
}

/* ---- Forms ---- */
.cta-panel {
  border-radius: var(--radius-lg);
}

.field input,
.field textarea,
.field select {
  border-radius: var(--radius-md);
}

/* ---- Motion discipline ---- */
@media (prefers-reduced-motion: reduce) {
  .spec-card:hover,
  .compare-card:hover,
  .bp-node:hover,
  .features-block ul.list li {
    transition: none;
  }
}

/* ---- Features catalog ---- */
.page-features .bp-hero {
  padding-bottom: clamp(2.4rem, 5vw, 4rem);
}

/* ---- Features hero — task movement screenshot ---- */
.page-features .bp-hero-grid {
  align-items: center;
}

@media (min-width: 960px) {
  .page-features .bp-hero-grid {
    grid-template-columns: 0.92fr 1.08fr;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.page-features .bp-hero-visual.bp-hero-shot {
  aspect-ratio: auto;
  max-width: none;
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  position: relative;
  isolation: isolate;
  padding: 0.35rem;
}

.page-features .bp-hero-shot::before {
  content: "";
  position: absolute;
  inset: -0.55rem -0.35rem -0.85rem;
  z-index: -1;
  border-radius: calc(var(--radius-xl) + 6px);
  background:
    radial-gradient(360px 160px at 88% 12%, rgb(2 86 154 / 0.1), transparent 68%),
    radial-gradient(280px 140px at 8% 92%, rgb(43 166 184 / 0.08), transparent 62%),
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px, 22px 22px;
  opacity: 0.85;
  pointer-events: none;
}

.page-features .bp-hero-shot .proof-shot.dash-frame {
  width: 100%;
  max-width: none;
  margin: 0;
}

.page-features .bp-hero-shot .browser {
  width: 100%;
  margin: 0;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--color-primary) 14%, var(--color-border));
  box-shadow:
    var(--shadow-product),
    0 18px 48px rgb(2 86 154 / 0.1);
  overflow: hidden;
  background: var(--color-surface);
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
}

.page-features .bp-hero-shot .browser:hover,
.page-features .bp-hero-shot .browser:focus-within {
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
  box-shadow:
    var(--shadow-product),
    0 22px 56px rgb(2 86 154 / 0.14);
  transform: translateY(-2px);
}

.page-features .bp-hero-shot .browser-bar {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-primary) 6%, var(--color-surface)) 0%,
    var(--color-surface) 100%
  );
  border-bottom: 1px solid var(--color-border);
}

.page-features .bp-hero-shot .browser-url {
  color: color-mix(in srgb, var(--color-text) 55%, var(--color-muted));
  font-size: 0.72rem;
}

.page-features .bp-hero-shot .browser-body {
  height: auto;
  aspect-ratio: 647 / 513;
  overflow: hidden;
  position: relative;
  background: var(--color-browser-chrome);
}

.page-features .bp-hero-shot .preview-wrap .browser-body {
  height: auto;
}

.page-features .bp-hero-shot picture {
  display: block;
  width: 100%;
  height: 100%;
}

.page-features .bp-hero-shot .shot-full {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: none;
  transform: none;
  will-change: auto;
}

.page-features .bp-hero-shot .preview-wrap:hover .shot-full,
.page-features .bp-hero-shot .preview-wrap:focus-within .shot-full {
  transform: none;
}

.page-features .bp-hero-shot .scroll-hint {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-features .bp-hero-shot .browser {
    transition: border-color var(--ease), box-shadow var(--ease);
  }

  .page-features .bp-hero-shot .browser:hover,
  .page-features .bp-hero-shot .browser:focus-within {
    transform: none;
  }
}

.features-catalog {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--color-bg);
}

.features-stack {
  display: grid;
  gap: 1.5rem;
}

.features-group {
  display: grid;
  gap: 1rem;
}

.features-block {
  padding: 1.5rem 1.4rem 1.55rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.features-head {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.features-head > .spec-icon {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  border: 1px solid transparent;
}

.features-head-copy {
  min-width: 0;
}

.features-block h2 {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: var(--lh-heading);
}

.features-head .spec-label {
  margin-bottom: 0.35rem;
}

.features-head .spec-label + h2 {
  font-size: clamp(1.35rem, 1.2vw + 1.1rem, 1.65rem);
}

.features-block h3 {
  margin: 0.4rem 0 0;
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--color-muted);
  line-height: 1.5;
}

.features-block p {
  margin: 0 0 0.85rem;
  color: var(--color-muted);
}

.features-block .features-copy p:last-child {
  margin-bottom: 0;
}

.features-block ul.list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin: 1rem 0 1.2rem;
  padding: 0;
  list-style: none;
}

.features-block ul.list li {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--fs-sm);
  line-height: 1.45;
  transition: border-color var(--ease), background-color var(--ease);
}

.features-block ul.list li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.4rem;
  border-radius: 1px;
  background: var(--color-primary);
  opacity: 0.7;
}

.features-block ul.list li:hover {
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
  background: var(--color-surface);
}

@media (min-width: 720px) {
  .features-block ul.list {
    grid-template-columns: 1fr 1fr;
  }

  .features-block ul.list li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.features-block .features-close {
  font-weight: var(--fw-bold);
  color: var(--color-text);
  padding-inline-start: 0.85rem;
  border-inline-start: 2px solid var(--color-primary);
}

.features-more {
  margin: 1.15rem 0 0;
}

.features-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--color-primary);
  text-decoration: none;
}

.features-more a::after {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

html[dir="rtl"] .features-more a::after {
  transform: scaleX(-1);
}

.features-more a:hover,
.features-more a:focus-visible {
  color: var(--color-primary-hover);
}

.features-block .zatca-mark {
  margin: 1.1rem 0 0.35rem;
}

.zatca-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 1.1rem 0 0.15rem;
  padding: 0.65rem 0.9rem;
  width: fit-content;
  max-width: 100%;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.zatca-inline-mark {
  margin: 0;
}

.zatca-inline-mark img {
  display: block;
  width: min(100%, 12.75rem);
  height: auto;
}

/* zatca-logo-light.png is for light surfaces; swap to white wordmark on dark theme */
html[data-theme="dark"] .zatca-inline-mark img {
  content: url("../assets/zatca-logo.png");
}

.zatca-inline .status {
  flex: 0 0 auto;
}

/* Contained ZATCA compliance panel — do not restyle .zatca-mark globally */
.zatca-panel {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem 1.5rem;
  max-width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 800px) {
  .zatca-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.75rem;
  }
}

.zatca-panel-copy .spec-label {
  margin-bottom: 0.45rem;
}

.zatca-panel-copy h2 {
  margin: 0 0 0.65rem;
}

.zatca-panel-copy p {
  margin: 0;
  color: var(--color-muted);
}

.zatca-panel-mark {
  margin: 0;
  padding: 0.45rem 0.55rem;
  width: 100%;
  max-width: 20rem;
  background: #0a0a0a;
  border-radius: var(--radius-md);
  overflow: hidden;
  justify-self: start;
}

html[dir="ltr"] .zatca-panel-mark {
  justify-self: end;
}

.zatca-panel-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.zatca-panel--nested {
  margin: 1.1rem 0 0.35rem;
  padding: 1rem 1.15rem;
  width: fit-content;
  max-width: 100%;
  grid-template-columns: 1fr;
  justify-items: start;
}

.zatca-panel--nested .zatca-panel-mark {
  max-width: 18rem;
  justify-self: start;
}

.features-block .zatca-panel {
  margin: 1.1rem 0 0.35rem;
}

/* Homepage ZATCA spotlight — contained navy stage, not a second CTA band */
.zatca-spotlight {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: var(--space-6);
  align-items: center;
  overflow: hidden;
  padding: clamp(1.6rem, 3.2vw, 2.6rem) clamp(1.35rem, 3vw, 2.4rem);
  background:
    radial-gradient(640px 240px at 100% 0%, rgb(43 166 184 / 0.18), transparent 58%),
    linear-gradient(180deg, var(--primary-800) 0%, var(--primary-900) 100%);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.zatca-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -45deg,
    rgb(255 255 255 / 0.03) 0 1px,
    transparent 1px 12px
  );
}

.zatca-spotlight-copy,
.zatca-spotlight-visual {
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .zatca-spotlight {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 22.5rem);
    gap: var(--space-7);
  }
}

.zatca-spotlight .spec-label {
  margin-bottom: 0.55rem;
  color: var(--accent-400);
}

.zatca-spotlight h2 {
  margin: 0 0 0.75rem;
  color: var(--color-on-primary);
  font-size: clamp(1.45rem, 1.6vw + 1rem, 2rem);
}

html[lang="ar"] .zatca-spotlight h2 {
  line-height: 1.38;
}

.zatca-spotlight-copy > p {
  margin: 0;
  max-width: 38rem;
  color: rgb(255 255 255 / 0.78);
}

.zatca-spotlight-phases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
}

.zatca-spotlight-phases li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius-md);
}

.zatca-spotlight-phases .spec-icon {
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  width: 2rem;
  height: 2rem;
  background: rgb(75 184 198 / 0.16);
  border-radius: var(--radius-full);
  color: var(--accent-400);
}

.zatca-phase-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  color: rgb(255 255 255 / 0.55);
}

.zatca-phase-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-on-primary);
}

.zatca-spotlight .hero-actions {
  margin-top: 1.5rem;
}

.zatca-spotlight .btn-hardhat,
.zatca-spotlight .btn-primary {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.zatca-spotlight .btn-hardhat:hover,
.zatca-spotlight .btn-hardhat:focus-visible,
.zatca-spotlight .btn-primary:hover,
.zatca-spotlight .btn-primary:focus-visible {
  background: var(--color-primary-soft);
  color: var(--color-primary-deep);
  border-color: var(--color-primary-soft);
}

.zatca-spotlight .btn-blueprint,
.zatca-spotlight .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.42);
}

.zatca-spotlight .btn-blueprint:hover,
.zatca-spotlight .btn-blueprint:focus-visible,
.zatca-spotlight .btn-ghost:hover,
.zatca-spotlight .btn-ghost:focus-visible {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  border-color: rgb(255 255 255 / 0.7);
}

.zatca-spotlight-visual {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.zatca-spotlight-mark {
  margin: 0;
  padding: 0.55rem 0.7rem;
  background: #0a0a0a;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.zatca-spotlight-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.zatca-invoice {
  padding: 0.95rem 1rem 0.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-block-start: 3px solid var(--status-posted);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-product);
}

.zatca-invoice header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.zatca-invoice-kicker {
  display: block;
  margin-bottom: 0.15rem;
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  color: var(--color-muted);
}

.zatca-invoice header strong {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  color: var(--color-primary);
}

.zatca-invoice-body {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.zatca-qr {
  flex: 0 0 3.35rem;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: var(--radius-sm);
}

.zatca-invoice-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.zatca-invoice-meta span {
  font-size: var(--fs-caption);
  color: var(--color-muted);
}

.zatca-invoice-meta strong {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

.zatca-invoice footer {
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  color: var(--color-primary);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .zatca-invoice {
    transition: transform var(--ease);
  }

  .zatca-spotlight:hover .zatca-invoice {
    transform: translateY(-3px);
  }
}

@media (max-width: 599px) {
  .zatca-spotlight {
    padding: 1.35rem 1.1rem 1.45rem;
  }

  .zatca-spotlight-phases {
    grid-template-columns: 1fr;
  }
}

.features-block--pointer {
  display: grid;
  gap: 1rem;
  align-items: center;
  background: var(--color-primary-soft);
  border-color: color-mix(in srgb, var(--color-primary) 22%, var(--color-border));
}

.features-block--pointer p {
  margin-bottom: 0;
}

.features-block--pointer .features-more {
  margin: 0;
}

.features-block--split {
  display: grid;
  gap: 1.25rem;
}

.features-block--perm {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--color-primary) 7%, var(--color-surface)) 0%,
    var(--color-surface) 52%
  );
  border-color: color-mix(in srgb, var(--color-primary) 20%, var(--color-border));
}

.features-block--perm .features-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.features-block--perm .features-copy > p:last-of-type {
  margin-bottom: 0;
}

.features-block--perm .perm-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.features-block--perm .perm-roles span {
  padding: 0.38rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  background: var(--color-surface);
  border: 1px solid color-mix(in srgb, var(--color-primary) 24%, var(--color-border));
  color: var(--color-primary-deep);
  white-space: nowrap;
}

.features-block--perm .perm-roles span:first-child {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

.features-block--perm .features-visual {
  margin: 0;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.features-block--perm .features-visual .browser,
.features-block--perm .features-visual .preview-wrap {
  width: 100%;
  max-width: min(100%, 21rem);
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--color-primary) 16%, var(--color-border));
  box-shadow: 0 2px 8px rgb(2 86 154 / 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.features-block--perm .features-visual .browser-bar {
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--color-primary) 5%, var(--color-surface-muted));
}

.features-block--perm .features-visual .browser-body {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: var(--color-surface-muted);
  line-height: 0;
}

.features-block--perm .features-visual .browser .browser-body::after {
  display: none;
}

.features-block--perm .features-visual .browser-body picture {
  display: block;
  width: 100%;
  height: auto;
}

.features-block--perm .features-visual .shot-crop {
  display: block;
  width: 100%;
  height: auto;
  object-fit: unset;
  object-position: unset;
  transition: none;
}

.features-block--perm .features-visual .browser:hover .shot-crop,
.features-block--perm .features-visual .browser:focus-within .shot-crop {
  object-position: unset;
  transition: none;
}

.features-block--perm .proof-caption {
  margin: 0;
  text-align: center;
  color: var(--color-muted);
  font-size: var(--fs-xs);
  max-width: min(100%, 21rem);
}

@media (min-width: 800px) {
  .features-block--pointer {
    grid-template-columns: 1fr auto;
    padding-inline: 1.6rem;
  }

  .features-block--split {
    gap: clamp(1.75rem, 3vw, 2.5rem);
  }

  .features-block--perm.features-block--split {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
    align-items: center;
  }

  .features-block--perm .features-visual .browser,
  .features-block--perm .features-visual .preview-wrap,
  .features-block--perm .proof-caption {
    max-width: min(100%, 26rem);
  }
}


/* ---- Packages & pricing ---- */
.page-pricing .bp-hero {
  padding-bottom: clamp(2.6rem, 5vw, 4.25rem);
}

.page-pricing .bp-hero h1 {
  font-size: clamp(2.15rem, 3.2vw + 1rem, 3.35rem);
  color: var(--color-heading);
  max-width: 16ch;
  font-weight: var(--fw-bold);
}

html[lang="ar"] .page-pricing .bp-hero h1 {
  max-width: 18ch;
  line-height: 1.34;
}

.page-pricing .bp-hero .lede {
  font-size: 1.2rem;
  color: var(--color-text);
  font-weight: var(--fw-medium);
  max-width: 38rem;
}

.page-pricing .bp-hero-grid > div > p:not(.lede) {
  color: var(--color-text-secondary);
  max-width: 40rem;
}

.page-pricing .bp-hero .hero-actions {
  margin-top: var(--space-5);
}

.page-pricing .bp-hero .hero-actions .btn-cta-meet {
  min-inline-size: min(100%, 18rem);
  min-height: 3.15rem;
  padding-inline: 1.45rem 1.35rem;
  gap: 0.7rem;
  overflow: hidden;
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
  box-shadow: 0 8px 22px rgb(2 86 154 / 0.22);
  animation: pricing-cta-breathe 2.6s ease-in-out infinite;
}

.page-pricing .bp-hero .hero-actions .btn-cta-meet::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 36%,
    rgb(255 255 255 / 0.28) 50%,
    transparent 64%
  );
  transform: translateX(-130%);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page-pricing .bp-hero .hero-actions .btn-cta-meet::after {
  content: "";
  position: relative;
  z-index: 1;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: translate var(--ease);
}

html[dir="rtl"] .page-pricing .bp-hero .hero-actions .btn-cta-meet::before {
  transform: translateX(130%);
}

html[dir="rtl"] .page-pricing .bp-hero .hero-actions .btn-cta-meet::after {
  transform: scaleX(-1);
}

.page-pricing .bp-hero .hero-actions .btn-cta-meet:hover,
.page-pricing .bp-hero .hero-actions .btn-cta-meet:focus-visible {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-on-primary);
  box-shadow: 0 12px 28px rgb(2 86 154 / 0.3);
  animation: none;
}

.page-pricing .bp-hero .hero-actions .btn-cta-meet:hover::before,
.page-pricing .bp-hero .hero-actions .btn-cta-meet:focus-visible::before {
  transform: translateX(130%);
}

html[dir="rtl"] .page-pricing .bp-hero .hero-actions .btn-cta-meet:hover::before,
html[dir="rtl"] .page-pricing .bp-hero .hero-actions .btn-cta-meet:focus-visible::before {
  transform: translateX(-130%);
}

.page-pricing .bp-hero .hero-actions .btn-cta-meet:hover::after,
.page-pricing .bp-hero .hero-actions .btn-cta-meet:focus-visible::after {
  translate: 5px 0;
}

html[dir="rtl"] .page-pricing .bp-hero .hero-actions .btn-cta-meet:hover::after,
html[dir="rtl"] .page-pricing .bp-hero .hero-actions .btn-cta-meet:focus-visible::after {
  translate: -5px 0;
}

@keyframes pricing-cta-breathe {
  0%,
  100% {
    box-shadow: 0 8px 22px rgb(2 86 154 / 0.2);
  }
  50% {
    box-shadow: 0 12px 30px rgb(2 86 154 / 0.34);
  }
}

.page-pricing #plans {
  background:
    radial-gradient(780px 240px at 50% 0%, rgb(2 86 154 / 0.07), transparent 68%),
    var(--color-bg);
}

.page-pricing #plans .annot-head.center {
  max-width: 40rem;
  margin-inline: auto;
}

.page-pricing #plans .annot-head h2 {
  color: var(--color-heading);
}

.pricing-grid {
  display: grid;
  gap: var(--space-5);
  align-items: stretch;
  padding-top: 1.35rem;
}

@media (min-width: 720px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1120px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.55rem 1.35rem 1.2rem;
  height: 100%;
  position: relative;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.plan-card:hover,
.plan-card:focus-within {
  border-color: color-mix(in srgb, var(--color-primary) 36%, var(--color-border));
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.plan-card.is-featured {
  background:
    linear-gradient(180deg, var(--color-primary-soft) 0%, var(--color-surface) 7.5rem);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--color-primary);
  padding-top: 1.85rem;
  z-index: 1;
  transform: translateY(-6px);
}

.plan-card.is-featured::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-700), var(--color-primary));
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
}

.plan-card.is-featured:hover,
.plan-card.is-featured:focus-within {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-product), 0 0 0 1px var(--color-primary);
  transform: translateY(-8px);
}

.plan-card--inverse {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.08) 0%, transparent 28%),
    linear-gradient(180deg, var(--color-primary) 0%, var(--color-navy) 100%);
  border-color: transparent;
  color: var(--color-on-primary);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgb(255 255 255 / 0.16);
}

.plan-card--inverse:hover,
.plan-card--inverse:focus-within {
  border-color: color-mix(in srgb, var(--color-primary) 40%, white);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgb(255 255 255 / 0.22);
}

.plan-badge {
  margin: 0;
  position: absolute;
  top: 0;
  inset-inline-start: 1.15rem;
  transform: translateY(-50%);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0;
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-full);
  line-height: 1.4;
  box-shadow: 0 6px 16px rgb(2 86 154 / 0.28);
  z-index: 2;
}

.plan-audience {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
}

.plan-card.is-featured .plan-audience {
  color: var(--color-primary);
}

.plan-card--inverse .plan-audience {
  color: rgb(255 255 255 / 0.72);
}

.plan-name {
  margin: 0;
  font-size: 1.45rem;
  font-weight: var(--fw-bold);
  color: var(--color-heading);
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
}

html[lang="ar"] .plan-name {
  letter-spacing: 0;
}

.plan-card--inverse .plan-name {
  color: var(--color-on-primary);
}

.plan-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding-block: 0.5rem 0.95rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.4rem;
}

.plan-card--inverse .plan-price {
  border-bottom-color: rgb(255 255 255 / 0.18);
}

.plan-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 0.4rem;
  row-gap: 0.15rem;
  max-width: 100%;
  padding: 0.55rem 1.05rem 0.58rem;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: 0 6px 16px rgb(2 86 154 / 0.18);
}

.plan-card--inverse .plan-pill {
  background: var(--color-surface);
  color: var(--color-heading);
  box-shadow: 0 6px 16px rgb(1 48 86 / 0.16);
}

.plan-amount {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 1.45rem;
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: inherit;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

html[lang="ar"] .plan-amount {
  letter-spacing: 0;
}

.plan-price:not(.plan-price--contact) .plan-amount::before,
.sar-amount::before {
  content: "";
  width: 0.82em;
  height: 0.92em;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("../assets/saudi-riyal.svg") center / contain no-repeat;
          mask: url("../assets/saudi-riyal.svg") center / contain no-repeat;
}

.sar-amount {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.plan-unit {
  color: inherit;
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  opacity: 0.88;
}

.plan-billing {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--fs-caption);
}

.plan-card--inverse .plan-billing {
  color: rgb(255 255 255 / 0.7);
}

.plan-price--contact .plan-amount {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.62rem;
  flex: 1;
}

.plan-features li {
  position: relative;
  padding-inline-start: 1.8rem;
  color: var(--color-text);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.plan-card--inverse .plan-features li {
  color: rgb(255 255 255 / 0.92);
}

.plan-features li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.12em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2302569A' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 5 5L20 7'/%3E%3C/svg%3E") center / 0.68rem no-repeat,
    var(--color-primary-soft);
  opacity: 1;
}

.plan-card--inverse .plan-features li::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 5 5L20 7'/%3E%3C/svg%3E") center / 0.68rem no-repeat,
    rgb(255 255 255 / 0.16);
}

.plan-card .btn {
  width: 100%;
  margin-top: 0.95rem;
  justify-content: center;
  text-align: center;
  min-height: 2.9rem;
  gap: 0.55rem;
}

.plan-card .btn::after {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: translate var(--ease);
}

html[dir="rtl"] .plan-card .btn::after {
  transform: scaleX(-1);
}

.plan-card .btn:hover::after,
.plan-card .btn:focus-visible::after {
  translate: 4px 0;
}

html[dir="rtl"] .plan-card .btn:hover::after,
html[dir="rtl"] .plan-card .btn:focus-visible::after {
  translate: -4px 0;
}

.plan-card--inverse .btn-blueprint {
  background: transparent;
  color: var(--color-on-primary);
  border-color: rgb(255 255 255 / 0.5);
}

.plan-card--inverse .btn-blueprint:hover,
.plan-card--inverse .btn-blueprint:focus-visible {
  background: rgb(255 255 255 / 0.12);
  color: var(--color-on-primary);
  border-color: rgb(255 255 255 / 0.85);
}

.plan-card--inverse .btn-hardhat {
  background: var(--color-surface);
  color: var(--color-heading);
  border-color: var(--color-surface);
}

.plan-card--inverse .btn-hardhat:hover,
.plan-card--inverse .btn-hardhat:focus-visible {
  background: var(--color-primary-soft);
  color: var(--color-heading);
  border-color: var(--color-primary-soft);
}

.plan-users {
  margin: 0.65rem auto 0;
  padding: 0.4rem 0.9rem;
  border: 0;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.plan-users::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.25'/%3E%3Cpath d='M5.4 19.2c1.15-3.05 3.5-4.7 6.6-4.7s5.45 1.65 6.6 4.7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.25'/%3E%3Cpath d='M5.4 19.2c1.15-3.05 3.5-4.7 6.6-4.7s5.45 1.65 6.6 4.7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.plan-card.is-featured .plan-users {
  color: var(--color-on-primary);
  background: var(--color-primary);
}

.plan-card--inverse .plan-users {
  color: var(--color-primary);
  background: var(--color-surface);
}

.page-pricing #compare .annot-head h2 {
  color: var(--color-heading);
}

.compare-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin-inline: 0;
  padding-inline: 0;
  -webkit-overflow-scrolling: touch;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.plan-compare {
  width: 100%;
  min-width: 40rem;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.plan-compare th,
.plan-compare td {
  padding: 0.85rem 1rem;
  text-align: start;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
  vertical-align: middle;
}

.plan-compare thead th {
  background: var(--color-navy);
  color: var(--color-on-primary);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}

.plan-compare thead th:nth-child(4) {
  background: var(--color-primary);
  box-shadow: inset 0 -2px 0 rgb(255 255 255 / 0.22);
}

.plan-compare tbody th {
  font-weight: var(--fw-medium);
  color: var(--color-text);
  background: var(--color-surface);
}

.plan-compare tbody td {
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

.plan-compare tbody td:nth-child(4) {
  background: var(--color-primary-soft);
  color: var(--color-heading);
  font-weight: var(--fw-semibold);
}

.plan-compare tbody tr:last-child th,
.plan-compare tbody tr:last-child td {
  border-bottom: 0;
}

.page-pricing #compare > .container > .compare-scroll .plan-compare tbody tr:last-child td {
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}

.page-pricing #compare > .container > .compare-scroll .plan-compare tbody tr:last-child td:nth-child(4) {
  color: var(--color-heading);
}

.plan-compare tbody tr:nth-child(even) td:not(:nth-child(4)) {
  background: color-mix(in srgb, var(--color-surface-muted) 70%, var(--color-surface));
}

.plan-compare tbody tr:hover td:not(:nth-child(4)),
.plan-compare tbody tr:hover th {
  background: color-mix(in srgb, var(--color-primary-soft) 55%, var(--color-surface));
}

html[dir="rtl"] .plan-compare thead th:first-child,
html[dir="rtl"] .plan-compare tbody th:first-child {
  position: sticky;
  right: 0;
  z-index: 1;
  box-shadow: -8px 0 12px -10px rgb(1 48 86 / 0.18);
}

html[dir="ltr"] .plan-compare thead th:first-child,
html[dir="ltr"] .plan-compare tbody th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  box-shadow: 8px 0 12px -10px rgb(1 48 86 / 0.18);
}

html[dir="rtl"] .plan-compare tbody th:first-child,
html[dir="ltr"] .plan-compare tbody th:first-child {
  background: var(--color-surface);
}

.plan-more {
  margin-top: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.plan-more.faq {
  width: auto;
  border-bottom: 1px solid var(--color-border);
}

.plan-more summary {
  font-size: 1.05rem;
  font-weight: var(--fw-semibold);
  color: var(--color-heading);
}

.plan-more[open] summary {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.plan-more .compare-scroll {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  border-top: 1px solid var(--color-border);
}

.page-pricing .addon-grid .spec-card {
  min-height: 100%;
  background: var(--color-surface);
}

.page-pricing .addon-grid .spec-card h3 {
  font-size: 1.05rem;
  color: var(--color-heading);
}

.page-pricing .addon-grid .spec-card p {
  color: var(--color-text-secondary);
}

.addon-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 720px) {
  .addon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .addon-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-section-cta {
  margin: var(--space-6) 0 0;
  text-align: center;
}

.page-pricing #setup {
  background:
    radial-gradient(640px 220px at 100% 0%, rgb(2 86 154 / 0.06), transparent 70%),
    var(--color-surface-muted);
}

.page-pricing .setup-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 1.55rem 1.45rem;
}

.page-pricing #setup .annot-head {
  margin-bottom: 0;
}

.page-pricing #setup .annot-head h2 {
  color: var(--color-heading);
}

.page-pricing #setup .annot-head p {
  color: var(--color-text-secondary);
  max-width: 44rem;
}

.page-pricing .setup-steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
}

@media (min-width: 720px) {
  .page-pricing .setup-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .page-pricing .setup-steps::before {
    content: "";
    position: absolute;
    inset-inline: 12%;
    top: 2.05rem;
    height: 1px;
    background: color-mix(in srgb, var(--color-primary) 18%, var(--color-border));
    pointer-events: none;
  }
}

.page-pricing .setup-steps li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1.05rem 1rem 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 720px) {
  .page-pricing .setup-steps li {
    align-items: center;
    text-align: center;
  }
}

.page-pricing .setup-steps-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}

.page-pricing .setup-steps .spec-icon {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.page-pricing .setup-steps .spec-icon::before {
  width: 1.15rem;
  height: 1.15rem;
}

.page-pricing .setup-steps-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-heading);
}

.page-pricing .setup-fee {
  display: grid;
  gap: 0.65rem;
  align-items: center;
  margin-top: var(--space-5);
  padding: 1.1rem 1.15rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--color-primary) 18%, var(--color-border));
  border-inline-start: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
}

@media (min-width: 720px) {
  .page-pricing .setup-fee {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.15rem 1.35rem;
  }
}

.page-pricing .setup-fee-amount {
  margin: 0;
  font-size: clamp(1.85rem, 1.3rem + 1.4vw, 2.35rem);
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--color-heading);
}

.page-pricing .setup-fee-amount .sar-amount::before {
  width: 0.78em;
  height: 0.88em;
}

.page-pricing .setup-fee > p:last-child {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.page-pricing .setup-fee strong {
  color: var(--color-heading);
  font-weight: var(--fw-bold);
}

.page-pricing #choose {
  background:
    radial-gradient(720px 240px at 0% 100%, rgb(2 86 154 / 0.05), transparent 65%),
    var(--color-bg);
}

.page-pricing .choose-panel {
  display: grid;
  gap: var(--space-6);
  min-width: 0;
  padding: 1.85rem 1.6rem 1.55rem;
  background: var(--color-surface);
  border: 1px solid color-mix(in srgb, var(--color-primary) 18%, var(--color-border));
  border-inline-start: 3px solid var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (max-width: 639px) {
  .page-pricing .choose-panel {
    padding: 1.35rem 1.15rem 1.2rem;
  }
}

@media (min-width: 900px) {
  .page-pricing .choose-panel {
    grid-template-columns: minmax(0, 1fr) minmax(17.5rem, 0.42fr);
    align-items: stretch;
    gap: var(--space-7);
    padding: 2rem 1.85rem 1.8rem;
  }
}

.page-pricing .choose-copy .spec-label {
  margin-bottom: 0.45rem;
}

.page-pricing .choose-copy {
  min-width: 0;
}

.page-pricing .choose-copy h2 {
  margin: 0 0 0.65rem;
  color: var(--color-heading);
  font-size: var(--fs-2xl);
  line-height: var(--lh-heading);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
}

html[lang="ar"] .page-pricing .choose-copy h2 {
  letter-spacing: 0;
  line-height: 1.38;
}

.page-pricing .choose-copy p {
  margin: 0 0 0.75rem;
  color: var(--color-text-secondary);
  max-width: 42rem;
  font-size: 1.1rem;
}

.page-pricing .choose-copy p:last-child {
  margin-bottom: 0;
}

.page-pricing .choose-copy p.choose-sla {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 0.45rem 0.55rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-top: 0.45rem;
  margin-bottom: 0;
  padding: 0.7rem 1rem;
  background: var(--color-primary-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  color: var(--color-primary-deep);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  line-height: 1.55;
}

.page-pricing .choose-sla > span:last-child {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: break-word;
}

.page-pricing .choose-sla .spec-icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.18em;
  color: var(--color-primary);
}

.page-pricing .choose-sla .spec-icon::before {
  width: 1.05rem;
  height: 1.05rem;
}

@media (min-width: 640px) {
  .page-pricing .choose-copy p.choose-sla {
    width: fit-content;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
  }

  .page-pricing .choose-sla .spec-icon {
    margin-top: 0;
  }
}

.page-pricing #choose .choose-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0.75rem;
  min-width: 0;
  padding: 1.35rem 1.15rem;
  background:
    linear-gradient(180deg, var(--color-primary-soft) 0%, var(--color-surface) 4.5rem);
  border: 1px solid color-mix(in srgb, var(--color-primary) 16%, var(--color-border));
  border-radius: var(--radius-md);
}

.page-pricing #choose .choose-actions .btn-hardhat,
.page-pricing #choose .choose-actions .btn-primary {
  justify-content: center;
  min-height: 3rem;
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
  gap: 0.55rem;
}

.page-pricing #choose .choose-actions .btn-hardhat:hover,
.page-pricing #choose .choose-actions .btn-hardhat:focus-visible,
.page-pricing #choose .choose-actions .btn-primary:hover,
.page-pricing #choose .choose-actions .btn-primary:focus-visible {
  background: var(--color-primary-hover);
  color: var(--color-on-primary);
  border-color: var(--color-primary-hover);
}

.page-pricing #choose .choose-actions .btn-hardhat::after,
.page-pricing #choose .choose-actions .btn-primary::after {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: translate var(--ease);
}

html[dir="rtl"] .page-pricing #choose .choose-actions .btn-hardhat::after,
html[dir="rtl"] .page-pricing #choose .choose-actions .btn-primary::after {
  transform: scaleX(-1);
}

.page-pricing #choose .choose-actions .btn-hardhat:hover::after,
.page-pricing #choose .choose-actions .btn-hardhat:focus-visible::after,
.page-pricing #choose .choose-actions .btn-primary:hover::after,
.page-pricing #choose .choose-actions .btn-primary:focus-visible::after {
  translate: 4px 0;
}

html[dir="rtl"] .page-pricing #choose .choose-actions .btn-hardhat:hover::after,
html[dir="rtl"] .page-pricing #choose .choose-actions .btn-hardhat:focus-visible::after,
html[dir="rtl"] .page-pricing #choose .choose-actions .btn-primary:hover::after,
html[dir="rtl"] .page-pricing #choose .choose-actions .btn-primary:focus-visible::after {
  translate: -4px 0;
}

.page-pricing .choose-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--color-primary) 22%, var(--color-border));
  border-radius: var(--radius-md);
  color: var(--color-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-align: center;
  text-decoration: none;
}

.page-pricing .choose-wa::before {
  content: "";
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19.5 6.2 16A8.5 8.5 0 1 1 8 18.2z'/%3E%3Cpath d='M9.2 9.8c.2 1.6 1.5 3 3 3.4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19.5 6.2 16A8.5 8.5 0 1 1 8 18.2z'/%3E%3Cpath d='M9.2 9.8c.2 1.6 1.5 3 3 3.4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.page-pricing .choose-wa:hover,
.page-pricing .choose-wa:focus-visible {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
}

.plan-selected {
  margin: 0 0 var(--space-4);
  padding: 0.7rem 0.95rem;
  border: 1px solid color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary-deep);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.plan-selected[hidden] {
  display: none;
}

/* ---- Solution hero — screenshot zoom ---- */
.browser-body.has-shot-zoom {
  position: relative;
}

.shot-zoom-btn {
  position: absolute;
  inset-block-start: 0.65rem;
  inset-inline-end: 0.65rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--color-primary) 22%, var(--color-border));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  color: var(--color-primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  transition:
    background var(--ease),
    border-color var(--ease),
    color var(--ease),
    opacity var(--ease);
  opacity: 0.9;
}

.shot-zoom-btn svg {
  width: 1.05rem;
  height: 1.05rem;
}

.shot-zoom-btn:hover,
.shot-zoom-btn:focus-visible {
  opacity: 1;
  background: var(--color-surface);
  border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
  color: var(--color-primary);
  outline: none;
}

html.shot-lightbox-open,
html.shot-lightbox-open body {
  overflow: hidden;
}

.shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(var(--space-4), var(--safe-t)) var(--space-4) max(var(--space-5), var(--safe-b));
}

.shot-lightbox.is-open {
  display: flex;
}

.shot-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgb(11 23 32 / 0.76);
  backdrop-filter: blur(6px);
}

.shot-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 68rem);
  max-height: min(92vh, 58rem);
  margin: auto;
  outline: none;
  opacity: 0;
  transform: translateY(0.65rem) scale(0.985);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.shot-lightbox.is-open .shot-lightbox-panel {
  opacity: 1;
  transform: none;
}

.shot-lightbox-frame {
  display: flex;
  flex-direction: column;
  margin: 0;
  max-height: min(92vh, 58rem);
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--color-primary) 16%, var(--color-border));
  background: var(--color-surface);
  box-shadow:
    var(--shadow-lg),
    0 28px 72px rgb(2 86 154 / 0.18);
  overflow: hidden;
}

.shot-lightbox-chrome {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  padding-inline-end: 0.55rem;
  background: linear-gradient(180deg, var(--color-surface-2), var(--color-surface));
  border-bottom: 1px solid var(--color-border);
}

.shot-lightbox-chrome .browser-bar {
  flex: 1;
  min-width: 0;
  padding-block: 0.72rem;
  border: none;
  background: transparent;
}

.shot-lightbox-chrome .browser-url {
  font-size: 0.74rem;
}

.shot-lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-shrink: 0;
  min-height: 2.15rem;
  padding: 0 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.shot-lightbox-close:hover,
.shot-lightbox-close:focus-visible {
  background: var(--color-primary-soft);
  border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
  color: var(--color-heading);
  outline: none;
}

.shot-lightbox-close svg {
  width: 0.95rem;
  height: 0.95rem;
}

.shot-lightbox-close-text {
  line-height: 1;
}

.shot-lightbox-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(min(92vh, 58rem) - 7.25rem);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--color-browser-chrome, var(--color-bg));
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border)) transparent;
}

.shot-lightbox-body::-webkit-scrollbar {
  width: 0.45rem;
}

.shot-lightbox-body::-webkit-scrollbar-thumb {
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
}

.shot-lightbox-body .browser-body::after {
  display: none;
}

.shot-lightbox-img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-lightbox-caption {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  margin: 0;
  padding: 0.72rem 1rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.shot-lightbox-badge {
  flex-shrink: 0;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.shot-lightbox-caption-text {
  min-width: 0;
  color: var(--color-heading);
  font-weight: 500;
}

@media (max-width: 640px) {
  .shot-lightbox-close-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .shot-lightbox-close {
    width: 2.25rem;
    padding: 0;
  }

  .shot-lightbox-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot-zoom-btn,
  .shot-lightbox-panel {
    transition: none;
  }

  .shot-lightbox.is-open .shot-lightbox-panel {
    opacity: 1;
    transform: none;
  }
}

html.lead-modal-open,
html.lead-modal-open body {
  overflow: hidden;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: max(var(--space-5), var(--safe-t)) var(--space-4) max(var(--space-6), var(--safe-b));
  overflow: auto;
}

.lead-modal.is-open,
.lead-modal:target {
  display: flex;
}

.lead-modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
}

.lead-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 40rem);
  margin-block: 0 auto;
  background:
    linear-gradient(180deg, var(--color-primary-soft) 0%, var(--color-surface) 4.5rem);
  border: 1px solid color-mix(in srgb, var(--color-primary) 18%, var(--color-border));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6) var(--space-5);
  transform: translateY(0.4rem);
  transition: transform var(--ease);
}

.lead-modal-dialog:focus {
  outline: none;
}

.lead-modal.is-open .lead-modal-dialog,
.lead-modal:target .lead-modal-dialog {
  transform: none;
}

.lead-modal-dialog h2 {
  margin: 0 0 0.35rem;
  padding-inline-end: 2.75rem;
  font-size: 1.25rem;
  color: var(--color-heading);
}

.lead-modal-dialog > p {
  margin: 0 0 1.15rem;
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
}

.lead-modal-close {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-end: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.lead-modal-close:hover,
.lead-modal-close:focus-visible {
  background: var(--color-primary-soft);
  border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
  color: var(--color-heading);
}

.lead-modal-close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.lead-modal .form-alt {
  margin-top: var(--space-4);
}

@media (prefers-reduced-motion: reduce) {
  .lead-modal-dialog,
  .lead-modal.is-open .lead-modal-dialog,
  .lead-modal:target .lead-modal-dialog {
    transform: none;
    transition: none;
  }
}

.page-pricing #notes .annot-head h2 {
  color: var(--color-heading);
}

@media (prefers-reduced-motion: reduce) {
  .plan-card,
  .plan-card:hover,
  .plan-card:focus-within,
  .plan-card.is-featured,
  .plan-card.is-featured:hover,
  .plan-card.is-featured:focus-within {
    transition: none;
    transform: none;
  }

  .page-pricing .bp-hero .hero-actions .btn-cta-meet,
  .page-pricing .bp-hero .hero-actions .btn-cta-meet:hover,
  .page-pricing .bp-hero .hero-actions .btn-cta-meet:focus-visible {
    animation: none;
  }

  .page-pricing .bp-hero .hero-actions .btn-cta-meet::before,
  .page-pricing .bp-hero .hero-actions .btn-cta-meet:hover::before,
  .page-pricing .bp-hero .hero-actions .btn-cta-meet:focus-visible::before,
  html[dir="rtl"] .page-pricing .bp-hero .hero-actions .btn-cta-meet::before,
  html[dir="rtl"] .page-pricing .bp-hero .hero-actions .btn-cta-meet:hover::before,
  html[dir="rtl"] .page-pricing .bp-hero .hero-actions .btn-cta-meet:focus-visible::before {
    transform: none;
    transition: none;
  }

  .page-pricing .bp-hero .hero-actions .btn-cta-meet:hover::after,
  .page-pricing .bp-hero .hero-actions .btn-cta-meet:focus-visible::after,
  html[dir="rtl"] .page-pricing .bp-hero .hero-actions .btn-cta-meet:hover::after,
  html[dir="rtl"] .page-pricing .bp-hero .hero-actions .btn-cta-meet:focus-visible::after,
  .plan-card .btn:hover::after,
  .plan-card .btn:focus-visible::after,
  html[dir="rtl"] .plan-card .btn:hover::after,
  html[dir="rtl"] .plan-card .btn:focus-visible::after,
  .page-pricing #choose .choose-actions .btn-hardhat:hover::after,
  .page-pricing #choose .choose-actions .btn-hardhat:focus-visible::after,
  .page-pricing #choose .choose-actions .btn-primary:hover::after,
  .page-pricing #choose .choose-actions .btn-primary:focus-visible::after,
  html[dir="rtl"] .page-pricing #choose .choose-actions .btn-hardhat:hover::after,
  html[dir="rtl"] .page-pricing #choose .choose-actions .btn-hardhat:focus-visible::after,
  html[dir="rtl"] .page-pricing #choose .choose-actions .btn-primary:hover::after,
  html[dir="rtl"] .page-pricing #choose .choose-actions .btn-primary:focus-visible::after {
    translate: none;
  }
}

@media (min-width: 960px) {
  .page-pricing .bp-hero-grid {
    align-items: center;
  }
}

/* ---- Signup / free trial ---- */
.page-signup #main {
  background:
    radial-gradient(ellipse 600px 400px at 75% 30%, rgb(255 255 255 / 0.7) 0, transparent 60%),
    radial-gradient(ellipse 500px 350px at 25% 80%, rgb(2 86 154 / 0.08) 0, transparent 60%),
    var(--color-primary-soft);
}

.signup-stage {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.signup-shell {
  display: grid;
  gap: 1.25rem;
  direction: ltr;
}

.signup-form-pane,
.signup-aside {
  direction: rtl;
}

html[dir="ltr"] .signup-form-pane,
html[dir="ltr"] .signup-aside {
  direction: ltr;
}

@media (min-width: 900px) {
  .signup-shell {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.signup-form-pane {
  background: var(--color-surface);
  border-radius: 24px;
  box-shadow: 0 4px 16px rgb(1 48 86 / 0.08), 0 24px 60px -8px rgb(1 48 86 / 0.1);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.signup-form-pane h1 {
  margin: 0 0 0.4rem;
  color: var(--color-heading);
  font-size: var(--fs-2xl);
  line-height: var(--lh-heading);
  text-align: center;
}

.signup-lede {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.65;
  text-align: center;
}

.signup-form {
  max-width: none;
}

.signup-form > .hp {
  grid-column: 1 / -1;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

@media (min-width: 560px) {
  .signup-form {
    grid-template-columns: 1fr 1fr;
  }

  .signup-form .signup-span {
    grid-column: 1 / -1;
  }
}

.req {
  color: var(--color-error);
  font-weight: var(--fw-semibold);
}

.tel-affix {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.tel-affix:hover {
  border-color: color-mix(in srgb, var(--color-primary) 50%, var(--color-border));
}

.tel-affix:focus-within {
  border-color: var(--color-primary);
  box-shadow: var(--focus);
}

.tel-prefix {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-inline: 0.75rem;
  border-inline-end: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}

.tel-flag {
  width: 1.35rem;
  height: 0.9rem;
  flex-shrink: 0;
}

.tel-affix input {
  border: 0;
  box-shadow: none;
  min-height: 52px;
}

.tel-affix input:hover,
.tel-affix input:focus {
  border: 0;
  box-shadow: none;
}

.signup-form > .btn {
  width: 100%;
  min-height: 52px;
  border-radius: var(--radius-md);
}

.signup-form .form-status.is-ok {
  padding: 0.9rem 1rem;
  background: color-mix(in srgb, var(--color-success) 10%, var(--color-surface));
  border: 1px solid color-mix(in srgb, var(--color-success) 28%, var(--color-border));
  border-radius: var(--radius-md);
  font-weight: 500;
  line-height: 1.65;
}

.signup-form .form-status.is-ok strong {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
  color: var(--color-heading);
}

.signup-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: clamp(1.75rem, 3.4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--color-navy);
  color: #d7e4ea;
  border-radius: 24px;
  box-shadow: 0 20px 48px -8px rgb(1 48 86 / 0.25);
  overflow: hidden;
}

.signup-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1px);
  background-size: 58px 58px;
  pointer-events: none;
}

.signup-aside > * {
  position: relative;
}

.signup-aside h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 2vw + 0.8rem, 2rem);
  line-height: var(--lh-heading);
  text-align: center;
}

.signup-aside-lede {
  margin: -0.85rem 0 0;
  color: #cbd5e1;
  font-size: 1rem;
  text-align: center;
}

.signup-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.signup-perks li {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin: 0;
}

.signup-check {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: #3abf60;
}

.signup-zatca {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding-top: var(--space-4);
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.8125rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.signup-zatca img {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.signup-badges {
  list-style: none;
  margin-block-start: auto;
  margin-block-end: 0;
  margin-inline: 0;
  padding: var(--space-4) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  direction: rtl;
}

.signup-badges li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: #fff;
}

.signup-badges img {
  width: 3.4rem;
  height: 3.4rem;
  object-fit: contain;
}

@media (max-width: 559px) {
  .signup-badges {
    grid-template-columns: 1fr;
  }
}

/* ---- Compact ZATCA trust bar — dark navy stage, teal glow ---- */
.zatca-trust {
  --zatca-glow-x: 100%;
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  overflow: hidden;
  padding: clamp(1.6rem, 3.4vw, 2.6rem) clamp(1.4rem, 3.2vw, 2.5rem);
  background:
    radial-gradient(42rem 18rem at var(--zatca-glow-x) 42%, rgb(43 166 184 / 0.38), transparent 62%),
    linear-gradient(165deg, #012a42 0%, var(--primary-900) 55%, #012433 100%);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

html[dir="ltr"] .zatca-trust {
  --zatca-glow-x: 0%;
}

.zatca-trust-copy,
.zatca-trust-mark {
  position: relative;
  z-index: 1;
}

.zatca-trust-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

@media (min-width: 800px) {
  .zatca-trust {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem);
    gap: clamp(1.75rem, 4vw, 3rem);
  }
}

.zatca-trust-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.28rem 0.8rem 0.32rem;
  border-radius: var(--radius-full);
  background: var(--accent-600);
  color: var(--color-on-primary);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}

.zatca-trust-copy h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 1.5vw + 1rem, 1.85rem);
  color: var(--color-on-primary);
}

html[lang="ar"] .zatca-trust-copy h2 {
  line-height: 1.38;
}

.zatca-trust-copy > p:not(.zatca-trust-kicker):not(.features-more) {
  margin: 0 0 0.65rem;
  max-width: 38rem;
  color: rgb(255 255 255 / 0.78);
}

.zatca-trust-copy .btn,
.zatca-trust-copy .features-more {
  margin-top: 1.15rem;
}

.zatca-trust .btn-blueprint {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.42);
}

.zatca-trust .btn-blueprint:hover,
.zatca-trust .btn-blueprint:focus-visible {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  border-color: rgb(255 255 255 / 0.7);
}

.zatca-trust-mark {
  margin: 0;
  display: grid;
  place-items: center;
  justify-self: start;
}

html[dir="ltr"] .zatca-trust-mark {
  justify-self: end;
}

.zatca-trust-mark img {
  display: block;
  width: min(100%, 18rem);
  height: auto;
}

@media (max-width: 799px) {
  .zatca-trust-mark {
    order: -1;
    justify-self: start;
  }

  .zatca-trust-mark img {
    width: min(100%, 14rem);
  }
}

/* ---- Pricing: no horizontal table on phones ---- */
@media (max-width: 899px) {
  .page-pricing #compare {
    display: none;
  }
}

/* ---- Overflow guard ---- */
html,
body {
  overflow-x: clip;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

.proof-shot,
.browser,
.dash-frame,
.home-module-grid,
.pricing-grid,
.plan-card {
  min-width: 0;
}

@media (max-width: 899px) {
  .plan-compare {
    min-width: 0;
  }
}

.palette-chip {
  min-height: 2.75rem;
}

/* ---- Dark theme polish ---- */
html[data-theme="dark"] .site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--color-border), 0 8px 24px rgb(0 0 0 / 0.35);
}

html[data-theme="dark"] .pref-theme-btn.is-on {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.35);
}

html[data-theme="dark"] .pref-theme-btn:not(.is-on):hover,
html[data-theme="dark"] .pref-theme-btn:not(.is-on):focus-visible {
  background: color-mix(in srgb, var(--color-primary-soft) 65%, transparent);
  color: var(--color-text-primary);
}

html[data-theme="dark"] .header-cta--ghost {
  border-color: color-mix(in srgb, var(--color-border) 88%, var(--color-text-muted));
  color: var(--color-text-secondary);
}

html[data-theme="dark"] .header-cta--ghost:hover,
html[data-theme="dark"] .header-cta--ghost:focus-visible {
  color: var(--color-primary);
  border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
}

html[data-theme="dark"] .header-cta--primary {
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.3);
}

html[data-theme="dark"] .module-card,
html[data-theme="dark"] .plan-card,
html[data-theme="dark"] .brick-card,
html[data-theme="dark"] .spec-card,
html[data-theme="dark"] .q-card {
  box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .plan-card--inverse .plan-pill {
  background: rgb(255 255 255 / 0.14);
  color: var(--color-on-primary);
  box-shadow: none;
}

html[data-theme="dark"] .plan-compare tbody td:nth-child(4) {
  color: var(--color-primary);
}

html[data-theme="dark"] .browser-bar {
  background: var(--color-surface-muted);
}

html[data-theme="dark"] .browser-bar span {
  background: color-mix(in srgb, var(--color-primary) 32%, var(--color-border));
}

html[data-theme="dark"] .shot-stage.is-placeholder .shot-crop,
html[data-theme="dark"] .shot-stage.is-placeholder .shot-full {
  background: var(--color-browser-chrome);
}

html[data-theme="dark"] .cta-band .btn-hardhat:hover,
html[data-theme="dark"] .cta-band .btn-hardhat:focus-visible,
html[data-theme="dark"] .cta-band .btn-primary:hover,
html[data-theme="dark"] .cta-band .btn-primary:focus-visible {
  color: var(--color-primary);
}

html[data-theme="dark"] .zatca-spotlight .btn-hardhat:hover,
html[data-theme="dark"] .zatca-spotlight .btn-hardhat:focus-visible,
html[data-theme="dark"] .zatca-spotlight .btn-primary:hover,
html[data-theme="dark"] .zatca-spotlight .btn-primary:focus-visible {
  color: var(--color-primary);
}

html[data-theme="dark"] .page-signup #main {
  background:
    radial-gradient(ellipse 600px 400px at 75% 30%, rgb(61 156 224 / 0.14) 0, transparent 60%),
    radial-gradient(ellipse 500px 350px at 25% 80%, rgb(43 166 184 / 0.1) 0, transparent 60%),
    var(--color-primary-soft);
}

html[data-theme="dark"] .signup-form .form-status.is-ok {
  background: color-mix(in srgb, var(--color-success) 14%, var(--color-surface));
  border-color: color-mix(in srgb, var(--color-success) 32%, var(--color-border));
}

html[data-theme="dark"] .chip-flow span,
html[data-theme="dark"] .status-chip,
html[data-theme="dark"] .erp-status {
  border-color: var(--color-border);
}

html[data-theme="dark"] .mega-menu {
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: var(--shadow-lg);
}

html[data-theme="dark"] .section-muted,
html[data-theme="dark"] .bp-hero,
html[data-theme="dark"] .page-index .home-hero,
html[data-theme="dark"] .page-index .scaffold-hero {
  background-color: var(--color-bg);
}

html[data-theme="dark"] .pref-theme {
  background: var(--color-surface);
  border-color: var(--color-border);
}

