/* =====================================================================
   MuslimApps landing page + public modals (login, free trial, pricing,
   terms). Uses the --ui-* tokens from ui.css (teal / sand / coral).
   Type: Plus Jakarta Sans for headings and the wordmark, Inter for text.
   Loaded from index.html only.
   ===================================================================== */
:root {
  --lp-display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --lp-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --lp-ink: #0b3b37;
  --lp-body: #4b5b58;
  --lp-subtle: #7a8784;
  --lp-teal: #0f766e;
  --lp-teal-hover: #0b5f58;
  --lp-sand: #e8dcc4;
  --lp-sand-light: #f4ebd8;
  --lp-coral: #f26b4f;
  --lp-coral-hover: #e0553a;
  --lp-canvas: #faf7f0;
  --lp-border: #e5dcc0;
  --lp-max: 1160px;
}

/* ---------- Page frame ---------- */
.lp { font-family: var(--lp-text); color: var(--lp-body); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; gap: 0; }
.lp * { box-sizing: border-box; }
.lp :where(p) { text-align: inherit; } /* older page CSS left-aligns every <p>; low specificity so components can still set alignment */
.lp-wrap { width: 100%; max-width: var(--lp-max); margin: 0 auto; padding-left: max(16px, 2vw); padding-right: max(16px, 2vw); }
.lp-section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.lp-section--sand { background: var(--lp-sand-light); border-radius: 28px; }
.lp-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .8125rem/1 var(--lp-text); letter-spacing: .08em; text-transform: uppercase; color: var(--lp-teal);
  margin: 0 0 .9rem;
}
.lp-h2 {
  font-family: var(--lp-display); font-weight: 800; color: var(--lp-ink);
  font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.12; letter-spacing: -0.022em;
  margin: 0; text-wrap: balance;
}
.lp-lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.65; color: var(--lp-body); margin: .9rem auto 0; max-width: 40rem; }

/* ---------- Buttons ---------- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  height: 3.1rem; padding: 0 1.6rem; border-radius: 999px;
  font: 600 1rem/1 var(--lp-text); text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1.5px solid transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.lp-btn:active { transform: scale(.98); }
.lp-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(15, 118, 110, .25); }
.lp-btn--coral { background: var(--lp-coral); color: #fff; }
.lp-btn--coral:hover { background: var(--lp-coral-hover); color: #fff; }
.lp-btn--teal { background: var(--lp-teal); color: #fff; }
.lp-btn--teal:hover { background: var(--lp-teal-hover); color: #fff; }
.lp-btn--outline { background: transparent; color: var(--lp-ink); border-color: rgba(11, 59, 55, .25); }
.lp-btn--outline:hover { border-color: var(--lp-ink); background: #fff; }
.lp-btn--light { background: transparent; color: #faf7f0; border-color: rgba(250, 247, 240, .45); }
.lp-btn--light:hover { border-color: #faf7f0; background: rgba(250, 247, 240, .08); color: #fff; }
.lp-btn i { font-size: .95em; }

/* ---------- Hero ---------- */
.lp-hero { position: relative; overflow: hidden; border-radius: 28px; margin-top: .5rem;
  background:
    radial-gradient(60rem 30rem at 50% -10%, rgba(15, 118, 110, .10), transparent 70%),
    var(--lp-canvas);
}
.lp-hero::before { /* faint eight-point star lattice */
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23e5dcc0' stroke-width='1'%3E%3Crect x='24' y='24' width='24' height='24'/%3E%3Crect x='24' y='24' width='24' height='24' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.lp-hero__inner { position: relative; text-align: center; padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem); }
.lp-pill {
  display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .95rem .45rem .5rem;
  border-radius: 999px; background: #fff; border: 1px solid var(--lp-border);
  font: 500 .875rem/1 var(--lp-text); color: var(--lp-ink); margin: 0 0 1.6rem;
}
.lp-pill b { white-space: nowrap; font-weight: 600; background: var(--lp-sand-light); color: #5c4a1a; border-radius: 999px; padding: .3rem .6rem; font-size: .78rem; }
.lp .lp-hero h1 {
  display: block !important; /* global-standards.css hides h1 site-wide */
  font-family: var(--lp-display); font-weight: 800; color: var(--lp-ink);
  font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.05; letter-spacing: -0.03em;
  margin: 0 auto; max-width: 15ch; text-wrap: balance;
}
.lp-hero h1 em { font-style: normal; color: var(--lp-teal); }
.lp-hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.65; color: var(--lp-body); max-width: 40rem; margin: 1.4rem auto 0; }
.lp-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2.2rem; }
.lp-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; margin: 2.4rem 0 0; padding: 0; list-style: none; }
.lp-trust li { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--lp-body); font-weight: 500; }
.lp-trust i { color: var(--lp-teal); }

/* ---------- Features ---------- */
.lp-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.lp-feature {
  background: #fff; border: 1px solid var(--lp-border); border-radius: 20px; padding: 1.6rem 1.5rem 1.5rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.lp-feature:hover { border-color: rgba(15, 118, 110, .35); box-shadow: 0 14px 32px rgba(11, 59, 55, .08); transform: translateY(-2px); }
.lp-feature__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #e1f0ec; color: var(--lp-teal); margin-bottom: 1.1rem; }
.lp-feature__icon i { font-size: 1.2rem; }
.lp-feature h3 { font-family: var(--lp-display); font-weight: 700; color: var(--lp-ink); font-size: 1.15rem; letter-spacing: -0.015em; margin: 0 0 .45rem; }
.lp-feature p { margin: 0; font-size: .975rem; line-height: 1.6; color: var(--lp-body); }
.lp-more { text-align: center; margin-top: 2rem; }

/* ---------- School spotlight ---------- */
.lp-school {
  max-width: 54rem; margin: 0 auto; background: #fff; border: 1px solid var(--lp-border); border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 2.75rem); display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center;
}
.lp-school__tag { font: 600 .78rem/1 var(--lp-text); letter-spacing: .08em; text-transform: uppercase; color: var(--lp-subtle); margin: 0 0 .7rem; }
.lp-school h3 { font-family: var(--lp-display); font-weight: 800; color: var(--lp-ink); font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
.lp-school__place { display: inline-flex; align-items: center; gap: .45rem; color: var(--lp-teal); font-weight: 500; margin: .6rem 0 1.2rem; }
.lp-school blockquote { margin: 0; padding-left: 1rem; border-left: 3px solid var(--lp-coral); font-size: 1.05rem; line-height: 1.6; color: var(--lp-ink); font-style: italic; }
.lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--lp-sand-light); border-radius: 18px; }
.lp-stat { text-align: center; padding: 1.4rem .5rem; }
.lp-stat + .lp-stat { border-left: 1px solid var(--lp-border); }
.lp-stat strong { display: block; font-family: var(--lp-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--lp-ink); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.lp-stat span { display: block; font-size: .875rem; color: var(--lp-body); margin-top: .5rem; font-weight: 500; }

/* ---------- Steps ---------- */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; position: relative; counter-reset: step; }
.lp-steps::before { content: ""; position: absolute; top: 26px; left: 12.5%; right: 12.5%; height: 2px; background: repeating-linear-gradient(90deg, var(--lp-border) 0 8px, transparent 8px 14px); }
.lp-step { position: relative; text-align: center; padding: 0 .5rem; }
.lp-step__num {
  width: 52px; height: 52px; margin: 0 auto 1.1rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--lp-teal); color: #fff; font: 700 1.15rem/1 var(--lp-display); box-shadow: 0 0 0 6px var(--lp-sand-light);
}
.lp-step h3 { font-family: var(--lp-display); font-weight: 700; color: var(--lp-ink); font-size: 1.15rem; margin: 0 0 .4rem; letter-spacing: -0.015em; }
.lp-step p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--lp-body); }
.lp-note { text-align: center; margin: 2.2rem 0 0; font-size: .95rem; color: var(--lp-body); }
.lp-note strong { color: var(--lp-teal); }

/* ---------- Closing CTA ---------- */
.lp-cta {
  background: var(--lp-ink); color: #faf7f0; border-radius: 28px; text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) max(16px, 2vw); margin-block: clamp(2rem, 5vw, 3.5rem) 1rem; position: relative; overflow: hidden;
}
.lp-cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; box-shadow: inset -40px 30px 0 0 rgba(232, 220, 196, .12); }
.lp-cta h2 { font-family: var(--lp-display); font-weight: 800; color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.12; margin: 0 auto; max-width: 22ch; text-wrap: balance; }
.lp-cta p { color: rgba(250, 247, 240, .8); font-size: 1.08rem; line-height: 1.6; margin: .9rem auto 0; max-width: 36rem; }
.lp-cta .lp-hero__cta { margin-top: 1.8rem; }

/* ---------- Footer (index.html) ---------- */
footer.lp-footer { background: transparent; border: 0; padding: 0; margin: 0; box-shadow: none; }
.lp-footer__inner { max-width: var(--lp-max); margin: 0 auto; padding: 2rem max(16px, 2vw) 1.5rem; font-family: var(--lp-text); }
.lp-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--lp-border); }
.lp-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.lp-brand__name { font-family: var(--lp-display); font-weight: 800; font-size: 1.15rem; color: var(--lp-ink); letter-spacing: -0.02em; }
.lp-brand__name span { color: var(--lp-teal); font-weight: 700; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.lp-footer nav a { color: var(--lp-body); text-decoration: none; font-weight: 500; font-size: .95rem; }
.lp-footer nav a:hover { color: var(--lp-teal); }
.lp-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.lp-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem; border-radius: 999px; background: #fff; border: 1px solid var(--lp-border); font-size: .8rem; font-weight: 600; color: var(--lp-ink); }
.lp-badge i { color: var(--lp-teal); }
.lp-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-top: 1rem; font-size: .85rem; color: var(--lp-subtle); }

/* ---------- Public modals: login, free trial, pricing, terms ---------- */
:is(#loginModal, #contact-modal, #pricing-modal, #terms-modal) { background: rgba(7, 40, 37, .55) !important; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
:is(#loginModalContent, #contact-modal > div, #pricing-modal > div, #terms-modal > div) {
  box-sizing: border-box; max-width: 440px !important; max-height: 90vh; overflow-y: auto;
  border-radius: 20px !important; background: #fff !important; border: 0 !important;
  box-shadow: 0 24px 64px rgba(7, 40, 37, .28) !important; font-family: var(--lp-text);
}
:is(#contact-modal, #pricing-modal, #terms-modal) > div { padding: 2rem 1.75rem 1.75rem !important; }
#loginModalContent { padding: 2rem 1.75rem 1.5rem !important; }
.lp-modal-logo { display: flex; justify-content: center; margin-bottom: .9rem; }
:is(#loginModalContent h2, #contact-modal h2, #pricing-modal h2.pricing-calculator-title, #terms-modal h1) {
  font-family: var(--lp-display) !important; font-weight: 800 !important; color: var(--lp-ink) !important;
  -webkit-text-fill-color: currentColor !important; background: none !important;
  letter-spacing: -0.025em; text-align: center; font-size: 1.55rem !important; margin: 0 0 .35rem !important;
}
#terms-modal h1 { display: block !important; }
#loginModalContent > p { color: var(--lp-body) !important; font-size: .95rem !important; margin: 0 0 1.4rem !important; }
:is(#loginModalContent, #contact-modal) label { font-weight: 600 !important; font-size: .875rem !important; color: var(--lp-ink) !important; margin-bottom: .4rem !important; }
:is(#loginModalContent, #contact-modal) :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], textarea) {
  width: 100%; box-sizing: border-box !important; height: auto; padding: .75rem .9rem !important; font-size: 1rem !important; font-family: var(--lp-text) !important;
  border: 1.5px solid #d8cdb0 !important; border-radius: 12px !important; background: #fff !important; color: var(--lp-ink);
}
:is(#loginModalContent, #contact-modal) :is(input, textarea):focus { outline: none; border-color: var(--lp-teal) !important; box-shadow: 0 0 0 4px rgba(15, 118, 110, .18) !important; }
:is(#loginSubmitBtn, #contact-modal button[type="submit"]) {
  height: 3rem; border-radius: 999px !important; background: var(--lp-teal) !important; box-shadow: none !important;
  color: #fff !important; font: 600 1rem/1 var(--lp-text) !important; border: 0 !important; margin-top: .3rem; transform: none !important;
}
:is(#loginSubmitBtn, #contact-modal button[type="submit"]):hover { background: var(--lp-teal-hover) !important; }
#contact-form { gap: .75rem !important; }
#contact-form textarea { height: 5rem; min-height: 5rem; }
#contact-modal > div > div:not(:has(*)) { text-align: center; color: var(--lp-body) !important; font-size: .95rem !important; margin-bottom: 1.2rem !important; }




/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-school { grid-template-columns: 1fr; }
  .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .lp-steps::before { display: none; }
}
@media (max-width: 600px) {
  .lp-features { grid-template-columns: 1fr; }
  .lp-hero, .lp-section--sand, .lp-cta { border-radius: 20px; }
  .lp-hero__cta .lp-btn { width: 100%; }
  .lp-pill { flex-wrap: wrap; justify-content: center; padding: .45rem .75rem; font-size: .8125rem; }
  .lp-trust { flex-direction: column; align-items: center; gap: .6rem; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-footer__top, .lp-footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-feature, .lp-btn { transition: none; }
  .lp-feature:hover { transform: none; }
}

/* ---------- Standalone public pages (About, etc.): top bar ---------- */
body.lp-page { margin: 0; background: #fff; }
.lp-topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--lp-ink); box-shadow: inset 0 -2px 0 rgba(232, 220, 196, .85); }
.lp-topbar__inner { max-width: var(--lp-max); margin: 0 auto; padding: .7rem max(16px, 2vw); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lp-topbar .lp-brand__name { color: #fff; }
.lp-topbar .lp-brand__name span { color: var(--lp-sand); }
.lp-topbar nav { display: flex; align-items: center; gap: .5rem; }
.lp-topbar nav a.lp-navlink { color: rgba(250, 247, 240, .85); text-decoration: none; font: 600 .9rem/1 var(--lp-text); padding: .6rem .9rem; border-radius: 999px; }
.lp-topbar nav a.lp-navlink:hover { background: rgba(232, 220, 196, .14); color: #fff; }
.lp-topbar .lp-btn { height: 2.4rem; padding: 0 1.1rem; font-size: .9rem; }

/* ---------- About page ---------- */
.lp-hero__inner--compact { padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.lp-mission { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.lp-mission p:not(.lp-eyebrow) { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.75; color: var(--lp-ink); margin: 1rem 0 0; }
.lp-mission__card { background: var(--lp-sand-light); border-radius: 24px; padding: 1.75rem; }
.lp-mission__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.lp-mission__card li { display: flex; gap: .75rem; align-items: flex-start; color: var(--lp-ink); font-weight: 500; line-height: 1.45; }
.lp-mission__card li i { color: var(--lp-teal); margin-top: .2rem; }
.lp-statband { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--lp-border); border-radius: 24px; overflow: hidden; }
.lp-statband .lp-stat { padding: 1.8rem .75rem; }
.lp-disclaimer { max-width: 56rem; margin: 1rem 0 0; font-size: .78rem; line-height: 1.6; color: var(--lp-subtle); }
@media (max-width: 960px) {
  .lp-mission { grid-template-columns: 1fr; }
  .lp-statband { grid-template-columns: repeat(2, 1fr); }
  .lp-statband .lp-stat:nth-child(3) { border-left: 0; }
  .lp-statband .lp-stat:nth-child(n+3) { border-top: 1px solid var(--lp-border); }
}
@media (max-width: 600px) {
  .lp-topbar nav a.lp-navlink { display: none; }
}

.lp-page .lp-section--sand { margin-inline: max(12px, 1.5vw); }
