/* Storefront styles. Colors and sizes are defined once here so the look is easy to change. */
:root {
  color-scheme: dark;
  --bg: #0e0e0d;            /* page background */
  --soft: #1a1a18;          /* raised panels */
  --line: #2c2c29;
  --line-strong: #45453f;
  --edge: #6e6e66;          /* outline of buttons, chips and form fields */
  --ink: #f3f3ee;           /* main text, and the fill of primary buttons */
  --on-ink: #0e0e0d;        /* text placed on an --ink fill */
  --muted: #a3a39b;
  --muted-on-ink: #4a4a45;
  --line-on-ink: #c9c9c3;
  --accent: #7c3aed;        /* purple fill: main buttons, selected chips, playing state */
  --accent-deep: #6d28d9;   /* the same fill when hovered */
  --accent-hi: #b08cff;     /* lighter purple for thin lines and text on the dark background */
  --on-accent: #ffffff;     /* text placed on an --accent fill */
  --danger: #ff8a80;
  --ok: #7bd89a;
  --ok-bg: #12301c;   --ok-fg: #9be3b4;
  --err-bg: #3a1512;  --err-fg: #ffb4ab;
  --warn-bg: #3a2f0a; --warn-fg: #ffe08a;
  --tint: 124, 58, 237;     /* glow colour as r, g, b. Cards and banners override it with their cover's colour */
  --radius-card: 24px;
  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --display: 'Archivo', 'Instrument Sans', system-ui, sans-serif;   /* wide, heavy headline face */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
body.has-player { padding-bottom: 96px; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent-hi); }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent-hi); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--on-ink); padding: 12px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 720px; }
.narrow-wide { max-width: 860px; }
.center-block { padding-top: 80px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.page { padding-top: 40px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 28px; }
.page-head { display: flex; flex-direction: column; gap: 12px; }
.section { padding-top: 72px; display: flex; flex-direction: column; gap: 24px; }
main > .section:last-child { padding-bottom: 96px; }
.page + .section { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 12px; }
.center-y { align-items: center; gap: 20px; }

.h1 { font-weight: 600; font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.035em; }
.h2 { font-weight: 600; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.h2.big { font-size: clamp(34px, 4.5vw, 48px); line-height: 1.05; }
.h3 { font-weight: 600; font-size: 22px; letter-spacing: -0.01em; margin-top: 12px; }
.shop .h1, .shop .h2, .hero-title, .shop .license-price, .kit-title, .band-run a {
  font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; overflow-wrap: anywhere;
}
.shop .h1 { font-size: clamp(30px, 5.4vw, 64px); line-height: 0.95; text-wrap: balance; }
.shop .h1.page-title { font-size: clamp(44px, 11vw, 132px); line-height: 0.9; }
.shop .h2 { font-size: clamp(24px, 4vw, 44px); line-height: 1; text-wrap: balance; }
.shop .h2.big { font-size: clamp(26px, 4.6vw, 52px); }
.shop .license-price { font-size: 44px; }
.shop .pick-price, .shop .summary-price { font-family: var(--display); font-stretch: 125%; font-weight: 800; letter-spacing: -0.02em; font-size: 40px; }
.lead { font-size: 18px; color: var(--muted); max-width: 620px; }
.muted { color: var(--muted); }
.soft { color: var(--muted-on-ink); }
.small { font-size: 14px; }
.strong { font-weight: 600; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pre-line { white-space: pre-line; }
.clamp-1 { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.prose { gap: 14px; }

/* Buttons */
.btn {
  min-height: 48px; padding: 0 26px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--edge); border-radius: 999px; background: var(--bg); color: var(--ink);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { color: var(--ink); background: var(--soft); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 52px; padding: 0 32px; font-size: 17px; }
.btn-xl { min-height: 56px; padding: 0 32px; font-size: 18px; }
.btn-dark {
  background: linear-gradient(180deg, #8547f5, var(--accent)); color: var(--on-accent); border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 8px 24px rgba(124, 58, 237, 0.35);
}
.btn-dark:hover { background: linear-gradient(180deg, #8547f5, var(--accent)); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 10px 30px rgba(124, 58, 237, 0.55); }
.btn-dark:active { transform: scale(0.98); }
.btn-dark:disabled { box-shadow: none; }
.btn-light { background: #fff; color: #121212; border-color: #fff; }
.btn-light:hover { background: #e9e9e4; color: #121212; }
.btn-ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.icon-btn {
  width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--edge); border-radius: 999px; background: var(--bg); color: var(--ink); cursor: pointer;
}
.icon-btn:disabled { opacity: 0.4; cursor: default; }
.icon-btn.on-dark { background: transparent; color: #fff; border-color: #fff; }

/* Header */
.announce { background: var(--soft); color: var(--ink); border-bottom: 1px solid var(--line); text-align: center; padding: 10px 24px; font-size: 14px; font-weight: 500; }
.notice-bar { background: var(--warn-bg); color: var(--warn-fg); text-align: center; padding: 10px 24px; font-size: 14px; font-weight: 600; }
.site-header { border-bottom: 1px solid var(--line); }
.header-row { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--accent-hi); }
.nav-link.is-current { font-weight: 700; border-bottom-color: var(--accent-hi); }
/* Sound kits menu item with its category list */
.nav-drop { position: relative; display: inline-flex; align-items: center; }
.nav-drop > .nav-link { padding-right: 2px; }
.nav-caret { width: 32px; min-height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 8px; }
.nav-caret:hover, .nav-drop.is-open .nav-caret { color: var(--ink); }
.nav-caret svg { transition: transform 0.15s ease; }
.nav-drop.is-open .nav-caret svg { transform: rotate(180deg); }
.nav-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 70; min-width: 200px; padding: 6px;
  background: var(--soft); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-strong), 0 18px 40px rgba(0, 0, 0, 0.5);
}
.nav-drop.is-open .nav-menu { display: block; }
.nav-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--line); color: var(--ink); }
.nav-menu a:first-child { color: var(--muted); }

/* Hero: a full-width banner lit from above, with a curved horizon line at its foot */
.hero-wrap { position: relative; }
.hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; }
.hero-glow {
  position: absolute; top: -20%; right: -20%; bottom: -20%; left: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(var(--tint), 0.5) 0%, rgba(var(--tint), 0.12) 45%, transparent 70%),
    radial-gradient(35% 30% at 78% 18%, rgba(176, 140, 255, 0.22), transparent 70%),
    radial-gradient(45% 35% at 15% 30%, rgba(var(--tint), 0.25), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 88%); mask-image: linear-gradient(180deg, #000 55%, transparent 88%);
}
.hero::after {
  content: ''; position: absolute; z-index: 1; left: -20%; width: 140%; height: 520px; bottom: -420px; border-radius: 50%; pointer-events: none;
  background: var(--bg); border-top: 1px solid rgba(var(--tint), 0.7); box-shadow: 0 -30px 80px rgba(var(--tint), 0.35);
}
.hero-backdrop { position: absolute; top: -12%; right: -12%; bottom: -12%; left: -12%; z-index: 0; background-size: cover; background-position: center; filter: blur(40px) saturate(1.3); opacity: 0.6; }
.hero.has-art::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; background: linear-gradient(180deg, rgba(14, 14, 13, 0.2), var(--bg) 88%); pointer-events: none; }
.hero.has-art .hero-glow { opacity: 0.55; }
.hero-inner { position: relative; z-index: 2; min-height: 560px; padding-top: 72px; padding-bottom: 150px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-title { margin: 0; font-size: clamp(34px, 7.2vw, 88px); line-height: 0.92; text-wrap: balance; }
.has-art .hero-title { font-size: clamp(32px, 5.6vw, 68px); }
.hero-blurb { font-size: 18px; color: #e9e9e4; max-width: 480px; }
.kicker {
  display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  color: #f1eaff; background: linear-gradient(90deg, rgba(var(--tint), 0.16), rgba(var(--tint), 0.36)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.hero-controls { display: flex; align-items: center; gap: 12px; margin-top: 8px; width: 100%; max-width: 380px; }
.hero-bars { flex: 1 1 auto; display: flex; gap: 8px; margin-left: 8px; }
.hero-bar { flex: 1 1 0; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.25); }
.hero-bar i { display: block; width: 100%; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left center; }
.hero-bar.is-done i { transform: none; }
.hero-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.hero-art { flex: 0 1 360px; min-width: 0; }
.hero-art .cover { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }

/* The same light, at half height, behind the title of the Beats and Sound kits pages */
main { position: relative; }
.page-glow { position: absolute; top: 0; left: 0; right: 0; height: 420px; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); }
.page-glow::before {
  content: ''; position: absolute; top: -20%; right: -20%; bottom: -20%; left: -20%;
  background:
    radial-gradient(60% 70% at 30% 0%, rgba(var(--tint), 0.42) 0%, rgba(var(--tint), 0.1) 45%, transparent 70%),
    radial-gradient(35% 45% at 82% 10%, rgba(176, 140, 255, 0.18), transparent 70%);
}
.page { position: relative; }

/* Scrolling band of tags under the hero */
.tag-band {
  overflow: hidden; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.band-track { display: flex; width: max-content; }
.band-run { flex: none; display: flex; align-items: center; }
.band-run a { min-height: 48px; display: inline-flex; align-items: center; padding: 0 16px; font-size: 40px; line-height: 1; color: var(--ink); text-decoration: none; white-space: nowrap; }
.band-run a:hover { color: var(--accent-hi); }
.band-dot { flex: none; width: 10px; height: 10px; margin: 0 16px; border-radius: 50%; background: var(--accent); }

/* Covers */
.cover { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; background: var(--soft); }
.cover-empty { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 40px; letter-spacing: -0.02em; }
.cover-sm { width: 48px; border-radius: 8px; }
.cover-sm.cover-empty { font-size: 15px; }
.cover-lg { flex: 0 0 240px; width: 240px; border-radius: 20px; }
.cover-hero { border-radius: 20px; }
.cover-hero.cover-empty { background: rgba(255, 255, 255, 0.12) !important; border: 1px solid rgba(255, 255, 255, 0.4); font-size: 72px; }

/* Trust row: three open cells split by hairlines */
.trust { margin-top: 88px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trust-item { min-width: 0; padding: 28px 24px; display: flex; align-items: center; gap: 14px; border-top: 1px solid rgba(243, 243, 238, 0.12); border-bottom: 1px solid rgba(243, 243, 238, 0.12); }
.trust-item + .trust-item { border-left: 1px solid rgba(243, 243, 238, 0.12); }
.trust-icon { flex: 0 0 44px; height: 44px; border-radius: 999px; background: var(--soft); color: var(--accent-hi); display: flex; align-items: center; justify-content: center; }

/* Chips and tags */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; border: 1px solid var(--edge); border-radius: 999px; background: var(--bg); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.chip:hover { background: var(--soft); color: var(--ink); }
.chip.is-on, .chip.is-on:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tag { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--soft); color: var(--ink); font-weight: 500; font-size: 14px; text-decoration: none; }
.tag:hover { background: var(--line); color: var(--ink); }

/* Beat list: cover, play, title, waveform, tags, price */
.beat-list { border-top: 1px solid var(--line); margin: 0 -16px; }
.beat-row { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.beat-main { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 14px; }
.beat-thumb { flex: 0 0 56px; overflow: hidden; border-radius: 8px; }
.beat-thumb .cover-sm { width: 56px; }
.beat-text { min-width: 0; }
.beat-title { font-weight: 600; font-size: 17px; text-decoration: none; }
.beat-row:has(.play-btn.is-playing) .beat-title { color: var(--accent-hi); }
.beat-wave { flex: 1 1 180px; max-width: 360px; min-height: 1px; }
.beat-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.beat-buy { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.price { font-weight: 600; }

/* Waveform: the bars are a mask, and --p moves the edge between the played and unplayed colour */
.wave {
  height: 32px; cursor: pointer;
  background: linear-gradient(90deg, var(--accent-hi) var(--p, 0%), #5c5c55 var(--p, 0%));
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.product-wave { flex: 1 1 220px; max-width: 440px; height: 40px; background: linear-gradient(90deg, var(--accent-hi) var(--p, 0%), var(--edge) var(--p, 0%)); }

.play-btn {
  flex: 0 0 48px; width: 48px; height: 48px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--edge); border-radius: 999px; background: var(--bg); color: var(--ink); cursor: pointer;
}
.beat-row .play-btn { flex-basis: 44px; width: 44px; height: 44px; }
.beat-row .play-btn, .play-btn.is-dark { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.play-btn.is-playing, .play-btn.is-dark.is-playing, .beat-row .play-btn.is-playing { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.play-btn .icon-pause, .play-btn .icon-bars { display: none; }
.play-btn.is-playing .icon-play { display: none; }
.play-btn.is-playing .icon-pause { display: inline-flex; }
.play-btn .icon-play, .play-btn .icon-pause { line-height: 0; }
/* While a preview plays, its button shows three bouncing bars */
.icon-bars { align-items: flex-end; gap: 3px; height: 16px; }
.icon-bars i { width: 3px; height: 16px; border-radius: 1px; background: currentColor; transform: scaleY(0.3); transform-origin: center bottom; }
.play-btn.has-bars.is-playing .icon-pause { display: none; }
.play-btn.has-bars.is-playing .icon-bars { display: inline-flex; }
.play-none { border-color: transparent; background: transparent; cursor: default; }
.play-lg { flex-basis: 56px; width: 56px; height: 56px; }

/* Kits: a hairline frame, lit from above in the cover's own colour */
.kit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kit-card { min-width: 0; padding: 1px; border-radius: 24px; background: linear-gradient(180deg, var(--line-strong), var(--soft)); }
.kit-inner {
  height: 100%; padding: 12px; border-radius: 23px; display: flex; flex-direction: column; gap: 14px;
  background: radial-gradient(60% 50% at 50% 0%, rgba(var(--tint), 0.22), transparent 70%), var(--soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 20px 3px rgba(var(--tint), 0.05), 0 0 40px 20px rgba(var(--tint), 0.05);
}
.kit-cover { position: relative; }
.kit-cover > a { display: block; position: relative; }
.kit-cover > a::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 16px; background: linear-gradient(180deg, transparent 40%, rgba(14, 14, 13, 0.45)); opacity: 0; pointer-events: none; }
.kit-play { position: absolute; right: 12px; bottom: 12px; border-color: #fff; }
.kit-body { padding: 0 4px; }
.kit-title { font-size: 18px; line-height: 1.1; text-decoration: none; display: block; margin-bottom: 4px; }
.kit-foot { margin-top: auto; padding: 0 4px 4px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.price-chip { font-family: var(--mono); font-size: 13px; padding: 4px 8px; border-radius: 8px; color: #d9c8ff; background: rgba(124, 58, 237, 0.24); }

/* Projects made with the store's sounds: a lit panel with a row of covers that scrolls sideways */
.made { padding: 1px; border-radius: 28px; background: radial-gradient(70% 70% at 50% 0%, rgba(var(--tint), 0.22), transparent 70%), var(--soft); box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.made-head { padding: 48px 40px 28px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.made-head .h2 { flex: 1 1 320px; max-width: 760px; }
.made-nav { display: flex; gap: 8px; }
.made-nav[hidden] { display: none; }
.made-row { list-style: none; margin: 0; padding: 0 40px 40px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 40px; scrollbar-width: none; }
.made-row::-webkit-scrollbar { display: none; }
/* While the row glides by itself it must not snap to cards or ease its own tiny steps */
.made-row.is-loop { scroll-snap-type: none; scroll-behavior: auto; }
.made-item { flex: 0 0 min(300px, 70vw); scroll-snap-align: start; }
.made-card { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: var(--bg); color: #fff; text-decoration: none; box-shadow: 0 0 40px 10px rgba(var(--tint), 0.08); }
.made-card img { width: 100%; height: 100%; object-fit: cover; }
.made-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 20px 18px; display: flex; flex-direction: column; gap: 2px; background: linear-gradient(180deg, transparent, rgba(14, 14, 13, 0.92) 78%); }
.made-title { font-weight: 600; font-size: 19px; line-height: 1.2; color: #fff; }
.made-by { font-size: 15px; color: #d6d6cf; }
a.made-card:hover { color: #fff; }

/* License cards */
.band { background: var(--soft); margin-top: 96px; }
.band-inner { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.band-head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.license-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.license-card { flex: 1 1 280px; min-width: 0; padding: 32px; background: var(--bg); border-radius: var(--radius-card); display: flex; flex-direction: column; gap: 20px; }
.license-card.is-dark { background: var(--accent); color: var(--on-accent); }
.license-card.is-dark .soft { color: #e9e2ff; }
.license-card.is-dark :focus-visible { outline-color: #fff; }
.license-name { font-weight: 600; font-size: 18px; }
.license-price { font-weight: 600; font-size: 56px; line-height: 1; letter-spacing: -0.03em; }
.license-list { list-style: none; margin: 0; padding: 0; }
.license-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.license-card.is-dark .license-list li { border-top-color: rgba(255, 255, 255, 0.3); }

/* Product page */
.back-link { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 500; }
.product-top { padding: 32px; background: radial-gradient(70% 110% at 0% 0%, rgba(var(--tint), 0.24), transparent 70%), var(--soft); border-radius: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.product-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.product-play { display: flex; align-items: center; gap: 14px; width: 100%; }
.product-top .tag { background: var(--bg); }
#offer-panel { align-items: flex-start; }

.pick-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.pick-card { flex: 1 1 260px; min-width: 0; padding: 28px; border: 2px solid var(--line); border-radius: var(--radius-card); cursor: pointer; display: flex; flex-direction: column; gap: 16px; position: relative; }
.pick-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-card:has(input:checked) { border-color: var(--accent-hi); }
.pick-card:has(input:focus-visible) { outline: 3px solid var(--accent-hi); outline-offset: 2px; }
.pick-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pick-dot { width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.pick-dot::after { content: ''; width: 10px; height: 10px; border-radius: 999px; background: transparent; }
.pick-card:has(input:checked) .pick-dot { border-color: var(--accent-hi); }
.pick-card:has(input:checked) .pick-dot::after { background: var(--accent-hi); }
.pick-price { font-weight: 600; font-size: 48px; line-height: 1; letter-spacing: -0.03em; }
.pick-lines { display: flex; flex-direction: column; }
.pick-lines span { padding: 10px 0; border-top: 1px solid var(--line); }

.summary { padding: 28px 32px; background: var(--soft); border-radius: var(--radius-card); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.summary-text { flex: 1 1 280px; min-width: 0; }
.summary-title { font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.summary-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.summary-price { font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.offer-fields { flex: 1 1 420px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }

/* Forms */
.field { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field-wide { flex-basis: 100%; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 12px 16px; background: var(--bg); color: var(--ink);
  border: 1px solid var(--edge); border-radius: 16px; font: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent-hi); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 16px; background: var(--bg); color: var(--ink); border: 1px solid var(--edge); border-radius: 999px; font: inherit; text-transform: uppercase; }
.code-row input::placeholder { text-transform: none; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.7; }
.field textarea { min-height: 80px; resize: vertical; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; width: 100%; max-width: 520px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-weight: 600; margin-top: 8px; }
.form-msg:empty { display: none; }
.form-msg.is-error { color: var(--danger); }
.form-msg.is-ok { color: var(--ok); }

/* Cart */
.checkout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.checkout-main { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cart-items { border-top: 1px solid var(--line); }
.cart-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item .cover { flex: 0 0 56px; width: 56px; border-radius: 10px; }
.cart-item .cover-empty { font-size: 16px; }
.cart-item-text { flex: 1 1 200px; min-width: 0; }
.cart-item-title { font-weight: 600; font-size: 17px; }
.pad { padding: 24px 0; }
.summary-box { flex: 1 1 320px; min-width: 0; padding: 28px; background: var(--soft); border-radius: var(--radius-card); display: flex; flex-direction: column; gap: 14px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sum-row.total { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.next-steps { border-top: 1px solid var(--line-strong); padding-top: 20px; margin-top: 6px; display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 12px; }

/* Downloads */
.download-list { border-top: 1px solid var(--line); }
.download-item { padding: 24px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }

.empty { padding: 28px; background: var(--soft); border-radius: 20px; color: var(--muted); }

/* Footer */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); margin-top: 0; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.footer-about { flex: 2 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-about p { max-width: 320px; color: var(--muted); }
.footer-col { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.footer-col > a, .footer-col > span { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; overflow-wrap: anywhere; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; font-size: 14px; color: var(--muted); }

/* Preview player */
.player { position: fixed; left: 0; right: 0; bottom: 0; background: var(--soft); color: var(--ink); border-top: 1px solid var(--line-strong); z-index: 50; }
.player-row { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; gap: 16px; }
.player .play-btn { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.player .eyebrow { color: var(--muted); }
.player-meta { flex: 0 1 240px; min-width: 0; }
.player-title { font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.player-track { flex: 1 1 120px; height: 20px; display: flex; align-items: center; cursor: pointer; position: relative; }
.player-track::before { content: ''; position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--line-strong); }
.player-fill { position: relative; height: 4px; width: 0; border-radius: 2px; background: var(--accent-hi); }
.player-track.has-wave { height: 32px; }
.player-track.has-wave::before, .player-track.has-wave .player-fill { display: none; }
.player-wave { position: absolute; top: 0; left: 0; width: 100%; height: 32px; }
.player .icon-btn { background: transparent; color: var(--ink); border-color: var(--line-strong); }

/* Film grain over the whole storefront, so flat dark areas do not look empty */
.shop::after {
  content: ''; position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; z-index: 60; pointer-events: none;
  background: url('/public/img/grain.png') 0 0 / 128px 128px; opacity: 0.07; mix-blend-mode: overlay;
}

/* On wide screens every beat row shares the same columns, so the waveforms line up */
@media (min-width: 960px) {
  .beat-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(160px, 340px) 210px auto; }
  .beat-wave { max-width: none; }
  .beat-tags { justify-content: flex-end; }
  .beat-buy { margin-left: 0; }
}
@media (max-width: 1023px) {
  .kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* The home page loads four kits: two rows of two on phones and tablets, one row of three on wide screens */
@media (min-width: 1024px) {
  .home-kits .kit-card:nth-child(n + 4) { display: none; }
}
@media (max-width: 760px) {
  .trust { grid-template-columns: minmax(0, 1fr); margin-top: 64px; }
  .trust-item { border-bottom: 0; padding: 20px 4px; }
  .trust-item + .trust-item { border-left: 0; }
  .trust-item:last-child { border-bottom: 1px solid rgba(243, 243, 238, 0.12); }
}
@media (max-width: 640px) {
  .header-row .nav { order: 3; width: 100%; margin: 0 -14px; }
  .kit-grid { gap: 12px; }
  .kit-inner { padding: 8px; gap: 10px; }
  .kit-title { font-size: 14px; }
  .kit-foot .btn { width: 100%; padding: 0 10px; }
  .made-head { padding: 32px 20px 20px; }
  .made-row { padding: 0 20px 24px; gap: 12px; scroll-padding: 0 20px; }
  .made-nav { display: none; }
  .hero-inner { min-height: 440px; padding-top: 44px; padding-bottom: 110px; }
  .hero-glow { background: radial-gradient(90% 55% at 50% 0%, rgba(var(--tint), 0.5) 0%, rgba(var(--tint), 0.12) 45%, transparent 70%), radial-gradient(55% 30% at 85% 20%, rgba(176, 140, 255, 0.22), transparent 70%); }
  .hero-backdrop { filter: blur(24px) saturate(1.3); }
  .hero-art { order: -1; flex: 0 0 62%; margin: 0 auto; }
  .hero-text .btn { flex: 1 1 100%; }
  .band-run a { font-size: 26px; padding: 0 10px; }
  .band-dot { width: 8px; height: 8px; margin: 0 10px; }
  .product-top { padding: 20px; }
  .cover-lg { flex-basis: 100%; width: 100%; }
  .summary { padding: 24px; }
  .beat-wave { display: none; }
  .beat-buy { margin-left: 0; width: 100%; justify-content: space-between; }
  .band { margin-top: 64px; }
  .band-inner { padding-top: 64px; padding-bottom: 64px; }
  .player-meta { flex-basis: 120px; }
  .player .eyebrow { display: none; }
}

@media (hover: hover) {
  .beat-row:hover { background: var(--soft); }
  .beat-row:hover .cover-sm { transform: scale(1.04); }
  .beat-row:hover .tag { background: var(--line); }
  .beat-row .play-btn:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
  .play-btn.has-bars.is-playing:hover .icon-bars { display: none; }
  .play-btn.has-bars.is-playing:hover .icon-pause { display: inline-flex; }
  .kit-cover > a::after { opacity: 1; }
  .kit-card:hover .kit-cover > a::after { opacity: 0; }
  .kit-card:hover .kit-cover .cover { transform: translateY(-8px); }
  .kit-card:hover .kit-inner { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 20px 3px rgba(var(--tint), 0.14), 0 0 40px 20px rgba(var(--tint), 0.14); }
  a.made-card:hover img { transform: scale(1.04); }
  .btn-dark:hover { transform: translateY(-1px); }
  .btn-dark:active { transform: scale(0.98); }
  .tag-band:hover .band-track { animation-play-state: paused; }
}
.tag-band:focus-within .band-track { animation-play-state: paused; }

/* Blur-in on scroll: added by the script only to items below the first screen */
.reveal { opacity: 0; filter: blur(12px); transform: translateY(22px); }
.reveal.is-in { opacity: 1; filter: blur(0); transform: none; transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--reveal-delay, 0ms); }

@keyframes glow-drift { from { transform: translate3d(-3%, 0, 0) scale(1); } to { transform: translate3d(3%, -2%, 0) scale(1.08); } }
@keyframes band-roll { to { transform: translate3d(-50%, 0, 0); } }
@keyframes bar-fill { to { transform: none; } }
@keyframes bar-bounce { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@keyframes grain-shift {
  0% { transform: translate(0, 0); } 10% { transform: translate(-5%, -10%); } 20% { transform: translate(-15%, 5%); } 30% { transform: translate(7%, -15%); }
  40% { transform: translate(-5%, 15%); } 50% { transform: translate(-15%, 10%); } 60% { transform: translate(15%, 0); } 70% { transform: translate(0, 15%); }
  80% { transform: translate(3%, 12%); } 90% { transform: translate(-10%, 10%); } 100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .chip, .tag, .play-btn { transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
  .beat-row { transition: background-color 0.2s ease; }
  .made-card img { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
  .made-row { scroll-behavior: smooth; }
  .cover-sm { transition: transform 0.2s ease; }
  .kit-cover .cover, .kit-cover > a::after, .kit-inner { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
  .hero-glow, .page-glow::before { animation: glow-drift 18s ease-in-out infinite alternate; }
  .band-track { animation: band-roll 40s linear infinite; }
  .hero-bar.is-on i { animation: bar-fill 7s linear forwards; }
  .is-paused .hero-bar.is-on i { animation-play-state: paused; }
  .icon-bars i { animation: bar-bounce 0.9s ease-in-out infinite; }
  .icon-bars i:nth-child(2) { animation-delay: 0.15s; }
  .icon-bars i:nth-child(3) { animation-delay: 0.3s; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (min-width: 900px) {
  .shop::after { animation: grain-shift 8s steps(10) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .tag-band { overflow-x: auto; }
  .hero-bar.is-on i { transform: none; }
  .icon-bars i { transform: none; }
  .icon-bars i:nth-child(2) { transform: scaleY(0.6); }
}
.footer-col > a { position: relative; }
