/* Home page */
.hm-desk-only { display: none; }
@media (min-width: 900px) { .hm-desk-only { display: revert; } .hm-mob-only { display: none; } }
a.hm-desk-only { display: none; }
@media (min-width: 900px) { a.hm-desk-only { display: inline-flex; } }

/* ---------- Offers band ---------- */
.hm-offers { background: var(--navy); color: var(--mist); }
.hm-offers-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-block: 24px 16px; text-align: center; justify-items: center;
  grid-template-areas: "pill pill" "mt mt" "mb pb" "foot foot";
}
.hm-offers-pill {
  grid-area: pill; padding: 10px 24px; border-radius: 999px; background: var(--haze); color: var(--navy);
  font-size: 17px; line-height: 22px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
}
[dir="rtl"] .hm-offers-pill { letter-spacing: 0; font-size: 19px; }
.hm-offers-pill:hover { background: #fff; color: var(--navy); }
.hm-offers-mt { grid-area: mt; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.hm-offers-pt { grid-area: pt; display: none; }
.hm-offers-title { color: #fff; font-size: 22px; line-height: 1.25; }
.hm-offers-inner p { font-size: 14px; line-height: 1.45; }
.hm-offers-mb { grid-area: mb; width: 100%; margin-top: 8px; padding-inline: 10px; }
.hm-offers-pb { grid-area: pb; width: 100%; margin-top: 8px; padding-inline: 10px; }
.hm-offers-foot { grid-area: foot; margin-top: 6px; font-size: 11px !important; color: var(--sky); }
.hm-offers-foot a { color: var(--haze); }
.hm-offers-foot a:hover { color: #fff; }
@media (min-width: 900px) {
  .hm-offers-inner {
    grid-template-columns: 1fr auto 1fr; column-gap: 40px; row-gap: 8px; padding-block: 30px 12px; align-items: end;
    grid-template-areas: "mt pill pt" "mb pill pb" "foot foot foot";
  }
  .hm-offers-pill { align-self: center; padding: 14px 34px; font-size: 22px; line-height: 28px; letter-spacing: 0.14em; }
  [dir="rtl"] .hm-offers-pill { font-size: 24px; }
  .hm-offers-pt { display: flex; flex-direction: column; gap: 6px; }
  .hm-offers-mt { gap: 6px; margin: 0; }
  .hm-offers-title { font-size: 26px; }
  .hm-offers-mb, .hm-offers-pb { width: auto; margin-top: 6px; padding-inline: 24px; }
  .hm-offers-foot { justify-self: end; margin-top: 4px; }
}

/* ---------- Hero ---------- */
.hm-hero-wrap { padding-top: 16px; }
.hm-hero { display: flex; flex-direction: column; }
.hm-hero-img { width: 100%; aspect-ratio: 358 / 280; object-fit: cover; object-position: 70% center; border-radius: 16px; background: var(--haze); }
.hm-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 4px 0; }
.hm-hero-title { font-size: 34px; line-height: 1.12; }
.hm-hero-text { font-size: 15px; line-height: 1.55; }
.hm-hero-cta { width: 100%; margin-top: 8px; background: var(--navy); color: #fff; }
.hm-hero-cta:hover { background: var(--ink); color: #fff; }
@media (min-width: 700px) {
  .hm-hero-img { aspect-ratio: 16 / 7; }
  .hm-hero-cta { width: auto; }
}
@media (min-width: 1000px) {
  .hm-hero-wrap { padding-top: 40px; }
  .hm-hero { position: relative; display: block; height: 460px; border-radius: var(--radius-lg); overflow: hidden; background: var(--haze); box-shadow: var(--shadow); }
  .hm-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-position: center; }
  .hm-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,36,64,0.86) 0%, rgba(20,36,64,0.62) 36%, rgba(20,36,64,0) 62%); }
  .hm-hero-copy { position: absolute; z-index: 1; inset-inline-start: 56px; top: 50%; transform: translateY(-50%); width: min(500px, 46%); padding: 0; gap: 16px; color: #fff; }
  .hm-hero-eyebrow { color: var(--haze); }
  .hm-hero-title { color: #fff; font-size: clamp(40px, 4vw, 54px); }
  .hm-hero-text { color: var(--mist); font-size: 16px; }
  .hm-hero-cta { min-height: 48px; background: #fff; color: var(--navy); }
  .hm-hero-cta:hover { background: var(--mist); color: var(--navy); }
  /* Arabic: split layout, navy text panel + photo (photo not mirrored) */
  [dir="rtl"] .hm-hero { display: grid; grid-template-columns: minmax(0, 520px) 1fr; background: var(--navy); }
  [dir="rtl"] .hm-hero::after { display: none; }
  [dir="rtl"] .hm-hero-img { position: static; grid-column: 2; grid-row: 1; height: 460px; object-position: right center; }
  [dir="rtl"] .hm-hero-copy { position: static; grid-column: 1; grid-row: 1; transform: none; width: auto; justify-content: center; padding: 0 56px; }
  [dir="rtl"] .hm-hero-eyebrow { color: var(--sky); }
  [dir="rtl"] .hm-hero-text { font-size: 18px; line-height: 1.7; }
}

/* ---------- Benefits (2x2 grid with dividers on mobile) ---------- */
.hm-benefits .benefit { padding: 18px 12px; }
@media (max-width: 899px) {
  .hm-benefits .benefit:nth-child(odd) { border-inline-end: 1px solid var(--haze); }
  .hm-benefits .benefit:nth-child(-n+2) { border-bottom: 1px solid var(--haze); }
}

/* ---------- Reviews coming soon ---------- */
.hm-reviews-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hm-reviews-body { display: flex; flex-direction: column; gap: 10px; }
.hm-reviews-lead { font-weight: 700; font-size: 15px; }
.hm-reviews-body .btn { margin-top: 8px; }
.hm-reviews a:not(.btn) { color: var(--navy); font-weight: 700; }
@media (min-width: 900px) { .coming-card { max-width: 1080px; margin-inline: auto; } }

/* ---------- Pillow promo carousel ---------- */
.hm-promo-inner { display: flex; flex-direction: column; gap: 20px; }
.hm-promo-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; position: relative; }
.hm-promo-title { font-size: 26px; }
.hm-promo-shop { margin-top: 6px; background: #fff; color: var(--navy); border-color: var(--navy); }
.hm-promo-shop:hover { background: var(--mist); color: var(--navy); }
.hm-promo-arrows, .hm-promo-progress { display: none; }
.hm-promo-track { gap: 12px; }
.hm-promo-card { position: relative; display: block; width: 260px; aspect-ratio: 260 / 340; border-radius: var(--radius); overflow: hidden; background: var(--sand); text-decoration: none; }
.hm-promo-card img { width: 100%; height: 100%; object-fit: cover; }
.hm-promo-card::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 45%; background: linear-gradient(180deg, rgba(20,36,64,0) 0%, rgba(20,36,64,0.78) 100%); }
.hm-promo-card-title { position: absolute; z-index: 1; inset-inline: 18px; bottom: 18px; color: #fff; font-size: 19px; line-height: 1.22; font-weight: 700; text-align: center; }
.hm-promo-card:hover .hm-promo-card-title { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1000px) {
  .hm-promo { padding-top: 56px; }
  .hm-promo-inner { flex-direction: row; gap: 24px; align-items: stretch; }
  .hm-promo-intro { width: 264px; flex-shrink: 0; justify-content: center; gap: 14px; padding-bottom: 20px; }
  .hm-promo-shop { background: var(--navy); color: #fff; border-color: var(--navy); }
  .hm-promo-shop:hover { background: var(--ink); color: #fff; }
  .hm-promo-arrows:not([hidden]) { display: flex; gap: 8px; margin-top: 6px; }
  .hm-promo-progress { display: block; position: absolute; inset-inline: 0 8px; bottom: 0; height: 2px; background: var(--haze); }
  .hm-promo-progress span { display: block; height: 2px; width: 50%; background: var(--navy); transition: width .3s ease; }
  .hm-promo-track { flex: 1; min-width: 0; margin: 0; padding: 0; scroll-padding-inline: 0; scroll-behavior: smooth; }
  .hm-promo-card { width: 290px; aspect-ratio: auto; height: 380px; border-radius: 0; }
  .hm-promo-card-title { font-size: 21px; inset-inline: 20px; bottom: 20px; }
}
.hm-arrow { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--haze); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; padding: 0; }
.hm-arrow:hover { border-color: var(--navy); }
.hm-arrow[disabled] { opacity: .4; cursor: default; border-color: var(--haze); }

/* ---------- Installments bar ---------- */
.hm-inst { padding-block: 24px; }
@media (max-width: 699px) {
  .hm-inst .installments-bar { margin-inline: var(--gutter); border-radius: var(--radius); flex-direction: column; align-items: flex-start; text-align: start; padding: 20px 16px; }
  .hm-inst .bank-list { justify-content: flex-start; }
}

/* ---------- Collections ---------- */
.hm-cols-head { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hm-cols-sub { font-size: 15px; font-weight: 600; }
.hm-cols-btns { display: flex; gap: 10px; width: 100%; margin-top: 10px; }
.hm-cols-btns .btn { flex: 1; padding-inline: 10px; }
.hm-cols-row { margin-top: 24px; gap: 14px; align-items: flex-start; }
.hm-col-card { width: 272px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.hm-col-card img { width: 100%; aspect-ratio: 272 / 170; object-fit: cover; border-radius: var(--radius); margin-bottom: 6px; background: var(--mist); }
.hm-col-name { font-size: 19px; }
.hm-col-card:hover .hm-col-name { text-decoration: underline; text-underline-offset: 3px; }
.hm-col-tag { font-size: 13px; line-height: 1.4; }
.hm-col-models { font-size: 12px; line-height: 1.4; color: var(--deep); }
.hm-col-models strong { color: var(--ink); }
.hm-col-from { margin-top: 4px; font-size: 14px; }
.hm-col-from span:first-child { font-weight: 600; }
@media (min-width: 700px) {
  .hm-cols-btns { width: auto; }
  .hm-cols-btns .btn { flex: none; padding-inline: 20px; }
}
@media (min-width: 1000px) {
  .hm-cols-sub { font-size: 17px; }
  .hm-cols-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; overflow: visible; margin: 40px 0 0; padding: 0; }
  .hm-col-card { width: auto; }
  .hm-col-card img { aspect-ratio: auto; height: 180px; }
}

/* ---------- Quiz band ---------- */
.hm-quiz { border-radius: var(--radius-lg); overflow: hidden; background: var(--haze); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.hm-quiz-img { width: 100%; aspect-ratio: 358 / 190; object-fit: cover; }
.hm-quiz-copy { padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.hm-quiz-title { font-size: 28px; }
.hm-quiz-btns { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.hm-quiz-copy .small { order: 0; }
@media (max-width: 999px) { .hm-quiz-copy .small { order: -1; } .hm-quiz-title { order: -2; } }
@media (min-width: 1000px) {
  .hm-quiz { display: grid; grid-template-columns: 1fr 560px; height: 300px; }
  .hm-quiz-img { grid-column: 2; grid-row: 1; height: 300px; aspect-ratio: auto; }
  .hm-quiz-copy { grid-column: 1; grid-row: 1; padding: 0 56px; justify-content: center; gap: 20px; }
  .hm-quiz-title { font-size: 40px; }
  .hm-quiz-btns { flex-direction: row; margin: 0; }
}

/* ---------- The secret to sleep better ---------- */
.hm-secret-head { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 680px; margin-inline: auto; }
.hm-secret-title { font-size: clamp(32px, 4vw, 48px); }
.hm-stats { max-width: 960px; margin: 36px auto 0; display: flex; flex-direction: column; gap: 20px; }
.hm-stat { display: flex; align-items: center; gap: 20px; }
.hm-stat img { width: 84px; height: 144px; flex-shrink: 0; object-fit: cover; border-radius: var(--radius); }
.hm-stat-copy { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.hm-stat-big { font-size: 28px; line-height: 1.2; font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hm-stat-text { margin-top: 2px; font-size: 15px; line-height: 1.4; font-weight: 600; }
.hm-stat-note { font-size: 13px; color: var(--deep); }
.hm-stat-flip { flex-direction: row-reverse; }
.hm-stat-flip .hm-stat-copy { align-items: flex-end; text-align: end; }
.hm-simple-head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 52px; }
.hm-simple { max-width: 1000px; margin: 32px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.hm-simple-item { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.hm-simple-title { font-size: 18px; }
.hm-simple-sub { font-size: 14px; font-weight: 600; }
.hm-simple-text { font-size: 12px; line-height: 1.4; color: var(--deep); }
@media (min-width: 900px) {
  .hm-stats { margin-top: 64px; gap: 24px; }
  .hm-stat { height: 200px; gap: 32px; }
  .hm-stat img { width: 116px; height: 200px; border-radius: 16px; }
  .hm-stat-copy { flex: 0 1 400px; gap: 8px; }
  .hm-stat-flip { flex-direction: row; justify-content: flex-end; }
  .hm-stat-flip img { order: 2; }
  .hm-stat-big { font-size: 44px; text-decoration-thickness: 3px; text-underline-offset: 8px; }
  .hm-stat-text { font-size: 18px; }
  .hm-stat-note { font-size: 14px; }
  .hm-simple-head { margin-top: 88px; }
  .hm-simple { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; }
  .hm-simple-title { font-size: 21px; }
}

/* ---------- Payment options ---------- */
.hm-pay .container { display: flex; flex-direction: column; align-items: center; }
.hm-pay-title { margin-top: 14px; }
.hm-pay-text { margin-top: 10px; font-size: 15px; }
.hm-pay-banks { width: 100%; margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hm-pay-bank { min-height: 48px; padding: 6px 16px; border: 1px solid var(--sky); border-radius: 10px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 14px; font-weight: 700; color: var(--navy); }
@media (min-width: 900px) {
  .hm-pay-banks { width: auto; display: flex; gap: 14px; }
  .hm-pay-bank { min-height: 52px; padding: 0 24px; font-size: 16px; }
}

/* ---------- FAQ ---------- */
.hm-faq-list { margin-top: 24px; }
.hm-faq-list a { font-weight: 700; }
@media (min-width: 900px) { .hm-faq .container-narrow { max-width: calc(760px + var(--gutter) * 2); } .hm-faq-list { padding-inline: 28px; margin-top: 32px; } }
