/* ==========================================================================
   FactoryHajri UI - LANDING PAGE
   --------------------------------------------------------------------------
   The marketing page. Loaded ONLY by landing.php, so none of this weight is
   carried by the app itself.

   It is built on the same tokens as the product, on purpose: a visitor who
   signs up should recognise the thing they just saw. Same navy, same
   marigold, same Plex, same hajri-code colours.
   ========================================================================== */

/* ---------------------------------------------------------- site header -- */
.fh-site {
  position: sticky; top: 0; z-index: var(--fh-z-topbar);
  background: rgba(6, 26, 60, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.fh-site__in {
  max-width: 1160px; margin: 0 auto; padding: 12px var(--fh-s5);
  display: flex; align-items: center; gap: var(--fh-s4);
}
.fh-site__brand { display: flex; align-items: center; gap: var(--fh-s3); flex: 0 0 auto; }
/* Same lock-up as the app's own topbar: the FH mark, then the wordmark. A
   visitor should meet the identical logo here and after they sign in. */
/* Belt and braces: whatever else happens, an image in the brand lock-up can
   never grow past the header. A logo that escapes its bar ruins the page. */
.fh-site__brand img { display: block; width: auto; max-height: 34px; }
.fh-site__mark { height: 30px; flex: 0 0 auto; }
.fh-site__word { height: 22px; }
@media (max-width: 420px) { .fh-site__word { height: 18px; } .fh-site__mark { height: 26px; } }
.fh-site__nav { display: none; align-items: center; gap: var(--fh-s5); margin-left: var(--fh-s5); }
.fh-site__nav a {
  color: var(--fh-text-on-dark-soft); font-size: var(--fh-text-sm);
  font-weight: var(--fh-fw-medium); text-decoration: none;
}
.fh-site__nav a:hover { color: #fff; }
.fh-site__cta { margin-left: auto; display: flex; align-items: center; gap: var(--fh-s3); }
.fh-site__cta .fh-link {
  color: #fff; font-size: var(--fh-text-sm); font-weight: var(--fh-fw-semi); text-decoration: none;
}
@media (min-width: 900px) { .fh-site__nav { display: flex; } }

/* ------------------------------------------------------------------ hero -- */
.fh-hero {
  background: var(--fh-navy-900);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(253,134,5,.16), transparent 52%),
    radial-gradient(circle at 88% 8%, rgba(27,64,121,.55), transparent 48%);
  color: #fff; padding: var(--fh-s8) var(--fh-s5) 0; overflow: hidden;
}
.fh-hero__in { max-width: 1160px; margin: 0 auto; text-align: center; }
.fh-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: #fff; border-radius: 999px; padding: 6px var(--fh-s4);
  font-size: var(--fh-text-xs); font-weight: var(--fh-fw-semi);
  letter-spacing: var(--fh-track-label); text-transform: uppercase;
}
.fh-hero h1 {
  margin: var(--fh-s5) 0 var(--fh-s4);
  font-size: clamp(30px, 6.2vw, 56px); line-height: 1.08;
  font-weight: var(--fh-fw-bold); letter-spacing: -.02em; color: #fff;
}
.fh-hero h1 em { font-style: normal; color: var(--fh-marigold-500); }
.fh-hero__sub {
  max-width: 660px; margin: 0 auto var(--fh-s6);
  font-size: clamp(16px, 2.2vw, 20px); line-height: 1.55;
  color: var(--fh-text-on-dark-soft);
}
.fh-hero__cta { display: flex; flex-wrap: wrap; gap: var(--fh-s3); justify-content: center; }
.fh-hero__fine { margin-top: var(--fh-s4); font-size: var(--fh-text-sm); color: var(--fh-text-on-dark-soft); }
.fh-hero__shot { margin-top: var(--fh-s7); }

/* ----------------------------------------------------------- browser frame */
.fh-frame {
  border-radius: var(--fh-r-lg) var(--fh-r-lg) 0 0;
  background: #22334E;
  box-shadow: 0 -2px 0 rgba(255,255,255,.08), 0 30px 70px rgba(0,0,0,.45);
  overflow: hidden; max-width: 1060px; margin: 0 auto;
}
.fh-frame--float { border-radius: var(--fh-r-lg); box-shadow: 0 18px 44px rgba(13,27,61,.18); }
.fh-frame__bar { display: flex; align-items: center; gap: 6px; padding: 9px var(--fh-s4); background: #22334E; }
.fh-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); }
.fh-frame__url {
  margin-left: var(--fh-s3); flex: 1 1 auto; max-width: 320px;
  background: rgba(0,0,0,.25); border-radius: 999px;
  padding: 3px var(--fh-s3); font-size: 11px; color: rgba(255,255,255,.55);
  font-family: var(--fh-font-data); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fh-frame img { display: block; width: 100%; height: auto; }
.fh-frame--phone {
  max-width: 268px; border-radius: 30px; padding: 9px; background: #22334E;
  box-shadow: 0 18px 44px rgba(13,27,61,.28);
}
.fh-frame--phone img { border-radius: 22px; }

/* --------------------------------------------------------------- sections */
.fh-sec { padding: var(--fh-s8) var(--fh-s5); }
.fh-sec--tint { background: var(--fh-surface-2); }
.fh-sec--dark { background: var(--fh-navy-900); color: #fff; }
.fh-sec__in { max-width: 1160px; margin: 0 auto; }
.fh-sec__head { max-width: 700px; margin: 0 auto var(--fh-s7); text-align: center; }
.fh-sec__eyebrow {
  font-size: var(--fh-text-xs); font-weight: var(--fh-fw-semi);
  letter-spacing: var(--fh-track-label); text-transform: uppercase;
  color: var(--fh-marigold-700); margin-bottom: var(--fh-s2);
}
.fh-sec--dark .fh-sec__eyebrow { color: var(--fh-marigold-500); }
.fh-sec__head h2 {
  font-size: clamp(24px, 3.6vw, 36px); line-height: 1.18;
  letter-spacing: -.015em; margin: 0 0 var(--fh-s3);
}
.fh-sec--dark .fh-sec__head h2 { color: #fff; }
.fh-sec__head p { font-size: var(--fh-text-md); color: var(--fh-text-2); margin: 0; }
.fh-sec--dark .fh-sec__head p { color: var(--fh-text-on-dark-soft); }

/* ------------------------------------------------------------ feature row */
.fh-frow {
  display: grid; gap: var(--fh-s6); align-items: center;
  padding: var(--fh-s6) 0;
}
.fh-frow + .fh-frow { border-top: 1px solid var(--fh-line); }
.fh-frow__text h3 {
  font-size: clamp(20px, 2.6vw, 26px); margin: 0 0 var(--fh-s3); letter-spacing: -.01em;
}
.fh-frow__text p { color: var(--fh-text-2); font-size: var(--fh-text-md); margin: 0 0 var(--fh-s4); }
.fh-frow__list { list-style: none; margin: 0; padding: 0; }
.fh-frow__list li {
  position: relative; padding-left: 26px; margin-bottom: 9px;
  font-size: var(--fh-text-base); color: var(--fh-text-2);
}
.fh-frow__list li::before {
  content: ""; position: absolute; left: 3px; top: 7px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--fh-present); border-bottom: 2px solid var(--fh-present);
  transform: rotate(-45deg);
}
@media (min-width: 900px) {
  .fh-frow { grid-template-columns: 1fr 1.15fr; gap: var(--fh-s8); }
  .fh-frow--flip .fh-frow__text { order: 2; }
  .fh-frow--flip .fh-frow__shot { order: 1; }
}

/* --------------------------------------------------------------- USP grid */
.fh-usps { display: grid; gap: var(--fh-s4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .fh-usps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .fh-usps { grid-template-columns: repeat(3, 1fr); } }
.fh-usp {
  background: var(--fh-surface); border: 1px solid var(--fh-line);
  border-radius: var(--fh-r-md); padding: var(--fh-s5);
}
.fh-sec--dark .fh-usp { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.fh-usp__icon {
  width: 40px; height: 40px; border-radius: var(--fh-r-sm);
  display: grid; place-items: center; margin-bottom: var(--fh-s3);
  background: var(--fh-marigold-100); color: var(--fh-marigold-700);
}
.fh-sec--dark .fh-usp__icon { background: rgba(253,134,5,.16); color: var(--fh-marigold-500); }
.fh-usp h3 { font-size: var(--fh-text-md); margin: 0 0 6px; }
.fh-sec--dark .fh-usp h3 { color: #fff; }
.fh-usp p { margin: 0; font-size: var(--fh-text-sm); color: var(--fh-text-2); line-height: 1.55; }
.fh-sec--dark .fh-usp p { color: var(--fh-text-on-dark-soft); }

/* ------------------------------------------------------------- stat strip */
.fh-numbers {
  display: grid; gap: var(--fh-s5); grid-template-columns: repeat(2, 1fr);
  text-align: center;
}
@media (min-width: 800px) { .fh-numbers { grid-template-columns: repeat(4, 1fr); } }
.fh-numbers b {
  display: block; font-family: var(--fh-font-data);
  font-size: clamp(24px, 4vw, 34px); font-weight: var(--fh-fw-bold); color: #fff;
}
.fh-numbers span { font-size: var(--fh-text-sm); color: var(--fh-text-on-dark-soft); }

/* -------------------------------------------------------------------- FAQ */
.fh-faq { max-width: 780px; margin: 0 auto; }
.fh-faq details {
  border: 1px solid var(--fh-line); border-radius: var(--fh-r-md);
  background: var(--fh-surface); margin-bottom: var(--fh-s3);
}
.fh-faq summary {
  cursor: pointer; padding: var(--fh-s4) var(--fh-s5);
  font-weight: var(--fh-fw-semi); font-size: var(--fh-text-base);
  list-style: none; display: flex; justify-content: space-between; gap: var(--fh-s4);
}
.fh-faq summary::-webkit-details-marker { display: none; }
.fh-faq summary::after { content: "+"; color: var(--fh-marigold-700); font-size: 20px; line-height: 1; }
/* U+2212 minus. ONE backslash - a CSS escape, not a string escape. Written
   with two it prints the literal text \2212 on the page. */
.fh-faq details[open] summary::after { content: "\2212"; }
.fh-faq p { margin: 0; padding: 0 var(--fh-s5) var(--fh-s5); color: var(--fh-text-2); line-height: 1.6; }

/* ------------------------------------------------------------- final call */
.fh-final { text-align: center; }
.fh-final h2 { font-size: clamp(26px, 4.4vw, 40px); color: #fff; margin: 0 0 var(--fh-s3); }
.fh-final p { color: var(--fh-text-on-dark-soft); font-size: var(--fh-text-md); margin: 0 0 var(--fh-s6); }

/* ---------------------------------------------------------------- footer -- */
.fh-foot { background: var(--fh-navy-900); color: var(--fh-text-on-dark-soft); padding: var(--fh-s7) var(--fh-s5) var(--fh-s5); }
.fh-foot__in { max-width: 1160px; margin: 0 auto; }
.fh-foot__cols { display: grid; gap: var(--fh-s6); grid-template-columns: 1fr; }
@media (min-width: 700px) { .fh-foot__cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.fh-foot h4 {
  color: #fff; font-size: var(--fh-text-xs); text-transform: uppercase;
  letter-spacing: var(--fh-track-label); margin: 0 0 var(--fh-s3);
}
.fh-foot ul { list-style: none; margin: 0; padding: 0; }
.fh-foot li { margin-bottom: 8px; }
.fh-foot a { color: var(--fh-text-on-dark-soft); font-size: var(--fh-text-sm); text-decoration: none; }
.fh-foot a:hover { color: #fff; text-decoration: underline; }
.fh-foot__logo { display: flex; align-items: center; gap: var(--fh-s3); margin-bottom: var(--fh-s3); }
.fh-foot__brand img { height: 24px; width: auto; display: block; }
.fh-foot__mark { height: 28px !important; }
.fh-foot__brand p { font-size: var(--fh-text-sm); line-height: 1.6; margin: 0; max-width: 320px; }
.fh-foot__bar {
  margin-top: var(--fh-s6); padding-top: var(--fh-s4);
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: var(--fh-s3); justify-content: space-between;
  font-size: var(--fh-text-xs);
}

/* Marketing pages are read top to bottom, so anchors must not hide under the
   sticky header. */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 78px; }

/* ==========================================================================
   LEGAL PAGES  -  terms, privacy, refunds, delivery, contact.
   Long-form prose, so the only job here is a comfortable measure and clear
   heading rhythm. These pages are read by a customer deciding whether to
   trust us with wages, and by Razorpay's onboarding check.
   ========================================================================== */
.fh-legal { max-width: 820px; margin: 0 auto; }
.fh-legal h2 {
  font-size: clamp(19px, 2.4vw, 23px); margin: var(--fh-s6) 0 var(--fh-s3);
  padding-top: var(--fh-s5); border-top: 1px solid var(--fh-line);
  letter-spacing: -.01em;
}
.fh-legal > h2:first-child, .fh-legal .fh-note + h2 { border-top: 0; padding-top: 0; margin-top: var(--fh-s5); }
.fh-legal h3 {
  font-size: var(--fh-text-md); margin: var(--fh-s4) 0 var(--fh-s2);
  color: var(--fh-navy-700);
}
.fh-legal p, .fh-legal li { color: var(--fh-text-2); line-height: 1.68; }
.fh-legal p { margin: 0 0 var(--fh-s3); }
.fh-legal ul { margin: 0 0 var(--fh-s4); padding-left: 0; list-style: none; }
.fh-legal li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.fh-legal li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--fh-marigold-500);
}
.fh-legal b { color: var(--fh-text); }
.fh-legal .fh-note { margin-bottom: var(--fh-s5); }
.fh-legal .fh-cols--2 { gap: var(--fh-s6); }
