/* ==========================================================================
   Hajji Journey product page — the app's own "B · cute" style
   (ink outlines, coral, sun yellow, cream; Nunito). Loaded after site.css.
   ========================================================================== */

.haci-page {
  --ink: #4a3b3b;
  --coral: #ff8f70;
  --coral-d: #e5674a;
  --sun: #ffcf4d;
  --cream: #fff7ef;
  --sand: #f6d9a8;
  --sky: #bfe3f2;
  --mint: #5cc28a;
  --h-font: 'Nunito', 'IBM Plex Sans Arabic', var(--font-heading);
}
.haci-page h1, .haci-page h2, .haci-page h3, .haci-page h4 { font-family: var(--h-font); font-weight: 900; letter-spacing: -0.01em; }

/* ---------- Hero ---------------------------------------------------------- */
.h-hero { position: relative; overflow: hidden; padding: 56px 0 120px; background: linear-gradient(180deg, #a9dcf0 0%, #d8eef4 45%, #fdeedd 100%); color: var(--ink); }
body.dark-theme .h-hero { background: linear-gradient(180deg, #1f2147 0%, #3a3c73 55%, #5b4d6e 100%); color: #fff7ef; }
.h-hero .breadcrumb, .h-hero .breadcrumb a { color: inherit; opacity: .75; }
.h-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.h-title-row { display: flex; align-items: center; gap: 16px; margin: 12px 0 18px; }
.h-icon { width: 120px; height: 120px; border-radius: 30px; border: 4px solid var(--ink); box-shadow: 0 8px 0 var(--ink); }
.h-status { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--sun); color: var(--ink); border: 3px solid var(--ink); font: 900 .9rem var(--h-font); }
.h-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.05; margin-bottom: 18px; color: #fff; -webkit-text-stroke: 0; text-shadow: 0 0 0 transparent; paint-order: stroke fill; }
.h-hero h1 { color: #fff; -webkit-text-stroke: 10px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 rgba(74, 59, 59, .35); }
.h-hero h1 em { font-style: normal; color: var(--sun); }
html[lang="ar"] .h-hero h1 { -webkit-text-stroke-width: 8px; }
.h-lead { font-size: 1.2rem; max-width: 540px; font-weight: 600; opacity: .9; }
.h-stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 16px; background: var(--ink); color: #fff; border: 3px solid var(--ink); box-shadow: 0 6px 0 rgba(74, 59, 59, .45); opacity: .92; cursor: default; }
.store-badge svg { width: 28px; height: 28px; }
.store-badge small { display: block; font-size: .72rem; opacity: .8; font-weight: 600; }
.store-badge b { display: block; font: 800 1.1rem var(--h-font); line-height: 1.1; }
.h-points { display: flex; flex-wrap: wrap; gap: 10px 20px; font-weight: 800; font-family: var(--h-font); }
.h-points span { display: inline-flex; align-items: center; gap: 6px; }
.h-points svg { width: 20px; height: 20px; color: var(--mint); }

.h-phone-wrap { position: relative; display: flex; justify-content: center; }
.phone-frame.big { width: min(300px, 70vw); border-radius: 44px; padding: 10px; background: var(--ink); box-shadow: 0 14px 0 rgba(74, 59, 59, .35), 0 40px 80px -30px rgba(0, 0, 0, .5); transform: rotate(-3deg); }
html[dir="rtl"] .phone-frame.big { transform: rotate(3deg); }
.phone-frame.big::before { background: var(--ink); }
.phone-frame.big img { border-radius: 34px; }
.h-bubble { position: absolute; padding: 10px 16px; border-radius: 18px; background: #fff; color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); font-family: var(--h-font); white-space: nowrap; animation: float 6s ease-in-out infinite; }
.h-bubble.b1 { top: 12%; inset-inline-start: -4%; }
.h-bubble.b2 { bottom: 14%; inset-inline-end: -2%; animation-delay: -3s; }

.h-sky .sun { position: absolute; top: 48px; inset-inline-end: 6%; width: 110px; height: 110px; border-radius: 50%; background: var(--sun); border: 5px solid var(--ink); box-shadow: 0 0 0 18px rgba(255, 207, 77, .35); }
body.dark-theme .h-sky .sun { background: #fff1c4; box-shadow: none; }
.h-sky .cloud { position: absolute; width: 150px; height: 46px; border-radius: 40px; background: #fff; border: 4px solid var(--ink); animation: cloud 40s linear infinite; }
.h-sky .cloud::before { content: ""; position: absolute; width: 70px; height: 70px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); border-bottom-color: transparent; border-right-color: transparent; transform: rotate(45deg); top: -38px; left: 30px; }
.h-sky .cloud.c1 { top: 70px; left: -160px; }
.h-sky .cloud.c2 { top: 220px; left: -160px; animation-delay: -18s; transform: scale(.8); }
body.dark-theme .h-sky .cloud { opacity: .25; }
@keyframes cloud { to { left: 110%; } }
.h-dunes { position: absolute; inset-inline: 0; bottom: 0; height: 120px; z-index: 1; background:
  radial-gradient(120% 140px at 20% 140px, #f3cf98 98%, transparent 100%) bottom/100% 120px no-repeat,
  radial-gradient(120% 160px at 85% 170px, var(--sand) 98%, transparent 100%) bottom/100% 120px no-repeat; }
body.dark-theme .h-dunes { filter: brightness(.45) saturate(.7); }
@media (max-width: 900px) {
  .h-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .h-title-row, .h-stores, .h-points, .h-hero .breadcrumb { justify-content: center; }
  .h-lead { margin-inline: auto; }
  .h-bubble.b1 { inset-inline-start: 2%; }
  .h-bubble.b2 { inset-inline-end: 2%; }
}

/* ---------- Sections ------------------------------------------------------ */
.h-section .section-head h2 { color: var(--text); }
.h-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.h-step, .h-feature, .h-track, .h-plan, .h-cta, .faq {
  background: var(--bg-elev); border: 3px solid var(--ink); border-radius: 26px; box-shadow: 0 7px 0 var(--ink);
}
body.dark-theme .h-step, body.dark-theme .h-feature, body.dark-theme .h-track, body.dark-theme .h-plan, body.dark-theme .h-cta, body.dark-theme .faq { border-color: #6b5a74; box-shadow: 0 7px 0 #3a2c43; }
.h-step { padding: 30px; position: relative; }
.h-step h4 { font-size: 1.3rem; margin: 14px 0 8px; }
.h-step p, .h-feature p { color: var(--text-soft); }
.h-num { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: #fff; border: 3px solid var(--ink); font: 900 1.4rem var(--h-font); }
@media (max-width: 900px) { .h-steps { grid-template-columns: 1fr; } }

.h-journey { background: linear-gradient(180deg, transparent, var(--bg-soft) 30%, transparent); }
.h-timeline { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; }
.h-track { padding: 28px; }
.h-track h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 1.4rem; margin-bottom: 18px; }
.pill { padding: 4px 12px; border-radius: 999px; border: 2px solid var(--ink); font: 900 .78rem var(--h-font); }
.pill.free { background: var(--mint); color: #fff; }
.pill.pro { background: var(--sun); color: var(--ink); }
.h-track ol { list-style: none; display: grid; gap: 10px; }
.h-track li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg); font-weight: 700; }
.h-track .n { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); color: var(--ink); font: 900 .9rem var(--h-font); }
.h-track:last-child li:nth-child(n+3) .n { background: #fff; }
@media (max-width: 900px) { .h-timeline { grid-template-columns: 1fr; } }

.h-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.h-feature { padding: 28px; }
.h-feature h4 { font-size: 1.2rem; margin: 14px 0 6px; }
.h-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--sun); border: 3px solid var(--ink); color: var(--ink); }
.h-ic svg { width: 26px; height: 26px; }
.h-feature:nth-child(2) .h-ic { background: var(--sky); }
.h-feature:nth-child(3) .h-ic { background: var(--mint); color: #fff; }
.h-feature:nth-child(4) .h-ic { background: #ffd1c4; }
.h-feature:nth-child(5) .h-ic { background: #e3dcff; }
.h-feature:nth-child(6) .h-ic { background: var(--coral); color: #fff; }
@media (max-width: 980px) { .h-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .h-features { grid-template-columns: 1fr; } }

/* Gallery: horizontal scroll with snap */
.h-gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px max(20px, calc((100vw - var(--container)) / 2)) 28px; scrollbar-width: thin; }
.h-gallery .phone-frame { flex: 0 0 220px; scroll-snap-align: center; background: var(--ink); cursor: zoom-in; }
.h-gallery .phone-frame::before { background: var(--ink); }

.h-pricing { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: center; }
.h-pricing h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.h-pricing > div > p { color: var(--text-soft); font-size: 1.1rem; }
.h-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.h-plan { padding: 26px; }
.h-plan.pro { background: #fff3cf; }
body.dark-theme .h-plan.pro { background: #2f2a1c; }
.h-plan h4 { font-size: 1.3rem; margin-bottom: 14px; }
.h-plan ul { list-style: none; display: grid; gap: 10px; }
.h-plan li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--text-soft); }
.h-plan li svg { flex: none; width: 20px; height: 20px; color: var(--mint); margin-top: 3px; }
@media (max-width: 900px) { .h-pricing, .h-plans { grid-template-columns: 1fr; } }

.h-faq { max-width: 820px; }
.h-faq h2 { text-align: center; font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 28px; }
.faq { margin-bottom: 16px; padding: 0; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font: 800 1.1rem var(--h-font); position: relative; }
html[dir="rtl"] .faq summary { padding: 20px 24px 20px 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 20px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); color: var(--ink); font-weight: 900; transition: transform .25s; }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 24px 22px; color: var(--text-soft); }

.h-cta { display: flex; align-items: center; gap: 28px; padding: 36px; background: linear-gradient(135deg, #fff7ef, #fde9d6); color: var(--ink); flex-wrap: wrap; }
body.dark-theme .h-cta { background: linear-gradient(135deg, #2a1f2c, #1b1530); color: var(--text); }
.h-cta img { border-radius: 24px; border: 3px solid var(--ink); }
.h-cta > div { flex: 1 1 320px; }
.h-cta h2 { font-size: 1.8rem; margin-bottom: 6px; }
.h-cta p { opacity: .85; }
.h-cta .btn-primary { background: var(--coral); box-shadow: 0 6px 0 var(--coral-d); border: 3px solid var(--ink); }
.h-legal-links { text-align: center; margin-top: 28px; color: var(--text-faint); font-weight: 600; }
.h-legal-links a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; }
