/* Hafiz — editorial brand landing */
:root {
  --parchment: #fbf9f2;
  --parchment-deep: #f3f1e8;
  --teal: #032c27;
  --teal-ink: #021f1b;
  --gold: #af8644;
  --gold-soft: #c9a35e;
  --ink: #1e2a28;
  --mute: #5f6b67;
  --border: #ddd6c7;
  --font: "Alexandria", "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --hairline: 1px solid var(--border);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --section: clamp(5.5rem, 12vw, 7.5rem);
  --wrap: min(62.5rem, calc(100% - 2.5rem)); /* ~1000px */
  --atmosphere-opacity: 0.17;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size-adjust: from-font;
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  position: relative;
  min-height: 100dvh;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -3rem;
  z-index: 200;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--parchment);
  text-decoration: none;
  font-weight: 800;
}

.skip-link:focus {
  top: 1.25rem;
}

/* Architectural photograph — not a tile pattern */
.page-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-atmosphere__stack {
  position: absolute;
  inset: 0;
}

.page-atmosphere__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  opacity: 0;
  filter: saturate(0.5) contrast(0.92) brightness(1.1);
  transition: opacity 1.1s var(--ease);
}

.page-atmosphere__img.is-active {
  opacity: var(--atmosphere-opacity);
}

.page-atmosphere__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--parchment) 42%, transparent) 0%,
      color-mix(in srgb, var(--parchment) 62%, transparent) 36%,
      color-mix(in srgb, var(--parchment) 78%, transparent) 100%
    );
}

/* Dual top rule: teal → gold, 2px */
.brand-bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  background: linear-gradient(
    90deg,
    var(--teal) 0%,
    var(--teal) 46%,
    var(--gold) 46%,
    var(--gold) 100%
  );
  pointer-events: none;
}

.scroll-progress {
  position: fixed;
  inset: 2px 0 auto 0;
  height: 1px;
  z-index: 119;
  background: color-mix(in srgb, var(--gold) 70%, white);
  transform-origin: right center;
  transform: scaleX(0);
  pointer-events: none;
}

.micro-nav,
.hero,
main,
.footer {
  position: relative;
  z-index: 1;
}

/* Tiny utility links — not a SaaS navbar */
.micro-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.35rem;
  width: var(--wrap);
  margin-inline: auto;
  padding: 0.85rem 0 0.15rem;
}

.micro-nav a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--mute) 88%, var(--teal));
  opacity: 0.72;
}

.micro-nav a:hover {
  opacity: 1;
  color: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.75rem 1.7rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--teal);
  color: var(--parchment);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--teal) 88%, black);
}

.btn--ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn--ghost:hover {
  background: color-mix(in srgb, var(--teal) 6%, transparent);
}

/* —— Hero —— */
.hero {
  min-height: auto;
  display: grid;
  place-items: start center;
  padding: 0.35rem 1.25rem clamp(3rem, 7vw, 4.5rem);
}

.hero__copy {
  width: min(42rem, 100%);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding-top: 0;
}

.hero__brand {
  display: inline-flex;
  text-decoration: none;
  margin-bottom: 0.15rem;
}

.hero__brand img {
  width: clamp(14rem, 38vw, 22rem); /* LOGO1 tight wordmark ~744×366 */
  height: auto;
  aspect-ratio: 744 / 366;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px color-mix(in srgb, var(--teal) 10%, transparent));
}

.hero__title {
  font-size: clamp(2.6rem, 6.2vw, 4.75rem); /* ~72–80px */
  font-weight: 800;
  line-height: 1.2;
  color: var(--teal);
  letter-spacing: -0.02em;
  max-width: 12ch;
  margin-top: 0;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  color: var(--mute);
  line-height: 1.7;
  max-width: 28ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

/* —— Sections —— */
.section {
  padding: var(--section) 0;
}

.section__wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.section__wrap--narrow {
  width: min(40rem, calc(100% - 2.5rem));
}

.section__title {
  text-align: center;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 800;
  color: var(--teal);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.25rem);
}

.section__header .section__title {
  margin-bottom: 0.85rem;
}

.section__lead {
  margin: 0 auto;
  max-width: 36rem;
  font-size: clamp(1.02rem, 1.8vw, 1.12rem);
  font-weight: 600;
  line-height: 1.7;
  color: color-mix(in srgb, var(--teal) 78%, var(--mute));
}

/* —— Journey hub: Hafiz as connection center —— */
.hub {
  margin: 0 auto clamp(2.75rem, 5vw, 3.75rem);
  max-width: 24rem;
}

.hub__frame {
  position: relative;
  aspect-ratio: 1;
  padding: 1.85rem;
}

.hub__art {
  width: 100%;
  height: auto;
}

.hub__core {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  font-size: clamp(1.15rem, 3.2vw, 1.35rem);
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 0.02em;
  line-height: 1;
  pointer-events: none;
}

.hub__node {
  position: absolute;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1.2;
  white-space: nowrap;
}

.hub__node--mosque {
  top: 0.05rem;
  left: 50%;
  translate: -50% 0;
}

.hub__node--student {
  bottom: 0.05rem;
  left: 50%;
  translate: -50% 0;
}

.hub__node--teacher {
  top: 50%;
  right: 0.05rem;
  translate: 0 -50%;
}

.hub__node--parent {
  top: 50%;
  left: 0.05rem;
  translate: 0 -50%;
}

/* —— Real product glimpse (optional asset) —— */
.product-shot {
  margin: 0 auto clamp(2.75rem, 5vw, 3.75rem);
  max-width: 17.5rem;
  text-align: center;
}

.product-shot__img {
  width: 100%;
  height: auto;
  border-radius: 1.15rem;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--border));
  background: var(--parchment-deep);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--teal) 12%, transparent);
}

.product-shot__caption {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mute);
  line-height: 1.55;
}

/* —— Journey loop: vertical sequence, not feature grid —— */
.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 34rem;
  margin-inline: auto;
  border-block: var(--hairline);
}

.journey__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem 1.35rem;
  align-items: start;
  padding: 1.35rem 0.15rem;
  border-bottom: var(--hairline);
}

.journey__item:last-child {
  border-bottom: 0;
}

.journey__num {
  font-size: clamp(1.65rem, 3.5vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--gold);
  letter-spacing: 0.02em;
  min-width: 2.4ch;
}

.journey__copy h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--teal);
}

.journey__copy p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--mute);
  line-height: 1.65;
}

.journey__close {
  margin: clamp(2rem, 4vw, 2.75rem) auto 0;
  max-width: 34rem;
  text-align: center;
  font-size: clamp(1.02rem, 1.8vw, 1.12rem);
  font-weight: 700;
  line-height: 1.75;
  color: var(--teal);
  padding-block: 0.25rem;
}

/* —— Audience strip: four roles, hairlines only —— */
.audience {
  margin-top: clamp(3rem, 6vw, 4rem);
  border-block: var(--hairline);
  padding-block: clamp(2rem, 4vw, 2.75rem);
}

.audience__title {
  margin: 0 0 0.65rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--teal);
}

.audience__lead {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  text-align: center;
  font-size: 0.96rem;
  color: var(--mute);
  line-height: 1.7;
}

.audience__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  text-align: center;
}

.audience__item {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  padding: 0.35rem 1rem;
  border-inline-start: var(--hairline);
}

.audience__item:first-child {
  border-inline-start: 0;
}

.audience__item strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--teal);
}

.audience__item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--mute);
  max-width: 16ch;
  line-height: 1.6;
}

/* —— Compare: open field + hairline, no card —— */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding: 0.25rem 0 0.5rem;
  border-block: var(--hairline);
}

.compare__pane {
  text-align: center;
  padding: 2.25rem 0.5rem;
}

.compare__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 1.5rem;
}

.compare__list {
  display: grid;
  gap: 1rem;
  text-align: start;
  max-width: 18rem;
  margin-inline: auto;
}

.compare__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 1rem;
  color: var(--ink);
}

.compare__mark {
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--gold) 75%, #7a6235);
  font-weight: 800;
  line-height: 1.4;
}

.compare__mark--ok {
  color: var(--gold);
}

.compare__rule {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  margin-block: 1.5rem;
}

/* —— Seals: quiet, no cards —— */
.seal-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  padding-block: 0.5rem;
}

.seal {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}

.seal__art {
  width: clamp(6.25rem, 12vw, 8rem);
  height: auto;
}

.seal__label {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--teal);
}

/* —— Steps: gold numerals + hairline dividers —— */
.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  text-align: center;
  border-block: var(--hairline);
}

.path-steps__item {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  padding: 2.75rem 1.25rem;
  border-inline-start: var(--hairline);
}

.path-steps__item:first-child {
  border-inline-start: 0;
}

.path-steps__num {
  font-size: clamp(3rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.path-steps__item h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--teal);
}

  .path-steps__item p {
  font-size: 0.95rem;
  color: var(--mute);
  max-width: 22ch;
  line-height: 1.65;
}

/* —— FAQ: hairlines only —— */
.faq-list {
  display: grid;
  border-block: var(--hairline);
}

.faq-item {
  border-bottom: var(--hairline);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0.1rem;
  font-weight: 700;
  color: var(--teal);
  font-size: 1.02rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-inline-end: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
  flex: 0 0 auto;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.faq-item p {
  padding: 0 0.1rem 1.2rem;
  color: var(--mute);
  font-size: 0.96rem;
}

/* —— Download —— */
.section--download {
  padding-bottom: 0;
}

.download-bar {
  background: var(--teal);
  color: var(--parchment);
  padding: clamp(2.25rem, 5vw, 3rem) 1.25rem 1.35rem;
  position: relative;
  overflow: hidden;
}

.download-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 130%,
    color-mix(in srgb, var(--gold) 18%, transparent),
    transparent 55%
  );
  pointer-events: none;
}

.download-bar__inner {
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem 1.75rem;
  position: relative;
  z-index: 1;
}

.download-bar__mark {
  width: 3.25rem;
  height: 3.25rem;
}

.download-bar__title {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.download-bar__copy p {
  color: color-mix(in srgb, var(--parchment) 76%, transparent);
  font-size: 0.95rem;
}

.download-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.store-btn {
  display: inline-grid;
  gap: 0.1rem;
  min-width: 9.25rem;
  padding: 0.55rem 1rem;
  border-radius: 0.75rem;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  color: var(--parchment);
  text-decoration: none;
  text-align: start;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.store-btn:hover {
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  transform: translateY(-1px);
}

.store-btn--soon {
  opacity: 0.5;
  cursor: default;
}

.store-btn--soon:hover {
  transform: none;
  background: transparent;
}

.store-btn__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold-soft);
}

.store-btn__label {
  font-size: 0.95rem;
  font-weight: 800;
}

.download-meta {
  width: var(--wrap);
  margin: 1.15rem auto 0;
  text-align: center;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--parchment) 58%, transparent);
  position: relative;
  z-index: 1;
}

.download-meta a {
  color: var(--gold-soft);
  text-decoration: none;
}

.download-meta a:hover {
  text-decoration: underline;
}

.footer {
  background: var(--teal-ink);
  color: color-mix(in srgb, var(--parchment) 68%, transparent);
  text-align: center;
  padding: 1.15rem 1rem 1.4rem;
  font-size: 0.86rem;
}

.footer a {
  color: var(--gold-soft);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Reveal */
html.js [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(16px);
}

html.js [data-reveal] {
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .store-btn,
  .page-atmosphere__img,
  html.js [data-reveal] {
    transition: none;
  }

  html.js [data-reveal]:not(.is-in),
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .compare {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .compare__rule {
    width: auto;
    height: 1px;
    margin: 0;
  }

  .compare__pane {
    padding: 1.75rem 0.25rem;
  }

  .seal-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.5rem;
  }

  .audience__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.75rem;
  }

  .audience__item {
    border-inline-start: 0;
    padding: 0.5rem 0.75rem;
  }

  .audience__item:nth-child(odd) {
    border-inline-end: var(--hairline);
  }

  .path-steps {
    grid-template-columns: 1fr;
  }

  .path-steps__item {
    border-inline-start: 0;
    border-top: var(--hairline);
    padding: 2rem 0.5rem;
  }

  .path-steps__item:first-child {
    border-top: 0;
  }

  .download-bar__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .download-bar__actions {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  :root {
    --atmosphere-opacity: 0.14;
  }

  .hub {
    max-width: 18.5rem;
  }

  .hub__frame {
    padding: 1.5rem;
  }

  .hub__node {
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
    padding: 0.35rem 1rem 2.75rem;
  }

  .hero__brand img {
    width: clamp(12rem, 72vw, 17rem);
  }

  .hero__title {
    max-width: none;
    font-size: clamp(2.15rem, 9.5vw, 3rem);
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    flex: 1 1 11rem;
  }

  .micro-nav {
    gap: 1rem;
    padding-top: 0.65rem;
  }
}
