/* ==========================================================================
   Home page only. Shared pieces (buttons, header, footer, tabs, FAQ, section
   heads) live in main.css. Every colour here comes from the tokens in main.css,
   so light and dark both work. The hero, the map and the pricing banner stay
   dark in both themes on purpose: they sit on photographs / a night map.
   ========================================================================== */

/* ---------- Hero ---------- */
.lp-hero {
  position: relative; min-height: calc(94svh - var(--header-h)); display: flex; align-items: flex-end;
  padding-top: clamp(6rem, 14vw, 9rem); overflow: hidden; isolation: isolate; color: #F7F4FF;
  background: #0E0D1F; border-bottom: 2px solid var(--edge);
}
.lp-hero__photo { position: absolute; inset: 0; z-index: -1; }
.lp-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.lp-hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, #0E0D1F 2%, rgba(14, 13, 31, .35) 40%, rgba(29, 59, 179, .2) 70%, rgba(14, 13, 31, .25) 100%),
    linear-gradient(100deg, rgba(14, 13, 31, .6), transparent 58%);
}
:root[data-theme="dark"] .lp-hero__photo::after {
  background:
    linear-gradient(0deg, #0E0D1F 2%, rgba(14, 13, 31, .35) 38%, rgba(39, 71, 201, .2) 68%, rgba(91, 42, 134, .3) 100%),
    linear-gradient(100deg, rgba(14, 13, 31, .55), transparent 55%);
}
.lp-hero__inner { padding-bottom: clamp(4rem, 8vw, 5.5rem); }
.lp-hero__content { max-width: 680px; }
.lp-hero__title { font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.15; margin: 0; letter-spacing: -.01em; text-shadow: 0 4px 30px rgba(0, 0, 0, .4); }
:root[data-lang="en"] .lp-hero__title { letter-spacing: -.025em; line-height: 1.05; }
.lp-hero__lede { margin: 1.5rem 0 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.15rem); line-height: 1.75; color: rgba(247, 244, 255, .78); max-width: 32rem; }
.lp-ctas { display: flex; gap: 1rem; margin-top: 2.1rem; flex-wrap: wrap; }
.btn--on-photo { color: #F7F4FF; border-color: rgba(247, 244, 255, .35); background: rgba(14, 13, 31, .25); }
.btn--on-photo:hover { border-color: #F7F4FF; }
.lp-hero .btn--gold { box-shadow: 5px 5px 0 0 #05040B; border-color: #05040B; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 1.75rem; display: flex; align-items: center; gap: .6rem; font-size: .7rem; color: rgba(247, 244, 255, .7); }
.scroll-cue svg { width: 16px; height: 24px; }
@media (max-width: 760px) {
  /* bring the doorway and the sunrise into frame on phones */
  .lp-hero__photo img { object-position: 71% 55%; }
  .lp-hero__photo::after { background: linear-gradient(0deg, #0E0D1F 6%, rgba(14, 13, 31, .55) 42%, rgba(14, 13, 31, .05) 72%, rgba(14, 13, 31, .2) 100%); }
  .lp-hero { min-height: calc(88svh - var(--header-h)); }
  .scroll-cue { display: none; }
  .lp-ctas .btn { flex: 1 1 100%; }
}

/* ---------- Vision: ummah map ---------- */
.vision-lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); line-height: 1.85; color: var(--ink-2); max-width: 46rem; margin: 0 0 2.5rem; }
.vision-lede b { color: var(--ink); font-weight: 600; }
.vision-stats { display: flex; flex-wrap: wrap; }
.vs-item { flex: 1; min-width: 140px; padding: 1rem 1.25rem; border-left: 2px solid var(--line); }
.vs-item:first-child { border-left: 0; padding-left: 0; }
.vs-num { display: block; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; color: var(--warm); line-height: 1.1; }
.vs-label { display: block; margin-top: .35rem; font-size: .8rem; color: var(--ink-3); }
.ummah-map { position: relative; border: 2px solid var(--edge); background: #060a16; box-shadow: 6px 6px 0 0 var(--drop); aspect-ratio: 2.15 / 1; margin-top: 2.25rem; }
.ummah-map canvas { display: block; width: 100%; height: 100%; cursor: pointer; touch-action: pan-y; }
.umw-corner { position: absolute; width: 22px; height: 22px; z-index: 3; pointer-events: none; }
.umw-tl { top: -2px; left: -2px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.umw-tr { top: -2px; right: -2px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.umw-bl { bottom: -2px; left: -2px; border-bottom: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.umw-br { bottom: -2px; right: -2px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.uc-caption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .6rem; padding: .9rem 1.1rem; background: linear-gradient(0deg, rgba(6, 10, 22, .95), rgba(6, 10, 22, .5) 70%, transparent); font-size: .85rem; color: var(--gold-glow); font-weight: 600; pointer-events: none; }
.uc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; position: relative; }
.uc-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--gold); animation: pulseDot 2s ease-out infinite; }
@keyframes pulseDot { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
.ummah-caption { margin: 1.4rem 0 0; font-size: .95rem; line-height: 1.85; color: var(--ink-2); max-width: 48rem; }
.ummah-points { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.9rem; }
.ummah-points li { display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; color: var(--ink-2); line-height: 1.6; }
.ummah-points svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--warm); }

/* ---------- Concept: amanah balance ---------- */
.amanah-scale { display: flex; justify-content: center; margin-bottom: .4rem; }
.amanah-scale svg { width: min(640px, 92%); }
.scale-beam { transform-box: view-box; transform-origin: 350px 26px; animation: scaleSway 5.5s ease-in-out infinite alternate; }
@keyframes scaleSway { 0% { transform: rotate(-1.8deg); } 100% { transform: rotate(1.8deg); } }
.amanah-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.amanah-panel { background: var(--surface); border: 2px solid var(--edge); padding: clamp(1.5rem, 3vw, 2.1rem) clamp(1.25rem, 2.8vw, 1.9rem); box-shadow: 6px 6px 0 0 var(--drop); }
.amanah-panel--maqam { box-shadow: 6px 6px 0 0 var(--gold); }
.amanah-panel__label { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; padding: .3rem .9rem; border: 2px solid var(--edge); margin-bottom: 1.25rem; }
.amanah-panel--maqam .amanah-panel__label { background: var(--gold); color: var(--gold-ink); }
.amanah-panel--duty .amanah-panel__label { background: var(--violet); color: #fff; border-color: var(--violet); }
.amanah-panel h3 { font-size: 1.2rem; margin-bottom: .8rem; line-height: 1.4; }
.amanah-panel p { font-size: .95rem; line-height: 1.85; color: var(--ink-2); margin: 0; }
.amanah-panel__cite { display: block; margin-top: .9rem; font-size: .8rem; color: var(--ink-3); font-style: italic; }
.amanah-bridge { text-align: center; margin: 2rem auto 0; font-size: .98rem; color: var(--ink-2); max-width: 36rem; line-height: 1.8; }
.amanah-bridge b { color: var(--warm); }

/* ---------- Who it's for ---------- */
.who-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; position: relative; }
.who-grid::before { content: ""; position: absolute; top: 0; left: 6%; right: 6%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); }
.who-card {
  --stage: var(--hi);
  position: relative; background: var(--surface); border: 2px solid var(--edge); padding: 1.6rem 1.35rem 1.4rem;
  box-shadow: 5px 5px 0 0 var(--drop); transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.who-card:nth-child(2) { --stage: #3E8E68; }
.who-card:nth-child(3) { --stage: var(--warm); }
.who-card:nth-child(4) { --stage: var(--violet-soft); }
:root[data-theme="dark"] .who-card:nth-child(2) { --stage: #5FAE88; }
.who-card:hover { border-color: var(--stage); transform: translateY(-5px); box-shadow: 7px 7px 0 0 var(--drop); }
.who-card__dot { position: absolute; top: -11px; left: 1.35rem; width: 22px; height: 22px; border-radius: 50%; background: var(--stage); border: 2px solid var(--edge); display: grid; place-items: center; font-size: .65rem; font-weight: 700; color: #fff; }
.who-card__ic { width: 30px; height: 30px; margin-bottom: 1rem; color: var(--stage); }
.who-card h3 { font-size: 1rem; margin-bottom: .45rem; line-height: 1.4; }
.who-card p { font-size: .85rem; color: var(--ink-2); line-height: 1.65; margin: 0; }
.js .who-card { opacity: 0; transform: translateY(16px); }
.js .who-card.in-view { animation: cardUp .55s ease forwards; }
.who-card:nth-child(2).in-view { animation-delay: .08s; } .who-card:nth-child(3).in-view { animation-delay: .16s; } .who-card:nth-child(4).in-view { animation-delay: .24s; }
@keyframes cardUp { to { opacity: 1; transform: none; } }

/* ---------- Closing statement ---------- */
.closing { max-width: 780px; }
.closing h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.3; margin: 0; }
.closing p { margin: 1.4rem 0 0; font-size: 1.05rem; line-height: 1.8; color: var(--ink-2); max-width: 36rem; }

/* ---------- Book showcase ---------- */
.book-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 4rem); align-items: center; }
.book-stage { perspective: 1000px; }
.book-tilt { display: block; position: relative; max-width: 300px; margin: 0 auto; transform-style: preserve-3d; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.book-tilt img { border: 2px solid var(--edge); box-shadow: 10px 10px 0 0 var(--drop); }
.book-details__badge { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--gold-ink); background: var(--gold); padding: .3rem .9rem; border: 2px solid var(--edge); margin-bottom: 1.3rem; }
.book-details h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0; }
.book-details__tagline { margin: .8rem 0 0; font-size: 1.1rem; color: var(--warm); font-weight: 600; }
.book-details__desc { margin: 1.3rem 0 0; font-size: 1rem; line-height: 1.8; color: var(--ink-2); max-width: 30rem; }
.book-meta { display: flex; flex-wrap: wrap; margin: 1.8rem 0 0; }
.book-meta div { padding: 0 1.75rem; border-left: 2px solid var(--line); display: flex; flex-direction: column; }
.book-meta div:first-child { padding-left: 0; border-left: 0; }
.book-meta dd { margin: 0; font-size: 1.2rem; font-weight: 700; }
.book-meta dt { margin-top: .2rem; font-size: .78rem; color: var(--ink-3); }

/* ---------- Pricing ---------- */
.pricing-banner { position: relative; height: 300px; overflow: hidden; border: 2px solid var(--edge); margin-bottom: 3.5rem; background: #0E0D1F; }
.pricing-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 35%; }
.pricing-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0E0D1F 6%, rgba(14, 13, 31, .6) 48%, rgba(14, 13, 31, .15) 100%); }
.pricing-banner__quote { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; margin: 0; padding: 0 clamp(1.25rem, 3vw, 2.25rem) 2rem; font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 600; line-height: 1.55; max-width: 40rem; color: #F7F4FF; text-shadow: 0 4px 20px rgba(0, 0, 0, .5); }
.pricing-banner__quote b { color: var(--gold-glow); }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 2px solid var(--edge); padding: 2.1rem 1.75rem 1.75rem; box-shadow: 6px 6px 0 0 var(--drop);
  transition: transform .3s ease, box-shadow .3s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 0 var(--drop); }
.price-card--featured { background: color-mix(in srgb, var(--cobalt) 7%, var(--surface)); box-shadow: 6px 6px 0 0 var(--gold); }
:root[data-theme="dark"] .price-card--featured { background: linear-gradient(170deg, rgba(91, 42, 134, .45), rgba(39, 71, 201, .18)); }
.price-card__badge { position: absolute; top: -15px; right: 1.4rem; background: var(--gold); color: var(--gold-ink); font-size: .72rem; font-weight: 700; padding: .3rem .9rem; border-radius: var(--pill); border: 2px solid var(--edge); }
.price-card h3 { font-size: 1.1rem; margin: 0; }
.price-card__price { margin: .7rem 0 0; font-size: 1.8rem; font-weight: 700; color: var(--warm); line-height: 1.2; }
.price-card__tag { margin: .3rem 0 0; font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.price-card__desc { margin: .9rem 0 0; font-size: .85rem; color: var(--ink-2); line-height: 1.65; }
.price-card ul { list-style: none; margin-top: 1.1rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.price-card li { font-size: .82rem; color: var(--ink-2); display: flex; gap: .55rem; line-height: 1.55; }
.price-card li svg { width: 14px; height: 14px; flex: none; margin-top: 4px; color: #3E8E68; }
.price-card__note { margin: 1rem 0 0; font-size: .76rem; color: var(--ink-3); font-style: italic; line-height: 1.6; border-top: 1px solid var(--line); padding-top: .8rem; }
.price-card .btn { margin-top: 1.25rem; width: 100%; }
.refund-note { margin: 1.6rem auto 0; text-align: center; font-size: .88rem; color: var(--ink-3); max-width: 34rem; line-height: 1.6; }
.price-scarcity { margin: 1.9rem auto 0; text-align: center; font-size: clamp(1.25rem, 3vw, 1.8rem); font-weight: 700; color: var(--warm); border: 2px solid var(--edge); background: color-mix(in srgb, var(--gold) 12%, transparent); padding: .9rem 1.8rem; width: fit-content; box-shadow: 5px 5px 0 0 var(--drop); }
.pricing-philosophy { margin: 3.25rem auto 0; text-align: center; max-width: 40rem; font-size: 1.05rem; line-height: 1.9; color: var(--ink-2); }

/* ---------- Cards for volumes and paid products ---------- */
.vol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.paid-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
.lp-card { display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--edge); box-shadow: 6px 6px 0 0 var(--drop); overflow: hidden; }
.lp-card__cover { display: block; aspect-ratio: 2 / 3; overflow: hidden; border-bottom: 2px solid var(--edge); }
.lp-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
a.lp-card__cover:hover img { transform: scale(1.03); }
.lp-card__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.lp-card__body h3 { font-size: 1.1rem; margin: 0 0 .6rem; line-height: 1.4; }
.lp-card__body p { font-size: .88rem; color: var(--ink-2); line-height: 1.7; margin: 0; }
.lp-card__body .btn { margin-top: auto; }
.lp-card__body p + .btn, .lp-card__note + .btn { margin-top: 1.1rem; }
.lp-card__eyebrow { font-size: .72rem; color: var(--ink-3); margin-bottom: .35rem; }
.lp-card__note { margin-top: .8rem !important; font-size: .75rem !important; color: var(--ink-3) !important; font-style: italic; }
.vol-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 700; padding: .3rem .8rem; border-radius: var(--pill); margin-bottom: .9rem; }
.vol-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.vol-badge--live { background: var(--gold); color: var(--gold-ink); }
.vol-badge--coming { border: 2px solid var(--hi); color: var(--hi); }
.vol-badge--planned { border: 2px solid var(--violet-soft); color: var(--violet-soft); }
.cover-placeholder { width: 100%; height: 100%; position: relative; overflow: hidden; background: linear-gradient(160deg, #5B2A86 0%, #5B2A86 48%, #2747C9 48%, #2747C9 100%); }
.cp-circle { position: absolute; top: -34px; right: -34px; width: 120px; height: 120px; border-radius: 50%; background: var(--gold); opacity: .92; }
.cp-diamond { position: absolute; bottom: 16px; left: 16px; width: 42px; height: 42px; background: #1F6B4E; transform: rotate(45deg); opacity: .9; }
.cp-letter { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; background: #0E0D1F; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 700; color: var(--gold); z-index: 2; }
.cp-tag { position: absolute; top: 12px; left: 12px; z-index: 3; font-size: .65rem; font-weight: 700; background: var(--gold); color: var(--gold-ink); padding: .25rem .65rem; border-radius: var(--pill); }
.price-pill { display: inline-flex; align-items: center; background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: .85rem; padding: .15rem .75rem; border-radius: var(--pill); margin-left: .6rem; vertical-align: middle; }
.lp-note { margin: 1.8rem 0 0; text-align: center; font-size: .9rem; color: var(--ink-3); line-height: 2; }
.concept-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--warm); border-bottom: 2px solid var(--gold); text-decoration: none; padding-bottom: 1px; }
.concept-link:hover { color: var(--ink); }

/* ---------- Tools tabs ---------- */
.tool-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.75rem; }
.tool-list li { display: flex; gap: .8rem; padding: .9rem .3rem; border-bottom: 1px solid var(--line); }
.tool-list .cn { flex: none; min-width: 1.4rem; color: var(--hi); font-weight: 700; font-size: .85rem; }
.tool-list__name { display: block; font-weight: 600; color: var(--ink); text-decoration: none; margin-bottom: .2rem; }
.tool-list__name:hover { color: var(--hi); }
.tool-list__desc { color: var(--ink-2); font-size: .85rem; line-height: 1.6; }

/* ---------- Author ---------- */
.author-card { position: relative; overflow: hidden; background: var(--surface); border: 2px solid var(--edge); box-shadow: 7px 7px 0 0 var(--drop); padding: clamp(1.75rem, 4vw, 2.75rem); display: grid; grid-template-columns: 150px 1fr; gap: 2rem; align-items: center; }
.author-card::before { content: ""; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%); pointer-events: none; }
.author-card__mark { position: relative; }
.author-card__photo { width: 150px; aspect-ratio: 3 / 4; border: 2px solid var(--edge); box-shadow: 6px 6px 0 0 var(--drop); position: relative; z-index: 2; overflow: hidden; }
.author-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.author-card__diamond { position: absolute; bottom: -10px; left: -10px; width: 26px; height: 26px; background: #1F6B4E; border: 2px solid var(--edge); transform: rotate(45deg); z-index: 1; }
.author-card__text { position: relative; z-index: 1; }
.author-card__text h2 { font-size: 1.2rem; margin: 0 0 .35rem; }
.author-card__role { display: block; font-size: .85rem; color: var(--warm); margin-bottom: .9rem; }
.author-card__text p { font-size: .95rem; line-height: 1.8; color: var(--ink-2); max-width: 38rem; margin: 0 0 1.1rem; }
.author-card__stats { display: flex; gap: .6rem; flex-wrap: wrap; }
.author-card__stats > span { font-size: .78rem; font-weight: 600; color: var(--ink-2); border: 2px solid var(--line); border-radius: var(--pill); padding: .3rem .9rem; }
.author-card__stats b { color: var(--warm); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .ummah-points, .amanah-grid, .book-wrap, .author-card { grid-template-columns: 1fr; }
  .ummah-map { aspect-ratio: 1.3 / 1; }
  .who-grid { grid-template-columns: 1fr 1fr; row-gap: 1.6rem; }
  .who-grid::before { display: none; }
  .price-grid, .paid-grid { grid-template-columns: 1fr; }
  .price-grid { max-width: 560px; margin-inline: auto; }
  .vol-grid { grid-template-columns: 1fr 1fr; }
  .tool-list { grid-template-columns: 1fr; }
  .pricing-banner { height: 230px; }
}
@media (max-width: 560px) {
  .who-grid, .vol-grid { grid-template-columns: 1fr; }
  .book-meta { gap: 1rem 0; }
  .book-meta div { padding: 0 1.1rem; }
  .vs-item { min-width: 0; flex: 1 1 33%; padding: .75rem .8rem; }
  .vs-item:nth-child(3) { flex-basis: 100%; border-left: 0; padding-left: 0; border-top: 2px solid var(--line); }
  .price-card__badge { right: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .js .who-card { opacity: 1; transform: none; }
  .scale-beam { animation: none; }
}
