/* ==========================================================
   HRV Guitar — styles
   Near-black base with a full-spectrum accent that plays off
   the ColorBlind name. Layout and type follow madrabbit.dev.
   ========================================================== */

:root {
  color-scheme: dark;

  --bg: #07070b;
  --bg-2: #0b0b12;
  --surface: #111119;
  --surface-2: #171722;
  --ink: #f5f4fa;
  --ink-2: #c4c3d4;
  --muted: #8e8da4;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --pink: #ff4d8a;
  --orange: #ff8a3d;
  --yellow: #ffd23d;
  --green: #4fe39a;
  --cyan: #3cc4ff;
  --violet: #8f6bff;

  /* Saturated spectrum for text and glows. */
  --prism: linear-gradient(90deg, #ff4d8a, #ff8a3d, #ffd23d, #4fe39a, #3cc4ff, #8f6bff);
  /* Two full cycles, so text can scroll through it without a seam. */
  --prism-loop: linear-gradient(90deg, #ff4d8a, #ff8a3d, #ffd23d, #4fe39a, #3cc4ff, #8f6bff, #ff4d8a, #ff8a3d, #ffd23d, #4fe39a, #3cc4ff, #8f6bff, #ff4d8a);
  /* A lighter spectrum for filled buttons, so dark labels stay readable on every hue. */
  --prism-light: linear-gradient(100deg, #ff9cc0 0%, #ffbf85 20%, #ffe58a 40%, #93f0c4 60%, #8fd8ff 80%, #c4abff 100%);
  --halo: conic-gradient(from 200deg, #ff4d8a, #ff8a3d, #ffd23d, #4fe39a, #3cc4ff, #8f6bff, #ff4d8a);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 18px 40px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5), 0 50px 100px rgba(0, 0, 0, 0.4);

  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 24px;
  --max: 1160px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: rgba(143, 107, 255, 0.45); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.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;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typography ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 8.2vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-variation-settings: 'opsz' 96;
}

.display, .h1, .h2 { text-wrap: balance; }
.lede { text-wrap: pretty; }

.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.lede {
  font-size: clamp(18px, 1.7vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 600px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 3px;
  border-radius: 3px;
  background: var(--prism);
}

.prism-text {
  background: var(--prism-loop);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: prism 14s linear infinite;
}
@keyframes prism { from { background-position: 0% 0; } to { background-position: 100% 0; } }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 11, 0.62);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(7, 7, 11, 0.8); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.brand img { width: 34px; height: 34px; flex-shrink: 0; }
.brand span {
  background: linear-gradient(90deg, #ff8a3d, #ff4d8a 45%, #8f6bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nav-links > li > a:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }

.chev { width: 16px; height: 16px; transition: transform 0.2s; }
.nav-links .ext { width: 13px; height: 13px; color: var(--muted); }

/* Gear dropdown */
.has-drop { position: relative; }
.drop {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 250px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(20, 20, 30, 0.98);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.drop::before { /* keeps hover alive across the gap */
  content: '';
  position: absolute;
  left: 0; right: 0; top: -14px;
  height: 14px;
}
.has-drop.open .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-drop.open .chev { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 861px) {
  .has-drop:hover .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-drop:hover .chev { transform: rotate(180deg); }
}
.drop-title {
  padding: 8px 12px 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.drop ul { list-style: none; display: grid; gap: 2px; }
.drop a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s;
}
.drop a:hover { background: rgba(255, 255, 255, 0.07); }
.drop a svg { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }

.nav-social {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }

.nav-cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px; height: 44px;
  margin-right: -8px;
  border-radius: 50%;
}
.nav-toggle span {
  grid-area: 1 / 1;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s;
}
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span:last-child { transform: translateY(4px); }
.nav.open .nav-toggle span:first-child { transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-links .hide-md { display: none; }
}

@media (max-width: 860px) {
  .js .nav-toggle { display: grid; }
  .nav-cta { margin-left: auto; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 4px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-menu { display: flex; }

  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links .hide-md { display: block; }
  .nav-links > li > a {
    display: flex;
    padding: 14px 2px;
    border-radius: 0;
    font-size: 17px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav-links > li > a:hover { background: none; }
  .chev { display: none; }

  .drop {
    position: static;
    min-width: 0;
    padding: 4px 0 8px 14px;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .drop::before, .drop-title { display: none; }
  .drop a { padding: 11px 2px; color: var(--ink-2); }
  .drop a:hover { background: none; color: var(--ink); }

  .nav-social { padding: 18px 0 0; border-left: 0; gap: 8px; }
  .nav-social .icon-btn { width: 46px; height: 46px; background: rgba(255, 255, 255, 0.06); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s, background 0.2s, filter 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }

.btn-prism {
  color: #0b0b10;
  background: var(--prism-light);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    -10px 8px 28px -10px rgba(255, 110, 170, 0.6),
    10px 8px 28px -10px rgba(110, 190, 255, 0.6);
}
.btn-prism:hover {
  filter: saturate(1.2) brightness(1.04);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    -14px 12px 36px -10px rgba(255, 110, 170, 0.75),
    14px 12px 36px -10px rgba(110, 190, 255, 0.75);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Pills ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
}
.pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(79, 227, 154, 0.55); }
  80%, 100% { box-shadow: 0 0 0 8px rgba(79, 227, 154, 0); }
}

/* ---------- Sections ---------- */

section { position: relative; }

.section { padding: clamp(72px, 10vw, 120px) 0; }
.section + .section { padding-top: 0; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4.5vw, 52px); }
.section-head .lede { margin-top: 16px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: clamp(48px, 8vw, 104px) 0 clamp(16px, 3vw, 40px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
          mask-image: linear-gradient(#000 60%, transparent);
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, #000 20%, transparent 75%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.36;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob.b1 { width: 520px; height: 520px; background: var(--pink); top: -220px; right: 18%; }
.blob.b2 { width: 480px; height: 480px; background: var(--cyan); top: 120px; right: -160px; opacity: 0.28; animation-delay: -6s; }
.blob.b3 { width: 440px; height: 440px; background: var(--violet); top: 60px; left: -200px; opacity: 0.3; animation-delay: -12s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 30px) scale(1.08); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero .pill { margin-bottom: 26px; }
.hero .display { margin-bottom: 14px; }
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.hero .lede { margin-bottom: 32px; }

.hero-art { position: relative; perspective: 1800px; }
.shot {
  position: relative;
  transform: rotateY(-9deg) rotateX(5deg) rotateZ(1deg);
  transition: transform 0.9s cubic-bezier(.2,.8,.2,1);
}
.shot::before {
  content: '';
  position: absolute;
  inset: -8% -6%;
  z-index: -1;
  border-radius: 40%;
  background: var(--halo);
  filter: blur(56px);
  opacity: 0.5;
}
.shot img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), var(--shadow-lg);
}
.hero-art:hover .shot { transform: rotateY(-3deg) rotateX(2deg); }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 9px;
  border-radius: 14px;
  background: rgba(20, 20, 30, 0.86);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-chip .ic {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #0b0b10;
}
.float-chip .ic svg { width: 16px; height: 16px; }
.float-chip.c1 { top: -22px; left: -18px; }
.float-chip.c1 .ic { background: var(--cyan); }
.float-chip.c2 { bottom: -20px; right: -10px; animation-delay: -3s; }
.float-chip.c2 .ic { background: var(--yellow); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 620px; margin-top: 12px; }
  .shot { transform: none; }
  .hero-art:hover .shot { transform: none; }
}
@media (max-width: 600px) {
  .float-chip { display: none; }
}

/* ---------- Signup form ---------- */

.signup { max-width: 540px; }

.signup-field {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.2s, background 0.2s;
}
.signup-field:focus-within {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 0 0 4px rgba(143, 107, 255, 0.22);
}
.signup input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 8px 0 20px;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.signup input::placeholder { color: var(--muted); }
.signup .btn { min-height: 52px; padding: 0 24px; font-size: 16px; }
.signup.is-busy .btn { opacity: 0.7; cursor: progress; }

.signup-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px;
  padding-left: 4px;
  font-size: 14px;
  color: var(--muted);
}
.signup-note span { display: inline-flex; align-items: center; gap: 7px; }
.signup-note span::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.signup-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding-left: 4px;
  font-size: 14px;
  color: var(--muted);
}
.signup-privacy svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--green); }
.signup.center .signup-privacy { justify-content: center; }
.signup.is-done .signup-privacy { display: none; }
.signup-done a { color: var(--ink); }

.signup-msg { margin-top: 12px; padding-left: 4px; font-size: 15px; color: #ff9cb8; }
.signup-msg:empty { display: none; }

.signup-done {
  display: none;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(79, 227, 154, 0.08);
  border: 1px solid rgba(79, 227, 154, 0.3);
  text-align: left;
  color: var(--ink-2);
  font-size: 16px;
}
.signup-done:focus { outline: none; }
.signup-done strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }
.signup-done .done-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #07070b;
}
.signup-done .done-icon svg { width: 18px; height: 18px; }
.signup.is-done .signup-field,
.signup.is-done .signup-note,
.signup.is-done .signup-msg { display: none; }
.signup.is-done .signup-done { display: flex; }

.signup.center { margin: 0 auto; }
.signup.center .signup-note { justify-content: center; }

@media (max-width: 520px) {
  .signup-field { flex-direction: column; align-items: stretch; border-radius: 24px; }
  .signup input { height: 48px; padding: 0 14px; text-align: center; }
  .signup .btn { width: 100%; }
}

/* ---------- Cards ---------- */

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), border-color 0.3s;
}
/* Spectrum edge that fades in on hover. */
.card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--prism);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card.lift:hover { transform: translateY(-4px); }
.card.lift:hover::after { opacity: 0.75; }

.card .h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 16px; }

.card-icon {
  width: 48px; height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--c, var(--ink));
  background: rgba(255, 255, 255, 0.06);
  background: color-mix(in srgb, var(--c, #fff) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, #fff) 32%, transparent);
}
.card-icon svg { width: 24px; height: 24px; }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 600px) { .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Listen: A/B player + video ---------- */

.listen-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 900px) { .listen-grid { grid-template-columns: 1fr; } }

.ab { display: flex; flex-direction: column; }
.ab > p { margin-bottom: 22px; }

.ab-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ab-switch button {
  min-height: 44px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.25s, color 0.25s;
}
.ab-switch button:hover { color: var(--ink); }
.ab-switch button[aria-pressed="true"] { color: var(--ink); background: rgba(255, 255, 255, 0.1); }
.ab-switch button[data-pick="wet"][aria-pressed="true"] { color: #0b0b10; background: var(--prism-light); }

/* Waveform seek bar: played bars light up in spectrum colours (white when dry). */
.ab-wave {
  flex: 1;
  min-height: 96px;
  margin: 22px 0;
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}
.ab-wave i {
  flex: 1;
  height: calc(var(--h, 0.4) * 100%);
  min-height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  transition: height 0.4s cubic-bezier(.2,.8,.2,1), background 0.15s;
}
.ab-wave i.on { background: var(--c); }
.ab.is-dry .ab-wave i.on { background: var(--ink-2); }

.ab-transport { display: flex; align-items: center; gap: 16px; }
.ab-play {
  position: relative;
  flex-shrink: 0;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0b0b10;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1);
}
.ab-play::before { /* spectrum ring */
  content: '';
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: 50%;
  background: var(--halo);
}
.ab-play:hover { transform: scale(1.06); }
.ab-play svg { width: 24px; height: 24px; grid-area: 1 / 1; }
.ab-play .i-pause { display: none; }
.ab.is-playing .ab-play .i-play { display: none; }
.ab.is-playing .ab-play .i-pause { display: block; }
.ab-play:disabled { cursor: not-allowed; opacity: 0.4; transform: none; }

.ab-time { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ab-missing { display: none; font-size: 15px; color: var(--muted); }
.ab.is-missing .ab-time { display: none; }
.ab.is-missing .ab-missing { display: block; }
.ab.is-missing .ab-switch,
.ab.is-missing .ab-wave { opacity: 0.4; pointer-events: none; }

.video {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: #000;
  box-shadow: 0 0 0 1px var(--line-2), var(--shadow);
  text-decoration: none;
}
.video img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), filter 0.3s;
}
a.video:hover img { transform: scale(1.03); }
.video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7));
  pointer-events: none;
}
.video-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: auto;
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0b0b10;
  background: #fff;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.14), 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
}
.video-play svg { width: 30px; height: 30px; margin-left: 4px; }
a.video:hover .video-play { transform: scale(1.07); }
.video-label {
  position: absolute;
  left: 22px; right: 22px; bottom: 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
}
.video-label small { font-weight: 500; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.video .when-soon { display: none; }
.video.is-soon img { filter: blur(8px) brightness(0.4) saturate(0.7); transform: scale(1.08); }
.video.is-soon .video-play { display: none; }
.video.is-soon .when-ready { display: none; }
.video.is-soon .when-soon {
  display: flex;
  position: absolute;
  inset: 0;
  z-index: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
}
.video.is-soon .when-soon strong { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; color: #fff; }
.video.is-soon .when-soon span { color: rgba(255, 255, 255, 0.75); display: inline-flex; align-items: center; gap: 8px; }
.video.is-soon .when-soon svg { width: 18px; height: 18px; color: #ff3355; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- What's inside: sequencer card ---------- */

.seq-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  margin-bottom: 18px;
}
@media (max-width: 900px) { .seq-card { grid-template-columns: 1fr; } }

.steps-list { list-style: none; counter-reset: step; display: grid; gap: 16px; margin-top: 18px; }
.steps-list li {
  position: relative;
  padding-left: 46px;
  color: var(--ink-2);
  font-size: 16px;
  counter-increment: step;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: #0b0b10;
  background: var(--prism-light);
}
.steps-list strong { color: var(--ink); font-weight: 600; }
.support-note { margin-top: 22px; font-size: 15px; color: var(--muted); }
.support-note + .support-note { margin-top: 10px; }
.support-note strong, .support-note em { color: var(--ink-2); font-style: normal; font-weight: 600; }
.support-note a, .footer .tagline a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.support-note a:hover, .footer .tagline a:hover { color: var(--ink); }

.seq-stage {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 0 0 1px var(--line);
}
.seq {
  --step: 128.2ms; /* a 1/16 note at the preset's 117 BPM */
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: clamp(130px, 18vw, 190px);
}
.seq::after { /* bar line between the two bars of the loop */
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}
/* Each bar's height and hue follow its pitch (0-21 semitones): low notes warm, high notes cool. */
.seq i {
  --c: hsl(calc(20 - var(--l) * 11.5) 90% 66%);
  flex: 1;
  height: calc(15% + 85% * var(--l) / 21);
  border-radius: 4px;
  background: var(--c);
  opacity: 0.42;
  animation: hit calc(var(--step) * 32) linear infinite;
  animation-delay: calc(var(--i) * var(--step));
}
@supports (color: oklch(0 0 0)) {
  .seq i { --c: oklch(0.78 0.17 calc(20deg - var(--l) * 12deg)); }
}
@keyframes hit {
  0%, 2.5% { opacity: 1; filter: brightness(1.15) drop-shadow(0 0 10px var(--c)); }
  25%, 100% { opacity: 0.42; filter: none; }
}
.seq-caption { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- Gear + follow ---------- */

a.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.card-link svg { width: 15px; height: 15px; transition: transform 0.2s; }
a.card:hover .card-link svg { transform: translate(2px, -2px); }

.disclosure { margin-top: 22px; font-size: 14px; color: var(--muted); }

.social-card .social-ic {
  width: 52px; height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 28px -8px var(--glow, var(--brand));
}
.social-card .social-ic svg { width: 26px; height: 26px; }
.social-card .h3 { margin-bottom: 2px; }
.social-card .handle { color: var(--muted); font-size: 15px; }
.social-card .card-link svg { transform: none; }
a.social-card:hover .card-link svg { transform: translateX(3px); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  border-radius: var(--radius-xl);
  padding: clamp(56px, 8vw, 96px) clamp(20px, 6vw, 72px);
  background: radial-gradient(120% 140% at 50% 0%, #19152c 0%, #0c0c15 62%);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.cta-band::before {
  content: '';
  position: absolute;
  left: 10%; right: 10%; bottom: -70%;
  height: 110%;
  z-index: -1;
  border-radius: 50%;
  background: var(--halo);
  filter: blur(80px);
  opacity: 0.4;
}
.cta-band .h1 { margin-bottom: 16px; }
.cta-band > p { font-size: 19px; color: var(--ink-2); max-width: 560px; margin: 0 auto 32px; text-wrap: pretty; }

/* ---------- Footer ---------- */

.footer {
  padding: 56px 0 48px;
  border-top: 1px solid var(--line);
}
.footer .brand { font-size: 20px; color: var(--ink); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.footer h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { color: var(--ink-2); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.footer a:hover { color: var(--ink); }
.footer .tagline { color: var(--muted); font-size: 15px; margin-top: 12px; max-width: 300px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- Secondary pages (privacy, 404) ---------- */

.narrow { max-width: 760px; }
.page .nav-cta { margin-left: auto; }
.footer-bottom a { color: var(--ink-2); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }
.page .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }
.signup-privacy a { color: var(--ink-2); text-underline-offset: 3px; margin-left: 4px; }

.doc { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); }
.doc .h1 { margin-bottom: 18px; }
.prose { margin-top: 12px; color: var(--ink-2); }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.25;
  margin: 44px 0 12px;
}
.prose p { margin-bottom: 14px; }
.prose ul { list-style: none; display: grid; gap: 8px; margin: 8px 0 16px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before {
  content: '';
  position: absolute;
  left: 4px; top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--prism);
}
.prose a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.muted { color: var(--muted); font-size: 15px; margin-top: 28px; }

.notfound {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  min-height: calc(100vh - 68px - 120px);
  display: grid;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
}
.notfound .display { font-size: clamp(96px, 16vw, 180px); margin-bottom: 8px; }
.notfound .h2 { margin-bottom: 14px; }
.notfound .lede { margin-bottom: 32px; }

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .seq i { opacity: 0.85; }
}

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .card { padding: 24px; }
  .cta-band { border-radius: var(--radius-lg); }

  /* Feature and gear cards become compact rows: icon on the left, text beside it. */
  .grid-4 { gap: 12px; }
  .compact > .card {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
    align-items: start;
    padding: 20px;
  }
  .compact > .card > * { grid-column: 2; }
  .compact > .card > .card-icon { grid-column: 1; grid-row: 1 / span 3; width: 44px; height: 44px; margin: 0; }
  .compact .h3 { font-size: 19px; margin-bottom: 4px; }
  .compact .card-link { padding-top: 10px; }

  .grid-4.socials { grid-template-columns: 1fr 1fr; }
  .socials .card { padding: 20px; }
  .socials .social-ic { width: 46px; height: 46px; margin-bottom: 14px; }
  .socials .h3 { font-size: 19px; }
}
