/* ===== דף הבית: לילה, זהב וסרט מתנה ===== */
body.h2 { background: var(--cream) }
.h2 .section { padding: 84px 0 }
.nx-head { text-align: center; max-width: 680px; margin: 0 auto 38px }
.nx-head.start { text-align: right; margin: 0 0 26px }
.nx-head h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 10px }
.nx-head .sub { font-size: 18px; color: var(--muted); margin: 0 }
.nx-kicker { display: inline-block; font-weight: 700; letter-spacing: .04em; color: var(--gold); font-size: 15px; margin-bottom: 10px }
.nx-kicker.dark { color: var(--ribbon) }
.gold { background: linear-gradient(90deg, #f3d48a, #d4a24c 45%, #f6dfa2 70%, #c08a2e); -webkit-background-clip: text; background-clip: text; color: transparent }

/* stars */
.nx-stars { position: absolute; inset: 0; pointer-events: none; opacity: .75;
  background-image: radial-gradient(1.4px 1.4px at 12% 22%, #fff8 50%, transparent), radial-gradient(1px 1px at 28% 68%, #fff6 50%, transparent), radial-gradient(1.6px 1.6px at 47% 14%, #f3d48a 50%, transparent), radial-gradient(1px 1px at 63% 42%, #fff7 50%, transparent), radial-gradient(1.3px 1.3px at 81% 76%, #f3d48a99 50%, transparent), radial-gradient(1px 1px at 91% 18%, #fff8 50%, transparent), radial-gradient(1.2px 1.2px at 6% 84%, #fff5 50%, transparent), radial-gradient(1px 1px at 38% 90%, #fff6 50%, transparent);
  animation: twinkle 6s ease-in-out infinite alternate }
@keyframes twinkle { to { opacity: .35 } }

/* ===== HERO ===== */
.nx-hero { position: relative; overflow: hidden; color: #eef1f5; background: radial-gradient(1100px 600px at 20% 30%, #1f4e5f 0%, transparent 60%), radial-gradient(900px 500px at 90% 90%, #3a1f3d55, transparent 60%), linear-gradient(160deg, #0b1a2c, #10233b 55%, #0d1f33) ; padding: 70px 0 120px }
.nx-hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; position: relative }
.nx-hero h1 { color: #fff; font-size: clamp(40px, 5.6vw, 72px); font-weight: 900; line-height: 1.08; margin-bottom: 20px }
.nx-lead { font-size: 20px; color: #c9d3de; max-width: 560px; margin: 0 0 28px }
.nx-lead b { color: #fff }
.nx-hero .ctas { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-bottom: 26px }
.nx-link { color: #f3d48a; text-decoration: none; font-weight: 600; border-bottom: 1px dashed #f3d48a88; padding-bottom: 2px }
.nx-ticks { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px 22px; flex-wrap: wrap; color: #aeb9c6; font-size: 15px }
.nx-ticks li::before { content: '✦ '; color: var(--gold) }
.nx-ticks s { opacity: .6 }
.nx-wave { position: absolute; bottom: -1px; left: 0; right: 0; height: 70px; background: var(--cream); clip-path: ellipse(75% 100% at 50% 100%) }

/* wrapped book */
.nx-gift { position: relative; height: 470px; perspective: 1400px; display: flex; align-items: center; justify-content: center }
.nx-book { position: relative; width: 290px; height: 410px; transform-style: preserve-3d; transform: rotateY(-22deg) rotateX(6deg); animation: float 6s ease-in-out infinite; transition: transform .6s }
.nx-gift:hover .nx-book { transform: rotateY(-8deg) rotateX(2deg) scale(1.03) }
@keyframes float { 50% { translate: 0 -12px } }
.nx-cover { position: absolute; inset: 0; border-radius: 4px 12px 12px 4px; overflow: hidden; background: #234; box-shadow: 0 40px 70px rgba(0, 0, 0, .55), inset 6px 0 10px rgba(0, 0, 0, .35); transform: translateZ(14px) }
.nx-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s }
.nx-cover img.on { opacity: 1 }
.nx-cover .t { position: absolute; inset: 0 0 auto 0; padding: 18px 18px 46px 56px; background: linear-gradient(rgba(0, 0, 0, .7), transparent); color: #fff; font: 700 22px/1.2 'Frank Ruhl Libre', serif; text-align: center; transition: opacity .6s }
.nx-pages { position: absolute; top: 6px; bottom: 6px; left: -14px; width: 26px; background: repeating-linear-gradient(90deg, #f6efe0 0 2px, #e3d8c3 2px 3px); border-radius: 3px 0 0 3px; transform: rotateY(-90deg) translateZ(0); transform-origin: right }
.nx-ribbon-v, .nx-ribbon-h { position: absolute; background: linear-gradient(90deg, #8e2433, #c94455 50%, #8e2433); transform: translateZ(16px); box-shadow: 0 2px 8px rgba(0, 0, 0, .3) }
.nx-ribbon-v { top: 0; bottom: 0; left: 11%; width: 26px }
.nx-ribbon-h { left: 0; right: 0; top: 38%; height: 26px; background: linear-gradient(180deg, #8e2433, #c94455 50%, #8e2433) }
.nx-bow { position: absolute; left: calc(11% - 34px); top: calc(38% - 30px); width: 94px; height: 86px; transform: translateZ(20px) }
.nx-bow i { position: absolute; top: 8px; width: 46px; height: 40px; border: 10px solid #c94455; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: transparent }
.nx-bow i:first-child { right: 2px; transform: rotate(24deg) }
.nx-bow i:nth-child(2) { left: 2px; transform: rotate(-24deg) }
.nx-bow b { position: absolute; left: 35px; top: 22px; width: 24px; height: 24px; border-radius: 6px; background: #a8323f; box-shadow: inset 0 -3px 0 #7c2430 }
.nx-tag { position: absolute; left: 4%; bottom: 40px; width: 190px; padding: 16px 18px 14px 18px; background: #fbf4e2; color: #3b2a12; border-radius: 6px 6px 6px 6px; clip-path: polygon(14% 0, 100% 0, 100% 100%, 14% 100%, 0 50%); padding-left: 38px; box-shadow: 0 14px 30px rgba(0, 0, 0, .4); transform: rotate(-9deg); transform-origin: right center; animation: swing 4s ease-in-out infinite; font-family: 'Frank Ruhl Libre', serif }
.nx-tag small { display: block; font: 600 11px 'Assistant'; letter-spacing: .12em; color: #a8323f }
.nx-tag div { font-size: 19px; font-weight: 700; min-height: 1.3em; white-space: nowrap }
.nx-tag div::after { content: '|'; color: #a8323f; animation: blink 1s steps(1) infinite; margin-right: 1px }
.nx-hole { position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #10233b; box-shadow: inset 0 0 0 2px #d4a24c }
@keyframes swing { 50% { transform: rotate(-4deg) } }
@keyframes blink { 50% { opacity: 0 } }

/* ===== ONE OF ONE ===== */
.nx-one { padding: 40px 0 10px }
.nx-one-in { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; max-width: 920px }
.nx-one-num { font: 900 150px/1 'Frank Ruhl Libre', serif; color: var(--plum); position: relative }
.nx-one-num small { font-size: 46px; color: var(--gold) }
.nx-one h2 { font-size: clamp(26px, 3.4vw, 38px) }
.nx-one p { font-size: 19px; color: var(--muted); margin: 0 }

/* ===== WHO: gift tags on a string ===== */
.nx-who { padding-bottom: 60px !important }
.nx-string { position: relative; overflow-x: auto; padding: 0 0 24px; scrollbar-width: none }
.nx-string::-webkit-scrollbar { display: none }
.nx-tags { display: flex; gap: 22px; padding: 30px 40px 10px; width: max-content; margin: 0 auto; position: relative }
.nx-tags::before { content: ''; position: absolute; top: 14px; right: 0; left: 0; height: 2px; background: repeating-linear-gradient(90deg, #a8323f 0 10px, #c94455 10px 20px); border-radius: 2px }
.wtag { position: relative; display: block; width: 170px; text-decoration: none; color: var(--ink); transform-origin: top center; transform: rotate(var(--r, 0deg)); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1) }
.wtag:hover { transform: rotate(0) translateY(6px) }
.wtag::before { content: ''; position: absolute; top: -16px; left: 50%; width: 2px; height: 22px; background: #a8323f }
.wtag .card-t { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 10px 24px rgba(16, 35, 59, .1); clip-path: polygon(20% 0, 80% 0, 100% 11%, 100% 100%, 0 100%, 0 11%) }
.wtag .ph { position: relative; display: block; height: 150px; background: #ddd center/cover }
.wtag .ph::after { content: ''; position: absolute; top: 12px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--cream); box-shadow: inset 0 0 0 2px var(--gold) }
.wtag b { display: block; font: 700 21px 'Frank Ruhl Libre', serif; padding: 12px 14px 2px; color: var(--plum) }
.wtag small { display: block; padding: 0 14px 14px; color: var(--muted); font-size: 14px; line-height: 1.4; min-height: 54px }

/* ===== GALLERY ===== */
.nx-gal { background: linear-gradient(180deg, #10233b, #132c45); color: #e6ebf1 }
.nx-gal h2 { color: #fff }
.nx-gal .sub { color: #b5c1ce }
.nx-gal-in { display: grid; grid-template-columns: 420px 1fr; gap: 48px; align-items: center }
.nx-frame { margin: 0; text-align: center }
.nx-canvas { padding: 18px; background: linear-gradient(135deg, #f3d48a, #b8862f 30%, #f6dfa2 55%, #9c6f22); border-radius: 4px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5), inset 0 0 0 2px #00000033 }
.nx-canvas img { display: block; width: 100%; aspect-ratio: 2/3; object-fit: cover; box-shadow: inset 0 0 0 1px #0004; background: #222; transition: opacity .35s, transform .35s }
.nx-canvas img.swap { opacity: 0; transform: scale(.98) }
.nx-plaque { display: inline-block; margin-top: 20px; padding: 10px 22px; background: #fbf4e2; color: #3b2a12; border-radius: 3px; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); max-width: 360px }
.nx-plaque b { display: block; font: 700 20px 'Frank Ruhl Libre', serif }
.nx-plaque span { font-size: 14px; color: #6b5a3e }
.nx-swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px }
.sw { cursor: pointer; border: 0; padding: 0; background: none; color: #d9e0e8; font: 500 13px 'Assistant'; text-align: center }
.sw img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid transparent; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); transition: .25s; margin-bottom: 6px }
.sw:hover img { transform: scale(1.07) }
.sw.on img { border-color: var(--gold); transform: scale(1.1) }
.sw.on { color: #f3d48a; font-weight: 700 }

/* ===== COVERFLOW ===== */
.nx-flow-sec { overflow: hidden }
.nx-flow { position: relative; height: 470px; perspective: 1600px; outline: none }
.fc { position: absolute; left: 50%; top: 10px; width: 260px; margin-left: -130px; aspect-ratio: 2/3; transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .7s, filter .7s; cursor: pointer }
.fc .bk { position: absolute; inset: 0; border-radius: 3px 10px 10px 3px; overflow: hidden; box-shadow: 0 26px 46px rgba(16, 35, 59, .35), inset 5px 0 8px rgba(0, 0, 0, .3) }
.fc img { width: 100%; height: 100%; object-fit: cover; display: block }
.fc .bk::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .6), transparent 42%) }
.fc .ti { position: absolute; z-index: 1; inset: 16px 12px auto; text-shadow: 0 2px 8px rgba(0, 0, 0, .55); color: #fff; font: 700 18px/1.25 'Frank Ruhl Libre', serif; text-align: center }
.fc .refl { position: absolute; top: 100%; left: 0; right: 0; height: 60px; margin-top: 4px; background: center top/cover; transform: scaleY(-1); opacity: .18; -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); border-radius: 10px }
.nx-flow-ctl { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 6px }
.nx-flow-ctl button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--plum); background: transparent; color: var(--plum); font-size: 20px; cursor: pointer; transition: .2s }
.nx-flow-ctl button:hover { background: var(--plum); color: #fff }
.nx-flow-cap { min-width: 260px; text-align: center }
.nx-flow-cap b { display: block; font: 700 22px 'Frank Ruhl Libre', serif; color: var(--plum) }
.nx-flow-cap span { display: inline-flex; gap: 8px; margin-top: 4px }
.nx-flow-cap i { font-style: normal; font-size: 13px; padding: 3px 12px; border-radius: 999px; background: #fbf1dc; color: #7a5413; border: 1px solid #ecd9ae }
.nx-flow-cap i.who { background: #f7e3e5; color: #8e2433; border-color: #ecc5ca }

/* ===== HOW ===== */
.nx-how { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.nx-how-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center }
.nx-path { list-style: none; padding: 0; margin: 0 0 28px; position: relative }
.nx-path::before { content: ''; position: absolute; right: 22px; top: 20px; bottom: 30px; border-right: 2px dashed #d4a24c88 }
.nx-path li { display: flex; gap: 18px; margin-bottom: 22px; position: relative }
.nx-path i { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 900 20px 'Frank Ruhl Libre', serif; font-style: normal; background: var(--plum); color: #f3d48a; box-shadow: 0 0 0 6px var(--paper) }
.nx-path b { font: 700 20px 'Frank Ruhl Libre', serif; color: var(--plum) }
.nx-path p { margin: 4px 0 0; color: var(--muted) }

/* ===== BAND ===== */
.nx-band { background: var(--ribbon); background: linear-gradient(135deg, #8e2433, #a8323f 60%, #7c2430); color: #fff; padding: 70px 0; position: relative; overflow: hidden }
.nx-band::before { content: ''; position: absolute; top: 0; bottom: 0; right: 18%; width: 34px; background: #ffffff14 }
.nx-band h2 { color: #fff; text-align: center; font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 36px }
.nx-band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative }
.nx-band-grid div { background: #ffffff12; border: 1px solid #ffffff2b; border-radius: 14px; padding: 22px }
.nx-band-grid b { display: block; font: 700 22px 'Frank Ruhl Libre', serif; color: #f6dfa2; margin-bottom: 6px }
.nx-band-grid span { color: #f3dfe2; font-size: 15.5px }

/* ===== CERTIFICATE ===== */
.nx-cert { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; max-width: 960px; margin: 0 auto; padding: 40px 44px; background: var(--paper); border: 2px solid var(--gold); outline: 1px solid var(--gold); outline-offset: -10px; border-radius: 6px; box-shadow: var(--shadow) }
.nx-cert h2 { font-size: clamp(24px, 3vw, 34px) }
.nx-cert p { color: var(--muted); font-size: 17px }
.nx-seal { width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; text-align: center; color: #fff; font: 700 17px/1.25 'Frank Ruhl Libre', serif; background: radial-gradient(circle, #a8323f 55%, #8e2433 56%); box-shadow: 0 0 0 6px #fbf1dc, 0 0 0 8px #a8323f55, 0 10px 20px rgba(0, 0, 0, .2); transform: rotate(-10deg) }
.nx-cert-price { padding-top: 14px; border-top: 1px dashed var(--line); font-size: 16px }
.nx-cert-price b { font-size: 22px; color: var(--plum) }
.nx-cert-price a { margin-right: 10px; font-weight: 600; color: var(--ribbon) }

/* ===== FAQ ===== */
.nx-faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start }
.nx-faq details { border-bottom: 1px solid var(--line); padding: 16px 0 }
.nx-faq summary { cursor: pointer; font: 700 19px 'Frank Ruhl Libre', serif; color: var(--plum); list-style: none; display: flex; justify-content: space-between; gap: 12px }
.nx-faq summary::-webkit-details-marker { display: none }
.nx-faq summary::after { content: '+'; color: var(--gold); font-size: 26px; line-height: 1; transition: .2s }
.nx-faq details[open] summary::after { transform: rotate(45deg) }
.nx-faq details p { color: var(--muted); margin: 10px 0 0 }

/* ===== FINAL ===== */
.nx-final { position: relative; overflow: hidden; background: linear-gradient(160deg, #0b1a2c, #10233b); color: #c9d3de; padding: 90px 0; text-align: center }
.nx-final h2 { color: #fff; font-size: clamp(32px, 4.4vw, 54px) }
.nx-final p { font-size: 19px; margin: 0 0 26px }
.nx-final small { display: block; margin-top: 14px; color: #8f9cab }

/* ===== mobile ===== */
@media (max-width: 900px) {
  .nx-hero { padding: 40px 0 100px }
  .nx-hero-in, .nx-gal-in, .nx-how-in, .nx-faq-in { grid-template-columns: 1fr }
  .nx-gift { height: 330px }
  .nx-book { width: 190px; height: 270px }
  .nx-hero h1 { font-size: 40px }
  .nx-tag { left: 0; bottom: 10px; width: 160px }
  .nx-one-in { grid-template-columns: 1fr; text-align: center; gap: 4px }
  .nx-one-num { font-size: 110px }
  .nx-gal-in { gap: 30px }
  .nx-frame { max-width: 250px; margin: 0 auto }
  .wtag { width: 140px }
  .wtag .ph { height: 120px }
  .nx-swatches { grid-template-columns: repeat(4, 1fr) }
  .nx-band-grid { grid-template-columns: 1fr 1fr }
  .nx-cert { grid-template-columns: 1fr; text-align: center; padding: 30px 22px }
  .nx-seal { margin: 0 auto }
  .nx-flow { height: 400px }
  .fc { width: 210px; margin-left: -105px }
}
@media (max-width: 520px) { .nx-band-grid { grid-template-columns: 1fr } }
@media (prefers-reduced-motion: reduce) { .nx-book, .nx-tag, .nx-stars { animation: none } }

/* הדגמת המדריך: ההודעות צמודות למטה, וההקלטה מופיעה בשורת המיקרופון */
.h2 .ph-body > :first-child { margin-top: auto }
.ph-bar.rec .ph-in { background: #fbe9eb; color: #a8323f; display: flex; align-items: center; gap: 8px; font-weight: 600 }
.ph-bar.rec .ph-in::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #d1293d; animation: blink 1s steps(1) infinite }
.ph-bar .recwave { display: flex; align-items: center; gap: 2px; flex: 1 }
.ph-bar .recwave b { width: 3px; height: 6px; border-radius: 2px; background: #c94455; animation: wv .8s ease-in-out infinite }
.ph-bar .recwave b:nth-child(2n) { animation-delay: .15s } .ph-bar .recwave b:nth-child(3n) { animation-delay: .3s }
.ph-bar.rec .ph-mic { background: #d1293d; box-shadow: 0 0 0 0 rgba(209, 41, 61, .5); animation: recpulse 1.2s infinite }
@keyframes recpulse { 70% { box-shadow: 0 0 0 12px rgba(209, 41, 61, 0) } 100% { box-shadow: 0 0 0 0 rgba(209, 41, 61, 0) } }

/* מרווחים מהודקים */
.h2 .section { padding: 56px 0 }
.nx-head { margin-bottom: 26px }
.nx-hero { padding: 48px 0 96px }
.nx-one { padding: 28px 0 0 }
.nx-who { padding-bottom: 36px !important }
.nx-band { padding: 52px 0 }
.nx-final { padding: 66px 0 }
.nx-flow { height: 440px }
.nx-path li { margin-bottom: 16px }
