@charset "utf-8";
/* ===========================================================================
   Nisaa homepages (/ and /ar). Loaded after site-2.css, on these two pages only.

   Versioned filename: /assets/ is served immutable for a year, so any edit here
   after a release ships under the next number (and the constant in
   tools/build-home.py moves with it). home-1 shipped 2026-10-01.

   The page is built for someone who just tapped a search ad on a phone: one
   promise, one install button, real screens, then detail. Device classes on
   <html> (is-ios / is-android / is-desktop, set by the inline script in
   tools/layout.py) decide which install unit shows.
   ========================================================================= */

/* Arabic body copy reads better in the system face (SF Arabic on iPhone) than
   in Naskh at paragraph sizes; headings keep Amiri via site-2.css. */
html[lang="ar"] { font-family: var(--ui); }
html[lang="ar"] .review blockquote,
html[lang="ar"] .faq summary,
html[lang="ar"] .feat h3 { font-family: var(--arabic); }

.btn--coral,
.masthead .btn {
  background: linear-gradient(135deg, #e8555a, #cf3a4c);
  color: #fff;
  font-weight: 700;
  line-height: 1.25;         /* Arabic's taller default line stretched the button */
}
.btn--coral { box-shadow: 0 8px 22px rgba(207, 58, 76, .34); }
.btn--coral:hover,
.masthead .btn:hover {
  background: linear-gradient(135deg, #ee6266, #d9414f);
  transform: translateY(-1px);
}
.btn--coral:hover { box-shadow: 0 12px 28px rgba(207, 58, 76, .42); }
@media (prefers-color-scheme: dark) {
  .btn--coral,
  .masthead .btn {
    background: linear-gradient(135deg, #ffa79b, #f47c74);
    color: #1a1411;
  }
  .btn--coral { box-shadow: 0 8px 26px rgba(244, 124, 116, .32); }
  .btn--coral:hover,
  .masthead .btn:hover { background: linear-gradient(135deg, #ffb5aa, #f88a82); }
  .btn--coral:hover { box-shadow: 0 12px 32px rgba(244, 124, 116, .42); }
}

.home .band { padding-block: clamp(2.75rem, 6vw, 4.75rem); }

.home__head { max-width: 44rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.home__head .lede { margin-top: 1.1rem; }
.home__more { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Hero ------------------------------------------------------------------- */

.hx { padding-block: clamp(1.25rem, 3vw, 2.25rem) clamp(1.75rem, 4vw, 3rem); overflow: hidden; }

.hx__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hx h1 { margin-bottom: .9rem; }
html[lang="en"] .hx h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); }
html[lang="ar"] .hx h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.45; }

.hx__lede { margin-bottom: 1.6rem; }

/* Social proof as a label above the headline, the way Flo leads with its
   ratings line: it tells the visitor this is worth reading before the pitch. */
.hx__trusted {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .9rem;
  padding-block: .25rem;
  padding-inline: .3rem .85rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}
/* Three overlapping headshots, the same faces as the App Store hero
   screenshot's "Trusted by" row. */
.hx__faces { display: inline-flex; flex: none; }
.hx__faces img {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: 2px solid var(--paper);
}
.hx__faces img + img { margin-inline-start: -.5rem; }

/* Three real screens fanned out, the same fan as the app's "too expensive"
   answer screen: home in front, Ask and Fasting leaning out behind it. The
   whole fan sinks into the page at the hem. --m is the middle phone's width
   and --lean says which way a side phone goes. */
.hx__art {
  position: relative;
  container-type: inline-size;
  justify-self: center;
  width: min(100%, 560px);
  height: 520px;
  overflow: hidden;
  display: grid;
  justify-items: center;
  align-items: start;
  padding-top: .5rem;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.hx__art::before {
  content: '';
  position: absolute;
  inset: 6% 0 10%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(238, 159, 128, .34), transparent 70%),
    radial-gradient(70% 60% at 40% 70%, rgba(213, 160, 168, .28), transparent 72%);
  filter: blur(30px);
}

.hx__phone {
  --m: min(52cqw, 290px);
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  width: var(--m);
  aspect-ratio: 1206 / 2622;
  overflow: hidden;
  border: 3px solid #1c1714;
  border-radius: 16% / 7.4%;
  background: #1c1714;
  box-shadow: 0 30px 60px rgba(43, 43, 43, .2), 0 6px 16px rgba(43, 43, 43, .08);
}
.hx__phone img { display: block; width: 100%; height: 100%; }

.hx__phone--side {
  z-index: 0;
  width: calc(var(--m) * .83);
  margin-top: calc(var(--m) * .2);
  translate: calc(var(--lean) * var(--m) * .52) 0;
  rotate: calc(var(--lean) * 8deg);
}
.hx__phone--start { --lean: -1; }
.hx__phone--end { --lean: 1; }
[dir="rtl"] .hx__phone--start { --lean: 1; }
[dir="rtl"] .hx__phone--end { --lean: -1; }

@media (prefers-color-scheme: dark) {
  /* A black bezel on a near-black page needs a rim to read as an object. */
  .hx__phone {
    border-color: #000;
    box-shadow: 0 0 0 1px rgba(243, 239, 234, .18), 0 30px 60px rgba(0, 0, 0, .55);
  }
}

@media (max-width: 900px) {
  .hx__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hx__copy { text-align: center; }
  .hx__copy .get { justify-content: center; }
  .hx__lede { margin-inline: auto; }
  /* Edge to edge on a phone, so the side phones get the whole width. */
  .hx__art {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    height: clamp(380px, 112vw, 520px);
  }
  .hx__phone { --m: min(54cqw, 290px); }
}

/* Hero motion -------------------------------------------------------------
   Off for visitors who ask for reduced motion: the subheading's last word
   cycles (home-*.js), and the hero glides in on load while the front phone
   floats very slightly. The phone screens stay put by Ahmad's call. */

.rot { display: inline-block; color: var(--coral-ink); font-weight: 600; }
.rot b { display: inline-block; font-weight: inherit; }
.rot b.is-out { animation: rot-out .3s var(--ease) forwards; }
.rot b.is-in { animation: rot-in .45s var(--ease) both; }
@keyframes rot-out { to { opacity: 0; transform: translateY(-.4em); filter: blur(3px); } }
@keyframes rot-in { from { opacity: 0; transform: translateY(.4em); filter: blur(3px); } }

@media (prefers-reduced-motion: no-preference) {
  .js .hx__copy > * { animation: hx-rise .65s var(--ease) both; }
  .js .hx__copy > :nth-child(2) { animation-delay: .07s; }
  .js .hx__copy > :nth-child(3) { animation-delay: .14s; }
  .js .hx__copy > :nth-child(4) { animation-delay: .21s; }
  .js .hx__art { animation: hx-art .9s var(--ease) .12s both; }
  .js .hx__phone--front { animation: hx-float 6s ease-in-out 1.2s infinite; }
  .js .hx__phone--side { animation: hx-fan .9s var(--ease) .25s both; }
}
@keyframes hx-fan { from { translate: 0 0; rotate: 0deg; } }
@keyframes hx-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes hx-art { from { opacity: 0; transform: translateY(28px) scale(.985); } }
@keyframes hx-float { 50% { transform: translateY(-8px); } }

/* Install unit ------------------------------------------------------------ */

.get { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

.get__ios { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.hx .get__ios .appstore img, .final .get__ios .appstore img { width: 180px; }
/* Get Started into the web funnel (2026-10-19): the main button everywhere. */
.btn--start {
  position: relative;
  overflow: hidden;
  gap: .5rem;
  padding: .78rem 1.5rem;
  font-size: 1.17rem;
}
/* The app's onboarding button carries the same mark. */
.btn--start::before { content: '\2726\FE0E'; order: 1; font-size: .8em; }
/* A band of light crosses the button every few seconds. */
.btn--start::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .42) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .btn--start::after { animation: btn-shine 5s var(--ease) 1.2s infinite; }
}
@keyframes btn-shine { 28%, 100% { transform: translateX(120%); } }
.get__note { margin: 0; font-size: .85rem; color: var(--ink-3); }

.get__qr {
  display: none;
  align-items: center;
  gap: .9rem;
  max-width: 17rem;
  padding: .6rem .9rem .6rem .6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.get__qr p { margin: 0; font-size: .82rem; line-height: 1.4; color: var(--ink-2); text-align: start; }
.get__code { flex: none; width: 88px; height: 88px; padding: 4px; background: #fff; border-radius: 8px; }
.get__code canvas, .get__code img { width: 80px !important; height: 80px !important; }

.is-desktop .get__qr.is-ready { display: flex; }

@media (max-width: 900px) {
  .hx .get__ios { align-items: center; }
}

/* Features ----------------------------------------------------------------- */

.feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.feat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.3rem;
  scroll-margin-top: 6rem;
}
.feat svg {
  width: 2.5rem;
  height: 2.5rem;
  padding: .55rem;
  margin-bottom: .9rem;
  border-radius: 50%;
  color: var(--coral-ink);
  background: color-mix(in srgb, var(--coral) 16%, transparent);
}
.feat h3 { font-size: 1.28rem; margin-bottom: .45rem; }
.feat p { margin: 0; font-size: .95rem; color: var(--ink-2); line-height: 1.55; }
html[lang="ar"] .feat p { line-height: 1.8; }

@media (max-width: 900px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .feats { grid-template-columns: 1fr; gap: .75rem; }
  .feat { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.1rem; }
  .feat svg { grid-row: span 2; margin: 0; }
  .feat h3 { font-size: 1.15rem; margin-bottom: .25rem; }
}

/* Reviews + mid CTA -------------------------------------------------------- */

.home .reviews { margin-top: 0; }
.reviews__note { margin: .75rem 0 0; font-size: .85rem; color: var(--ink-3); }
html[lang="ar"] .review blockquote { font-size: 1.12rem; line-height: 1.8; }

.mid {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.mid h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
@media (max-width: 700px) {
  .mid { flex-direction: column; align-items: flex-start; }
}

/* FAQ tweak: RTL answers pad on the other side. */
[dir="rtl"] .faq .faq__a { padding: 0 0 1.35rem 2.5rem; }

/* Closing CTA -------------------------------------------------------------- */

.final { text-align: center; }
.final__mark {
  font-family: var(--arabic);
  font-size: 1.35rem;
  color: var(--coral-ink);
  margin: 0 0 .4rem;
}
.final h2 { max-width: 20ch; margin-inline: auto; }
.final .lede { margin: 1.1rem auto 1.75rem; }
.final .get { justify-content: center; }
.final .get__ios { align-items: center; }

/* Sticky install bar (phones only) ----------------------------------------- */

.sticky { display: none; }

@media (max-width: 760px) {
  .sticky {
    position: fixed;
    inset-inline: .6rem;
    bottom: calc(.6rem + env(safe-area-inset-bottom));
    z-index: 40;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .55rem .55rem .55rem .7rem;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    transform: translateY(calc(100% + 1.5rem));
    transition: transform .35s var(--ease);
  }
  .sticky.is-shown { transform: none; }
  .sticky img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
  .sticky p { margin: 0; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
  .sticky b { font-size: .95rem; }
  .sticky span { font-size: .78rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky .btn { margin-inline-start: auto; padding: .7rem 1.05rem; font-size: .92rem; white-space: nowrap; }

  /* Keep the footer's last line clear of the bar. */
  .home ~ .foot { padding-bottom: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sticky { transition: none; }
}
