/* Home page sections; loaded after site.css. */

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(2rem, 1rem + 3vw, 3.5rem);
  background:
    radial-gradient(60% 60% at 78% 42%, rgba(225, 178, 118, 0.28) 0%, transparent 70%),
    radial-gradient(40% 50% at 10% 0%, rgba(138, 20, 36, 0.06) 0%, transparent 70%),
    var(--ivory);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/jaali.svg") repeat;
  background-size: 64px;
  mask-image: radial-gradient(70% 80% at 80% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 80% at 80% 40%, #000 0%, transparent 75%);
  opacity: 0.9;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}
.hero h1 {
  font-size: var(--text-h1);
  margin-bottom: 1.4rem;
}
.hero .lead {
  margin-bottom: 2.2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}
.hero-meta {
  color: var(--muted);
  font-size: 0.9rem;
}
.hero-meta strong {
  color: var(--text);
  font-weight: 650;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--maroon-deep);
}
.trust svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}
.hero-visual {
  position: relative;
  min-height: 600px;
}
.hero-emblem {
  position: absolute;
  width: 520px;
  max-width: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  opacity: 0.1;
  pointer-events: none;
}
.hero-visual .phone--back {
  --w: 250px;
  position: absolute;
  right: 0;
  top: 18px;
  transform: rotate(6deg);
}
.hero-visual .phone--front {
  --w: 290px;
  position: absolute;
  left: 4%;
  top: 0;
  transform: rotate(-3deg);
  z-index: 2;
}
.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  font-size: 0.85rem;
  line-height: 1.35;
}
.float-card strong {
  display: block;
  color: var(--maroon-deep);
  font-size: 0.92rem;
}
.float-card .icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--pale);
  color: var(--maroon);
}
.float-card .icon svg {
  width: 20px;
  height: 20px;
}
.float-card--verified {
  left: -4%;
  bottom: 86px;
}
.float-card--match {
  right: -2%;
  bottom: 12px;
}

/* ---------- Journeys (bento) ---------- */

.journeys {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}
.journey {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.6rem);
  padding-bottom: 0;
}
.journey h3 {
  font-size: var(--text-h3);
  margin-bottom: 0.7rem;
}
.journey p {
  color: var(--muted);
  max-width: 30rem;
}
.journey .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}
.journey .tags li {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--pale);
  color: var(--maroon-deep);
  font-size: 0.8rem;
  font-weight: 600;
}
.journey .phone {
  --w: 250px;
  margin: 2rem auto -120px;
  transition: transform 600ms var(--ease-out);
}
.journey:hover .phone {
  transform: translateY(-10px);
}
.journey--dating {
  grid-column: span 7;
  background:
    radial-gradient(80% 70% at 100% 100%, rgba(225, 178, 118, 0.25), transparent 70%),
    var(--surface);
}
.journey--marriage {
  grid-column: span 5;
  background: linear-gradient(170deg, var(--maroon-deep) 0%, var(--maroon-night) 100%);
  border-color: transparent;
}
.journey--marriage h3 {
  color: var(--ivory);
}
.journey--marriage p {
  color: rgba(255, 251, 244, 0.78);
}
.journey--marriage .tags li {
  background: rgba(225, 178, 118, 0.16);
  color: var(--gold-light);
}
.journey-split {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.journey-split .phone {
  --w: 215px;
}
.journey-split .phone:last-child {
  margin-top: 4.2rem;
}

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

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.feature {
  position: relative;
  padding: 1.9rem 1.7rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  transition: transform 300ms var(--ease-out), box-shadow 300ms ease, border-color 300ms ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(176, 122, 42, 0.5);
  box-shadow: var(--shadow-card);
}
.feature .icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.3rem;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--pale), #f6e1c4);
  color: var(--maroon);
  box-shadow: inset 0 0 0 1px rgba(176, 122, 42, 0.25);
}
.feature .icon svg {
  width: 26px;
  height: 26px;
}
.feature h3 {
  font-size: 1.32rem;
  margin-bottom: 0.55rem;
}
.feature p {
  color: var(--muted);
  font-size: 0.97rem;
}
.feature--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.5rem;
  align-items: start;
  background: linear-gradient(120deg, #fff 0%, var(--pale) 100%);
}
.feature--wide .icon {
  grid-row: span 2;
  width: 64px;
  height: 64px;
  margin-bottom: 0;
}
.feature--wide {
  align-content: start;
  row-gap: 0.2rem;
}
.feature--full {
  grid-column: 1 / -1;
}
.feature--full p {
  max-width: 52rem;
}
.feature--wide h3 {
  font-size: var(--text-h3);
}

/* ---------- Steps ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 14px);
  opacity: 0.6;
}
.step {
  position: relative;
  text-align: center;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid rgba(176, 122, 42, 0.45);
  box-shadow: 0 0 0 8px var(--ivory-deep);
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
}
.step h3 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}
.step p {
  color: var(--muted);
  max-width: 19rem;
  margin-inline: auto;
}
.section--pale {
  background: var(--ivory-deep);
}
.section--pale .step::before {
  box-shadow: 0 0 0 8px var(--ivory-deep);
}

/* ---------- Gallery ---------- */

.gallery {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  overflow-x: auto;
  padding: 1rem var(--gutter) 2.5rem;
  margin-inline: calc(-1 * var(--gutter));
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-light) transparent;
}
.gallery figure {
  flex: none;
  margin: 0;
  scroll-snap-align: start;
}
.gallery .phone {
  --w: 230px;
}
.gallery figcaption {
  margin-top: 1.1rem;
  text-align: center;
  font-weight: 600;
  color: var(--maroon-deep);
}
.gallery figcaption span {
  display: block;
  font-weight: 450;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Safety (deep) ---------- */

.section--deep {
  color: rgba(255, 251, 244, 0.86);
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(225, 178, 118, 0.16), transparent 70%),
    linear-gradient(165deg, var(--maroon-deep) 0%, var(--maroon-night) 100%);
  overflow: hidden;
}
.section--deep::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/jaali.svg") repeat;
  background-size: 72px;
  opacity: 0.55;
  mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 60%, transparent 100%);
  pointer-events: none;
}
.section--deep h2,
.section--deep h3 {
  color: var(--ivory);
}
.section--deep .eyebrow {
  color: var(--gold-light);
}
.section--deep .eyebrow::before {
  background: var(--gold-light);
}
.section--deep .lead {
  color: rgba(255, 251, 244, 0.78);
}
.safety-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.safety-grid h2 {
  font-size: var(--text-h2);
  margin-bottom: 1rem;
}
.safety-list {
  display: grid;
  gap: 1.2rem;
  margin: 2.2rem 0 2.6rem;
  padding: 0;
  list-style: none;
}
.safety-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.9rem;
}
.safety-list svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: rgba(225, 178, 118, 0.15);
  color: var(--gold-light);
}
.safety-list strong {
  display: block;
  color: var(--ivory);
  font-weight: 650;
}
.safety-visual {
  display: flex;
  justify-content: center;
}
.safety-visual .phone {
  --w: 280px;
  transform: rotate(3deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}

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

.install {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.install-card {
  position: relative;
  padding: clamp(1.8rem, 1.4rem + 1.5vw, 2.8rem);
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.install-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(176, 122, 42, 0.28);
  border-radius: calc(var(--radius-card) - 8px);
  pointer-events: none;
}
.install-card h2 {
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem);
}
.install-card .btn {
  width: 100%;
  margin: 1.4rem 0 1rem;
}
.older {
  margin: -0.2rem 0 1.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.release {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.2rem;
  margin: 0;
  font-size: 0.92rem;
}
.release dt {
  color: var(--muted);
}
.release dd {
  margin: 0;
  font-weight: 600;
}
.checksum {
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.checksum summary {
  cursor: pointer;
  color: var(--maroon);
  font-weight: 600;
}
.checksum code {
  display: block;
  margin-top: 0.6rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: var(--ivory-deep);
  font-size: 0.78rem;
  line-height: 1.5;
  word-break: break-all;
  color: var(--text);
}
.install-steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: install;
}
.install-steps li {
  position: relative;
  padding: 1.2rem 1.3rem 1.2rem 4.4rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  counter-increment: install;
}
.install-steps li::before {
  content: counter(install);
  position: absolute;
  left: 1.2rem;
  top: 1.15rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--ivory);
  font-weight: 700;
}
.install-steps strong {
  display: block;
  color: var(--maroon-deep);
}
.install-steps span {
  color: var(--muted);
  font-size: 0.95rem;
}
.soon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.soon span {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(176, 122, 42, 0.6);
  color: var(--gold-text);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--maroon-deep);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(176, 122, 42, 0.5);
  background:
    linear-gradient(var(--gold), var(--gold)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 1.5px 12px no-repeat;
  transition: transform 300ms var(--ease-out);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 0.25rem 1.5rem;
  color: var(--muted);
  max-width: 44rem;
}

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

.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(3rem, 2rem + 4vw, 5rem) var(--gutter);
  border-radius: 36px;
  background:
    radial-gradient(50% 90% at 50% 0%, rgba(225, 178, 118, 0.22), transparent 70%),
    linear-gradient(160deg, var(--maroon-deep), var(--maroon-night));
  color: rgba(255, 251, 244, 0.8);
}
.cta-band img {
  width: 96px;
  margin-bottom: 1.4rem;
}
.cta-band h2 {
  color: var(--ivory);
  font-size: var(--text-h2);
  margin-bottom: 1rem;
}
.cta-band p {
  max-width: 34rem;
  margin-bottom: 2rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1060px) {
  .hero-visual .phone--front {
    --w: 260px;
  }
  .hero-visual .phone--back {
    --w: 220px;
  }
  .float-card--verified {
    left: 0;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .safety-grid,
  .install {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 0;
    height: 560px;
    max-width: 460px;
    width: 100%;
    margin-inline: auto;
  }
  .journey--dating,
  .journey--marriage {
    grid-column: span 12;
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature--wide,
  .feature--full {
    grid-column: 1 / -1;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .steps::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .hero-visual {
    height: 500px;
  }
  .hero-visual .phone--front {
    --w: 228px;
    left: 2%;
  }
  .hero-visual .phone--back {
    --w: 190px;
    right: 0;
  }
  .float-card {
    font-size: 0.78rem;
    padding: 0.6rem 0.75rem;
  }
  .float-card--verified {
    left: 0;
    bottom: 64px;
  }
  .float-card--match {
    right: 0;
    bottom: 0;
  }
  .hero-emblem {
    width: 380px;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .feature--wide {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .feature--wide .icon {
    grid-row: auto;
    width: 52px;
    height: 52px;
  }
  .journey .phone {
    --w: 220px;
  }
  .journey-split .phone {
    --w: 160px;
  }
  .journey-split .phone:last-child {
    margin-top: 3rem;
  }
  .gallery .phone {
    --w: 200px;
  }
  .safety-visual .phone {
    --w: 240px;
  }
  .faq summary {
    font-size: 1.15rem;
  }
}
