/* ==========================================================================
   CoastWave Sound System — design system
   Organic Minimalism + Atmospheric Glassmorphism
   ========================================================================== */

:root {
  /* Surfaces — neutral off-white carrying a trace of the logo's violet */
  --surface: #faf7fd;
  --surface-dim: #ded8e6;
  --surface-lowest: #ffffff;
  --surface-low: #f4effa;
  --surface-c: #efe9f6;
  --surface-high: #e9e2f2;
  --surface-highest: #e3dbee;
  --on-surface: #1a1522;
  --on-surface-variant: #4a4257;
  --outline: #6b6280;
  --outline-variant: #cbc3d8;

  /* Brand — taken from the Love Lamone logo: violet ink, hot pink, sunset gold.
     The --seafoam / --terracotta names are kept so every component keeps
     resolving; they now carry the pink and the gold. */
  --primary: #1b0b3a;
  --primary-container: #2e1263;
  --on-primary: #ffffff;
  --primary-fixed: #e9ddff;
  --primary-fixed-dim: #c9b3f5;
  --seafoam: #e6187f;
  --seafoam-deep: #b3005f;
  --seafoam-fixed: #ffc7e4;
  --on-seafoam-fixed: #3d0022;
  --terracotta: #ff9d2e;
  --terracotta-deep: #c25100;
  --terracotta-fixed: #ffe2c2;
  --error: #ba1a1a;

  /* Type */
  --font-serif: "Noto Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Radii */
  --r-sm: 0.25rem;
  --r: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-2xl: 2rem;
  --r-full: 9999px;

  /* Spacing */
  --gutter: 1.5rem;
  --margin: 3rem;
  --s-xs: 0.25rem;
  --s-sm: 0.5rem;
  --s-md: 1rem;
  --s-lg: 1.75rem;
  --s-xl: 2.5rem;
  --s-2xl: 4rem;

  /* Elevation */
  --shadow-card: 0 4px 20px -2px rgba(27, 11, 58, 0.04);
  --shadow-card-hover: 0 12px 28px -4px rgba(27, 11, 58, 0.1);
  --shadow-dock: 0 12px 32px -4px rgba(27, 11, 58, 0.1), 0 2px 6px -1px rgba(27, 11, 58, 0.05);

  --dock-h: 5.5rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------ reset ---------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.625;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* The floating dock needs clearance at the bottom of the page. That space is
   added inside the footer, not on the body — on the body it sat *below* the
   footer and showed the page background as a pale band under it. */

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: var(--seafoam-fixed); color: var(--on-seafoam-fixed); }

:focus-visible {
  outline: 2px solid var(--seafoam);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------------------------- typography -------------------------------- */

.display { font-family: var(--font-serif); font-size: clamp(2.25rem, 5.5vw, 3.5rem); line-height: 1.12; font-weight: 400; letter-spacing: -0.02em; }
.h1 { font-family: var(--font-serif); font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.18; font-weight: 400; }
.h2 { font-family: var(--font-serif); font-size: clamp(1.45rem, 2.6vw, 1.75rem); line-height: 1.3; font-weight: 500; }
.h3 { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.4; font-weight: 500; }
.lead { font-size: 1.0625rem; line-height: 1.7; color: var(--on-surface-variant); }
.body-sm { font-size: 0.875rem; line-height: 1.55; }
.body-xs { font-size: 0.75rem; line-height: 1.5; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--seafoam-deep);
}

.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--on-surface-variant); }
.dim { color: var(--outline); }
.serif { font-family: var(--font-serif); }

/* ------------------------------ layout ---------------------------------- */

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.section--sand { background: linear-gradient(180deg, var(--surface-low), var(--surface)); border-block: 1px solid rgba(27, 11, 58, 0.07); }
.section--deep { background: var(--primary); color: #fff; }
.section--deep .muted { color: rgba(255, 255, 255, 0.72); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: var(--s-xl);
}
.section-head p { max-width: 46ch; margin-top: 0.5rem; }

.grid { display: grid; gap: 1.5rem; }
/* min(…, 100%) lets a single column shrink to fit the smallest phones instead
   of forcing the grid wider than the screen. */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(238px, 100%), 1fr)); }

.stack > * + * { margin-top: var(--s-md); }
.row { display: flex; align-items: center; gap: 0.75rem; }
.row-wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ------------------------------ buttons --------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.65rem;
  border-radius: var(--r-full);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), color 0.25s var(--ease), opacity 0.2s;
}
.btn:active { transform: scale(0.96); }
.btn .cw-icon { width: 18px; height: 18px; }

/* Duotone body for the icon set: shapes marked .i2 get a soft tint behind
   their outline (see icon() in inc/functions.php). */
.cw-icon .i2 { fill: currentColor; fill-opacity: 0.22; }

.btn--primary { background: var(--primary-container); color: #fff; box-shadow: 0 6px 18px -6px rgba(27, 11, 58, 0.55); }
.btn--primary:hover { background: var(--primary); box-shadow: 0 12px 26px -8px rgba(27, 11, 58, 0.6); }

.btn--seafoam { background: var(--seafoam-deep); color: #fff; }
.btn--seafoam:hover { background: #8f004c; }

.btn--accent { background: var(--terracotta); color: #3d1500; }
.btn--accent:hover { background: #ffb35c; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary-container);
  border: 1px solid rgba(27, 11, 58, 0.14);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: #fff; box-shadow: var(--shadow-card); }

.btn--quiet { background: var(--surface-high); color: var(--on-surface-variant); }
.btn--quiet:hover { background: var(--surface-highest); color: var(--primary); }

.btn--sm { padding: 0.5rem 1.1rem; font-size: 0.8125rem; }
.btn--lg { padding: 0.95rem 2.1rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary-container);
  transition: gap 0.2s var(--ease), color 0.2s;
}
.link-arrow:hover { gap: 0.8rem; color: var(--seafoam-deep); }

/* ------------------------------- chips ---------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--surface-high);
  color: var(--on-surface-variant);
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
}
.chip:hover { color: var(--primary); border-color: var(--outline-variant); }
.chip.is-active { background: var(--primary-container); color: #fff; border-color: transparent; }
.chip .cw-icon { width: 15px; height: 15px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: var(--r-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--seafoam-fixed);
  color: var(--on-seafoam-fixed);
}
.badge--accent { background: var(--terracotta-fixed); color: var(--terracotta-deep); }
.badge--navy { background: rgba(27, 11, 58, 0.1); color: var(--primary-container); }
.badge--glass { background: rgba(255, 255, 255, 0.85); color: var(--primary-container); backdrop-filter: blur(6px); }

.pulse-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: var(--r-full);
  background: var(--seafoam);
  box-shadow: 0 0 0 0 rgba(230, 24, 127, 0.7);
  animation: pulse-ring 2.2s infinite;
}
@keyframes pulse-ring {
  70% { box-shadow: 0 0 0 0.6rem rgba(230, 24, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 24, 127, 0); }
}

/* ------------------------------- cards ---------------------------------- */

.card {
  background: var(--surface-lowest);
  border: 1px solid rgba(27, 11, 58, 0.06);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.card__body { padding: var(--s-lg); }

.glass {
  background: rgba(244, 239, 250, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-dock);
}

/* ------------------------------ header ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 247, 253, 0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(27, 11, 58, 0.08);
  transition: box-shadow 0.3s, background-color 0.3s;
}
.site-header.is-stuck { box-shadow: 0 6px 24px -14px rgba(27, 11, 58, 0.5); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 5rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-full);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px -6px rgba(27, 11, 58, 0.55);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease), box-shadow 0.3s;
}
.brand__mark img { width: 118%; height: 118%; object-fit: cover; }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.07); box-shadow: 0 8px 20px -6px rgba(230, 24, 127, 0.7); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.brand__sub {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--seafoam-deep);
  margin-top: 0.22rem;
}

.nav { display: flex; align-items: center; gap: 1.35rem; margin-left: 1.5rem; }
.nav a {
  position: relative;
  white-space: nowrap;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--on-surface-variant);
  padding-block: 0.4rem;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--seafoam-deep);
  border-radius: 2px;
  transition: width 0.28s var(--ease);
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--seafoam-deep); font-weight: 600; }

.header-search { position: relative; }
.header-search input {
  width: 13rem;
  padding: 0.5rem 0.9rem 0.5rem 2.3rem;
  border-radius: var(--r-full);
  background: var(--surface-low);
  border: 1px solid rgba(27, 11, 58, 0.1);
  font-size: 0.8125rem;
  transition: width 0.3s var(--ease), box-shadow 0.2s, background-color 0.2s;
}
.header-search input:focus {
  outline: none;
  width: 16rem;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(230, 24, 127, 0.25);
}
.header-search .cw-icon {
  position: absolute;
  left: 0.75rem; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--outline);
  pointer-events: none;
}

.icon-btn {
  position: relative;
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  color: var(--on-surface-variant);
  transition: background-color 0.2s, color 0.2s, transform 0.18s var(--ease);
}
.icon-btn:hover { background: var(--surface-high); color: var(--primary); }
.icon-btn:active { transform: scale(0.92); }

.cart-count {
  position: absolute;
  top: 0.15rem; right: 0.05rem;
  min-width: 1.15rem; height: 1.15rem;
  padding-inline: 0.28rem;
  border-radius: var(--r-full);
  background: var(--terracotta);
  color: #3d1500;
  font-size: 0.6875rem;
  font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid var(--surface);
}
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump 0.45s var(--ease); }
@keyframes bump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.35); } }

.burger { display: none; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 var(--gutter) 1.25rem;
  border-top: 1px solid rgba(27, 11, 58, 0.08);
}
.mobile-nav.is-open { display: flex; animation: fade-down 0.3s var(--ease); }
.mobile-nav a {
  padding: 0.8rem 0.25rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(27, 11, 58, 0.05);
}
.mobile-nav a.is-active { color: var(--seafoam-deep); }

@keyframes fade-down { from { opacity: 0; transform: translateY(-8px); } }

/* -------------------------------- hero ---------------------------------- */

.hero { position: relative; padding-top: 1.5rem; }
.hero::before {
  content: "";
  position: absolute;
  top: -12rem; left: 50%;
  /* Never wider than the viewport, or it adds horizontal scroll on phones. */
  width: min(60rem, 100%); height: 32rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 199, 228, 0.42), rgba(250, 247, 253, 0) 68%);
  filter: blur(36px);
  pointer-events: none;
  z-index: -1;
}

.hero__frame {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid rgba(27, 11, 58, 0.1);
  box-shadow: 0 24px 60px -30px rgba(20, 7, 42, 0.6);
  min-height: clamp(26rem, 58vh, 38rem);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media svg { width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(14, 5, 31, 0.8) 0%, rgba(14, 5, 31, 0.18) 42%, rgba(14, 5, 31, 0) 72%),
    linear-gradient(to right, rgba(14, 5, 31, 0.72) 0%, rgba(14, 5, 31, 0.25) 38%, rgba(14, 5, 31, 0) 62%);
}

.hero__badge {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.45rem 1rem;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 0.75rem; font-weight: 600;
  color: var(--primary);
}

.hero__content { padding: clamp(1.5rem, 4vw, 3rem); max-width: 48rem; color: #fff; }
.hero__content .eyebrow { color: var(--seafoam-fixed); }
.hero__content h1 { color: #fff; margin-block: 0.5rem 1rem; }
.hero__content p { color: rgba(255, 255, 255, 0.82); max-width: 44ch; margin-bottom: 1.75rem; }

/* ------------------- hero scene animation ------------------------------- */

/* Slow parallax drift driven by the scroll position (set in JS). */
.hero__media {
  will-change: transform;
  transform: translate3d(0, calc(var(--hero-scroll, 0) * 0.22px), 0) scale(1.06);
  transition: transform 0.1s linear;
}

/* Palms breathe in the trade wind. Each one is offset so they never sync. */
.cw-palm {
  animation: palm-sway 7s ease-in-out infinite alternate;
  transform-box: fill-box;
}
.hero__media .cw-palm:nth-of-type(2) { animation-duration: 9s; animation-delay: -2s; }
.hero__media .cw-palm:nth-of-type(3) { animation-duration: 8s; animation-delay: -4s; }
@keyframes palm-sway {
  from { transform: rotate(-1.5deg); }
  to   { transform: rotate(1.8deg); }
}

/* The sun lifts and pulses very slightly. */
.cw-sun {
  animation: sun-lift 11s ease-in-out infinite alternate;
  transform-box: view-box;
  transform-origin: center;
}
.cw-sun-glow {
  animation: sun-breathe 6s ease-in-out infinite alternate;
  transform-box: view-box;
  transform-origin: center;
}
@keyframes sun-lift    { from { transform: translateY(1.2%); } to { transform: translateY(-1.2%); } }
@keyframes sun-breathe { from { opacity: .75; } to { opacity: 1; } }

/* Glitter on the water: each band fades in and out on its own clock. */
.cw-glitter rect {
  animation: glitter 3.6s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -160ms);
}
@keyframes glitter {
  from { opacity: calc(var(--o) * 0.35); transform: translateX(-0.4%); }
  to   { opacity: var(--o); transform: translateX(0.4%); }
}

/* Birds drift across the sky. */
.cw-bird {
  animation: bird-drift 26s linear infinite;
  transform-box: view-box;
}
.cw-bird--2 { animation-duration: 34s; animation-delay: -8s; }
.cw-bird--3 { animation-duration: 30s; animation-delay: -16s; }
@keyframes bird-drift {
  0%   { transform: translate(6%, 0);    opacity: 0; }
  12%  { opacity: .75; }
  88%  { opacity: .75; }
  100% { transform: translate(-42%, -6%); opacity: 0; }
}

/* Staggered entrance for the hero copy. */
.hero__content > * {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in 0.9s var(--ease) forwards;
}
.hero__content > :nth-child(1) { animation-delay: .15s; }
.hero__content > :nth-child(2) { animation-delay: .28s; }
.hero__content > :nth-child(3) { animation-delay: .42s; }
.hero__content > :nth-child(4) { animation-delay: .56s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

.hero__frame {
  animation: frame-in 1.1s var(--ease) both;
}
@keyframes frame-in {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
}

.hero-dock {
  animation: dock-in 0.9s var(--ease) .5s both;
}
@keyframes dock-in {
  from { opacity: 0; transform: translateY(28px); }
}

.hero__badge { animation: hero-in 0.8s var(--ease) .7s both; }

/* ocean shimmer over hero art */
.hero__shimmer {
  position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, rgba(255, 199, 228, 0.18), transparent);
  mix-blend-mode: screen;
  animation: tide 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes tide { from { transform: translateY(6%); opacity: 0.55; } to { transform: translateY(-4%); opacity: 1; } }

/* hero mini player card */
.hero-dock {
  position: relative;
  z-index: 5;
  margin: -3.25rem auto 0;
  max-width: 58rem;
  border-radius: var(--r-xl);
  padding: 1.25rem 1.4rem;
}
.hero-dock__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.hero-dock__grid > * { min-width: 0; }
.hero-dock__grid > :first-child { flex: 1 1 18rem; }
.hero-dock__grid > :last-child { flex: 0 0 auto; margin-left: auto; }
.hero-dock__art {
  width: 4rem; height: 4rem;
  border-radius: var(--r-md);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(27, 11, 58, 0.12);
  position: relative;
}
.hero-dock__scrub {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 1rem; padding-top: 0.85rem;
  border-top: 1px solid rgba(27, 11, 58, 0.1);
}

/* -------------------------------- stats --------------------------------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: rgba(27, 11, 58, 0.08);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(27, 11, 58, 0.08);
}
.stat {
  background: var(--surface-lowest);
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.stat__value {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.1;
  color: var(--primary-container);
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 0.8125rem; color: var(--on-surface-variant); margin-top: 0.3rem; }

/* ------------------------------ feature card ---------------------------- */

.feature { display: flex; flex-direction: column; height: 100%; }
/* Sun-disc tile: a lit gradient disc with a halo ring that ripples on hover.
   Each variant sets its own light (--d1), body (--d2) and halo (--dr). */
.feature__icon {
  --d1: #ff8fc4; --d2: #b3005f; --dr: rgba(230, 24, 127, 0.28);
  position: relative;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 1.4rem;
  color: #fff;
  background: radial-gradient(circle at 32% 26%, var(--d1) 0%, var(--d2) 72%);
  box-shadow: 0 12px 24px -12px var(--d2), inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -6px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s var(--ease);
}
.feature__icon::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--dr);
  pointer-events: none;
}
.feature__icon .cw-icon { position: relative; z-index: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18)); }
.feature__icon .cw-icon .i2 { fill-opacity: 0.32; }
.card--hover:hover .feature__icon { transform: translateY(-3px); }
.card--hover:hover .feature__icon::after { animation: disc-ripple 1.4s var(--ease) infinite; }
@keyframes disc-ripple {
  from { transform: scale(1); opacity: 1; }
  to   { transform: scale(1.35); opacity: 0; }
}
.feature__icon--seafoam    { --d1: #ff9ccb; --d2: #c2006a; --dr: rgba(230, 24, 127, 0.3); }
.feature__icon--navy       { --d1: #9b8cf0; --d2: #2e1263; --dr: rgba(94, 72, 196, 0.3); }
.feature__icon--terracotta { --d1: #ffd27a; --d2: #d9580a; --dr: rgba(255, 157, 46, 0.35); }
.feature__foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(27, 11, 58, 0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8125rem;
  color: var(--on-surface-variant);
}
.feature__foot strong { color: var(--seafoam-deep); }

/* ------------------------------ owner block ----------------------------- */

.owner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.owner__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-xl);
  aspect-ratio: 4 / 5;
  background: var(--surface-high);
}
.owner__media .cw-art-svg,
.owner__media .cw-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.owner__media:hover .cw-art-svg,
.owner__media:hover .cw-photo { transform: scale(1.04); }

.owner__media::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, rgba(14, 5, 31, 0.55), transparent);
  pointer-events: none;
}
.owner__caption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  z-index: 2;
}

.owner__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(27, 11, 58, 0.1);
}
.owner__stats > div { display: flex; flex-direction: column; }
.owner__stat {
  font-size: 2rem;
  line-height: 1;
  color: var(--primary);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.cw-photo { display: block; }

/* Stand-in shown until a real photo is dropped into assets/img/ */
.cw-photo-fallback {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 12rem;
  display: grid;
  place-items: center;
  gap: 0.75rem;
  background:
    radial-gradient(120% 90% at 50% 15%, var(--p3), transparent 60%),
    linear-gradient(160deg, var(--p2), var(--p1));
}
.cw-photo-fallback__mark {
  width: 5.5rem; height: 5.5rem;
  border-radius: var(--r-full);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px -12px rgba(14, 5, 31, 0.8);
  display: grid; place-items: center;
}
.cw-photo-fallback__mark img { width: 118%; height: 118%; object-fit: cover; }
.cw-photo-fallback__initials {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.85);
  text-indent: 0.3em;
}

/* ------------------------------ track card ------------------------------ */

.track-card { overflow: hidden; display: flex; flex-direction: column; }
.track-card__art {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-high);
}
.track-card__art .cw-art-svg { width: 100%; height: 100%; transition: transform 0.6s var(--ease); }
.track-card:hover .track-card__art .cw-art-svg { transform: scale(1.06); }
.track-card__art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 7, 42, 0.55), transparent 55%);
}
.track-card__badge { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2; }
.track-card__meta {
  position: absolute;
  left: 0.9rem; bottom: 0.85rem;
  z-index: 2;
  color: #fff;
  font-size: 0.75rem;
  display: flex; gap: 0.75rem;
  text-shadow: 0 1px 8px rgba(20, 7, 42, 0.6);
}
.track-card__play {
  position: absolute;
  right: 0.85rem; bottom: 0.85rem;
  z-index: 3;
  width: 3rem; height: 3rem;
  border-radius: var(--r-full);
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-container);
  box-shadow: 0 8px 22px -8px rgba(20, 7, 42, 0.7);
  transform: translateY(0.6rem) scale(0.9);
  opacity: 0;
  transition: all 0.28s var(--ease);
}
.track-card:hover .track-card__play,
.track-card:focus-within .track-card__play { opacity: 1; transform: translateY(0) scale(1); }
.track-card__play:hover { background: var(--seafoam-deep); color: #fff; }
.track-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.track-card__title { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.35; color: var(--primary); }
.track-card__sub {
  font-size: 0.8125rem; color: var(--on-surface-variant);
  margin-top: 0.25rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.track-card__foot {
  margin-top: auto; padding-top: 0.9rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}

/* playing state */
.track-card.is-playing { box-shadow: 0 0 0 2px var(--seafoam), var(--shadow-card-hover); }

/* ------------------------------ track rows ------------------------------ */

.track-list { border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(27, 11, 58, 0.08); background: var(--surface-lowest); }
.track-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1.6fr) auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(27, 11, 58, 0.06);
  transition: background-color 0.2s;
  cursor: pointer;
}
.track-row:last-child { border-bottom: 0; }
.track-row:hover { background: rgba(27, 11, 58, 0.03); }
.track-row.is-playing { background: rgba(255, 199, 228, 0.24); }

.track-row__index {
  display: grid; place-items: center;
  font-size: 0.8125rem;
  color: var(--outline);
  font-variant-numeric: tabular-nums;
}
.track-row:hover .track-row__num, .track-row.is-playing .track-row__num { display: none; }
.track-row__go { display: none; color: var(--seafoam-deep); }
.track-row:hover .track-row__go, .track-row.is-playing .track-row__go { display: block; }

.track-row__id { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.track-row__thumb {
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--r);
  overflow: hidden; flex-shrink: 0;
}
.track-row__name { font-weight: 600; font-size: 0.9375rem; color: var(--primary); }
.track-row__name, .track-row__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-row__sub { font-size: 0.78rem; color: var(--on-surface-variant); }
.track-row__dur { font-size: 0.8125rem; color: var(--on-surface-variant); font-variant-numeric: tabular-nums; }
.track-row__tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }

/* --------------------------- waveform visual ---------------------------- */

.cw-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: var(--wave-h, 40px);
  width: 100%;
  min-width: 0;
}
.cw-wave__bar {
  flex: 1 1 auto;
  min-width: 2px;
  height: var(--h);
  background: var(--outline-variant);
  border-radius: 2px;
  transition: height 0.3s var(--ease), background-color 0.3s;
}
.cw-wave--live .cw-wave__bar {
  background: var(--seafoam);
  animation: wave-breathe 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 45ms);
}
@keyframes wave-breathe {
  0%, 100% { transform: scaleY(0.72); }
  50% { transform: scaleY(1.12); }
}
.cw-wave--sm { --wave-h: 26px; }
.cw-wave--lg { --wave-h: 96px; }

/* clickable scrub waveform on track detail */
.wave-scrub { position: relative; cursor: pointer; }
.wave-scrub .cw-wave__bar { background: var(--outline-variant); }
.wave-scrub .cw-wave__bar.is-past { background: var(--seafoam-deep); }

/* ------------------------------ eq bars --------------------------------- */

.eq { display: flex; align-items: flex-end; gap: 2px; height: 1rem; }
.eq span {
  width: 3px; border-radius: 2px;
  background: var(--seafoam-deep);
  animation: eq-jump 1.1s ease-in-out infinite;
}
.eq span:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq span:nth-child(2) { height: 85%; animation-delay: .18s; }
.eq span:nth-child(3) { height: 55%; animation-delay: .36s; }
.eq span:nth-child(4) { height: 95%; animation-delay: .1s; }
@keyframes eq-jump { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

/* ------------------------------ progress -------------------------------- */

.rail {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--surface-highest);
  cursor: pointer;
  overflow: visible;
}
.rail__fill {
  position: absolute; inset: 0 auto 0 0;
  width: 0;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--seafoam-deep), var(--seafoam));
}
.rail__thumb {
  position: absolute; top: 50%; left: 0;
  width: 0.85rem; height: 0.85rem;
  margin-left: -0.425rem;
  border-radius: var(--r-full);
  background: #fff;
  border: 2px solid var(--seafoam-deep);
  transform: translateY(-50%) scale(0);
  transition: transform 0.2s var(--ease);
  pointer-events: none;
}
.rail:hover .rail__thumb, .rail.is-dragging .rail__thumb { transform: translateY(-50%) scale(1); }

/* --------------------------- persistent dock ---------------------------- */

.dock {
  position: fixed;
  left: 50%; bottom: 1rem;
  transform: translateX(-50%) translateY(140%);
  width: min(1180px, calc(100vw - 2rem));
  z-index: 70;
  border-radius: var(--r-xl);
  padding: 0.75rem 1rem;
  transition: transform 0.45s var(--ease), opacity 0.3s;
  opacity: 0;
}
.dock.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }

.dock__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}
.dock__id { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.dock__art { width: 3rem; height: 3rem; border-radius: var(--r); overflow: hidden; flex-shrink: 0; }
.dock__title { font-weight: 600; font-size: 0.9rem; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__sub { font-size: 0.75rem; color: var(--on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dock__controls { display: flex; align-items: center; gap: 0.35rem; justify-self: center; }
.dock__play {
  width: 2.85rem; height: 2.85rem;
  border-radius: var(--r-full);
  background: var(--primary-container);
  color: #fff;
  display: grid; place-items: center;
  transition: transform 0.18s var(--ease), background-color 0.2s;
}
.dock__play:hover { background: var(--primary); transform: scale(1.06); }
.dock__play:active { transform: scale(0.92); }

.dock__timeline { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.4rem; }
.dock__time { font-size: 0.7rem; color: var(--outline); font-variant-numeric: tabular-nums; min-width: 2.6rem; }
.dock__right { display: flex; align-items: center; gap: 0.6rem; justify-content: flex-end; }

.dock__vol { display: flex; align-items: center; gap: 0.5rem; width: 7rem; }
.dock__center { min-width: 0; }

.dock-close { color: var(--outline); }

/* ------------------------------ mixer ----------------------------------- */

.mixer { display: grid; gap: 1rem; }
.stem {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) 3rem;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--r-md);
  background: var(--surface-low);
  border: 1px solid rgba(27, 11, 58, 0.07);
  transition: background-color 0.2s, border-color 0.2s;
}
.stem.is-muted { opacity: 0.45; }
.stem__toggle {
  width: 2.25rem; height: 2.25rem;
  border-radius: var(--r);
  display: grid; place-items: center;
  color: #fff;
  transition: transform 0.18s var(--ease);
}
.stem__toggle:active { transform: scale(0.9); }
.stem__name { font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.stem input[type="range"] { width: 100%; }
.stem__val { font-size: 0.8125rem; color: var(--on-surface-variant); text-align: right; font-variant-numeric: tabular-nums; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--surface-highest);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1rem; height: 1rem;
  border-radius: var(--r-full);
  background: #fff;
  border: 2px solid var(--seafoam-deep);
  cursor: pointer;
  transition: transform 0.15s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.18); }
input[type="range"]::-moz-range-thumb {
  width: 1rem; height: 1rem;
  border-radius: var(--r-full);
  background: #fff;
  border: 2px solid var(--seafoam-deep);
  cursor: pointer;
}

/* ------------------------------ pricing --------------------------------- */

.plan { display: flex; flex-direction: column; position: relative; height: 100%; }
.plan--popular {
  border-color: var(--seafoam);
  box-shadow: 0 0 0 1px var(--seafoam), 0 18px 40px -22px rgba(179, 0, 95, 0.7);
}
.plan__flag {
  position: absolute; top: -0.85rem; left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.9rem;
  border-radius: var(--r-full);
  background: var(--seafoam-deep);
  color: #fff;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}
.plan__price { display: flex; align-items: baseline; gap: 0.35rem; margin-block: 0.9rem 0.25rem; }
.plan__price b { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 400; color: var(--primary); line-height: 1; }
.plan__list { margin-block: 1.35rem; display: grid; gap: 0.7rem; }
.plan__list li { display: flex; gap: 0.6rem; font-size: 0.875rem; color: var(--on-surface-variant); }
.plan__list .cw-icon { width: 18px; height: 18px; color: var(--seafoam-deep); flex-shrink: 0; margin-top: 0.15rem; }
.plan .btn { margin-top: auto; }

.toggle-group {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: var(--r-full);
  background: var(--surface-high);
  border: 1px solid rgba(27, 11, 58, 0.08);
}
.toggle-group button {
  padding: 0.5rem 1.2rem;
  border-radius: var(--r-full);
  font-size: 0.8125rem; font-weight: 600;
  color: var(--on-surface-variant);
  transition: all 0.25s var(--ease);
}
.toggle-group button.is-active { background: var(--surface-lowest); color: var(--primary); box-shadow: var(--shadow-card); }

/* ------------------------------ compare table --------------------------- */

.table-scroll { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid rgba(27, 11, 58, 0.1); }
table.compare { width: 100%; border-collapse: collapse; background: var(--surface-lowest); min-width: 44rem; }
table.compare th, table.compare td { padding: 0.9rem 1.1rem; text-align: left; font-size: 0.875rem; border-bottom: 1px solid rgba(27, 11, 58, 0.07); }
table.compare thead th { background: var(--surface-low); font-family: var(--font-serif); font-weight: 500; color: var(--primary); font-size: 0.95rem; }
table.compare td:not(:first-child), table.compare th:not(:first-child) { text-align: center; }
table.compare tbody tr:hover { background: rgba(27, 11, 58, 0.02); }
table.compare .cw-icon { color: var(--seafoam-deep); margin-inline: auto; }

/* --------------------------------- faq ---------------------------------- */

.faq { border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(27, 11, 58, 0.1); background: var(--surface-lowest); }
.faq__item { border-bottom: 1px solid rgba(27, 11, 58, 0.07); }
.faq__item:last-child { border-bottom: 0; }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.25rem;
  text-align: left;
  font-weight: 600; font-size: 0.95rem;
  color: var(--primary);
}
.faq__q .cw-icon { flex-shrink: 0; transition: transform 0.3s var(--ease); color: var(--seafoam-deep); }
.faq__item.is-open .faq__q .cw-icon { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 1.25rem 1.25rem; font-size: 0.9rem; color: var(--on-surface-variant); }

/* -------------------------------- forms --------------------------------- */

.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.8125rem; font-weight: 600; color: var(--on-surface-variant); }
.input, .field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: var(--r);
  background: var(--surface-lowest);
  border: 1px solid rgba(27, 11, 58, 0.12);
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 8rem; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--seafoam);
  box-shadow: 0 0 0 3px rgba(230, 24, 127, 0.25);
}
.field .err { color: var(--error); font-size: 0.78rem; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--error); }

.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.875rem; color: var(--on-surface-variant); }
.checkbox input { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; accent-color: var(--seafoam-deep); flex-shrink: 0; }

/* ------------------------------- alerts --------------------------------- */

.alert {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  border: 1px solid transparent;
}
.alert--ok { background: rgba(255, 199, 228, 0.35); border-color: rgba(179, 0, 95, 0.25); color: #00413a; }
.alert--err { background: #ffdad6; border-color: rgba(186, 26, 26, 0.25); color: #93000a; }
.alert--info { background: var(--surface-high); border-color: rgba(27, 11, 58, 0.12); color: var(--on-surface-variant); }

.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--dock-h) + 2rem);
  z-index: 90;
  display: flex; flex-direction: column; gap: 0.6rem;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--primary-container);
  color: #fff;
  font-size: 0.875rem; font-weight: 500;
  box-shadow: 0 16px 36px -18px rgba(20, 7, 42, 0.9);
  animation: toast-in 0.35s var(--ease);
}
.toast .cw-icon { color: var(--seafoam-fixed); }
.toast.is-out { animation: toast-out 0.3s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(1.5rem); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(1.5rem); } }

/* ------------------------------ cart / order ---------------------------- */

.cart-item {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(27, 11, 58, 0.07);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item__art { width: 4.5rem; height: 4.5rem; border-radius: var(--r); overflow: hidden; }
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(27, 11, 58, 0.12); border-radius: var(--r-full); overflow: hidden; }
.qty button { width: 2rem; height: 2rem; display: grid; place-items: center; color: var(--on-surface-variant); transition: background-color 0.2s; }
.qty button:hover { background: var(--surface-high); }
.qty input { width: 2.5rem; text-align: center; border: 0; background: none; font-size: 0.875rem; font-weight: 600; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; padding-block: 0.4rem; }
.summary-row--total { border-top: 1px solid rgba(27, 11, 58, 0.1); margin-top: 0.6rem; padding-top: 0.9rem; font-size: 1.05rem; font-weight: 700; color: var(--primary); }

.steps { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--outline); }
.step__n { width: 1.6rem; height: 1.6rem; border-radius: var(--r-full); display: grid; place-items: center; background: var(--surface-high); font-size: 0.75rem; font-weight: 700; }
.step.is-done .step__n, .step.is-current .step__n { background: var(--seafoam-deep); color: #fff; }
.step.is-current { color: var(--primary); font-weight: 600; }

/* ------------------------------- footer --------------------------------- */

.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.72);
  margin-top: var(--s-2xl);
}
/* Clearance for the floating dock, reserved only while it is actually up —
   and inside the footer, so it is footer-coloured rather than a pale band. */
body.dock-live .site-footer { padding-bottom: calc(var(--dock-h) + 1rem); }
.site-footer a { transition: color 0.2s; }
.site-footer a:hover { color: var(--seafoam-fixed); }
.site-footer h4 { font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); font-weight: 700; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.footer-links { display: grid; gap: 0.65rem; font-size: 0.875rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-block: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
}
.newsletter { display: flex; gap: 0.5rem; margin-top: 1rem; max-width: 22rem; }
.newsletter input {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.875rem;
}
.newsletter input::placeholder { color: rgba(255, 255, 255, 0.45); }
.newsletter input:focus { outline: none; border-color: var(--seafoam); background: rgba(255, 255, 255, 0.14); }

/* --------------------------- scroll animations -------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

.float-slow { animation: float-slow 7s ease-in-out infinite alternate; }
@keyframes float-slow { from { transform: translateY(-6px); } to { transform: translateY(6px); } }

.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.scroll-top {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--dock-h) + 2rem);
  z-index: 65;
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--r-full);
  display: grid; place-items: center;
  background: var(--primary-container);
  color: #fff;
  box-shadow: var(--shadow-dock);
  opacity: 0; pointer-events: none;
  transform: translateY(0.75rem);
  transition: all 0.3s var(--ease);
}
.scroll-top.is-in { opacity: 1; pointer-events: auto; transform: none; }

/* ------------------------------ utilities ------------------------------- */

.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;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.75rem; }
.mt-xl { margin-top: 2.5rem; }
.mb-lg { margin-bottom: 1.75rem; }
.full { width: 100%; }
.hide-sm { display: initial; }

/* ----------------------------- breakpoints ------------------------------ */

/* Seven nav links: give the search box up before the links start to crowd. */
@media (max-width: 1360px) {
  .header-search input { width: 10rem; }
}
@media (max-width: 1240px) {
  .header-search { display: none; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav, .header-search { display: none; }
  .burger { display: grid; }
  .dock__grid { grid-template-columns: minmax(0, 1fr) auto; }
  .dock__right { display: none; }
}

@media (max-width: 900px) {
  .owner { grid-template-columns: 1fr; }
  .owner__media { max-width: 26rem; aspect-ratio: 4 / 3; }
}

@media (max-width: 760px) {
  :root { --gutter: 1.25rem; --dock-h: 6.5rem; }
  .hero__badge { display: none; }
  .owner__stats { gap: 1.5rem; }
  .owner__stat { font-size: 1.6rem; }
  .hero-dock { padding: 1rem; }
  /* The grid becomes a column here, so the desktop flex-basis would read as a height. */
  .hero-dock__grid > :first-child { flex: 0 0 auto; }
  .hero-dock__grid > :last-child { margin-left: 0; width: 100%; justify-content: space-between; }
  .track-row { grid-template-columns: 2rem minmax(0, 1fr) auto; }
  .track-row__tags, .track-row__wave { display: none; }
  .hero-dock { margin-top: -1.5rem; }
  .hero-dock__grid { flex-direction: column; align-items: stretch; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .cart-item { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .cart-item__actions { grid-column: 1 / -1; }
  .stat__value { font-size: 1.6rem; }
  .hide-sm { display: none; }
  .dock { width: calc(100vw - 1rem); bottom: 0.5rem; }
  .dock__controls .prev-btn, .dock__controls .next-btn { display: none; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .btn { padding: 0.7rem 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .dock, .site-footer, .scroll-top, .toast-stack { display: none !important; }
  body { padding-bottom: 0; }
}

/* --------------------- hero background video ---------------------------- */

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  pointer-events: none;
}
/* Only fade the clip in once it actually has frames, so the SVG scene stays
   visible on slow connections instead of flashing to black. */
.hero__video.is-ready { opacity: 1; }

/* ------------------ track card video + live play time -------------------- */

/* Song art, wherever it appears: the cover photo at rest, and the clip taking
   over for as long as that track is playing. Keyed off .is-playing, which the
   player puts on every [data-track-slug] for the current track. */
.song-art { position: relative; display: block; }

.song-art__photo,
.song-art__vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.song-art__photo {
  z-index: 1;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.track-card:hover .song-art__photo { transform: scale(1.06); }
.song-art__vid {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}

/* Playing: the photo hands over to the clip, and back again on pause. */
.is-playing .song-art__photo { opacity: 0; }
.is-playing .song-art__vid.is-ready { opacity: 1; }

/* Containers that hold the layers need to establish the positioning context. */
.track-row__thumb { position: relative; }

.track-card__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  height: 3px;
  background: rgba(255, 255, 255, 0.22);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.track-card.is-playing .track-card__bar { opacity: 1; }
.track-card__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--seafoam-fixed);
}

/* While a track is playing its time flips to elapsed / total. */
.track-card.is-playing .track-card__meta [data-card-time],
.track-row.is-playing .track-row__dur { color: var(--seafoam-fixed); }

/* Reduced motion: keep the frame on screen, but JS holds it paused — hiding it
   outright left the hero and every card blank on machines with animations off. */

/* ------------------- photo hero (square art, wide frame) ----------------- */

/* A square image in a wide frame gets cropped to a thin band by object-fit:
   cover. Instead the artwork is shown whole, sat to the right of the copy,
   over a blurred blow-up of itself that fills the rest of the frame. */
.hero__frame--photo { min-height: clamp(22rem, 38vw, 32rem); }

.hero__wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(46px) saturate(1.15);
  transform: scale(1.18);
}
.hero__photo {
  position: absolute;
  inset: 0 0 0 auto;
  height: 100%;
  width: auto;
  max-width: 58%;
  object-fit: contain;
  object-position: right center;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 22%);
          mask-image: linear-gradient(to right, transparent, #000 22%);
}

/* Narrow screens: the copy needs the whole width, so the art goes back to
   filling the frame behind it. */
@media (max-width: 860px) {
  .hero__photo {
    inset: 0;
    width: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 42%;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .hero__wash { display: none; }
}

/* ---------------- two-column page layouts (main + sidebar) --------------- */

/* These were inline templates on cart/checkout/contact/track. Holding an
   explicit two-column track meant the 280px sidebar minimum forced the page
   wider than a phone screen instead of wrapping. */
.grid-split {
  grid-template-columns: minmax(0, var(--split, 1.5fr)) minmax(280px, 0.6fr);
  align-items: start;
}
@media (max-width: 880px) {
  .grid-split { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------- footer on mobile --------------------------- */

@media (max-width: 760px) {
  .footer-grid { gap: 2rem; padding-block: 2.5rem 1.75rem; }
  .site-footer h4 { margin-bottom: 0.75rem; }
  .footer-links { gap: 0.85rem; }
  /* Thumb-sized tap targets — 0.875rem links sat too close to reliably hit. */
  .footer-links a { display: inline-block; padding-block: 0.15rem; }

  /* The email field and its round button stop fitting side by side. */
  .newsletter { max-width: none; flex-wrap: wrap; }
  .newsletter input { min-width: 0; flex: 1 1 12rem; }

  .footer-bottom {
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
    padding-block: 1.1rem;
  }
}

@media (max-width: 480px) {
  .footer-grid { padding-block: 2.25rem 1.5rem; }
  .site-footer .brand__name { font-size: 1.2rem; }
  .footer-bottom { font-size: 0.75rem; }
}

/* ------------------ player: buffering state ------------------------------ */

/* Shown while the stream refills after a stall, so a pause in the audio reads
   as loading rather than as a broken player. */
.dock.is-buffering .dock__play { animation: buffer-pulse 1.1s ease-in-out infinite; }
.dock.is-buffering .rail__fill { opacity: 0.55; }
@keyframes buffer-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 24, 127, 0.45); }
  50%      { box-shadow: 0 0 0 8px rgba(230, 24, 127, 0); }
}

/* ------------------ night hero: stars ------------------------------------ */

.cw-stars circle {
  animation: twinkle 4.2s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -370ms);
}
@keyframes twinkle {
  from { opacity: calc(var(--o) * 0.3); }
  to   { opacity: var(--o); }
}

/* ------------------ theme: sunrise --------------------------------------- */

body.theme-sunrise {
  --surface: #fffaf3;
  --surface-low: #fff1e0;
  --surface-c: #fdebd6;
  --surface-high: #fbe4cc;
  --surface-highest: #f7dbbf;
  --seafoam-fixed: #ffe0a6;
}
.theme-sunrise .hero::before {
  background: radial-gradient(ellipse at center, rgba(255, 214, 150, 0.55), rgba(255, 250, 243, 0) 68%);
}
.theme-sunrise .hero__content .eyebrow { color: #ffe0a6; }
.theme-sunrise .hero__shimmer { background: linear-gradient(to top, rgba(255, 230, 190, 0.22), transparent); }
.theme-sunrise .section--sand { background: linear-gradient(180deg, #fff1e0, #fffaf3); }
.theme-sunrise .section--deep {
  background: linear-gradient(180deg, #2b2a5e 0%, #6a5a9e 45%, #c9788f 100%);
}
.theme-sunrise .site-header { background: rgba(255, 250, 243, 0.85); }

/* ------------------ theme: night ----------------------------------------- */

/* Tokens flip the whole page dark; the rules after them fix the handful of
   surfaces the base stylesheet paints with fixed light colours. */
body.theme-night {
  --surface: #070b1f;
  --surface-dim: #050817;
  --surface-lowest: #0f1533;
  --surface-low: #0b1029;
  --surface-c: #121a3d;
  --surface-high: #19224a;
  --surface-highest: #212c5a;
  --on-surface: #e7ebff;
  --on-surface-variant: #b3bcdf;
  --outline: #8791bd;
  --outline-variant: #2f3a6b;
  --primary: #eef1ff;
  --primary-container: #4b3fa6;
  --seafoam-fixed: #c9d6ff;
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.45);
  --shadow-card-hover: 0 14px 32px -6px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}
.theme-night .site-header { background: rgba(7, 11, 31, 0.85); border-bottom-color: rgba(201, 214, 255, 0.1); }
.theme-night .brand__mark { background: #fff; }
.theme-night .card,
.theme-night .track-list { border-color: rgba(201, 214, 255, 0.1); }
.theme-night .glass {
  background: rgba(15, 21, 51, 0.82);
  border-color: rgba(201, 214, 255, 0.14);
}
.theme-night .btn--primary { box-shadow: 0 6px 22px -6px rgba(90, 110, 255, 0.55); }
.theme-night .btn--primary:hover,
.theme-night .dock__play:hover { background: #5d51c4; }
.theme-night .btn--ghost {
  background: rgba(15, 21, 51, 0.6);
  color: #eef1ff;
  border-color: rgba(201, 214, 255, 0.25);
}
.theme-night .btn--ghost:hover { background: rgba(25, 34, 74, 0.9); }
.theme-night .hero::before {
  background: radial-gradient(ellipse at center, rgba(120, 140, 255, 0.28), rgba(7, 11, 31, 0) 68%);
}
.theme-night .hero__frame { border-color: rgba(201, 214, 255, 0.12); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9); }
.theme-night .hero__shimmer { background: linear-gradient(to top, rgba(201, 214, 255, 0.14), transparent); }
.theme-night .hero__badge { background: rgba(15, 21, 51, 0.8); color: #eef1ff; border-color: rgba(201, 214, 255, 0.2); }
.theme-night .section--sand {
  background: linear-gradient(180deg, #0b1029, #070b1f);
  border-block-color: rgba(201, 214, 255, 0.08);
}
.theme-night .section--deep,
.theme-night .site-footer { background: #03040f; }
.theme-night .section--deep {
  background:
    radial-gradient(ellipse at 70% 0%, rgba(120, 140, 255, 0.25), transparent 60%),
    #03040f;
}
.theme-night .stat-strip { background: rgba(201, 214, 255, 0.08); }
.theme-night .stat__value { color: #c9d6ff; }

/* ------------------ page polish ------------------------------------------ */

/* Even line lengths on headings and intros — no one-word orphans. */
.display, .h1, .h2, .section-head h2 { text-wrap: balance; }
.lead, .card__body p { text-wrap: pretty; }

/* Section eyebrows carry their icon in a soft tinted chip. */
.eyebrow > .cw-icon {
  box-sizing: content-box;
  padding: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 13%, transparent);
}

/* Bands meet the section above on a gentle swell instead of a hard edge.
   The mask paints the page surface colour down into the band. */
.section--sand, .section--deep { position: relative; }
.section--sand { border-top-color: transparent; }
.section--sand::before,
.section--deep::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: clamp(14px, 2vw, 26px);
  background: var(--surface);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 24' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v10c-120 8-240 12-360 8S840 4 720 8 480 20 360 18 120 6 0 10z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 24' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v10c-120 8-240 12-360 8S840 4 720 8 480 20 360 18 120 6 0 10z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}

/* Sunrise: warmer discs. */
.theme-sunrise .feature__icon--seafoam    { --d1: #ffc2a8; --d2: #e2566e; --dr: rgba(226, 86, 110, 0.3); }
.theme-sunrise .feature__icon--navy       { --d1: #c7b8f5; --d2: #6a5a9e; --dr: rgba(106, 90, 158, 0.3); }
.theme-sunrise .feature__icon--terracotta { --d1: #fff0b3; --d2: #f08a24; --dr: rgba(240, 138, 36, 0.35); }

/* Night: moonlit discs with a star glint. */
.theme-night .feature__icon--seafoam    { --d1: #c9a8ff; --d2: #4b2a8f; --dr: rgba(201, 214, 255, 0.22); }
.theme-night .feature__icon--navy       { --d1: #a9bcff; --d2: #1d2a6e; --dr: rgba(201, 214, 255, 0.22); }
.theme-night .feature__icon--terracotta { --d1: #b8c6f5; --d2: #34427a; --dr: rgba(201, 214, 255, 0.22); }
.theme-night .feature__icon::before {
  content: "";
  position: absolute; top: 3px; right: 5px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(201, 214, 255, 0.8);
  z-index: 2;
}

/* ------------------ responsive: touch targets & small screens ------------ */

.dock__play { flex-shrink: 0; }

/* The seek rail stays a slim 6px line but gets a finger-sized hit area. */
.rail::before { content: ""; position: absolute; inset: -14px 0; }

@media (max-width: 768px) {
  /* 44px minimum for anything a thumb has to hit. */
  .icon-btn { width: 2.75rem; height: 2.75rem; }
  .chip, .toggle-group button { min-height: 2.5rem; }
  .link-arrow { min-height: 2.75rem; }
  .stem__toggle { width: 2.75rem; height: 2.75rem; }
  .header-search input, .input, .field input, .field select, .cart-qty input,
  input[type="number"] { min-height: 2.75rem; }
  .track-card__title, .track-row__name { display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; }
  .field input[type="checkbox"], label input[type="checkbox"] { width: 1.35rem; height: 1.35rem; }
}

@media (max-width: 480px) {
  /* Long plan labels ("Choose Master Sync & Commercial") wrap instead of spilling. */
  .btn--block { white-space: normal; text-align: center; line-height: 1.3; }
}

/* Flex rows (header, track rows) must not squeeze icon buttons below size. */
.icon-btn { flex-shrink: 0; }
.stem__name { overflow-wrap: anywhere; }

/* Tablet: the dock's centre column is sized by its buttons, so the seek rail
   needs a floor or it collapses to nothing. */
@media (max-width: 1024px) {
  .dock__timeline { min-width: min(18rem, 46vw); }
}

@media (max-width: 760px) {
  /* Phone: controls sit beside the title; the seek rail takes a full row. */
  .dock__grid { row-gap: 0.35rem; }
  .dock__center { display: contents; }
  .dock__controls { grid-column: 2; grid-row: 1; }
  .dock__timeline { grid-column: 1 / -1; min-width: 0; margin-top: 0; }
}

@media (max-width: 768px) {
  .qty button { width: 2.75rem; height: 2.75rem; }
  .btn--sm { min-height: 2.75rem; }
  nav[aria-label="Breadcrumb"] a { display: inline-block; padding-block: 0.75rem; }
}
