/* ==========================================================================
   "Coming soon" pages (Views/ComingSoon/Index.cshtml): Masjid Services, Household Devices, Screens, and the Store
   while it is off.
   A deep-green hero with the product's seal and a "Tell me when it launches" card, the products as cards, then our
   other services and a way back to learning. Light and dark, RTL (logical properties), reduced motion.
   ========================================================================== */

.ip-soon {
  --soon-deep: #072a1d;
  --soon-mid: #0d3b29;
  --soon-high: #12543f;
  --soon-gold: #e6b85c;
  --soon-gold-soft: #f1d59a;
  --soon-card: var(--ip-surface, #ffffff);
  --soon-line: var(--ip-line, #ebe8df);
  --soon-ink: var(--ip-ink, #1c1c1c);
  --soon-muted: var(--ip-muted, #5f6673);
  --soon-tint: #eaf6ef;
  --soon-tint-ink: #1f7a63;
  --soon-chip-bg: #fff4dc;
  --soon-chip-ink: #8a6414;
  --soon-shadow: 0 1px 2px rgba(16, 24, 20, .05), 0 18px 40px -18px rgba(16, 24, 20, .28);
}
[data-theme="dark"] .ip-soon,
body.dark .ip-soon {
  --soon-deep: #020a07;
  --soon-mid: #061a12;
  --soon-high: #0b2d20;
  --soon-tint: rgba(46, 184, 114, .14);
  --soon-tint-ink: #5fd49a;
  --soon-chip-bg: rgba(230, 184, 92, .14);
  --soon-chip-ink: #ecc879;
  --soon-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 24px 48px -20px rgba(0, 0, 0, .8);
}

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

.ip-soon__hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 5vw, 64px) clamp(44px, 6vw, 76px);
  background:
    radial-gradient(60% 90% at 88% 20%, rgba(230, 184, 92, .2) 0%, transparent 60%),
    radial-gradient(50% 80% at 8% 100%, rgba(46, 184, 114, .24) 0%, transparent 60%),
    var(--ip-plus, none),
    linear-gradient(135deg, var(--soon-deep) 0%, var(--soon-mid) 48%, var(--soon-high) 100%);
  color: #ffffff;
}
.ip-soon--masjid .ip-soon__hero,
.ip-soon--business .ip-soon__hero,
.ip-soon--household .ip-soon__hero {
  padding-block-end: clamp(84px, 9vw, 112px);
}
.ip-soon__hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #1f7a63 0%, #2eb872 55%, #e6b85c 100%);
  opacity: .8;
}

.ip-soon__hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .72fr) minmax(0, .95fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

.ip-soon__badge {
  display: none;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset, 0 12px 28px -12px rgba(0, 0, 0, .6);
  color: var(--soon-gold-soft);
}
.ip-soon__badge-svg {
  width: 30px;
  height: 30px;
}

.ip-soon__eyebrow {
  margin: 0 0 10px;
  color: var(--soon-gold-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
:lang(ar) .ip-soon__eyebrow,
:lang(ur) .ip-soon__eyebrow {
  letter-spacing: 0;
  font-size: 14px;
}

.ip-soon__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.025em;
}
:lang(ar) .ip-soon__title,
:lang(ur) .ip-soon__title {
  letter-spacing: 0;
  line-height: 1.35;
}

.ip-soon__lede {
  max-width: 34rem;
  margin: 14px 0 0;
  color: rgba(236, 246, 241, .86);
  font-size: clamp(1.02rem, .96rem + .3vw, 1.18rem);
  line-height: 1.55;
}

.ip-soon__status,
.ip-soon__chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.ip-soon__status {
  margin: 20px 0 0;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(230, 184, 92, .45);
  background: rgba(230, 184, 92, .14);
  color: var(--soon-gold-soft);
  font-size: 13.5px;
  letter-spacing: .02em;
}

.ip-soon__pulse {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--soon-gold);
}
.ip-soon__pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--soon-gold);
  opacity: 0;
  animation: ip-soon-pulse 2.2s var(--ip-ease-out, ease) infinite;
}
@keyframes ip-soon-pulse {
  0% {
    opacity: .7;
    transform: scale(.6);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

/* ---------- The seal: rings, the eight-point star, the product's icon ---------- */

.ip-soon__emblem {
  position: relative;
  justify-self: center;
  width: min(250px, 100%);
  aspect-ratio: 1;
}
.ip-soon__ring {
  position: absolute;
  border-radius: 50%;
}
.ip-soon__ring--outer {
  inset: 0;
  padding: 2px;
  background: conic-gradient(from 0deg, rgba(230, 184, 92, .9), rgba(46, 184, 114, .2), rgba(230, 184, 92, .05), rgba(46, 184, 114, .8), rgba(230, 184, 92, .9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: ip-soon-turn 28s linear infinite;
}
.ip-soon__ring--inner {
  inset: 16%;
  border: 1px dashed rgba(255, 255, 255, .22);
  background: radial-gradient(circle, rgba(46, 184, 114, .22) 0%, rgba(46, 184, 114, 0) 70%);
}
.ip-soon__star {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
  fill: none;
  stroke: rgba(255, 255, 255, .16);
  stroke-width: 1.2;
  animation: ip-soon-turn 60s linear infinite reverse;
}
.ip-soon__core {
  position: absolute;
  inset: 31%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #fdf3dc 0%, #e6b85c 100%);
  box-shadow: 0 0 0 6px rgba(230, 184, 92, .16), 0 18px 40px -10px rgba(0, 0, 0, .6), 0 0 60px rgba(230, 184, 92, .35);
  color: #0d3b29;
}
.ip-soon__core-svg {
  width: 52%;
  height: 52%;
  stroke-width: 1.6;
}
.ip-soon__orbit {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(7, 42, 29, .78);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 10px 24px -10px rgba(0, 0, 0, .7);
  color: var(--soon-gold-soft);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ip-soon__orbit--0 {
  top: 4%;
  inset-inline-end: 2%;
}
.ip-soon__orbit--1 {
  bottom: 4%;
  inset-inline-start: 2%;
}
.ip-soon__orbit-svg {
  width: 24px;
  height: 24px;
}
@keyframes ip-soon-turn {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- "Tell me when it launches" ---------- */

.ip-soon__notify {
  padding: clamp(18px, 2vw, 24px);
  border-radius: 22px;
  background: var(--soon-card);
  color: var(--soon-ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 30px 60px -24px rgba(0, 0, 0, .55);
}
[data-theme="dark"] .ip-soon__notify,
body.dark .ip-soon__notify {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07) inset, 0 30px 60px -24px rgba(0, 0, 0, .9);
}
.ip-soon__notify-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--soon-ink);
  font-size: 1.12rem;
  font-weight: 750;
}
.ip-soon__notify-title .bi {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--soon-chip-bg);
  color: var(--soon-chip-ink);
  font-size: 16px;
}
.ip-soon__notify-text {
  margin: 10px 0 14px;
  color: var(--soon-muted);
  font-size: .94rem;
  line-height: 1.5;
}

.ip-soon__field {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  padding-inline-start: 12px;
  border: 1.5px solid var(--soon-line);
  border-radius: 14px;
  background: var(--ip-bg, #faf8f2);
  transition: border-color var(--ip-motion-fast, 150ms) ease, box-shadow var(--ip-motion-fast, 150ms) ease;
}
.ip-soon__field:focus-within {
  border-color: var(--ip-primary, #1f7a63);
  box-shadow: 0 0 0 4px var(--ip-primary-soft, rgba(31, 122, 99, .1));
}
.ip-soon__field-icon {
  flex: none;
  color: var(--soon-tint-ink);
  font-size: 17px;
}
.ip-soon__field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--soon-ink);
  font-size: .97rem;
  outline: none;
}
.ip-soon__field input::placeholder {
  color: var(--soon-muted);
}
.ip-soon__submit {
  flex: none;
  gap: 6px;
  min-height: 40px;
  white-space: nowrap;
}
.ip-soon__submit[disabled] {
  opacity: .7;
  cursor: progress;
}
.ip-soon__note {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 1.4em;
  margin: 10px 0 0;
  color: var(--soon-muted);
  font-size: .84rem;
}
.ip-soon__note.is-success {
  color: var(--ip-success, #15803d);
  font-weight: 650;
}
.ip-soon__note.is-error {
  color: var(--ip-danger, #c22f2f);
  font-weight: 600;
}
.ip-soon__form.is-done .ip-soon__field {
  border-color: var(--ip-success, #15803d);
}

/* ---------- Masjid Services: the two systems ---------- */

.ip-soon__products {
  position: relative;
  z-index: 2;
  margin-top: -64px;
}
.ip-soon__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ip-soon__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--soon-line);
  border-radius: 20px;
  background: var(--soon-card);
  box-shadow: var(--soon-shadow);
  scroll-margin-top: calc(var(--ip-header-h, 76px) + 24px);
}
.ip-soon__card:target {
  border-color: var(--soon-gold);
  box-shadow: 0 0 0 3px rgba(230, 184, 92, .35), var(--soon-shadow);
}
.ip-soon__card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--soon-tint);
  color: var(--soon-tint-ink);
}
.ip-soon__card-svg {
  width: 30px;
  height: 30px;
}
.ip-soon__card-title {
  margin: 0;
  color: var(--soon-ink);
  font-size: 1.1rem;
  font-weight: 750;
}
.ip-soon__card-line {
  margin: 4px 0 0;
  color: var(--soon-muted);
  font-size: .93rem;
  line-height: 1.45;
}
.ip-soon__chip {
  align-self: start;
  padding: 6px 12px 6px 10px;
  background: var(--soon-chip-bg);
  color: var(--soon-chip-ink);
  font-size: 12px;
}

/* ---------- Our other services · Keep learning ---------- */

.ip-soon__more {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  padding-block: clamp(28px, 4vw, 48px) clamp(36px, 5vw, 64px);
}
.ip-soon__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--soon-ink);
  font-size: 1.05rem;
  font-weight: 750;
}
.ip-soon__heading::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--soon-line), transparent);
}
[dir="rtl"] .ip-soon__heading::after {
  background: linear-gradient(-90deg, var(--soon-line), transparent);
}

.ip-soon__services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ip-soon__service {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--soon-line);
  border-radius: 16px;
  background: var(--soon-card);
  color: var(--soon-ink);
  text-decoration: none;
  transition: transform var(--ip-motion-lift, 250ms) var(--ip-ease-out, ease), box-shadow var(--ip-motion-lift, 250ms) var(--ip-ease-out, ease), border-color var(--ip-motion-fast, 150ms) ease;
}
.ip-soon__service:hover,
.ip-soon__service:focus-visible {
  border-color: rgba(31, 122, 99, .35);
  box-shadow: var(--soon-shadow);
  color: var(--soon-ink);
  transform: translateY(-2px);
}
.ip-soon__service-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--soon-tint);
  color: var(--soon-tint-ink);
}
.ip-soon__service--kids .ip-soon__service-icon {
  background: #fff1ec;
  color: #d1502f;
}
.ip-soon__service--teens .ip-soon__service-icon {
  background: #f1edff;
  color: #6f42c1;
}
.ip-soon__service--store .ip-soon__service-icon,
.ip-soon__service--screens .ip-soon__service-icon {
  background: var(--soon-chip-bg);
  color: var(--soon-chip-ink);
}
[data-theme="dark"] .ip-soon__service--kids .ip-soon__service-icon,
body.dark .ip-soon__service--kids .ip-soon__service-icon {
  background: rgba(255, 138, 115, .14);
  color: #ffa38f;
}
[data-theme="dark"] .ip-soon__service--teens .ip-soon__service-icon,
body.dark .ip-soon__service--teens .ip-soon__service-icon {
  background: rgba(169, 139, 255, .15);
  color: #bfa8ff;
}
.ip-soon__service-svg {
  width: 22px;
  height: 22px;
}
.ip-soon__service-text {
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
}
.ip-soon__service-name {
  font-weight: 700;
}
.ip-soon__service-line {
  overflow: hidden;
  color: var(--soon-muted);
  font-size: .84rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ip-soon__service-go,
.ip-soon__link-go {
  flex: none;
  color: var(--soon-muted);
  font-size: 1.3rem;
}

.ip-soon__links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ip-soon__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--soon-line);
  border-radius: 14px;
  background: var(--soon-card);
  color: var(--soon-ink);
  font-weight: 650;
  text-decoration: none;
  transition: border-color var(--ip-motion-fast, 150ms) ease, background-color var(--ip-motion-fast, 150ms) ease;
}
.ip-soon__link > span:nth-child(2) {
  flex: 1 1 auto;
}
.ip-soon__link:hover,
.ip-soon__link:focus-visible {
  border-color: rgba(31, 122, 99, .35);
  background: var(--soon-tint);
  color: var(--soon-ink);
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1199.98px) {
  .ip-soon__hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
  .ip-soon__emblem {
    display: none;
  }
  .ip-soon__badge {
    display: grid;
  }
}

@media (max-width: 991.98px) {
  .ip-soon__more {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767.98px) {
  .ip-soon__hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ip-soon__cards,
  .ip-soon__services {
    grid-template-columns: minmax(0, 1fr);
  }
  .ip-soon__card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .ip-soon__chip,
  .ip-soon__visit {
    grid-column: 2;
    justify-self: start;
  }
  .ip-soon__products {
    margin-top: -56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ip-soon__ring--outer,
  .ip-soon__star,
  .ip-soon__pulse::after {
    animation: none;
  }
  .ip-soon__service {
    transition: none;
  }
  .ip-soon__service:hover,
  .ip-soon__service:focus-visible {
    transform: none;
  }
}

@media print {
  .ip-soon__notify,
  .ip-soon__emblem {
    display: none;
  }
}
