/* Nelson Studio — "Midnight Chrome" design system.
   Late-night neon, liquid chrome, synth-pop glow. Dark-only by design.
   Class names are unchanged from the previous light theme so order.js,
   song.js and gift.js keep working; only the look changed.
   Previous theme is saved in /_design-backup-2026-10-25/. */

:root {
  color-scheme: dark;

  /* night */
  --bg: #12070f;
  --bg-2: #1a0b16;
  --bg-3: #24101f;

  /* text */
  --ink: #f6eef4;
  --ink-2: #cbbac7;
  --ink-3: #9a8796;

  /* hairlines */
  --line: rgba(255, 236, 248, .09);
  --line-2: rgba(255, 236, 248, .18);

  /* neon */
  --accent: #ff2e55;
  --accent-ink: #ff7d98;
  --accent-soft: rgba(255, 46, 85, .14);
  --pop: #ff8ad8;
  --pop-soft: rgba(255, 138, 216, .14);
  --danger: #ff6b80;
  --danger-soft: rgba(255, 46, 85, .1);

  /* liquid chrome — a horizon-line chrome, bright sky over a dark band */
  /* horizon chrome, for big multi-line display type (tiled per line) */
  --chrome: linear-gradient(180deg, #ffffff 0%, #f3eff6 34%, #a69cb0 49%, #6f6579 53%, #d9d2e0 66%, #ffffff 100%);
  /* soft chrome, for short labels, numbers and prices: no hard band, so it never reads as a strikethrough */
  --chrome-soft: linear-gradient(170deg, #ffffff 0%, #ece6f1 40%, #b9afc4 72%, #f4f0f7 100%);
  --chrome-flat: linear-gradient(145deg, #fbf9fc 0%, #cfc7d6 34%, #8a8094 58%, #efeaf2 100%);
  --neon-glow: 0 0 18px rgba(255, 46, 85, .55), 0 0 42px rgba(255, 46, 85, .25);

  --font-display: "Unbounded", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
img, iframe { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--pop); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 84px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 26px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

h1, h2 { font-family: var(--font-display); font-weight: 600; }
h3 { letter-spacing: -.01em; }

/* chrome text — use on display type only */
.chrome-text {
  background: var(--chrome-soft);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

@keyframes ns-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ns-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ns-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- nav ---------- */
header.site-nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(18, 7, 15, .72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.site-nav .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: .6em; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.02em; }
/* the mark: a soft tile in the current vibe colours with three bouncy sound bars */
.brand .mark {
  position: relative; flex: none; width: 28px; height: 28px; border-radius: 9px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='15' y='25' width='8' height='16' rx='4' fill='%23fff'/%3E%3Crect x='28' y='14' width='8' height='36' rx='4' fill='%23fff'/%3E%3Crect x='41' y='21' width='8' height='24' rx='4' fill='%23fff'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
    linear-gradient(135deg, var(--v2, #ff8ad8), var(--v1, #ff2e55));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 16px -4px var(--v1, #ff2e55);
  transition: box-shadow .6s var(--ease);
}
.navlinks { display: flex; align-items: center; gap: 30px; }
.navlinks a.link { font-size: .92rem; color: var(--ink-2); transition: color .18s var(--ease), text-shadow .18s var(--ease); }
.navlinks a.link:hover { color: var(--ink); text-shadow: 0 0 12px rgba(255, 138, 216, .6); }
.burger { display: none; background: none; border: 0; color: var(--ink); font-size: 1.5rem; cursor: pointer; line-height: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; padding: .95em 1.7em; border-radius: 100px;
  cursor: pointer; border: 1px solid transparent; text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
/* primary: a liquid-chrome pill that lights up neon on hover */
.btn-dark {
  background: var(--chrome-flat); color: #1a0b16; border-color: rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -2px 4px rgba(40, 20, 40, .35), 0 8px 24px -10px rgba(0,0,0,.8);
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -2px 4px rgba(40,20,40,.35), var(--neon-glow); }
.btn-light { background: rgba(255,255,255,.03); color: var(--ink); border-color: var(--line-2); }
.btn-light:hover { border-color: var(--pop); color: #fff; box-shadow: 0 0 20px -4px rgba(255, 138, 216, .45); }
.btn-sm { padding: .7em 1.4em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------- sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: .9rem; font-weight: 600; color: var(--pop); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow .rule { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.section-head { margin-bottom: 46px; max-width: 58ch; }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); letter-spacing: -.025em; line-height: 1.08; margin: 0; }
.section-head p { color: var(--ink-2); margin-top: 14px; font-size: 1.05rem; }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: 22px; padding: 30px;
}
/* the featured card gets a thin chrome edge and a neon underglow */
.card-accent {
  position: relative; overflow: hidden; border-color: transparent;
  background:
    linear-gradient(var(--bg-3), var(--bg-2)) padding-box,
    linear-gradient(160deg, rgba(255,255,255,.75), rgba(160,150,170,.25) 30%, rgba(255,46,85,.7) 100%) border-box;
  box-shadow: 0 40px 80px -40px rgba(255, 46, 85, .45);
}
.price-tag { font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; letter-spacing: -.03em; margin: 10px 0 4px; }
.price-tag .num { background: var(--chrome-soft); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.price-tag .unit { font-family: var(--font-body); font-size: .95rem; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.tick-list { list-style: none; margin: 20px 0 0; padding: 0; }
.tick-list li { padding: 11px 0 11px 30px; position: relative; color: var(--ink-2); font-size: .95rem; border-top: 1px solid var(--line); }
.tick-list li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); filter: drop-shadow(0 0 4px rgba(255,46,85,.7)); }

/* ---------- forms ---------- */
.field { display: block; }
.field + .field { margin-top: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field-label .optional { color: var(--ink-3); font-weight: 400; }
.input, select.input, textarea.input {
  width: 100%; padding: .85em 1em; border: 1px solid var(--line-2); border-radius: 12px;
  background: rgba(255,255,255,.04); font-size: .98rem; color: var(--ink); font-family: inherit;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.input::placeholder { color: #7d6b7a; }
.input:focus, select.input:focus, textarea.input:focus { border-color: var(--accent); background: rgba(255,255,255,.06); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 22px -6px rgba(255,46,85,.6); outline: none; }
select.input option { background: var(--bg-2); color: var(--ink); }
textarea.input { resize: vertical; }
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: block; padding: .8em 1em; border: 1px solid var(--line-2); border-radius: 12px;
  background: rgba(255,255,255,.03); font-size: .92rem; text-align: center; cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.chip span:hover { border-color: rgba(255,138,216,.5); }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: #fff; font-weight: 600; box-shadow: 0 0 18px -4px rgba(255, 46, 85, .65), inset 0 0 12px -6px rgba(255,46,85,.8); }
.chip input:focus-visible + span { outline: 2px solid var(--pop); outline-offset: 2px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--ink-2); }
.check-row input { margin-top: 3px; accent-color: var(--accent); }
.error-box { margin-top: 16px; font-size: .9rem; color: var(--danger); background: var(--danger-soft); border: 1px solid rgba(255,46,85,.35); border-radius: 12px; padding: 10px 14px; }
.hint { color: var(--ink-3); font-size: .84rem; margin: 10px 0 0; }

audio { width: 100%; color-scheme: dark; }

/* ---------- footer ---------- */
footer.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg); }
footer.site-footer .bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--ink-3); font-size: .86rem; }
footer.site-footer .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site-footer .legal-links a:hover { color: var(--pop); }

/* ---------- mobile menu ---------- */
#ns-scrim { display: none; position: fixed; inset: 0; z-index: 90; background: rgba(8, 2, 6, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
#ns-mobile-menu { position: fixed; top: 0; right: 0; z-index: 95; height: 100%; width: min(82vw, 330px); transform: translateX(106%); background: linear-gradient(170deg, var(--bg-3) 0%, var(--bg) 100%); border-left: 1px solid var(--line-2); box-shadow: -30px 0 80px -30px rgba(255, 46, 85, .35); display: flex; flex-direction: column; padding: 22px 24px; transition: transform .32s var(--ease); }
#ns-mobile-menu.open { transform: translateX(0); }
#ns-mobile-menu a { padding: 15px 0; font-size: 1.08rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
#ns-mobile-menu a.btn { border-bottom: 0; color: #1a0b16; }
#ns-mobile-menu [data-close-menu] { background: rgba(255,255,255,.06) !important; border: 1px solid var(--line-2) !important; color: var(--ink); }
body.menu-open #ns-scrim { display: block; }

/* legal pages share this sheet */
main.legal a { color: var(--accent-ink); }

@media (max-width: 860px) {
  .navlinks { display: none; }
  .burger { display: block; }
  .field-row, .chip-grid { grid-template-columns: 1fr; }
}

/* ===== song + gift pages: cover art for the delivered song ===== */
.song-cover { --c1: #a855f7; --c2: #f472b6; position: relative; width: min(240px, 62vw); aspect-ratio: 1; margin: 0 auto 22px; }
.song-cover .sc-art { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 60px -20px var(--c1), 0 0 0 1px rgba(255,255,255,.08); z-index: 1; }
.song-cover .sc-disc { position: absolute; top: 8%; right: -16%; width: 84%; aspect-ratio: 1; border-radius: 50%; z-index: 0; animation: ns-spin 8s linear infinite;
  background: radial-gradient(circle, #0b0610 0 4%, var(--c2) 4.5%, var(--c1) 20%, transparent 21%), repeating-radial-gradient(circle, rgba(0,0,0,.25) 0 1px, transparent 1px 3px), conic-gradient(from 20deg, #fbf9fc, #8a8094, #ece7f0, #4e4556, #fbf9fc); }
#delivered .song-cover { margin-left: 0; }
.reveal-card { position: relative; overflow: hidden; isolation: isolate; }
.reveal-art { position: absolute; inset: 0; z-index: -1; opacity: .75; -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); }
.song-cover { width: min(160px, 44vw); }

/* ===== listen anywhere (song + gift pages) ===== */
.listen-card { margin-top: 24px; }
.la-ver { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: .9rem; font-weight: 600; }
.la-ver select { max-width: 240px; padding: .5em .8em; }
.la-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.la-btn { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.la-btn:hover { border-color: rgba(255,255,255,.3); }
.la-btn b { display: block; font-size: .95rem; }
.la-btn small { display: block; color: var(--ink-3); font-size: .78rem; margin-top: 2px; }
.la-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: .9rem; }
.la-btn.spotify .la-ico { background: #1ed760; color: #08130b; }
.la-btn.is-busy { opacity: .6; cursor: progress; }
.la-out { margin-top: 12px; }
.la-out:empty { display: none; }
.la-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
.la-steps b { color: var(--ink); }
.la-out a { color: var(--accent-ink); }
.la-video { width: min(260px, 70vw); aspect-ratio: 9 / 16; border-radius: 14px; background: #000; display: block; }
@media (max-width: 520px) { .la-grid { grid-template-columns: 1fr; } }

/* ===== sing-along player ===== */
body.sa-open { overflow: hidden; }
.sa-overlay { --c1: #a855f7; --c2: #f472b6; position: fixed; inset: 0; z-index: 200; background: #07040a; color: #fff; display: flex; flex-direction: column; }
.sa-bg { position: absolute; inset: 0; z-index: 0; }
.sa-bg > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sa-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 50%, rgba(7,4,10,.55), rgba(7,4,10,.8)); }
.sa-bg.flat { inset: -10%; opacity: .32; filter: blur(30px) saturate(1.2); }
.sa-bg svg { width: 100%; height: 100%; }
.song-cover .sc-art > img, .reveal-art > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reveal-art > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sa-overlay > :not(.sa-bg) { position: relative; z-index: 1; }
.sa-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; }
.sa-top b { display: block; font-family: var(--font-display); font-size: 1.05rem; } .sa-top span { font-size: .85rem; color: var(--c2); }
.sa-top-btns { display: flex; gap: 8px; }
.sa-icon { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font-size: 1.05rem; cursor: pointer; }
.sa-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 6vw; gap: 2.2vh; }
.sa-prev, .sa-next { font-size: clamp(1rem, 2.4vw, 1.6rem); color: rgba(255,255,255,.42); min-height: 1.4em; }
.sa-line { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 5.4vw, 4.2rem); line-height: 1.2; min-height: 1.3em; letter-spacing: -.01em; }
.sa-line span { color: rgba(255,255,255,.38); transition: color .15s, text-shadow .15s; }
.sa-line span.on { color: #fff; text-shadow: 0 0 24px var(--c1); }
.sa-line .sa-wait { color: var(--c2); font-size: .5em; }
.sa-bar { display: flex; align-items: center; gap: 12px; padding: 16px 22px 24px; flex-wrap: wrap; }
.sa-play { width: 54px; height: 54px; border-radius: 50%; border: 0; background: #fff; color: #0b0610; font-size: 1.1rem; cursor: pointer; box-shadow: 0 0 24px -4px var(--c1); }
.sa-t { font-size: .85rem; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.sa-seek { flex: 1; min-width: 140px; accent-color: var(--c1); }
.sa-voc { display: flex; border: 1px solid rgba(255,255,255,.2); border-radius: 100px; overflow: hidden; }
.sa-voc button { background: transparent; color: #fff; border: 0; padding: 9px 14px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.sa-voc button[aria-pressed="true"] { background: var(--c1); }
.sa-loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.1rem; color: rgba(255,255,255,.8); }
@media (max-width: 600px) { .sa-voc { width: 100%; justify-content: center; } .sa-voc button { flex: 1; } }

/* lyric video form, upgrades, schedule, gift card */
.grp-l { font-size: .84rem; font-weight: 600; color: var(--ink-3); margin: 12px 0 6px; } .grp-l small { font-weight: 400; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 100px; overflow: hidden; }
.seg button { background: transparent; color: var(--ink); border: 0; padding: 8px 14px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: rgba(255,255,255,.12); }
.lv-photos { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: 12px; cursor: pointer; font-size: .9rem; }
.lv-photos input { display: none; }
.lv-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 8px; } .lv-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s linear; }
.lv-video { display: block; border-radius: 14px; background: #000; max-width: 100%; }
.lv-video.land { width: 100%; aspect-ratio: 16 / 9; } .lv-video.port { width: min(260px, 70vw); aspect-ratio: 9 / 16; }
.gc-img { width: min(300px, 80vw); border-radius: 14px; display: block; box-shadow: 0 10px 40px -10px rgba(0,0,0,.6); }
.up-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.up-card { border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; background: rgba(255,255,255,.03); }
.up-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .up-top span { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.up-card p { font-size: .86rem; color: var(--ink-3); margin: 6px 0 10px; }
.up-card select { margin-top: 2px; }
.sched-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.update-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding: 14px 16px; border-radius: 14px; background: rgba(255,46,85,.12); border: 1px solid rgba(255,46,85,.4); }
@media (max-width: 600px) { .up-grid, .sched-grid { grid-template-columns: 1fr; } }

/* live 3D fades in over the poster once the page has loaded */
canvas.ns3d { opacity: 0; transition: opacity .9s ease; }
canvas.ns3d.on { opacity: 1; }

/* the hidden attribute always wins over component display rules */
[hidden] { display: none !important; }
