/* Faweeth public site — shared (subscriptions, legal, landing footer) */
:root {
  --lav-600: #7a5ea8;
  --lav-500: #967bb6;
  --lav-400: #aa91c8;
  --lav-300: #c4aede;
  --lav-100: #f2eef9;
  --gold: #d4af37;
  --ch-950: #0a0a0f;
  --ch-900: #0e0e16;
  --ch-800: #14141f;
  --ch-700: #1c1c2b;
  --txt-primary: #ede8f6;
  --txt-secondary: #ada7c4;
  --txt-muted: #6e6888;
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bd: rgba(255, 255, 255, 0.09);
  --chip-bd: rgba(150, 123, 182, 0.38);
  --r-lg: 18px;
  --r-md: 12px;
  --r-pill: 999px;
  --max-w: 920px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Tajawal", Arial, sans-serif;
  background: var(--ch-950);
  color: var(--txt-primary);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-spacing: 0.02em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 55% at 15% 8%, rgba(150, 123, 182, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 88% 88%, rgba(150, 123, 182, 0.14) 0%, transparent 60%);
}

.site-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(16px, 4vw, 32px) clamp(16px, 4vw, 28px) 48px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-bd);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--txt-primary);
  font-weight: 900;
  font-size: 1.15rem;
}

.brand-link img {
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.site-nav a {
  color: var(--lav-300);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
}

h1.page-title {
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 900;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--txt-primary) 35%, var(--lav-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  color: var(--txt-secondary);
  font-size: 1rem;
  margin-bottom: 22px;
  max-width: 68ch;
  line-height: 1.75;
}

.support-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 16px;
  margin-bottom: 22px;
  background: var(--ch-800);
  border: 1px solid var(--chip-bd);
  border-radius: var(--r-md);
  font-size: 0.92rem;
  color: var(--txt-secondary);
}

.support-strip strong {
  color: var(--lav-300);
  font-weight: 800;
}

.support-strip a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
  word-break: break-all;
}

.support-strip a:hover {
  text-decoration: underline;
}

.compliance-block {
  margin: 28px 0;
  padding: 18px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--chip-bd);
  border-radius: var(--r-lg);
}

.compliance-block p {
  color: var(--txt-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 12px;
  max-width: 72ch;
}

.compliance-block p:last-child {
  margin-bottom: 0;
}

.compliance-block .compliance-en {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-bd);
  font-size: 0.88rem;
  color: var(--txt-muted);
  direction: ltr;
  text-align: left;
  line-height: 1.65;
}

.plan-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold);
  width: fit-content;
}

.plan-badge.onetime {
  background: rgba(150, 123, 182, 0.12);
  border-color: var(--chip-bd);
  color: var(--lav-300);
}

.notice-box {
  background: var(--glass-bg);
  border: 1px solid var(--chip-bd);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  margin-bottom: 24px;
  color: var(--txt-secondary);
  font-size: 0.95rem;
}

.notice-box strong {
  color: var(--lav-300);
}

.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold);
  margin: 28px 0 14px;
  letter-spacing: 0.04em;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.plan-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-card.featured {
  border-color: var(--chip-bd);
  box-shadow: 0 8px 28px rgba(150, 123, 182, 0.15);
}

.plan-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--txt-primary);
}

.plan-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--lav-300);
}

.plan-meta {
  font-size: 0.85rem;
  color: var(--txt-muted);
}

.plan-features {
  list-style: none;
  font-size: 0.9rem;
  color: var(--txt-secondary);
}

.plan-features li {
  padding: 4px 0;
  padding-inline-start: 1.1em;
  position: relative;
}

.plan-features li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 0;
  color: var(--lav-400);
}

.plan-store-ids {
  font-size: 0.75rem;
  color: var(--txt-muted);
  word-break: break-all;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-lg);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lav-600) 0%, var(--lav-500) 60%, var(--lav-400) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(150, 123, 182, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--ch-700);
  border: 1px solid var(--chip-bd);
  color: var(--txt-primary);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.loading,
.error-msg,
.empty-msg {
  text-align: center;
  padding: 24px;
  color: var(--txt-muted);
  font-size: 0.95rem;
}

.error-msg {
  color: #f87171;
}

.legal-body {
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  color: var(--txt-secondary);
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.75;
  max-height: none;
}

.legal-updated {
  font-size: 0.82rem;
  color: var(--txt-muted);
  margin-bottom: 12px;
}

.contact-block {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--ch-800);
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-bd);
}

.contact-block a {
  color: var(--lav-300);
  font-weight: 700;
}

.site-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-bd);
  text-align: center;
  font-size: 0.85rem;
  color: var(--txt-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.site-footer nav a {
  color: var(--lav-400);
  text-decoration: none;
  font-weight: 700;
}

.site-footer nav a:hover {
  color: var(--gold);
}

.site-footer strong {
  color: var(--lav-400);
}

/* Landing page footer bar (index.html) */
.landing-footer-nav {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1180px);
  padding: 8px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.landing-footer-nav .foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
}

.landing-footer-nav .foot-links a {
  color: var(--lav-400);
  text-decoration: none;
  font-weight: 700;
  font-size: 11.5px;
}

.landing-footer-nav .foot-links a:hover {
  color: var(--gold);
}

.landing-footer-nav .foot-copy {
  opacity: 0.55;
  font-size: 11px;
  text-align: center;
  color: var(--txt-muted);
}

.landing-footer-nav .foot-copy strong {
  color: var(--lav-400);
}

.share-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ch-700);
  border: 1px solid var(--chip-bd);
  color: var(--txt-primary);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 100;
  pointer-events: none;
}

.share-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.site-footer nav a[aria-current="page"] {
  color: var(--gold);
  pointer-events: none;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .site-wrap {
    max-width: 720px;
    padding-inline: clamp(24px, 5vw, 40px);
  }

  h1.page-title {
    line-height: 1.35;
    margin-bottom: 14px;
  }

  .lead,
  .compliance-block p,
  .legal-body {
    font-size: 1rem;
    line-height: 1.85;
  }

  .site-nav {
    gap: 10px 18px;
  }

  .site-nav a {
    font-size: 0.95rem;
    padding: 4px 2px;
  }

  .plan-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }

  .support-strip {
    font-size: 0.95rem;
    padding: 14px 18px;
  }
}

@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
