/*!
 * ASPOS — public pricing + self-serve signup styles (Growth Phase 2).
 * Plain CSS (no Tailwind build dependency). Shared by EN/AR pages.
 * Brand palette mirrors aspos-marketing/tailwind.config.js:
 *   indigo #5A6AE8 · accent #FCC230 · success #06D6A0 · ink #171717
 *   lavender-100 #E7ECFF · lavender-200 #D1DCF8 · lavender-300 #BDC1DF
 */
.aspos-pricing {
  --aspos-indigo: #5A6AE8;
  --aspos-indigo-dark: #4654d6;
  --aspos-accent: #FCC230;
  --aspos-success: #06D6A0;
  --aspos-ink: #171717;
  --aspos-lavender-100: #E7ECFF;
  --aspos-lavender-200: #D1DCF8;
  --aspos-lavender-300: #BDC1DF;
}

/* Period toggle (shared by pricing + modal) */
.aspos-period-toggle {
  display: inline-flex;
  margin: 0 auto 2.5rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--aspos-lavender-100);
  border: 1px solid var(--aspos-lavender-200);
}
.aspos-period-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  color: rgba(23, 23, 23, 0.7);
  transition: background 0.15s, color 0.15s;
}
.aspos-period-toggle button.is-active {
  background: #fff;
  color: var(--aspos-indigo);
  box-shadow: 0 1px 3px rgba(90, 106, 232, 0.18);
}
.aspos-seg { display: inline-flex; padding: 0.3rem; border-radius: 999px; background: var(--aspos-lavender-100); border: 1px solid var(--aspos-lavender-200); }
.aspos-seg button { appearance: none; border: 0; background: transparent; cursor: pointer; padding: 0.45rem 1rem; border-radius: 999px; font: inherit; font-weight: 600; font-size: 0.85rem; color: rgba(23, 23, 23, 0.7); }
.aspos-seg button.is-active { background: #fff; color: var(--aspos-indigo); box-shadow: 0 1px 3px rgba(90, 106, 232, 0.18); }

/* Pricing cards */
.aspos-pricing-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .aspos-pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.aspos-pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--aspos-lavender-200);
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.04), 0 8px 24px rgba(90, 106, 232, 0.05);
}
.aspos-pricing-card.is-popular { border: 2px solid var(--aspos-indigo); box-shadow: 0 12px 32px rgba(90, 106, 232, 0.16); }
.aspos-popular {
  position: absolute; top: -0.75rem; inset-inline-start: 2rem;
  background: var(--aspos-accent); color: var(--aspos-ink);
  font-size: 0.75rem; font-weight: 700;
  padding: 0.25rem 0.75rem; border-radius: 999px;
}
.aspos-pricing-name { font-size: 1.125rem; font-weight: 700; color: var(--aspos-ink); margin: 0; }
.aspos-pricing-desc { margin: 0.5rem 0 0; font-size: 0.875rem; color: rgba(23, 23, 23, 0.6); }
.aspos-pricing-price { margin: 1.5rem 0 0; min-height: 2.5rem; }
.aspos-price-amt { font-size: 1.875rem; font-weight: 800; color: var(--aspos-ink); }
.aspos-price-suffix { font-size: 0.875rem; font-weight: 600; color: rgba(23, 23, 23, 0.5); margin-inline-start: 0.35rem; }
.aspos-price-contact { font-size: 1.25rem; font-weight: 700; color: var(--aspos-ink); }
.aspos-pricing-meta { margin: 0.5rem 0 0; font-size: 0.8rem; color: rgba(23, 23, 23, 0.55); }
.aspos-feats { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.aspos-feat { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.875rem; color: rgba(23, 23, 23, 0.75); }
.aspos-check { color: var(--aspos-success); font-weight: 700; flex: 0 0 auto; }
.aspos-getstarted { margin-top: 2rem; width: 100%; }
.aspos-pricing-card.is-popular .aspos-getstarted { background: var(--aspos-indigo); color: #fff; }
.aspos-pricing-empty { text-align: center; color: rgba(23, 23, 23, 0.6); padding: 2rem 0; grid-column: 1 / -1; }

/* Modal */
.aspos-modal-root[hidden] { display: none; }
body.aspos-no-scroll { overflow: hidden; }
.aspos-modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(23, 23, 23, 0.55);
  backdrop-filter: blur(2px);
}
.aspos-modal {
  position: fixed; z-index: 61; inset-inline: 0; bottom: 0;
  max-height: 92vh; overflow-y: auto;
  background: #fff; color: var(--aspos-ink);
  border-top-left-radius: 1.25rem; border-top-right-radius: 1.25rem;
  padding: 1.5rem; margin: 0 auto; max-width: 540px; width: 100%;
  box-shadow: 0 -12px 40px rgba(23, 23, 23, 0.2);
}
@media (min-width: 768px) {
  .aspos-modal {
    inset: 0; bottom: auto; margin: auto; height: fit-content;
    border-radius: 1.25rem; max-height: 88vh;
  }
}
.aspos-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.aspos-modal-title { font-size: 1.25rem; font-weight: 700; margin: 0; }
.aspos-modal-x { appearance: none; border: 0; background: var(--aspos-lavender-100); color: var(--aspos-ink); width: 2rem; height: 2rem; border-radius: 999px; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.aspos-modal-sub { margin: 0.5rem 0 1.25rem; font-size: 0.875rem; color: rgba(23, 23, 23, 0.65); }
.aspos-field { margin-bottom: 1rem; }
.aspos-field label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.35rem; color: rgba(23, 23, 23, 0.8); }
.aspos-field input, .aspos-field select {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--aspos-lavender-300); border-radius: 0.5rem;
  padding: 0.6rem 0.7rem; font: inherit; font-size: 0.9rem; color: var(--aspos-ink);
  background: #fff;
}
.aspos-field input:focus, .aspos-field select:focus { outline: none; border-color: var(--aspos-indigo); box-shadow: 0 0 0 3px rgba(90, 106, 232, 0.2); }
.aspos-field-row { display: flex; gap: 0.75rem; }
.aspos-phone-code { flex: 0 0 7rem; }
.aspos-phone-num { flex: 1 1 auto; }
.aspos-sub-wrap { display: flex; align-items: stretch; border: 1px solid var(--aspos-lavender-300); border-radius: 0.5rem; overflow: hidden; }
.aspos-sub-wrap input { border: 0; border-radius: 0; flex: 1 1 auto; }
.aspos-sub-wrap input:focus { box-shadow: none; }
.aspos-sub-suffix { display: flex; align-items: center; padding: 0 0.7rem; background: var(--aspos-lavender-100); color: rgba(23, 23, 23, 0.6); font-size: 0.85rem; white-space: nowrap; }
.aspos-hint { margin: 0.35rem 0 0; font-size: 0.75rem; color: rgba(23, 23, 23, 0.5); }
.aspos-error { margin: 0.25rem 0 1rem; padding: 0.6rem 0.75rem; border-radius: 0.5rem; background: #FFF1F2; border: 1px solid #FFD0D6; color: #BE123C; font-size: 0.85rem; }
.aspos-submit { width: 100%; margin-top: 0.25rem; }
.aspos-submit:disabled { opacity: 0.7; cursor: progress; }

/* RTL fine-tuning */
[dir="rtl"] .aspos-modal-x { line-height: 1.4; }
