/* Hand-written additions on top of the compiled Tailwind build (site.css). */

/* ---- Homepage KeyEngine hero: installer palette + slow ambient glow ---- */
.ke-hero {
  background: #110f1b;
  isolation: isolate;
}
.ke-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* faint lift towards the centre, like the installer window */
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgb(30 30 48 / 0.55), transparent 70%);
}
.ke-hero-bg span {
  --s: clamp(420px, 80vw, 1100px);
  position: absolute;
  width: var(--s);
  aspect-ratio: 1;
  border-radius: 50%;
  will-change: translate, scale, opacity;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
/* Fade the glows in once site.js has synced them to the clock, so moving between pages
   continues the animation instead of restarting it (which looked like a jump). */
.ke-hero-bg { opacity: 0; transition: opacity 0.6s ease; }
.ke-hero-bg.ke-ready { opacity: 1; }
/* Very faint static grain: the glows are only a few colour levels above the background, so
   without dithering each slow fade moves in visible 1-level steps (a periodic "flicker"). */
.ke-hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: 0.045; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* top right: rose <-> magenta-pink */
/* offsets are fractions of the glow's own size, so each glow hugs its corner at any card shape */
.ke-glow-tr-a, .ke-glow-tr-b { top: calc(var(--s) * -0.23); right: calc(var(--s) * -0.37); }
.ke-glow-tr-a {
  background: radial-gradient(closest-side, rgb(240 120 175 / 0.11), rgb(240 120 175 / 0.04) 55%, transparent);
  animation-name: ke-move-tr, ke-breathe, ke-fade-a;
  animation-duration: 26s, 17s, 19s;
}
.ke-glow-tr-b {
  background: radial-gradient(closest-side, rgb(205 110 225 / 0.10), rgb(205 110 225 / 0.035) 55%, transparent);
  animation-name: ke-move-tr, ke-breathe, ke-fade-b;
  animation-duration: 31s, 21s, 19s;
  animation-delay: -9s, -5s, 0s;
}
/* bottom left: violet <-> periwinkle */
.ke-glow-bl-a, .ke-glow-bl-b { bottom: calc(var(--s) * -0.23); left: calc(var(--s) * -0.37); }
.ke-glow-bl-a {
  background: radial-gradient(closest-side, rgb(120 105 245 / 0.11), rgb(120 105 245 / 0.04) 55%, transparent);
  animation-name: ke-move-bl, ke-breathe, ke-fade-a;
  animation-duration: 29s, 19s, 23s;
}
.ke-glow-bl-b {
  background: radial-gradient(closest-side, rgb(150 175 250 / 0.09), rgb(150 175 250 / 0.03) 55%, transparent);
  animation-name: ke-move-bl, ke-breathe, ke-fade-b;
  animation-duration: 35s, 24s, 23s;
  animation-delay: -12s, -7s, 0s;
}
/* Movement, size and fade each run on their own two-point ease-in-out loop: no mid-way
   keyframes, so speed never changes abruptly and the paths never repeat in sync. */
@keyframes ke-move-tr { from { translate: 0 0; } to { translate: -5% 9%; } }
@keyframes ke-move-bl { from { translate: 0 0; } to { translate: 5% -8%; } }
@keyframes ke-breathe { from { scale: 0.94; } to { scale: 1.1; } }
/* the two layers per corner cross-fade, so the colour slowly shifts */
@keyframes ke-fade-a { 0% { opacity: 1; } 100% { opacity: 0.25; } }
@keyframes ke-fade-b { 0% { opacity: 0.2; } 100% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .ke-hero-bg span { animation: none; }
}

/* Header: on desktop, keep Products / KeyEngine / Support centred in the bar, however wide
   the logo and the account / currency / cart group are */
@media (min-width: 768px) {
  header.sticky > div { display: grid; grid-template-columns: 1fr auto 1fr; }
  header.sticky > div > :first-child { justify-self: start; }
  header.sticky > div > :last-child { justify-self: end; }
}

/* whole-page variant (KeyEngine page): glows pinned to the viewport corners while scrolling */
.ke-hero-bg.ke-fixed { position: fixed; }
/* Mobile browsers grow the viewport as the address bar slides away, but only resize fixed
   layers once scrolling stops, so the bottom of the page showed a bare band. Make the fixed
   layer 15vh taller than the screen at both ends, and shift the glows back by the same amount
   so they still sit on the visible corners. */
.ke-hero-bg.ke-fixed { inset: -15vh 0; }
.ke-hero-bg.ke-fixed .ke-glow-tr-a, .ke-hero-bg.ke-fixed .ke-glow-tr-b { top: calc(var(--s) * -0.23 + 15vh); }
.ke-hero-bg.ke-fixed .ke-glow-bl-a, .ke-hero-bg.ke-fixed .ke-glow-bl-b { bottom: calc(var(--s) * -0.23 + 15vh); }
/* Mirrored corners on every page: the top glow sits in the top left and the bottom glow in the bottom right,
   each still drifting in towards the middle of the page */
.ke-hero-bg.ke-fixed .ke-glow-tr-a, .ke-hero-bg.ke-fixed .ke-glow-tr-b { right: auto; left: calc(var(--s) * -0.37); }
.ke-hero-bg.ke-fixed .ke-glow-bl-a, .ke-hero-bg.ke-fixed .ke-glow-bl-b { left: auto; right: calc(var(--s) * -0.37); }
.ke-hero-bg.ke-fixed .ke-glow-tr-a { animation-name: ke-move-tl, ke-breathe, ke-fade-a; }
.ke-hero-bg.ke-fixed .ke-glow-tr-b { animation-name: ke-move-tl, ke-breathe, ke-fade-b; }
.ke-hero-bg.ke-fixed .ke-glow-bl-a { animation-name: ke-move-br, ke-breathe, ke-fade-a; }
.ke-hero-bg.ke-fixed .ke-glow-bl-b { animation-name: ke-move-br, ke-breathe, ke-fade-b; }
@keyframes ke-move-tl { from { translate: 0 0; } to { translate: 5% 9%; } }
@keyframes ke-move-br { from { translate: 0 0; } to { translate: -5% -8%; } }

/* installer-style button: pink -> periwinkle */
.ke-btn {
  color: #1e1b4b;
  background-image: linear-gradient(90deg, #f0abc7 0%, #dcbde1 50%, #c9cffa 100%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.4) inset, 0 6px 36px -8px rgb(226 150 205 / 0.55);
}

/* ---- Kawaii Vox page: compact header + alternating feature rows ---- */
.kv-header { padding-top: 4rem; padding-bottom: 3rem; }
@media (min-width: 640px) { .kv-header { padding-top: 6rem; padding-bottom: 3.5rem; } }
.kv-banner {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  background: var(--color-ink-panel);
  aspect-ratio: 2000 / 1024;
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.75), 0 0 80px -30px rgb(226 150 205 / 0.25);
}
.kv-story p + p { margin-top: 1rem; }
/* Kawaii Vox page: the story takes the full width, so the buy box sits on its own row below it */
.kv-head > div:first-child { flex: 1 1 100%; }
.kv-head > .ns-buy { align-items: flex-start; text-align: left; }
.kv-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kv-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.kv-features { padding: clamp(5rem, 10vw, 8rem) 0 clamp(2rem, 4vw, 3rem); }
.kv-features-title {
  margin: 0 auto;
  max-width: 18ch;
  text-align: center;
  text-wrap: balance;
  color: var(--color-chalk);
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
/* Feature rows: two equal halves, media fills one half,
   copy sits centred in the other; sides alternate from tablet width up.
   On phones each row stacks media first, then copy. */
.kv-rows {
  display: grid;
  gap: clamp(4.5rem, 9vw, 7.5rem);
  max-width: 68rem;
  margin: clamp(3.5rem, 7vw, 5.5rem) auto 0;
}
.kv-row { display: grid; gap: 1.75rem; align-items: center; }
.kv-copy { justify-self: center; width: 100%; max-width: 22rem; }
@media (min-width: 700px) {
  .kv-row { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .kv-row.kv-text-left .kv-copy { order: -1; }
}
.kv-copy h3 {
  color: var(--color-chalk);
  font-size: clamp(1.5rem, 2.3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.kv-copy p {
  margin-top: 0.9rem;
  color: var(--color-fog);
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: pretty;
}
.kv-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 2rem;
  background: var(--color-ink-panel);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.75), 0 0 60px -20px rgb(226 150 205 / 0.18);
}
.kv-media video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- KeyEngine page: installer palette swapped into the site's colour tokens ---- */
.ke-page {
  --color-ink: #110f1b;
  --color-ink-raised: #171522;
  --color-ink-panel: #1c1a2a;
  --color-line-soft: #242132;
  --color-line: #322e44;
  --color-gold: #f0abc7;
  --color-gold-bright: #f7c6da;
}

/* Standalone Instruments page: highlighted (selected) text in the site's gold, not the pink accent */
/* Text highlight: white on every page */
::selection, .si-page ::selection { background-color: #ffffff; color: var(--color-ink); }

/* ---- Shop: header currency picker + cart link ---- */
.ns-currency select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.35rem 1.6rem 0.35rem 0.7rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23878d95' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 0.55rem center / 0.7rem;
  color: var(--color-fog);
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.ns-currency select:hover, .ns-currency select:focus-visible { border-color: var(--color-fog-dim); color: var(--color-chalk); outline: none; }
.ns-currency option { background: var(--color-ink-panel); color: var(--color-chalk); }
.ns-cart-link { position: relative; }
.ns-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #f0abc7;
  color: #1e1b4b;
  font-size: 0.7rem;
  font-weight: 700;
}
.ns-cart-count[hidden] { display: none; }
@media (max-width: 400px) { .ns-cart-label { display: none; } }

/* ---- Shop: Kawaii Vox buy panel + product cards ---- */
.ns-buy { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
@media (min-width: 640px) { .ns-buy { align-items: flex-end; text-align: right; } }
.ns-buy-price { color: var(--color-chalk); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.ns-buy-note, .ns-small { color: var(--color-fog-dim); font-size: 0.8rem; }
.ns-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.4rem; border: 1px solid var(--color-line); border-radius: 999px;
  color: var(--color-chalk); font-size: 0.875rem; font-weight: 500; transition: border-color .2s, background-color .2s;
}
.ns-btn-secondary:hover { border-color: var(--color-fog-dim); background: var(--color-ink-raised); }
.ke-btn.ns-add, .ke-btn.ns-checkout {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em;
  cursor: pointer; transition: filter .2s, opacity .2s;
}
.ke-btn.ns-add:hover:not(:disabled), .ke-btn.ns-checkout:hover:not(:disabled) { filter: brightness(1.08); }
.ns-add:disabled, .ns-checkout:disabled { cursor: default; opacity: 0.6; }
.ns-add-quiet {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  padding: 0.65rem 1rem; border: 1px solid var(--color-line); border-radius: 999px;
  color: var(--color-chalk); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.ns-add-quiet:hover:not(:disabled) { border-color: #f0abc7; background: rgb(240 171 199 / 0.08); }
.ns-add-quiet:disabled { cursor: default; color: var(--color-fog-dim); }

.ns-shop { padding: clamp(4rem, 8vw, 6rem) 0 0; }
.ns-shop-title { text-align: center; color: var(--color-chalk); font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
/* Kawaii Vox selling points: tagline under the title, offer line (filled in by shop.js),
   crossed-out separate price in the hero, upgrade line above the single voices. */
.kv-tagline { margin-top: 1rem; max-width: none; color: var(--color-chalk); font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.45; text-wrap: wrap; }
.ns-buy-price s { margin-left: 0.6rem; color: var(--color-fog-dim); font-size: 1.1rem; font-weight: 500; }
.ns-promo { padding: 0.5rem 0.85rem; border: 1px solid rgb(240 171 199 / 0.35); border-radius: 0.75rem; background: rgb(240 171 199 / 0.08); color: var(--color-fog); font-size: 0.85rem; line-height: 1.45; }
.ns-promo strong { color: #f0abc7; font-weight: 600; }
.ns-promo-center { display: table; margin: 1.25rem auto 0; text-align: center; }
.ns-promo-center[hidden] { display: none; }
/* Site-wide grey text, a touch lighter than the compiled theme (was #878d95 / #7d838c). */
:root, .kv-page { --color-fog: #9ca2aa; --color-fog-dim: #92989f; }

/* Kawaii Vox demo tracks: one row per song (play button, title, composer, time) with a
   clickable waveform underneath. The waveform is drawn by site.js from data-peaks. */
.kv-track { background: var(--color-ink-raised); border-bottom: 1px solid var(--color-line-soft); transition: background-color .2s; }
.kv-track:last-child { border-bottom: 0; }
.kv-track:hover { background: var(--color-ink-panel); }
.kv-track.is-active { background: color-mix(in srgb, var(--color-gold) 6%, var(--color-ink-raised)); }
.kv-track-btn { display: flex; width: 100%; align-items: baseline; gap: 0.75rem; padding: 0.625rem 1rem 0.25rem; text-align: left; }
.kv-track-title { min-width: 0; }
.kv-track-artist { flex-shrink: 0; white-space: nowrap; }
.kv-track-time { margin-left: auto; flex-shrink: 0; padding-left: 0.5rem; font-size: 0.75rem; font-variant-numeric: tabular-nums; color: var(--color-fog-dim); }
.kv-wave { position: relative; height: 2.75rem; margin: 0 1rem 0.625rem 3.5rem; cursor: pointer; touch-action: pan-y; border-radius: 0.25rem; }
.kv-wave canvas { display: block; width: 100%; height: 100%; }
.kv-wave:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; }
.kv-wave-tip { position: absolute; top: 50%; transform: translate(-50%, -50%); padding: 0.05rem 0.35rem; border-radius: 0.25rem; background: var(--color-ink); color: var(--color-chalk); font-size: 0.6875rem; font-variant-numeric: tabular-nums; pointer-events: none; opacity: 0; transition: opacity .15s; }
.kv-wave.is-hover .kv-wave-tip { opacity: 1; }
@media (max-width: 639px) { .kv-wave { height: 2.25rem; margin-left: 1rem; } }
/* Small-print product description above the shop heading (Kawaii Vox). */
.ns-shop-about { margin: 0 0 clamp(3rem, 6vw, 4.5rem); color: var(--color-fog-dim); font-size: 1rem; line-height: 1.625; text-wrap: pretty; }
.ns-shop-about p + p { margin-top: 0.9rem; }
.ns-shop-about strong { color: var(--color-gold); font-weight: 600; } /* page pink on Kawaii Vox */
.ns-shop-sub { margin: 0.9rem auto 0; max-width: 36rem; text-align: center; color: var(--color-fog); }
.ns-bundle {
  display: grid; gap: 1.5rem; align-items: center; max-width: 68rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--color-line); border-radius: 2rem; background: rgb(28 26 42 / 0.7);
  box-shadow: 0 0 80px -30px rgb(226 150 205 / 0.25);
}
@media (min-width: 800px) { .ns-bundle { grid-template-columns: 1.35fr 1fr; gap: 2.5rem; } }
/* homepage "Latest release": same glowing card as the bundle */
.ns-feature {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid transparent; border-radius: 2rem;
  background:
    radial-gradient(120% 70% at 50% -10%, rgb(201 207 250 / 0.10), transparent 60%) padding-box,
    radial-gradient(90% 60% at 100% 110%, rgb(240 171 199 / 0.07), transparent 60%) padding-box,
    linear-gradient(170deg, #141226 0%, #0d0b18 50%, #08070f 100%) padding-box,
    linear-gradient(290deg, rgb(201 207 250 / 0.95), rgb(220 189 225 / 0.5) 45%, rgb(240 171 199 / 0.8)) border-box;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.06),
    inset 0 -40px 80px -40px rgb(0 0 0 / 0.6),
    0 30px 60px -30px rgb(0 0 0 / 0.7),
    0 0 90px -28px rgb(201 207 250 / 0.42);
}
.ns-feature::before {
  content: ""; position: absolute; z-index: -1; left: -10rem; bottom: -12rem; width: 28rem; height: 28rem; border-radius: 50%;
  background: radial-gradient(circle, rgb(201 207 250 / 0.16), transparent 65%); pointer-events: none;
}
.ns-feature h2 { color: #f8f6ff; text-shadow: 0 0 28px rgb(201 207 250 / 0.25); }
.ns-feature h2 + p { color: #d9d6ea; }

/* Product tiles: same dark, dimensional fill and periwinkle -> pink border as .ns-feature */
.ns-card {
  --card-border: linear-gradient(290deg, rgb(201 207 250 / 0.95), rgb(220 189 225 / 0.5) 45%, rgb(240 171 199 / 0.8));
  --card-glow: rgb(201 207 250 / 0.35);
  --card-glow-hover: rgb(201 207 250 / 0.5);
  --card-link: linear-gradient(90deg, #f0abc7, #c9cffa);
}
/* "View ->" on hover takes the card's own colours */
.ns-card:hover .group-hover\:text-gold {
  background-image: var(--card-link); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
/* Each product gets its own border colour; Kawaii Vox keeps the default above */
.ns-card[href="/products/keyengine"] {
  --card-border: linear-gradient(290deg, rgb(255 255 255 / 0.95), rgb(160 160 170 / 0.45) 45%, rgb(220 220 228 / 0.85));
  --card-glow: rgb(230 230 240 / 0.22);
  --card-glow-hover: rgb(230 230 240 / 0.35);
  --card-link: linear-gradient(90deg, #ffffff, #b4b4c0);
}
.ns-card[href="/products/standalone-instruments"] {
  --card-border: linear-gradient(290deg, rgb(255 214 120 / 0.95), rgb(255 240 200 / 0.5) 45%, rgb(255 255 255 / 0.85));
  --card-glow: rgb(255 205 110 / 0.28);
  --card-glow-hover: rgb(255 205 110 / 0.42);
  --card-link: linear-gradient(90deg, #ffd678, #fff3d6);
}
.ns-card.ns-card {
  border-color: transparent;
  background:
    radial-gradient(120% 70% at 50% -10%, rgb(201 207 250 / 0.10), transparent 60%) padding-box,
    radial-gradient(90% 60% at 100% 110%, rgb(240 171 199 / 0.07), transparent 60%) padding-box,
    linear-gradient(170deg, #141226 0%, #0d0b18 50%, #08070f 100%) padding-box,
    var(--card-border) border-box;
  box-shadow:
    inset 0 -40px 80px -40px rgb(0 0 0 / 0.6),
    0 30px 60px -30px rgb(0 0 0 / 0.7),
    0 0 70px -30px var(--card-glow);
  transition: box-shadow 0.3s, transform 0.3s;
}
.ns-card.ns-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 -40px 80px -40px rgb(0 0 0 / 0.6),
    0 34px 64px -30px rgb(0 0 0 / 0.75),
    0 0 80px -24px var(--card-glow-hover);
}
.ns-feature > div:last-child { margin-top: 2rem; }

/* Gap utilities used in the page markup but missing from the compiled Tailwind subset
   (without them the Kawaii Vox buy buttons touched each other) */
.gap-x-4 { column-gap: 1rem; }
.gap-y-3 { row-gap: 0.75rem; }

/* ---- Homepage spacing ---- */
/* top of page -> first card is the same as the gap between the two cards */
.ns-home-top { padding-top: clamp(2.5rem, 6vw, 4rem); }
/* Kawaii Vox card -> "Products" matches "Products" -> product cards (the grid's mt-12 = 3rem) */
.ns-home-products { padding-top: 3rem; padding-bottom: 6rem; }
@media (min-width: 640px) { .ns-home-products { padding-bottom: 8rem; } }

/* ---- Homepage promo card (Black Friday) ---- */
.bf-card { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.bf-card-in {
  position: relative; overflow: hidden; border-radius: 2rem; padding: clamp(1.75rem, 5vw, 3.25rem);
  border: 1px solid transparent;
  background: linear-gradient(#0d0b16, #0d0b16) padding-box, linear-gradient(110deg, #f0abc7, #dcbde1 45%, #c9cffa) border-box;
  box-shadow: 0 0 90px -25px rgb(226 150 205 / 0.45);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.bf-card-in::after { content: ""; position: absolute; right: -8rem; top: -8rem; width: 22rem; height: 22rem; border-radius: 50%; background: radial-gradient(circle, rgb(240 171 199 / 0.22), transparent 65%); pointer-events: none; }
.bf-card-in > * { position: relative; z-index: 1; }
.bf-title { color: #f4f2fa; font-size: clamp(1.35rem, 3.4vw, 2rem); line-height: 1.1; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.bf-big { margin-top: 0.75rem; font-size: clamp(2.4rem, 6vw, 4.25rem); line-height: 1; font-weight: 800; letter-spacing: -0.035em; background: linear-gradient(90deg, #f0abc7, #dcbde1 50%, #c9cffa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bf-big small { display: block; margin-top: 0.35rem; font-size: 0.42em; letter-spacing: -0.015em; color: #f4f2fa; -webkit-text-fill-color: #f4f2fa; }
/* "No minimum to buy" matches the "your first purchase" line: 0.42 x the .bf-big size, same weight and colour */
.bf-min { margin-top: 0.35rem; font-size: calc(0.42 * clamp(2.4rem, 6vw, 4.25rem)); line-height: 1; font-weight: 800; letter-spacing: -0.015em; color: #f4f2fa; }
.bf-note { margin-top: 0.4rem; padding-left: 1rem; color: #8d89a6; font-size: 0.85rem; }
.ns-bundle img { display: block; width: 100%; height: auto; border-radius: 1.25rem; }
.ns-bundle-body { padding: 0 0.5rem 0.5rem; }
.ns-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; background: rgb(240 171 199 / 0.14); color: #f0abc7; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.ns-bundle h3 { margin-top: 0.9rem; color: var(--color-chalk); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.ns-bundle-desc { margin-top: 0.5rem; color: var(--color-fog); line-height: 1.6; }
.ns-bundle-price { margin-top: 1.25rem; display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.ns-bundle-price strong { color: var(--color-chalk); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; }
.ns-bundle-price s { color: var(--color-fog-dim); }
.ns-bundle .ns-add { margin-top: 1.25rem; }
.ns-voices { display: grid; gap: 1rem; max-width: 68rem; margin: 1rem auto 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .ns-voices { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ns-voice { display: flex; flex-direction: column; padding: 0.75rem; border: 1px solid var(--color-line-soft); border-radius: 1.5rem; background: rgb(23 21 34 / 0.7); }
.ns-voice img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 1rem; background: var(--color-ink-panel); }
.ns-voice h3 { margin-top: 0.85rem; padding: 0 0.25rem; color: var(--color-chalk); font-size: 1.05rem; font-weight: 600; }
.ns-voice p { padding: 0 0.25rem; color: var(--color-fog); font-size: 0.82rem; line-height: 1.5; }
.ns-voice .ns-voice-cast { margin-top: 0.25rem; }
.ns-voice .ns-voice-price { margin-top: auto; padding-top: 0.75rem; color: var(--color-chalk); font-size: 1rem; font-weight: 600; }
.ns-voice .ns-add-quiet { margin-top: 0.75rem; }
/* Voice demo: round play button in the portrait's bottom-right corner, with a progress ring while it plays */
.ns-voice-art { position: relative; }
.ns-voice-demo { --vd-bg: #f7d1de; --vd-fg: #d9567f; position: absolute; right: 0.6rem; bottom: 0.6rem; display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 2px solid rgb(255 255 255 / 0.9); border-radius: 9999px; color: var(--vd-fg); background: var(--vd-bg); box-shadow: 0 4px 14px rgb(0 0 0 / 0.25); cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease; }
.ns-voice-demo:hover { transform: scale(1.07); }
/* each button takes the colour of its portrait background */
.ns-voice-demo[data-voice="Ichika"] { --vd-bg: #5736c0; --vd-fg: #ffffff; }
.ns-voice-demo[data-voice="Myu"] { --vd-bg: #fbc573; --vd-fg: #b45a12; }
.ns-voice-demo[data-voice="Seorin"] { --vd-bg: #e8bee4; --vd-fg: #8e3c9c; }
.ns-voice-demo:focus-visible { outline: 2px solid var(--vd-fg); outline-offset: 3px; }
.ns-voice-demo.is-active, .ns-voice-demo.is-active:hover { color: var(--vd-bg); background: var(--vd-fg); }
.ns-voice-icon { position: relative; display: flex; }
.ns-voice-icon svg { width: 1.35rem; height: 1.35rem; }
/* the play path sits right of its box centre (x 8-19 of 24); nudge it back so the triangle looks centred */
.ns-voice-demo:not(.is-playing) .ns-voice-icon svg { transform: translateX(-1px); }
.ns-voice-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.ns-voice-ring circle { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; opacity: 0; transition: stroke-dashoffset 0.25s linear; }
.ns-voice-demo.is-active .ns-voice-ring circle { opacity: 0.6; }
@media (prefers-reduced-motion: reduce) { .ns-voice-demo, .ns-voice-ring circle { transition: none; } }
/* Shop cards with the home page's glowing gradient borders: the bundle uses the
   periwinkle -> pink of the "Latest release" card. The voice cards keep their plain borders. */
.ns-bundle {
  border-color: transparent;
  background:
    radial-gradient(120% 70% at 50% -10%, rgb(201 207 250 / 0.10), transparent 60%) padding-box,
    radial-gradient(90% 60% at 100% 110%, rgb(240 171 199 / 0.07), transparent 60%) padding-box,
    linear-gradient(170deg, #141226 0%, #0d0b18 50%, #08070f 100%) padding-box,
    linear-gradient(290deg, rgb(201 207 250 / 0.95), rgb(220 189 225 / 0.5) 45%, rgb(240 171 199 / 0.8)) border-box;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.06),
    inset 0 -40px 80px -40px rgb(0 0 0 / 0.6),
    0 30px 60px -30px rgb(0 0 0 / 0.7),
    0 0 90px -28px rgb(201 207 250 / 0.42);
}
.ns-go-cart { display: block; margin-top: 1.25rem; text-align: center; }
.ns-go-cart[hidden] { display: none; }

/* ---- Account: sign-in, My products, orders ---- */
.ns-acct-lead { color: var(--color-fog); font-size: 1rem; line-height: 1.6; }
.ns-acct-lead strong { color: var(--color-chalk); }
.ns-acct-form { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; max-width: 34rem; }
.ns-input {
  flex: 1 1 16rem; min-width: 0; padding: 0.8rem 1.1rem;
  border: 1px solid var(--color-line); border-radius: 999px; background: rgb(23 21 34 / 0.8);
  color: var(--color-chalk); font: inherit; font-size: 0.95rem;
}
.ns-input:focus { outline: none; border-color: #f0abc7; }
.ns-linkbtn { color: #f0abc7; cursor: pointer; text-underline-offset: 4px; }
.ns-linkbtn:hover { text-decoration: underline; }
.ns-check { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; }
.ns-check input { width: 1.1rem; height: 1.1rem; accent-color: #f0abc7; flex: none; }
.ns-check-all { margin-top: 1rem; color: var(--color-fog); font-size: 0.85rem; }
.ns-owned { margin-top: 0.75rem; border-top: 1px solid var(--color-line-soft); }
.ns-owned li { border-bottom: 1px solid var(--color-line-soft); }
.ns-owned-row { padding: 0.85rem 0; }
.ns-owned-row img { width: 3.5rem; height: 3.5rem; object-fit: cover; object-position: top; border-radius: 0.75rem; background: var(--color-ink-panel); }
.ns-owned-row > span { display: flex; flex-direction: column; }
.ns-orders { margin-top: 0.75rem; border-top: 1px solid var(--color-line-soft); }
.ns-orders li { display: grid; grid-template-columns: 7rem 1fr auto; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--color-line-soft); color: var(--color-fog); font-size: 0.875rem; }
.ns-orders li span:nth-child(2) { color: var(--color-chalk); }
@media (max-width: 520px) { .ns-orders li { grid-template-columns: 1fr auto; } .ns-orders li span:first-child { grid-column: 1 / -1; font-size: 0.8rem; } }
.ns-account-link { white-space: nowrap; }

/* ---- Shop: test-mode notice (catalog.json "testMode") ---- */
.ns-testmode {
  margin: 1rem auto 0;
  width: calc(100% - 2rem);
  max-width: 70rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgb(240 171 199 / 0.45);
  border-radius: 1rem;
  background: rgb(240 171 199 / 0.1);
  color: var(--color-chalk);
  font-size: 0.85rem;
  line-height: 1.55;
}
.ns-testmode strong { color: #f0abc7; }
.ns-testmode code { padding: 0.05rem 0.35rem; border-radius: 0.35rem; background: rgb(255 255 255 / 0.08); font-size: 0.85em; white-space: nowrap; }

/* ---- Shop: cart + order pages ---- */
.ns-page { padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.ns-page h1 { color: var(--color-chalk); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.03em; }
.ns-panel { margin-top: 2rem; max-width: 48rem; }
.ns-cart-lines { border-top: 1px solid var(--color-line-soft); }
.ns-line { display: grid; grid-template-columns: 4.5rem 1fr auto; grid-template-areas: "img main price" "img main remove"; gap: 0.25rem 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--color-line-soft); }
.ns-line img { grid-area: img; width: 4.5rem; height: 4.5rem; object-fit: cover; object-position: top; border-radius: 0.85rem; background: var(--color-ink-panel); }
.ns-line-main { grid-area: main; min-width: 0; }
.ns-line-name { color: var(--color-chalk); font-weight: 600; }
.ns-line-sub { color: var(--color-fog-dim); font-size: 0.8rem; line-height: 1.5; }
.ns-line-price { grid-area: price; justify-self: end; color: var(--color-chalk); font-weight: 600; }
.ns-line-remove { grid-area: remove; justify-self: end; color: var(--color-fog-dim); font-size: 0.8rem; cursor: pointer; }
.ns-line-remove:hover { color: var(--color-chalk); text-decoration: underline; }
.ns-cart-summary { margin-top: 1.5rem; display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; text-align: right; }
.ns-cart-total { display: flex; gap: 1.5rem; align-items: baseline; color: var(--color-fog); }
.ns-cart-discount { display: flex; gap: 1.5rem; color: #f0abc7; font-size: 0.95rem; }
/* new-customer offer box above the cart total */
.ns-welcome {
  margin-top: 1.5rem; padding: 1rem 1.25rem; border: 1px solid rgb(240 171 199 / 0.35); border-radius: 1rem;
  background: rgb(240 171 199 / 0.08); color: var(--color-fog); font-size: 0.9rem; line-height: 1.55;
  box-shadow: 0 0 60px -30px rgb(226 150 205 / 0.35);
}
.ns-welcome strong { color: var(--color-chalk); }
.ns-welcome .ns-check { align-items: flex-start; }
.ns-welcome .ns-check input { margin-top: 0.2rem; }
.ns-cart-total strong { color: var(--color-chalk); font-size: 1.6rem; letter-spacing: -0.02em; }
.ns-cart-tax, .ns-cart-fine { color: var(--color-fog-dim); font-size: 0.8rem; max-width: 30rem; }
.ns-cart-error { color: #f7a1a1; font-size: 0.85rem; }
.ns-cart-error[hidden] { display: none; }
.ns-checkout { min-width: 12rem; }
.ns-notice { margin-bottom: 1rem; padding: 0.75rem 1rem; border: 1px solid rgb(240 171 199 / 0.35); border-radius: 1rem; background: rgb(240 171 199 / 0.08); color: var(--color-chalk); font-size: 0.9rem; }
.ns-cart-empty { padding: 2rem 0; color: var(--color-fog); }
.ns-link { color: #f0abc7; text-underline-offset: 4px; }
.ns-link:hover { text-decoration: underline; }.ns-order-lead { color: var(--color-chalk); font-size: 1.15rem; line-height: 1.6; }
.ns-order-download { margin-top: 1.5rem; }
.ns-order-items { margin-top: 1rem; padding-left: 1.2rem; list-style: disc; color: var(--color-fog); }
.ns-order-total { margin-top: 0.75rem; color: var(--color-fog); }
.ns-order-h { margin-top: 2rem; color: var(--color-chalk); font-size: 1.2rem; font-weight: 600; }
.ns-order-steps { margin-top: 0.75rem; padding-left: 1.2rem; list-style: decimal; color: var(--color-fog); line-height: 1.8; }
.ns-order-steps + .ns-cart-fine { margin-top: 1.5rem; }

/* Image-left, text-right feature row on wide screens (text stays first on mobile). */
@media (min-width: 64rem) { .ns-flip > :first-child { order: 2; } }
/* KeyEngine Specifications: compatible DAWs, two columns from small screens up. */
.ns-daws { column-gap: 2rem; }
.ns-daws li { padding-bottom: 0.35rem; break-inside: avoid; }
@media (min-width: 40rem) { .ns-daws { columns: 2; } }
/* Legal pages: bulleted lists. */
.ns-legal-list { list-style: disc; padding-left: 1.25rem; }
.ns-legal-list li + li { margin-top: 0.5rem; }
.ns-legal-list li::marker { color: var(--color-fog-dim); }
/* Legal pages: title block sits close to the text below it. */
.ns-legal-head { padding-top: 5rem; }
.ns-legal-body { padding-top: 2.5rem; padding-bottom: 4rem; }
@media (min-width: 40rem) { .ns-legal-head { padding-top: 6rem; } .ns-legal-body { padding-bottom: 5rem; } }
/* KeyEngine video rows: on wide screens the video gets ~30% more width and the text column ~30% less
   (same font size). Default split is 1fr / 1fr; the flipped row has the video first. */
@media (min-width: 64rem) {
  .grid.ns-media-wide { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
  .grid.ns-media-wide.ns-flip { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); }
}
/* KeyEngine intro text ("Samplers should be simpler") now stands alone without its screenshot:
   no extra padding, so it sits close to the hero above and the Keyswitches row below. */
.ns-intro { padding-top: 0; padding-bottom: 0; }
/* "Samplers should be simpler": same type as the Kawaii Vox "Start your tracks with a little character" title. */
.ns-intro-title {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-align: center;
}
/* Narrower than the desktop layout (stacked sections): larger, so it still reads as a headline. */
@media (max-width: 63.99rem) {
  .ns-intro-title { font-size: clamp(2.75rem, 8vw, 3.5rem); }
}
/* Kawaii Vox feature rows: on wide screens the video gets ~15% more width and the text ~15% less
   (default is two equal halves). Rows with the text on the left put it first; the others put the video first. */
@media (min-width: 56rem) {
  .kv-row.kv-text-left { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .kv-row:not(.kv-text-left) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
/* KeyEngine hero line: one sentence per line, in a wider box (wraps normally on narrow screens). */
.ns-hero-line { max-width: 60rem; }

/* Home: two full-size cards (Kawaii Vox, KeyEngine); the page ends with the second one. */
.ns-feature + .ns-feature { margin-top: clamp(2.5rem, 6vw, 4rem); }
.ns-home-top { padding-bottom: 6rem; }
@media (min-width: 640px) { .ns-home-top { padding-bottom: 8rem; } }

/* Home KeyEngine card: white/grey border like the Products page card, and the blank KeyEngine interface
   as its backdrop: black, a soft white spotlight from the top left, a low haze along the floor, fine grain. */
.ns-feature.ns-feature-ke {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.02 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") padding-box,
    radial-gradient(ellipse 75% 13% at 50% 100%, rgb(255 255 255 / 0.32), transparent 75%) padding-box,
    radial-gradient(ellipse 110% 24% at 50% 104%, rgb(255 255 255 / 0.16), transparent 80%) padding-box,
    linear-gradient(170deg, #020203 0%, #000000 45%, #000000 100%) padding-box,
    linear-gradient(290deg, rgb(255 255 255 / 0.95), rgb(160 160 170 / 0.45) 45%, rgb(220 220 228 / 0.85)) border-box;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.06),
    inset 0 -40px 80px -40px rgb(0 0 0 / 0.6),
    0 30px 60px -30px rgb(0 0 0 / 0.7),
    0 0 90px -28px rgb(230 230 240 / 0.3);
}
/* The spotlight beam: two soft triangles (a wide, very diffused one and a narrower, brighter one), turned 20 degrees
   counter-clockwise about the corner they come from, so the light lands on the floor haze. */
.ns-feature.ns-feature-ke::before, .ns-feature.ns-feature-ke::after {
  content: ""; position: absolute; z-index: -1; left: -60%; top: -28%; width: 150%; height: 170%; pointer-events: none;
  background-repeat: no-repeat; background-size: 100% 100%; background-position: 0 0;
  transform: rotate(-20deg); transform-origin: 34.7% 5.9%;
}
.ns-feature.ns-feature-ke::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='white' stop-opacity='.27'/%3E%3Cstop offset='.45' stop-color='white' stop-opacity='.095'/%3E%3Cstop offset='.95' stop-color='white' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon points='34.7,5.9 22,100 73.3,100' fill='url(%23g)'/%3E%3C/svg%3E"); filter: blur(38px); }
.ns-feature.ns-feature-ke::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='white' stop-opacity='.52'/%3E%3Cstop offset='.3' stop-color='white' stop-opacity='.18'/%3E%3Cstop offset='.72' stop-color='white' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon points='34.7,6.5 31.3,62 56,62' fill='url(%23g)'/%3E%3C/svg%3E"); filter: blur(15px); }

/* Home KeyEngine card: the top of the KeyEngine page, inside the card. */
.ns-ke-hero { text-align: center; padding-block: clamp(1rem, 4vw, 2.5rem); }
.ns-ke-more { margin-top: 1.25rem; }
/* Download buttons (home KeyEngine card and the KeyEngine page): brushed silver instead of pink. */
.ns-feature-ke a.ke-btn:not(.ns-btn-gray), .ke-btn.ns-btn-silver {
  color: #16141f;
  background-image: linear-gradient(180deg, #f5f5f8 0%, #9c9da9 100%);   /* smooth silver fade, light top to dark bottom (as on the Products page) */
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.45) inset, 0 6px 36px -8px rgb(235 235 245 / 0.35);
}
/* Learn More: white outline, clear centre, white text. */
.ke-btn.ns-btn-gray {
  color: #fff; background-image: none; background-color: transparent;
  border: 1.5px solid rgb(255 255 255 / 0.9); box-shadow: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.ke-btn.ns-btn-gray:hover { background-color: rgb(255 255 255 / 0.1); filter: none; }

/* ---------- The two statement lines get their own typeface; everything else stays in the site font ---------- */
@font-face {
  font-family: "Newsreader Display";
  src: url("/assets/fonts/newsreader-display-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
.ns-intro-title, .kv-features-title, main h1[class*="sm:text-6xl"] {
  font-family: "Newsreader Display", Georgia, "Times New Roman", serif;
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.04;
}
.ns-intro-title { font-size: clamp(2.6rem, 5.4vw, 4.2rem); }
@media (max-width: 63.99rem) { .ns-intro-title { font-size: clamp(3rem, 9vw, 4rem); } }
.kv-features-title { font-size: clamp(2.6rem, 5.4vw, 4.2rem); }
/* Product page titles (Kawaii Vox, Standalone Instruments) */
main h1[class*="sm:text-6xl"] { font-size: clamp(3rem, 6.8vw, 4.7rem); line-height: 1.02; }

/* Kawaii Vox page: the artwork runs the full width of the screen, with no card around it. */
.kv-page { overflow-x: clip; }
.kv-banner {
  width: 100vw; margin-left: calc(50% - 50vw);
  border: 0; border-radius: 0; box-shadow: none; background: transparent;
  max-height: 88vh;
}
.kv-banner img { object-position: center 25%; }
/* Kawaii Vox page: the artwork starts right under the navigation bar (no breadcrumb, no checkout-hold notice above it). */
.kv-page .ns-testmode { display: none; }
.kv-header { padding-top: 0; }

/* Home Black Friday card: one button that carries the release note (hold) or says Shop Kawaii Vox (live). */
[data-hold-only][hidden], [data-live-only][hidden] { display: none !important; }
.bf-btn { flex-direction: column; gap: 0.2rem; text-align: center; padding: 1.1rem 2.5rem; }

/* ---------- Products page: an index, one row per library ---------- */
.ns-products h1 {
  font-family: "Newsreader Display", Georgia, "Times New Roman", serif;
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.02; font-size: clamp(3rem, 6.8vw, 4.7rem);
}
.ns-rows { display: grid; gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.ns-row {
  --accent: rgb(220 189 225); position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr); gap: clamp(1.25rem, 3vw, 3rem); align-items: center;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem);
}
.ns-row.ns-card { overflow: hidden; border: 1px solid transparent; border-radius: 1.5rem; }
.ns-row[href="/products/keyengine"] { --accent: rgb(215 215 225); }
.ns-row[href="/products/standalone-instruments"] { --accent: rgb(203 162 92); }
.ns-row-art { overflow: hidden; aspect-ratio: 16 / 9; background: #000; border-radius: 1rem; }
.ns-row-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ns-row-main h2 {
  font-weight: 500; letter-spacing: -0.025em; text-wrap: balance;
  line-height: 1.1; font-size: clamp(1.75rem, 3vw, 2.25rem); color: var(--color-chalk); transition: color 0.2s;
}
.ns-row:hover .ns-row-main h2 { color: var(--accent); }
.ns-row-main p { margin-top: 0.85rem; max-width: 30rem; color: var(--color-fog); line-height: 1.6; }
.ns-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; text-align: right; }
.ns-row-price { color: var(--accent); font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.01em; }
.ns-row-status { color: var(--color-fog-dim); font-size: 0.9rem; }
@media (max-width: 800px) {
  .ns-row { grid-template-columns: 1fr; gap: 1rem; }
  .ns-row-side { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 0.75rem; text-align: left; }
}

/* ---------- About page ---------- */
.ns-about-hero { display: grid; gap: clamp(2rem, 4vw, 3.25rem); margin-top: clamp(2rem, 4vw, 3.5rem); }
.ns-about-photo { margin: 0; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--color-line); border-radius: 2rem; background: var(--color-ink-panel); box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.75), 0 0 60px -20px rgb(226 150 205 / 0.18); }
@media (max-width: 639px) { .ns-about-photo { aspect-ratio: 4 / 3; } }
.ns-about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }
.ns-about-lead { font-family: "Newsreader Display", Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; font-size: clamp(1.9rem, 3.4vw, 2.9rem); color: var(--color-chalk); text-wrap: pretty; }
.ns-about-copy > p + p { margin-top: 1.1rem; }
.ns-about-copy > p:not(.ns-about-lead) { color: var(--color-fog); font-size: 1.0625rem; line-height: 1.65; }
.ns-about-copy > .ns-about-lead + p { margin-top: 1.75rem; }
.ns-about-cta { margin-top: 2rem; }
.ns-about-video { overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--color-line); border-radius: 2rem; background: #000; box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.75), 0 0 60px -20px rgb(226 150 205 / 0.18); }
.ns-about-video iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (min-width: 640px) { .ns-collab dt { width: 19rem; flex-shrink: 0; } }
.ns-about-copy > h2 + p { margin-top: 1.25rem; }
.ns-about-stance h2, .ns-about-story h2 { font-family: "Newsreader Display", Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.ns-about-stance, .ns-about-story { margin-top: clamp(1rem, 2vw, 1.75rem); padding-top: clamp(2rem, 4vw, 3.25rem); border-top: 1px solid var(--color-line-soft); }
.ns-about-intro { margin-top: 1.5rem; max-width: none; color: var(--color-fog); font-size: 1.1875rem; line-height: 1.6; text-wrap: pretty; }
.ns-about-play { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; }
.ns-about-play:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.ns-play-badge { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 5rem; height: 5rem; padding-left: 0.2rem; border: 1px solid rgb(255 255 255 / 0.65); border-radius: 9999px; background: rgb(0 0 0 / 0.42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transform: translate(-50%, -50%); transition: transform .2s ease, background-color .2s ease; }
.ns-about-play:hover .ns-play-badge, .ns-about-play:focus-visible .ns-play-badge { transform: translate(-50%, -50%) scale(1.08); background: rgb(0 0 0 / 0.6); }
.ns-about-photo.is-playing { aspect-ratio: 16 / 9; background: #000; }
.ns-about-photo video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
/* KeyEngine page videos: 42px cropped from the top of every 1280x720 frame (letterbox bars / DAW title bar), plus
   the bottom letterbox bar on the two videos that have one (downloader 17px, Kawaii Vox 27px). The Kawaii Vox video
   has only a 27px top bar, so it is cropped 27px at the top. Each box's height is
   720 minus those crops; --vpos is top crop / (top + bottom crop) so only the bars are removed. */
.ns-vid-crop video { object-fit: cover; object-position: 50% var(--vpos, 100%); }
/* Credit links (Kawaii Vox credits, About collaborators): same colour as the text, thin underline */
.ns-credit-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-thickness 0.15s; }
.ns-credit-link:hover { text-decoration-thickness: 2px; }

/* KeyEngine page: Credits block sits above Specifications in the same section */
.ns-credits { margin-bottom: 5rem; }
@media (min-width: 40rem) { .ns-credits { margin-bottom: 7rem; } }

/* Phones: the header holds sign-in, language, currency, cart and menu, so tighten the spacing and keep "Menu" on one line */
@media (max-width: 30rem) {
  header .flex.items-center.gap-5 { gap: 0.6rem; }
  header .ns-currency select { padding: 0.3rem 1.3rem 0.3rem 0.55rem; background-position: right 0.4rem center; }
  header summary { white-space: nowrap; }
}

/* Chinese headings (/cn/ pages): Fraunces Soft and Newsreader Display have no Chinese, which fell back to an
   old-style serif (SimSun / Songti). These faces join those families for Chinese characters only, using each
   device's modern sans-serif Chinese font (Apple: PingFang SC, Windows: Microsoft YaHei, Android/Linux: Noto Sans
   CJK / Source Han Sans). Latin letters in the same heading stay in the brand font. System fonts only: no
   download, and nothing that depends on Google Fonts (blocked in mainland China). Weights match each family's
   own face, as browsers only combine faces with the same weight. */
@font-face {
  font-family: "Fraunces Soft"; font-style: normal; font-weight: 700;
  src: local("PingFangSC-Semibold"), local("PingFang SC Semibold"), local("MicrosoftYaHei-Bold"), local("Microsoft YaHei Bold"),
       local("NotoSansCJKsc-Bold"), local("Noto Sans CJK SC Bold"), local("NotoSansSC-Bold"), local("Noto Sans SC Bold"),
       local("SourceHanSansSC-Bold"), local("Source Han Sans SC Bold"), local("HiraginoSansGB-W6"), local("Hiragino Sans GB W6");
  unicode-range: U+3000-303F, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}
@font-face {
  font-family: "Newsreader Display"; font-style: normal; font-weight: 500;
  src: local("PingFangSC-Medium"), local("PingFang SC Medium"), local("MicrosoftYaHei-Bold"), local("Microsoft YaHei Bold"),
       local("NotoSansCJKsc-Medium"), local("Noto Sans CJK SC Medium"), local("NotoSansSC-Medium"), local("Noto Sans SC Medium"),
       local("SourceHanSansSC-Medium"), local("Source Han Sans SC Medium"), local("HiraginoSansGB-W6"), local("Hiragino Sans GB W6");
  unicode-range: U+3000-303F, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}

/* ---- Claim page (/kawaiioffer/): pick a free voice or the bundle, then one email field in a dialog ---- */
.ns-claim { padding: clamp(3rem, 7vw, 5rem) 0 0; }
.ns-claim-head { max-width: 44rem; margin: 0 auto; text-align: center; }
.ns-claim-title { margin-top: 1rem; font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.ns-claim-lead { margin-top: 1rem; color: var(--color-fog); font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.55; text-wrap: pretty; }
.ns-claim-voices { margin-top: clamp(2rem, 4vw, 2.75rem); }
.ns-claim-voice .ke-btn.ns-add { width: 100%; margin-top: 0.75rem; padding: 0.7rem 1rem; font-size: 0.88rem; }
.ns-claim-price s { color: var(--color-fog-dim); font-weight: 500; margin-right: 0.35rem; }
.ns-claim-price strong { font-weight: 700; }
.ns-claim-bundle { max-width: 68rem; margin: 1rem auto 0; display: grid; gap: 1.25rem; padding: 0.75rem; border: 1px solid transparent; border-radius: 1.75rem; }
@media (min-width: 800px) { .ns-claim-bundle { grid-template-columns: 1.6fr 1fr; gap: 2rem; padding: 1rem; } }
.ns-claim-more { padding-top: clamp(3rem, 6vw, 4.5rem); }
.ns-claim-more > div { max-width: 52rem; }
.ns-claim-h { margin-top: 2.5rem; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.02em; }
.ns-claim-h:first-child { margin-top: 0; }
.ns-claim-steps { margin-top: 1rem; padding-left: 1.4rem; list-style: decimal; color: var(--color-fog); line-height: 1.6; }
.ns-claim-steps li + li { margin-top: 0.5rem; }
.ns-claim-steps strong { color: var(--color-chalk); }
.ns-claim-fine { margin-top: 1.5rem; color: var(--color-fog-dim); font-size: 0.85rem; line-height: 1.55; }

.ns-claim-dialog { color-scheme: light; width: min(28rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: 0; border: 0; border-radius: 1.75rem; background: #ffffff; color: #4a1d44; box-shadow: 0 30px 80px -20px rgb(122 19 86 / 0.45); }
.ns-claim-dialog::backdrop { background: rgb(74 29 68 / 0.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ns-claim-form { position: relative; display: flex; flex-direction: column; gap: 0.9rem; padding: 1.5rem; }
.ns-claim-close { position: absolute; top: 0.6rem; right: 0.8rem; width: 2.25rem; height: 2.25rem; border-radius: 999px; color: #7a1356; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.ns-claim-close:hover { background: #ffe0ef; }
.ns-claim-pick { display: flex; align-items: center; gap: 0.9rem; padding-right: 2rem; }
.ns-claim-pick img { width: 4rem; height: 4rem; flex: none; object-fit: cover; object-position: top; border-radius: 1rem; background: #fff1f8; }
.ns-claim-pick-name { display: block; font-weight: 700; font-size: 1.05rem; color: #4a1d44; }
.ns-claim-pick-price { display: block; margin-top: 0.15rem; font-size: 0.9rem; color: #5d2653; }
.ns-claim-pick-price s { margin-left: 0.35rem; opacity: 0.75; }
.ns-claim-dialog-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; color: #7a1356; }
.ns-claim-dialog .ns-input { flex: none; width: 100%; background: #fff6fb; border-color: #ffc9e2; color: #4a1d44; }
.ns-claim-dialog .ns-input:focus { border-color: #d12a80; }
.ns-claim-news { align-items: flex-start; font-size: 0.85rem; line-height: 1.45; color: #5d2653; }
.ns-claim-news input { margin-top: 0.1rem; accent-color: #d12a80; }
.ns-claim-submit { width: 100%; }
.ns-claim-small { font-size: 0.78rem; line-height: 1.5; color: #6b2f5f; }
.ns-claim-dialog .ns-cart-error { margin: 0; color: #b0174f; font-size: 0.85rem; }
.ns-claim-used { padding: 0.9rem 1rem; border-radius: 1rem; background: #fff1f8; font-size: 0.88rem; line-height: 1.5; color: #4a1d44; }
.ns-claim-used[hidden] { display: none; }
.ns-claim-used .ns-claim-used-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; }
.ns-claim-used .ke-btn { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

/* Order page: numbered steps with the KeyEngine download and the install-file button inside them */
.ns-order-steps-big > li + li { margin-top: 1.5rem; }
.ns-order-steps-big > li > p + * { margin-top: 0.85rem; }
.ns-order-steps-big .ns-order-download { margin-top: 0.85rem; }
.ns-order-steps-big .ns-cart-fine { margin-top: 0.6rem; }
/* Kawaii Vox product page: YouTube player (two videos, played in order) under the banner */
.kv-video { margin: 0 0 clamp(2rem, 5vw, 3.5rem); border-radius: 1.5rem; }
