/* ═══════════════════════════════════════════════════════
   Ather public site — design system v3
   Option C: Warm Arabic Premium
   Matches app shell palette exactly.
   Font: Cairo (Arabic + Latin)
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --ap-bg:          #faf7f2;
  --ap-bg-alt:      #f4ede3;
  --ap-surface:     #ffffff;
  --ap-surface2:    #fdf6ee;
  --ap-border:      #e2d5c3;
  --ap-border-soft: #ede5d8;

  --ap-text:        #1e1218;
  --ap-text2:       #6b5464;
  --ap-text3:       #9e8491;

  --ap-accent:      #7c3aed;
  --ap-accent2:     #6d28d9;
  --ap-accent-soft: #f0e9ff;
  --ap-accent-border: #d8b4fe;

  --ap-gold:        #b7882c;
  --ap-gold2:       #9e721f;
  --ap-gold-soft:   #fdf3de;
  --ap-gold-border: #f0cc80;

  --ap-success:     #14532d;
  --ap-success-soft:#f0fdf4;
  --ap-danger:      #b91c1c;
  --ap-danger-soft: #fef2f2;

  --ap-radius:      16px;
  --ap-radius-lg:   22px;
  --ap-radius-xl:   28px;
  --ap-radius-pill: 999px;
  --ap-max:         1100px;

  --ap-shadow:      0 4px 16px rgba(30, 18, 24, 0.08);
  --ap-shadow-lg:   0 12px 40px rgba(30, 18, 24, 0.12);
  --ap-shadow-accent: 0 6px 24px rgba(124, 58, 237, 0.2);

  --ap-ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ap-duration:    160ms;

  font-family: 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Dark theme only on public pages, NOT on app shell */
body:not(.icrm-app-shell-body) {
  background: var(--ap-bg);
  color: var(--ap-text);
  line-height: 1.85;
  direction: rtl;
  font-family: 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ap-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; }

/* ── Header ──────────────────────────────────────────── */
.ather-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ap-border);
}

.ather-nav-wrap {
  max-width: var(--ap-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ather-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none !important;
}
.ather-logo-link:hover { opacity: 0.85; }
.ather-logo-link img { display: block; height: 40px; width: auto; }

.ather-site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ather-site-nav a {
  color: var(--ap-text2);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--ap-radius);
  transition: color var(--ap-duration) var(--ap-ease),
              background var(--ap-duration) var(--ap-ease);
  text-decoration: none;
}
.ather-site-nav a:hover {
  color: var(--ap-text);
  background: var(--ap-surface2);
  text-decoration: none;
}

.ather-nav-cta {
  background: var(--ap-accent) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 9px 20px !important;
  border-radius: var(--ap-radius) !important;
  transition: background var(--ap-duration) var(--ap-ease),
              box-shadow var(--ap-duration) var(--ap-ease) !important;
  text-decoration: none !important;
}
.ather-nav-cta:hover {
  background: var(--ap-accent2) !important;
  box-shadow: var(--ap-shadow-accent) !important;
  text-decoration: none !important;
}

.ather-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
}
.ather-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ap-text2);
  border-radius: 2px;
  transition: 0.2s;
}

/* ── Wrap ────────────────────────────────────────────── */
.ather-wrap {
  max-width: var(--ap-max);
  margin: 0 auto;
  padding: 0 24px;
}
.ather-wrap--narrow { max-width: 680px; }

/* ── Eyebrow ─────────────────────────────────────────── */
.ather-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-gold);
  margin-bottom: 16px;
}

/* ── Hero ────────────────────────────────────────────── */
.ather-hero {
  padding: 100px 0 88px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(124, 58, 237, 0.1) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(183, 136, 44, 0.08) 0%, transparent 55%),
    var(--ap-bg);
  position: relative;
  overflow: visible;
}

/* subtle warm grid lines */
.ather-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(183, 136, 44, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 136, 44, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

.ather-hero-title {
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1.1;
  padding-bottom: 0.1em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1e1218 10%, #7c3aed 55%, #b7882c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.ather-hero-sub {
  font-size: 1.1rem;
  color: var(--ap-text2);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.9;
}

.ather-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ather-hero-note {
  font-size: 0.82rem;
  color: var(--ap-text3);
}

/* ── Buttons ─────────────────────────────────────────── */
.ather-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--ap-radius);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
  background: var(--ap-accent);
  color: #fff;
  transition: background var(--ap-duration) var(--ap-ease),
              transform var(--ap-duration) var(--ap-ease),
              box-shadow var(--ap-duration) var(--ap-ease);
  line-height: 1.3;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
}
.ather-btn:hover {
  background: var(--ap-accent2);
  transform: translateY(-2px);
  box-shadow: var(--ap-shadow-accent);
  text-decoration: none !important;
}
.ather-btn:active { transform: translateY(0); }
.ather-btn:focus-visible {
  outline: 2px solid var(--ap-accent);
  outline-offset: 3px;
}
.ather-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ather-btn--ghost {
  background: transparent;
  border: 1.5px solid var(--ap-accent-border);
  color: var(--ap-accent);
  box-shadow: none;
}
.ather-btn--ghost:hover {
  background: var(--ap-accent-soft);
  border-color: var(--ap-accent);
  box-shadow: none;
  transform: none;
}

.ather-btn--outline {
  background: transparent;
  border: 1.5px solid var(--ap-border);
  color: var(--ap-text2);
  box-shadow: none;
}
.ather-btn--outline:hover {
  border-color: var(--ap-accent-border);
  color: var(--ap-accent);
  background: var(--ap-accent-soft);
  box-shadow: none;
  transform: none;
}

/* Gold variant (launch offer, yearly) */
.ather-btn--alt {
  background: var(--ap-gold);
  color: #fff;
  box-shadow: 0 4px 16px rgba(183, 136, 44, 0.25);
}
.ather-btn--alt:hover {
  background: var(--ap-gold2);
  box-shadow: 0 8px 24px rgba(183, 136, 44, 0.35);
}

.ather-btn--launch {
  background: var(--ap-gold);
  color: #fff;
  box-shadow: 0 4px 16px rgba(183, 136, 44, 0.25);
}
.ather-btn--launch:hover {
  background: var(--ap-gold2);
  box-shadow: 0 8px 24px rgba(183, 136, 44, 0.35);
}

.ather-btn--large {
  padding: 16px 44px;
  font-size: 1.05rem;
}

.ather-btn small {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 3px;
}

/* ── Sections ────────────────────────────────────────── */
.ather-section { padding: 88px 0; }

.ather-section--alt {
  background: var(--ap-surface2);
  border-top: 1px solid var(--ap-border-soft);
  border-bottom: 1px solid var(--ap-border-soft);
}

.ather-section--cta {
  text-align: center;
  background:
    radial-gradient(ellipse 70% 70% at 50% 110%, rgba(124, 58, 237, 0.1) 0%, transparent 70%),
    var(--ap-bg);
}
.ather-section--cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--ap-text);
}
.ather-section--cta p {
  color: var(--ap-text2);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.ather-section-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  color: var(--ap-text);
}
.ather-section-sub {
  text-align: center;
  color: var(--ap-text2);
  margin-bottom: 52px;
  font-size: 1rem;
  line-height: 1.8;
}

/* ── Features grid ───────────────────────────────────── */
.ather-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.ather-feature-card {
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  padding: 28px 24px;
  box-shadow: var(--ap-shadow);
  transition: border-color var(--ap-duration) var(--ap-ease),
              transform var(--ap-duration) var(--ap-ease),
              box-shadow var(--ap-duration) var(--ap-ease);
}
.ather-feature-card:hover {
  border-color: var(--ap-accent-border);
  transform: translateY(-3px);
  box-shadow: var(--ap-shadow-lg);
}

.ather-feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.ather-feature-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--ap-text);
}

.ather-feature-card p {
  font-size: 0.9rem;
  color: var(--ap-text2);
  line-height: 1.8;
}

/* ── Pricing ─────────────────────────────────────────── */
.ather-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.ather-pricing-card {
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-xl);
  padding: 36px 30px;
  position: relative;
  box-shadow: var(--ap-shadow);
  transition: transform var(--ap-duration) var(--ap-ease),
              box-shadow var(--ap-duration) var(--ap-ease);
}
.ather-pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ap-shadow-lg);
}

/* Featured Pro card — warm violet tint */
.ather-pricing-card--featured {
  background: linear-gradient(160deg, #faf7ff 0%, #f5f0ff 100%);
  border-color: var(--ap-accent-border);
  box-shadow: 0 0 0 1px var(--ap-accent-border), var(--ap-shadow-lg);
}

.ather-pricing-badge {
  position: absolute;
  top: -14px;
  right: 30px;
  background: linear-gradient(90deg, var(--ap-gold), #d4a43e);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 18px;
  border-radius: var(--ap-radius-pill);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(183, 136, 44, 0.35);
}

.ather-pricing-head {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ap-border-soft);
}

.ather-pricing-head h2,
.ather-pricing-head h3 {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--ap-text);
}

.ather-pricing-price {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--ap-text);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1.5px;
}
.ather-pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ap-text3);
  letter-spacing: 0;
}

.ather-pricing-tagline {
  color: var(--ap-text2);
  font-size: 0.88rem;
  line-height: 1.6;
}

.ather-pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 30px;
}
.ather-pricing-features li {
  font-size: 0.9rem;
  color: var(--ap-text2);
  line-height: 1.5;
}
.ather-pricing-features li:not(:has(❌)) { color: var(--ap-text); }
.ather-pricing-features li:has(❌) { color: var(--ap-text3); opacity: 0.7; }

.ather-pricing-intervals {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.ather-pricing-intervals .ather-btn { width: 100%; }

/* Launch offer box */
.ather-pricing-launch {
  background: var(--ap-gold-soft);
  border: 1px solid var(--ap-gold-border);
  border-radius: var(--ap-radius);
  padding: 16px;
  font-size: 0.85rem;
  color: var(--ap-gold);
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.6;
}
.ather-pricing-launch strong { color: var(--ap-text); }
.ather-pricing-launch .ather-btn { width: 100%; margin-top: 4px; }
.ather-pricing-launch a:not(.ather-btn) {
  color: var(--ap-gold);
  font-weight: 700;
  text-decoration: underline;
}

.ather-pricing-note {
  text-align: center;
  color: var(--ap-text3);
  font-size: 0.82rem;
  margin-bottom: 52px;
  line-height: 1.7;
}

/* ── FAQ ─────────────────────────────────────────────── */
.ather-pricing-faq { max-width: 720px; margin: 0 auto; }
.ather-pricing-faq h3 {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--ap-text);
}
.ather-pricing-faq details {
  border-bottom: 1px solid var(--ap-border-soft);
  padding: 18px 0;
}
.ather-pricing-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ap-text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.ather-pricing-faq summary::-webkit-details-marker { display: none; }
.ather-pricing-faq summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--ap-accent);
  flex-shrink: 0;
  font-weight: 400;
  line-height: 1;
}
.ather-pricing-faq details[open] summary::after { content: '−'; }
.ather-pricing-faq details p {
  margin: 14px 0 0;
  color: var(--ap-text2);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ── Footer ──────────────────────────────────────────── */
.ather-site-footer {
  background: var(--ap-surface2);
  border-top: 1px solid var(--ap-border);
  padding: 60px 0 0;
}

.ather-footer-wrap {
  max-width: var(--ap-max);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}

.ather-footer-brand svg,
.ather-footer-brand img { margin-bottom: 16px; display: block; height: auto; max-width: 100%; }
.ather-footer-brand p {
  color: var(--ap-text3);
  font-size: 0.9rem;
  max-width: 280px;
  line-height: 1.8;
}

.ather-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ather-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ather-footer-col strong {
  color: var(--ap-text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ather-footer-col a {
  color: var(--ap-text3);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color var(--ap-duration) var(--ap-ease);
}
.ather-footer-col a:hover {
  color: var(--ap-accent);
  text-decoration: none;
}

.ather-footer-bottom {
  border-top: 1px solid var(--ap-border-soft);
  padding: 20px 24px;
  max-width: var(--ap-max);
  margin: 0 auto;
  text-align: center;
}
.ather-footer-bottom p {
  color: var(--ap-text3);
  font-size: 0.82rem;
}

/* ── Standalone pricing page ─────────────────────────── */
.ather-pricing-standalone { padding-top: 72px; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .ather-nav-toggle { display: flex; }

  .ather-site-nav {
    display: none;
    position: absolute;
    top: 68px;
    inset-inline: 0;
    background: rgba(250, 247, 242, 0.97);
    border-bottom: 1px solid var(--ap-border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }
  .ather-site-nav.is-open { display: flex; }
  .ather-site-nav a { width: 100%; text-align: center; padding: 12px; }

  .ather-site-header { position: relative; }

  .ather-hero { padding: 72px 0 56px; }
  .ather-hero-title { letter-spacing: -1px; }
  .ather-section { padding: 60px 0; }

  .ather-pricing-grid { grid-template-columns: 1fr; }
  .ather-features-grid { grid-template-columns: 1fr; }
  .ather-pricing-badge { right: 50%; transform: translateX(50%); }

  .ather-footer-wrap { grid-template-columns: 1fr; gap: 32px; }
  .ather-footer-brand p { max-width: none; }
}

@media (max-width: 480px) {
  .ather-wrap { padding: 0 16px; }
  .ather-pricing-card { padding: 28px 20px; }
  .ather-cta-row { flex-direction: column; align-items: stretch; }
  .ather-cta-row .ather-btn { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
