/* Night homepage (Settings → Homepage layout → Night). Loaded only on that page. */
@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@800&display=swap");

.page-home-night {
  --nt-bg: #01234B;
  --nt-deep: #001A39;
  --nt-text: #D1E2F2;
  --nt-muted: #A9BCD4;
  --nt-line: rgba(154, 192, 226, 0.18);
  --nt-line-2: rgba(154, 192, 226, 0.3);
  --nt-head: "M PLUS Rounded 1c", "DIN 2014 Rounded", "Rubik", sans-serif;
  --nt-bar: 84px;
  background: var(--nt-bg);
  color: var(--nt-text);
}
.page-home-night[dir="rtl"], [dir="rtl"] .page-home-night { --nt-head: var(--font-ar); }
@media (min-width: 1100px) { .page-home-night { --nt-bar: 96px; } }

/* ---------- Header: navy topbar + floating mist pill ---------- */
.page-home-night .site-header { background: transparent; }
.page-home-night .topbar { background: var(--nt-bg); border-bottom: 1px solid var(--nt-line); }
.page-home-night .mainbar { border: 0; padding: 10px 0; }
.page-home-night .mainbar-inner {
  background: rgba(242, 246, 251, 0.96);
  border-radius: 22px;
  box-shadow: 0 10px 30px -14px rgba(0, 18, 40, 0.55);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  width: calc(100% - 24px);
  max-width: 1200px;
  padding-inline: 10px;
}
@media (min-width: 1100px) { .page-home-night .mainbar-inner { padding-inline: 24px; } }
.page-home-night .mainnav a { color: #01234B; }
.page-home-night .mainnav a.nav-offers { color: var(--amber); }
.page-home-night .flash { position: relative; z-index: 2; }

/* ---------- Shared bits ---------- */
.page-home-night main a:not(.nt-btn):not(.nt-col):not(.nt-result-card) { color: var(--sky); }
.page-home-night main a:not(.nt-btn):not(.nt-col):not(.nt-result-card):hover { color: #fff; }
.nt-h2 {
  font-family: var(--nt-head);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.06;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}
[dir="rtl"] .nt-h2 { text-transform: none; line-height: 1.3; font-size: clamp(30px, 3.6vw, 46px); }
.nt-lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--nt-muted); }
.nt-eyebrow { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sky); }
.nt-eyebrow span { width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
[dir="rtl"] .nt-eyebrow { letter-spacing: 0; font-size: 15px; }
.nt-link { font-weight: 700; text-underline-offset: 5px; }
.nt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.nt-btn-sky { background: var(--sky); color: #01234B; }
.nt-btn-sky:hover { background: #F2F6FB; color: #01234B; }
.nt-btn-line { background: transparent; color: #fff; border-color: var(--nt-line-2); }
.nt-btn-line:hover { border-color: var(--sky); color: #fff; }
.nt-quiet { background: none; border: 0; padding: 8px 4px; font: inherit; font-weight: 700; font-size: 14px; color: var(--nt-muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.nt-quiet:hover { color: #fff; }
.page-home-night :focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.nt-desk { display: none; }
@media (min-width: 700px) { .nt-desk { display: inline; } .nt-mob { display: none; } }

/* ---------- Hero ---------- */
.nt-hero {
  position: relative;
  margin-top: calc(var(--nt-bar) * -1);
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--nt-bg);
}
@media (min-width: 900px) { .nt-hero { min-height: 700px; } }
.nt-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 16% 50%; }
.nt-hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(1, 35, 75, 0.96) 0%, rgba(1, 35, 75, 0.68) 36%, rgba(1, 35, 75, 0) 64%),
    linear-gradient(180deg, rgba(1, 35, 75, 0.45) 0%, rgba(1, 35, 75, 0) 24%);
}
@media (min-width: 900px) {
  .nt-hero-img { object-position: 50% 50%; }
  .nt-hero-shade {
    background:
      linear-gradient(90deg, rgba(1, 35, 75, 0.8) 0%, rgba(1, 35, 75, 0.3) 50%, rgba(1, 35, 75, 0) 72%),
      linear-gradient(0deg, rgba(1, 35, 75, 0.88) 0%, rgba(1, 35, 75, 0) 40%),
      linear-gradient(180deg, rgba(1, 35, 75, 0.4) 0%, rgba(1, 35, 75, 0) 22%);
  }
  [dir="rtl"] .nt-hero-shade {
    background:
      linear-gradient(270deg, rgba(1, 35, 75, 0.8) 0%, rgba(1, 35, 75, 0.3) 50%, rgba(1, 35, 75, 0) 72%),
      linear-gradient(0deg, rgba(1, 35, 75, 0.88) 0%, rgba(1, 35, 75, 0) 40%),
      linear-gradient(180deg, rgba(1, 35, 75, 0.4) 0%, rgba(1, 35, 75, 0) 22%);
  }
}
.nt-hero-inner {
  position: relative;
  display: flex; flex-direction: column; gap: 22px;
  padding-block: 0 36px;
}
@media (min-width: 900px) {
  .nt-hero-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; padding-block-end: 56px; }
}
.nt-hero-copy { display: flex; flex-direction: column; gap: 14px; max-width: 700px; }
.nt-hero-title {
  font-family: var(--nt-head);
  font-size: clamp(40px, 6.2vw, 78px);
  line-height: 1.03;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #fff;
}
[dir="rtl"] .nt-hero-title { text-transform: none; letter-spacing: 0; line-height: 1.2; font-size: clamp(44px, 6.4vw, 82px); }
.nt-sky { color: var(--sky); }
.nt-hero-from { margin: 0; color: #F2F6FB; font-size: clamp(17px, 1.6vw, 20px); }
.nt-hero-cta { width: 100%; }
@media (min-width: 900px) { .nt-hero-cta { width: auto; } }
[dir="rtl"] .nt-hero-cta .icon, [dir="rtl"] .nt-x-actions .icon { transform: none; }

/* Finished banner mode (Settings → Night hero is a banner): the laptop image carries its own text. */
.nt-hero-link { display: contents; }
@media (min-width: 900px) {
  .nt-hero--banner { display: block; min-height: 0; margin-top: 0; }
  .nt-hero--banner .nt-hero-link { display: block; position: relative; }
  .nt-hero--banner .nt-hero-img { position: static; display: block; width: 100%; height: auto; }
  .nt-hero--banner .nt-hero-shade { display: none; }
  .nt-hero--banner .nt-hero-inner {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}

/* ---------- Collections ---------- */
.nt-cols { padding-block: 56px 48px; }
@media (min-width: 900px) { .nt-cols { padding-block: 88px; } }
.nt-cols .container { display: flex; flex-direction: column; gap: 24px; }
.nt-cols-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.nt-cols-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1000px) { .nt-cols-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.nt-col {
  display: flex; flex-direction: column; gap: 12px;
  padding: 8px 8px 14px; border-radius: 20px; border: 1px solid var(--nt-line);
  text-decoration: none; color: inherit;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.nt-col:hover { border-color: var(--sky); background: rgba(255, 255, 255, 0.03); transform: translateY(-2px); }
.nt-col img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 13px; }
@media (min-width: 1000px) { .nt-col { padding: 12px 12px 20px; border-radius: 22px; } .nt-col img { aspect-ratio: 8 / 5; border-radius: 14px; } }
.nt-col-body { display: flex; flex-direction: column; gap: 3px; padding-inline: 6px; }
.nt-col-name { font-size: clamp(17px, 1.6vw, 20px); color: #fff; }
.nt-col-tag { font-size: 13px; line-height: 1.45; color: var(--nt-muted); }
@media (max-width: 699px) { .nt-col-tag { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
.nt-col-price { font-size: 14px; font-weight: 700; color: var(--sky); padding-top: 4px; white-space: nowrap; }
@media (min-width: 1000px) { .nt-col-tag { font-size: 14px; } .nt-col-price { font-size: 15px; } }
.nt-mob { align-self: center; }

/* ---------- 3D explorer ---------- */
.nt-x { padding-block: 48px; }
@media (min-width: 900px) { .nt-x { padding-block: 64px; } }
.nt-x-inner { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 1000px) { .nt-x-inner { flex-direction: row; align-items: center; gap: 48px; } .nt-x-copy { flex: 1 1 0; } }
.nt-x-stage {
  position: relative; flex: none; min-width: 0;
  height: 340px; border-radius: 24px; overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  perspective: 1500px;
}
@media (min-width: 1000px) { .nt-x-stage { flex: 1.3 1 0; height: 520px; border-radius: 32px; } }
.nt-x-shadow { position: absolute; left: 50%; top: 64%; width: 340px; height: 80px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), transparent); }
@media (min-width: 1000px) { .nt-x-shadow { width: 540px; } }
.nt-x-box {
  position: absolute; left: 50%; top: 50%;
  width: 460px; height: 64px; margin: -32px 0 0 -230px;
  transform-style: preserve-3d;
  --s: 0.62;
}
@media (min-width: 560px) { .nt-x-box { --s: 0.8; } }
@media (min-width: 1000px) { .nt-x-box { --s: 1; } }
.nt-x-box > div, .nt-x-box > div > div { position: absolute; box-sizing: border-box; backface-visibility: visible; }
.nt-x-box > div { transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.nt-x-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 5px 12px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.nt-x-label img { height: 15px; width: auto; display: block; }
.nt-x-label span { font-size: 7px; letter-spacing: 0.16em; color: #fff; font-weight: 700; text-transform: uppercase; font-family: "Rubik", sans-serif; white-space: nowrap; }
.nt-x-hint { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); width: 86%; text-align: center; font-size: 13px; color: var(--nt-muted); }
.nt-x-copy { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.nt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nt-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--nt-line-2); background: transparent; color: #fff;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.nt-chip i { width: 10px; height: 10px; border-radius: 999px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7); }
.nt-chip[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: #01234B; }
.nt-x-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 22px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--nt-line-2); }
.nt-x-name { font-size: 22px; color: #fff; }
.nt-x-tag { font-size: 15px; color: var(--nt-text); }
.nt-x-models { font-size: 14px; color: var(--nt-muted); }
.nt-x-price { font-size: 17px; font-weight: 700; color: var(--sky); padding-top: 4px; }
.nt-x-legend { list-style: none; margin: 10px 0 0; padding: 12px 0 0; border-top: 1px solid var(--nt-line-2); display: flex; flex-direction: column; gap: 8px; }
.nt-x-legend li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--nt-text); }
.nt-x-legend i { width: 18px; height: 18px; border-radius: 5px; flex: none; border: 1px solid rgba(255, 255, 255, 0.3); }
.nt-x-turn { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nt-muted); }
[dir="rtl"] .nt-x-turn { letter-spacing: 0; font-size: 14px; }
.nt-x-turn input { width: 100%; accent-color: var(--sky); }
.nt-x-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.nt-x-note { margin: 0; font-size: 12px; color: var(--nt-muted); opacity: .8; }

/* ---------- Sleep tank ---------- */
.nt-tank-wrap { padding-block: 40px 56px; }
@media (min-width: 900px) { .nt-tank-wrap { padding-block: 64px 88px; } }
.nt-tank {
  border-radius: 26px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--nt-line);
  padding: 28px 20px; display: flex; flex-direction: column; gap: 20px;
}
@media (min-width: 900px) { .nt-tank { flex-direction: row; align-items: center; gap: 56px; padding: 48px; border-radius: 32px; } }
.nt-gauge { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.nt-gauge svg { width: 220px; height: auto; }
@media (min-width: 900px) { .nt-gauge { flex-basis: 300px; } .nt-gauge svg { width: 300px; } }
.nt-gauge-fill { transition: stroke-dashoffset 0.9s cubic-bezier(.2, .7, .2, 1); }
.nt-gauge-needle { transform-origin: 180px 190px; transition: transform 0.9s cubic-bezier(.2, .7, .2, 1); }
.nt-gauge-pct { font-family: "M PLUS Rounded 1c", "Rubik", sans-serif; font-size: clamp(40px, 4vw, 54px); font-weight: 800; color: #fff; line-height: 1; }
.nt-gauge-cap { font-size: 14px; color: var(--nt-muted); }
.nt-tank-copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.nt-eyebrow-plain { letter-spacing: 0.22em; }
[dir="rtl"] .nt-eyebrow-plain { letter-spacing: 0; }
.nt-q { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.nt-q-step { margin: 0; font-size: 13px; color: var(--nt-muted); }
.nt-q-title { margin: 0; font-size: 18px; font-weight: 700; color: #fff; outline: none; }
.nt-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .nt-answers { grid-template-columns: repeat(4, minmax(0, 1fr)); } .nt-answers-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nt-answer {
  min-height: 54px; padding: 12px 10px; border-radius: 16px; border: 1px solid var(--nt-line-2);
  background: transparent; color: #fff; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.3; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.nt-answer:hover { border-color: var(--sky); background: rgba(154, 192, 226, 0.08); }
.nt-result-card {
  display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 18px;
  border: 1px solid var(--nt-line-2); text-decoration: none; color: inherit; max-width: 460px;
}
.nt-result-card:hover { border-color: var(--sky); }
.nt-result-card img { width: 120px; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 12px; flex: none; }
.nt-result-card > span { display: flex; flex-direction: column; gap: 2px; }
.nt-result-card b { color: #fff; font-size: 16px; }
.nt-tank-nav { display: flex; gap: 12px; padding-top: 4px; }

/* ---------- Proof strip ---------- */
.nt-proof { border-top: 1px solid var(--nt-line); }
.nt-proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; padding-block: 32px; }
@media (min-width: 900px) { .nt-proof-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 48px; } }
.nt-proof-item { display: flex; flex-direction: column; gap: 8px; color: var(--sky); }
@media (min-width: 900px) { .nt-proof-item { flex-direction: row; gap: 12px; align-items: flex-start; } }
.nt-proof-item .icon { flex: none; }
.nt-proof-item > span { display: flex; flex-direction: column; gap: 2px; }
.nt-proof-item b { color: #fff; font-size: 15px; }
.nt-proof-item span span { font-size: 13px; color: var(--nt-muted); }
@media (min-width: 900px) { .nt-proof-item b { font-size: 16px; } .nt-proof-item span span { font-size: 14px; } }

/* ---------- Footer + closing strip ---------- */
.page-home-night .site-footer { background: var(--nt-deep); border-top: 1px solid var(--nt-line); }
.page-home-night .footer-bottom { background: #00142D; }
.page-home-night .footer-col { border-color: var(--nt-line); }
@media (min-width: 900px) { .page-home-night .footer-col summary { border-bottom-color: var(--nt-line-2); } }
.page-home-night .footer-form input { border-radius: 999px; }
.nt-strip { background: #1B3B60; color: #F2F6FB; font-size: 13px; font-weight: 500; text-align: center; padding: 9px 16px; }
.page-home-night .wa-float { bottom: 52px; }

@media (prefers-reduced-motion: reduce) {
  .nt-gauge-fill, .nt-gauge-needle, .nt-x-box > div, .nt-col { transition: none; }
}
