/* khetam.app: the landing page (Figma «صفحة الهبوط», 83:3070 desktop and 88:3223 mobile).
   Colors from design/tokens.json (light); Alan Sans and the Phosphor icons ship with the site. */

@import url('alan-sans.css');

@font-face { font-family: 'Phosphor'; src: url('../fonts/phosphor/PhosphorBold.ttf') format('truetype'); font-display: block; }

:root {
  color-scheme: light;
  --surface: #FAF6EC; --surface-raised: #FFFFFF; --surface-sunken: #F1EBDC;
  --ink: #1B2B24; --ink-muted: #5B6B63; --brand: #1E4D3B; --brand-deep: #163A2D; --brand-tint: #E3EDE6;
  --gold: #C9A24A; --gold-light: #F0D58C; --gold-text: #8A6A1F; --on-dark: #FAF6EC; --on-dark-soft: #F1ECE0;
  --border: #E2DBC9; --divider: #E8E9E5;
  --night: linear-gradient(180deg, #0B241B 0%, #1B4A38 100%);
  --page: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: 'Alan Sans', system-ui, sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
img { display: block; max-width: 100%; }

.icon { font-family: 'Phosphor'; font-style: normal; font-weight: normal; line-height: 1; display: inline-block; }

.wrap { width: 100%; max-width: calc(var(--page) + 2 * 20px); margin: 0 auto; padding: 0 20px; }

/* Section headings: gold eyebrow, title, optional lead. */
.heading { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.eyebrow { color: var(--gold-text); font-weight: 500; font-size: 16px; line-height: 24px; }
.heading h2 { font-size: 44px; line-height: 57px; font-weight: 700; }
.heading .lead { color: var(--ink-muted); font-size: 20px; line-height: 34px; max-width: 760px; }
.section { padding: 120px 0; }
.section > .wrap { display: flex; flex-direction: column; gap: 48px; }

/* Store buttons (white, the same in the hero and the call to action). */
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store { display: flex; align-items: center; gap: 12px; background: #FFFFFF; color: #000000; border-radius: 16px; padding: 10px 22px; }
.store span { display: flex; flex-direction: column; text-align: start; }
.store small { font-size: 12px; line-height: 16px; }
.store b { font-size: 20px; line-height: 27px; font-weight: 600; direction: ltr; white-space: nowrap; }
.store img { width: 28px; height: 28px; }

/* Dark night cards: the hero, the equation, the call to action. */
.night { background: var(--night); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.night .deco { position: absolute; pointer-events: none; z-index: -1; }

/* ---------- Hero ---------- */
.hero { border-radius: 0 0 48px 48px; }
.hero .pattern { inset: 0 0 auto 0; height: 340px; background: url('../images/landing/pattern.svg') repeat-x top left / 390px 340px; }
.hero .glow { width: 700px; height: 700px; inset-inline-end: 80px; top: 60px; background: url('../images/landing/hero-glow.svg') center / contain no-repeat; }
.hero .stars { inset: 0; height: 760px; background: url('../images/landing/hero-stars.svg') top center / 1440px 760px no-repeat; }
.hero .crescent { width: 90px; height: 90px; top: 150px; inset-inline-end: calc(50% - 160px); background: url('../images/landing/crescent.svg') center / contain no-repeat; }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand img { height: 52px; width: auto; }
.nav .links { display: flex; gap: 40px; font-weight: 500; font-size: 16px; color: var(--on-dark-soft); }
.nav .links a { opacity: .85; }
.nav .links a:hover { opacity: 1; }
.btn-gold { background: var(--gold); color: var(--ink); font-weight: 500; font-size: 16px; line-height: 24px; padding: 12px 24px; border-radius: 9999px; white-space: nowrap; }

.hero-body { display: flex; align-items: center; gap: 64px; padding: 48px 0 72px; }
.hero-text { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding: 40px 0 120px; }
.hero-text .tag { background: rgba(201, 162, 74, .16); border: 1px solid rgba(201, 162, 74, .4); color: var(--gold-light); font-weight: 500; font-size: 16px; line-height: 24px; padding: 8px 16px; border-radius: 9999px; }
.hero-text h1 { font-size: 72px; line-height: 86px; font-weight: 700; color: var(--on-dark); }
.hero-text .lead { font-size: 21px; line-height: 36px; color: var(--on-dark-soft); opacity: .85; max-width: 620px; }
.hero-text .note { font-weight: 500; font-size: 16px; color: var(--on-dark-soft); opacity: .65; }
/* The hero's phone and its two cards, laid out as in Figma (560×580) and scaled with the box. */
.hero-visual { width: 560px; flex-shrink: 0; position: relative; aspect-ratio: 560 / 580; }
.hero-visual > * { position: absolute; }
.hero-visual .halo { left: 8.93%; top: 10.34%; width: 82.14%; height: 79.31%; border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 162, 74, .22), rgba(201, 162, 74, 0)); }
.hero-visual .phone { left: 18.75%; top: -3.1%; width: 62.5%; height: auto; }
.hero-visual .float-card.ring { left: -7.14%; top: 27.84%; width: 53.93%; height: auto; }
.hero-visual .float-card.members { left: 53.93%; top: 65.43%; width: 55%; height: auto; }
.hero-visual .sparkle { width: 4.3%; }
.hero-visual .sparkle.s1 { left: 83.9%; top: 3.45%; }
.hero-visual .sparkle.s2 { left: 10.7%; top: 58.6%; width: 2.6%; }

/* ---------- Before / after ---------- */
.compare { display: flex; gap: 24px; align-items: stretch; }
.compare .card { flex: 1; border-radius: 32px; padding: 36px 36px 28px; }
.compare .before { background: var(--surface-raised); border: 1px solid var(--border); }
.compare .after { background: var(--night); }
.compare h3 { font-size: 26px; line-height: 35px; font-weight: 600; padding-bottom: 20px; }
.compare .before h3 { color: var(--ink-muted); }
.compare .after h3 { color: var(--gold-light); }
.compare ul { list-style: none; margin: 0; padding: 0; }
.compare li { display: flex; align-items: center; gap: 14px; padding: 18px 0; font-size: 19px; line-height: 26px; }
.compare li + li { border-top: 1px solid var(--divider); }
.compare .after li + li { border-top-color: rgba(255, 255, 255, .1); }
.compare .before li { color: var(--ink-muted); }
.compare .after li { color: var(--on-dark); }
.dot-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.compare .before .dot-icon { background: var(--surface-sunken); color: var(--ink-muted); }
.compare .after .dot-icon { background: var(--gold); color: var(--brand-deep); }
.compare li span:last-child { flex: 1; }

/* ---------- How ---------- */
.how { background: var(--surface-raised); border-radius: 48px; }
.steps { display: flex; gap: 24px; }
.step { flex: 1; background: var(--surface); border-radius: 28px; padding: 32px 32px 36px; display: flex; flex-direction: column; gap: 18px; }
.step .top { display: flex; align-items: center; justify-content: space-between; }
.step .top .icon-circle { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: var(--on-dark); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.step .num { color: var(--gold); font-weight: 700; font-size: 56px; line-height: 56px; direction: ltr; }
.step h3 { font-size: 26px; line-height: 35px; font-weight: 600; }
.step p { font-size: 18px; line-height: 31px; color: var(--ink-muted); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.feature .icon-circle { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.feature h3 { font-size: 24px; line-height: 32px; font-weight: 600; }
.feature p { font-size: 18px; line-height: 31px; color: var(--ink-muted); }

/* ---------- Equation ---------- */
.equation { padding: 0 0 120px; }
.equation .card { border-radius: 40px; padding: 72px; display: flex; flex-direction: column; gap: 40px; align-items: center; }
.equation .pattern { inset: 0; background: url('../images/landing/equation-pattern.svg') top center / 1200px 490px no-repeat; }
.equation .stars { inset: 0; background: url('../images/landing/equation-stars.svg') top center / 1200px 500px no-repeat; }
.equation .heading h2 { color: var(--on-dark); line-height: 59px; }
.equation .eyebrow { color: var(--gold-light); }
.equation .example { background: rgba(255, 255, 255, .08); border-radius: 9999px; padding: 10px 20px; font-weight: 500; font-size: 16px; opacity: .9; }
.stats { display: flex; width: 100%; text-align: center; }
.stats .stat { flex: 1; padding: 8px 32px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.stats .stat + .stat { border-inline-start: 1px solid rgba(255, 255, 255, .12); }
.stats b { color: var(--gold-light); font-size: 56px; line-height: 67px; font-weight: 700; }
.stats span { font-size: 18px; line-height: 29px; opacity: .8; }

/* ---------- Dedication ---------- */
.dedication { padding: 40px 0 120px; }
.dedication .row { display: flex; align-items: center; gap: 80px; }
.dedication .text { flex: 1; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.dedication h2 { font-size: 48px; line-height: 62px; font-weight: 700; }
.dedication .text p { font-size: 20px; line-height: 36px; color: var(--ink-muted); }
.dedication .visual { position: relative; width: 480px; height: 460px; flex-shrink: 0; }
.dedication .arch { position: absolute; inset-inline-start: 30px; top: 6px; width: 402px; height: 455px; background: url('../images/landing/arch.svg') center / contain no-repeat; }
.memorial { position: absolute; inset-inline-start: 65px; top: 150px; width: 350px; background: var(--brand-deep); color: var(--on-dark); border-radius: 24px; overflow: hidden; box-shadow: 0 20px 40px rgba(11, 36, 27, .25); text-align: center; isolation: isolate; }
.memorial::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .11; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23C9A24A' stroke-width='1.2'%3E%3Crect x='16' y='16' width='24' height='24'/%3E%3Crect x='16' y='16' width='24' height='24' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E"); }
.memorial .content { padding: 28px 24px 22px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.memorial .title { color: var(--gold); font-weight: 700; font-size: 26px; line-height: 36px; }
.memorial .ornament { display: flex; align-items: center; gap: 8px; padding: 4px 0 6px; }
.memorial .ornament span { width: 36px; height: 1.5px; background: var(--gold); opacity: .7; }
.memorial .ornament i { width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.memorial .for { font-size: 17px; line-height: 28px; opacity: .8; }
.memorial .name { font-weight: 600; font-size: 20px; line-height: 30px; }
.memorial .all { font-size: 14px; line-height: 22px; opacity: .75; }
.memorial .figures { display: flex; align-items: center; background: rgba(255, 255, 255, .06); border-top: 1px solid rgba(255, 255, 255, .12); padding: 14px 12px; }
.memorial .figures div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.memorial .figures div + div { border-inline-start: 1px solid rgba(255, 255, 255, .15); }
.memorial .figures b { font-weight: 600; font-size: 18px; line-height: 28px; }
.memorial .figures b.gold { color: var(--gold); }
.memorial .figures small { font-size: 14px; line-height: 22px; opacity: .75; }

/* ---------- Audience ---------- */
.audience { background: var(--surface-raised); border-radius: 48px; padding: 80px 0; }
.audience .wrap { display: flex; flex-direction: column; gap: 32px; align-items: center; }
.audience h2 { font-size: 40px; line-height: 54px; font-weight: 700; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.chip { display: flex; align-items: center; gap: 10px; background: var(--brand-tint); color: var(--brand); border-radius: 9999px; padding: 14px 24px 14px 20px; font-weight: 600; font-size: 18px; line-height: 28px; }
.chip .icon { font-size: 22px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.question { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.question .q { display: flex; align-items: flex-start; gap: 12px; }
.question .q span:first-child { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.question h3 { flex: 1; font-size: 22px; line-height: 30px; font-weight: 600; }
.question p { font-size: 18px; line-height: 31px; color: var(--ink-muted); }

/* ---------- Call to action ---------- */
.cta { padding: 0 0 100px; scroll-margin-top: 24px; }
.cta .card { border-radius: 40px; padding: 64px 72px; display: flex; align-items: center; gap: 64px; }
.cta .glow { width: 420px; height: 420px; inset-inline-start: 700px; top: -80px; background: url('../images/landing/cta-glow.svg') center / contain no-repeat; }
.cta .stars { inset: 0; background: url('../images/landing/cta-stars.svg') top center / 1200px 360px no-repeat; }
.cta .text { flex: 1; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.cta h2 { display: flex; align-items: center; gap: 16px; font-size: 52px; line-height: 70px; font-weight: 700; color: var(--on-dark); }
.cta h2 img { width: 56px; height: 56px; }
.cta .text p { font-size: 21px; line-height: 28px; opacity: .85; }
.qr-card { background: var(--surface); border-radius: 24px; padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; flex-shrink: 0; }
.qr-card .qr { width: 184px; height: 184px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.qr-card .qr svg { width: 100%; height: 100%; display: block; }
.qr-card small { color: var(--ink-muted); font-size: 14px; line-height: 22px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--divider); padding: 32px 0 48px; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.footer .logo { display: flex; align-items: center; gap: 10px; }
.footer .logo img { height: 40px; width: auto; }
.footer .logo span, .footer .copy { color: var(--ink-muted); font-size: 14px; line-height: 22px; }
.footer .links { display: flex; gap: 28px; flex-wrap: wrap; font-weight: 500; font-size: 16px; color: var(--ink-muted); }
.footer .links a:hover { color: var(--brand); }

/* ---------- Motion: gentle, and none for visitors who ask for less ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-soft { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-1deg); } }
@keyframes drift { from { background-position: 0 0; } to { background-position: 390px 0; } }
@keyframes sway { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14px, 6px); } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes glow { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes rock { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-6px); } }

@media (prefers-reduced-motion: no-preference) {
  .hero .pattern { animation: drift 60s linear infinite; }
  .hero .stars, .equation .stars, .cta .stars { animation: twinkle 5s ease-in-out infinite; }
  .hero .glow, .cta .glow, .hero-visual .halo { animation: glow 8s ease-in-out infinite; }
  .hero .crescent { animation: rock 9s ease-in-out infinite; }
  .hero-visual .phone { animation: float 7s ease-in-out infinite; }
  .hero-visual .float-card.ring { animation: float 6s ease-in-out -2s infinite; }
  .hero-visual .float-card.members { animation: float 8s ease-in-out -4s infinite; }
  .hero-visual .sparkle { animation: twinkle 3s ease-in-out infinite; }
  .hero-visual .sparkle.s2 { animation-delay: -1.5s; }
  .equation .pattern { animation: sway 24s ease-in-out infinite; }
  .dedication .memorial { animation: float-soft 7s ease-in-out infinite; }
  .dedication .arch { animation: glow 9s ease-in-out infinite; }
  .cta h2 img { animation: rock 7s ease-in-out infinite; }

  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.shown { opacity: 1; transform: none; }
}

/* Hover: buttons lift, cards rise with a soft shadow, their icon circles answer. */
.btn-gold, .store, .chip, .nav .links a, .footer .links a { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, opacity .2s ease; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201, 162, 74, .35); background: var(--gold-light); }
.store:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, .28); }
.step, .feature, .question, .compare .card, .equation .card, .cta .card { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.step:hover, .feature:hover, .question:hover, .compare .card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(22, 58, 45, .12); }
.feature:hover, .question:hover, .compare .before:hover { border-color: rgba(30, 77, 59, .35); }
.feature .icon-circle, .step .icon-circle, .question .q span:first-child { transition: transform .3s ease, background-color .3s ease, color .3s ease; }
.feature:hover .icon-circle { background: var(--brand); color: var(--on-dark); transform: scale(1.08) rotate(-6deg); }
.step:hover .icon-circle { transform: scale(1.08) rotate(-6deg); }
.question:hover .q span:first-child { background: var(--brand); color: var(--on-dark); transform: rotate(90deg); }
.chip:hover { background: var(--brand); color: var(--on-dark); transform: translateY(-2px); }
.memorial { transition: box-shadow .3s ease; }
.dedication .visual:hover .memorial { box-shadow: 0 28px 50px rgba(11, 36, 27, .32); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .hero-body { gap: 32px; }
  .hero-visual { width: 440px; }
  .hero-visual .float-card.ring { left: -2%; }
  .hero-text h1 { font-size: 60px; line-height: 72px; }
  .dedication .row { gap: 40px; }
  .equation .card, .cta .card { padding: 56px 40px; }
  .cta .card { gap: 40px; }
}

/* ---------- Phone (Figma 88:3223) ---------- */
@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .section > .wrap { gap: 28px; }
  .heading { gap: 10px; }
  .heading h2 { font-size: 30px; line-height: 41px; }
  .heading .lead { font-size: 17px; line-height: 29px; }

  .hero { border-radius: 0 0 32px 32px; }
  .hero .glow { width: 420px; height: 420px; inset-inline-end: -120px; top: 520px; }
  .hero .crescent { width: 64px; height: 64px; top: 110px; inset-inline-start: auto; inset-inline-end: 24px; }
  .nav { padding: 18px 0; }
  .nav .links { display: none; }
  .brand img { height: 42px; }
  .btn-gold { padding: 10px 20px; }
  .hero-body { flex-direction: column; align-items: stretch; padding: 24px 0 32px; gap: 32px; }
  .hero-text { padding: 0; gap: 20px; }
  .hero-text h1 { font-size: 48px; line-height: 60px; }
  .hero-text .lead { font-size: 17px; line-height: 30px; }
  .hero-visual { width: 86%; max-width: 420px; margin: 0 auto; }
  .hero-visual .float-card.ring { left: -10%; width: 50%; }
  .hero-visual .float-card.members { left: 58%; width: 52%; }
  .stores { width: 100%; }
  .store { flex: 1; justify-content: center; padding: 10px 14px; }
  .store b { font-size: 18px; }

  .compare, .steps { flex-direction: column; }
  .compare .card { padding: 26px 22px 18px; border-radius: 24px; }
  .compare h3 { font-size: 22px; padding-bottom: 8px; }
  .compare li { font-size: 17px; padding: 14px 0; }
  .how, .audience { border-radius: 32px; }
  .step { border-radius: 22px; padding: 24px; gap: 12px; }
  .step .num { font-size: 44px; line-height: 44px; }
  .step .top .icon-circle { width: 48px; height: 48px; font-size: 22px; }
  .step h3 { font-size: 22px; }
  .step p { font-size: 17px; line-height: 29px; }

  .features { grid-template-columns: 1fr; gap: 16px; }
  .feature { padding: 24px; border-radius: 22px; gap: 12px; }
  .feature h3 { font-size: 21px; line-height: 29px; }
  .feature p { font-size: 17px; line-height: 29px; }

  .equation { padding: 0 0 64px; }
  .equation .card { padding: 40px 22px; border-radius: 28px; gap: 28px; }
  .equation .heading h2 { line-height: 41px; }
  .equation .example { font-size: 14px; }
  .stats { flex-direction: column; gap: 8px; }
  .stats .stat { padding: 16px 0; }
  .stats .stat + .stat { border-inline-start: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .stats b { font-size: 44px; line-height: 54px; }
  .stats span { font-size: 17px; }

  .dedication { padding: 16px 0 64px; }
  .dedication .row { flex-direction: column; align-items: stretch; gap: 24px; }
  .dedication h2 { font-size: 32px; line-height: 44px; }
  .dedication .text p { font-size: 17px; line-height: 30px; }
  .dedication .visual { width: 100%; max-width: 350px; height: 380px; margin: 0 auto; }
  .dedication .arch { inset-inline-start: 0; width: 100%; height: 380px; }
  .memorial { inset-inline-start: 6%; width: 88%; top: 120px; }

  .audience { padding: 56px 0; }
  .audience h2 { font-size: 30px; line-height: 41px; }
  .chip { font-size: 16px; padding: 10px 18px 10px 16px; }

  .faq { grid-template-columns: 1fr; }
  .question { padding: 22px; border-radius: 22px; }
  .question h3 { font-size: 19px; line-height: 27px; }
  .question p { font-size: 17px; line-height: 29px; }

  .cta { padding: 0 0 56px; }
  .cta .card { flex-direction: column; padding: 40px 22px; border-radius: 28px; gap: 28px; align-items: stretch; }
  .cta h2 { font-size: 34px; line-height: 46px; }
  .cta h2 img { width: 40px; height: 40px; }
  .cta .text p { font-size: 17px; }
  .qr-card { display: none; }

  .footer .wrap { flex-direction: column; align-items: flex-start; }
}
