:root {
  color-scheme: dark;
  --bg: #1a1a38;
  --bg-raised: #29294d;
  --surface: #29294d;
  --surface-strong: #29294d;
  --surface-glass: rgba(41, 41, 77, 0.76);
  --text: #f8f5fa;
  --text-muted: #aaa2b0;
  --border: rgba(255, 255, 255, 0.1);
  --brand-violet: #8c73f2;
  --track-guitar: #8c73f2;
  --track-drums: #ff6627;
  --track-bass: #a3f26b;
  --track-keys: #4dbff2;
  --focus: #4dbff2;
  --radius-large: 16px;
  --radius-medium: 16px;
  --radius-small: 10px;
  --page-width: 1180px;
  --shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(140, 115, 242, 0.12), transparent 30rem), var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header,
.site-footer,
.hero,
.demo-section,
.story-section,
.features-section,
.support-section,
.closing {
  width: min(calc(100% - 32px), var(--page-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 72px;
  align-items: center;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.wordmark::before {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: url("assets/brand/vamp-app-icon-256.png") center / cover no-repeat;
  box-shadow: 0 5px 14px rgba(140, 115, 242, 0.28);
  content: "";
}

.hero {
  display: grid;
  min-height: min(620px, 76vh);
  place-items: center;
  padding: 76px 0 92px;
  text-align: center;
}

.hero-copy {
  max-width: 720px;
}

.hero-app-icon {
  display: block;
  width: clamp(94px, 13vw, 128px);
  height: auto;
  margin: 0 auto 25px;
  filter: drop-shadow(0 18px 28px rgba(140, 115, 242, 0.3));
}

.hero-kicker,
.section-label,
.screen-step {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  line-height: 0;
}

.hero-wordmark {
  display: block;
  width: min(100%, 390px);
  height: auto;
  margin: 0 auto;
}

.hero-description {
  max-width: 650px;
  margin: 22px auto 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.app-store-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.app-store-link:not([aria-disabled="true"]):hover {
  background: rgba(255, 255, 255, 0.16);
}

.app-store-link[aria-disabled="true"] {
  cursor: default;
  opacity: 0.58;
}

.demo-section {
  padding: 32px 0 110px;
}

.section-heading {
  max-width: 500px;
  margin-bottom: 34px;
}

.section-heading h2,
.closing h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.demo-status {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.demo-scroller {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86vw, 380px);
  gap: 18px;
  width: calc(100% + 16px);
  margin-left: -2px;
  padding: 24px 18px 18px 2px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.track-connectors {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  overflow: visible;
  pointer-events: none;
}

.track-connector-path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 6;
  opacity: 0.96;
}

.track-connector-endpoint {
  stroke: rgba(248, 245, 250, 0.88);
  stroke-width: 2;
}

.demo-scroller::-webkit-scrollbar {
  display: none;
}

.vamp-screen {
  --vamp-accent: #8c73f2;
  --vamp-button-foreground: white;
  --screen-padding: 18px;
  font-family:
    ui-rounded,
    "SF Pro Rounded",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  position: relative;
  display: flex;
  height: 700px;
  min-height: 0;
  flex-direction: column;
  padding: var(--screen-padding);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 34px;
  background: #1a1a38;
  box-shadow: 0 10px 30px rgba(5, 5, 22, 0.28);
  scroll-snap-align: center;
  scrollbar-width: none;
  z-index: 1;
}

.vamp-screen::-webkit-scrollbar {
  display: none;
}

.vamp-screen::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 82% 0%,
    color-mix(in srgb, var(--vamp-accent) 18%, transparent),
    transparent 31%
  );
  content: "";
  pointer-events: none;
}

.vamp-screen-teal {
  --vamp-accent: #33d9b8;
}

.vamp-screen-yellow {
  --vamp-accent: #ffd933;
  --vamp-button-foreground: #1a1a38;
}

.screen-header,
.project-art,
.screen-meta,
.track-list,
.screen-footer {
  position: relative;
  z-index: 1;
}

.story-section {
  max-width: 800px;
  padding: 36px 0 110px;
}

.story-section h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 3.8rem);
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.story-section > p:last-child {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.features-section {
  padding: 28px 0 112px;
}

.feature-grid {
  display: grid;
  gap: 14px;
}

.feature-card {
  --feature-color: var(--track-guitar);
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-content: start;
  column-gap: 16px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 4px solid var(--feature-color);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-card::after {
  position: absolute;
  top: -72px;
  right: -60px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--feature-color) 14%, transparent);
  content: "";
  filter: blur(24px);
  opacity: 0.55;
  pointer-events: none;
}

.feature-card-violet {
  --feature-color: var(--track-guitar);
}
.feature-card-orange {
  --feature-color: var(--track-drums);
}
.feature-card-lime {
  --feature-color: var(--track-bass);
}
.feature-card-sky {
  --feature-color: var(--track-keys);
}

.feature-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 64px;
  height: 64px;
  grid-row: span 2;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--feature-color) 20%, transparent);
  padding: 9px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--feature-color) 12%, var(--surface));
  place-items: center;
}

.feature-icon-glyph {
  width: 100%;
  height: 100%;
  background: var(--feature-color);
  -webkit-mask: var(--feature-icon-source) center / contain no-repeat;
  mask: var(--feature-icon-source) center / contain no-repeat;
}

.feature-icon-ad-free {
  --feature-icon-source: url("assets/brand/icons/ad-free.svg");
}

.feature-icon-mixer {
  --feature-icon-source: url("assets/brand/icons/mixer.svg");
}

.feature-icon-metronome {
  --feature-icon-source: url("assets/brand/icons/metronome.svg");
}

.feature-icon-local {
  --feature-icon-source: url("assets/brand/icons/local.svg");
}

.feature-icon-ownership {
  --feature-icon-source: url("assets/brand/icons/ownership.svg");
}

.feature-icon-stretch {
  --feature-icon-source: url("assets/brand/icons/stretch.svg");
}

.feature-icon-artwork {
  --feature-icon-source: url("assets/brand/icons/artwork.svg");
}

.feature-icon-drums {
  --feature-icon-source: url("assets/brand/icons/drums.svg");
}

.feature-card h3 {
  position: relative;
  z-index: 1;
  max-width: 290px;
  margin: 5px 0 0;
  font-size: 1.52rem;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.feature-card p {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.screen-header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.screen-header h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.screen-step {
  display: none;
}

.project-art {
  order: 2;
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  min-height: 154px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(41, 41, 77, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.album-art {
  aspect-ratio: 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.album-art-minor-guitar {
  background-image: url("assets/demo/Guitar%20Riff.png");
}

.album-art-minor-djembe {
  background-image: url("assets/demo/Minor%20Djembe.png");
}

.album-art-minor-jam {
  background-image: url("assets/demo/Minor%20Jam.png");
}

.project-glass {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  background:
    linear-gradient(
      115deg,
      color-mix(in srgb, var(--vamp-accent) 46%, transparent),
      rgba(41, 41, 77, 0.56)
    ),
    rgba(41, 41, 77, 0.56);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}

.project-glass span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-glass strong {
  font-size: clamp(1rem, 4vw, 1.4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.play-button {
  order: 4;
  align-self: center;
  display: inline-flex;
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  margin: 22px 0 24px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--vamp-accent);
  box-shadow: 0 5px 14px color-mix(in srgb, var(--vamp-accent) 32%, transparent);
  color: var(--vamp-button-foreground);
  font-size: 0;
  font-weight: 700;
}

.play-button:not(:disabled) {
  cursor: pointer;
}

.play-button:disabled,
.track-controls button:disabled {
  cursor: default;
  opacity: 0.45;
}

.play-button:disabled,
.track-controls button:disabled {
  opacity: 1;
}

.play-icon {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
}

.play-button [data-play-label] {
  display: none;
}

.screen-meta {
  order: 3;
  display: flex;
  gap: 8px;
  margin: 16px 0 0;
}

.screen-meta-item {
  display: grid;
  min-width: 0;
  min-height: 54px;
  flex: 1 1 0;
  place-content: center;
  gap: 3px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--vamp-accent) 10%, transparent);
  text-align: center;
  box-sizing: border-box;
}

.screen-meta-label {
  color: color-mix(in srgb, var(--vamp-accent) 75%, white);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.screen-meta-item > span:last-child {
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-list {
  order: 5;
  display: grid;
  gap: 12px;
}

.track-list::before {
  margin: 0 0 5px;
  color: #a8a7bb;
  content: "LAYERS";
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.track {
  --track-color: var(--brand-violet);
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

.track-guitar {
  --track-color: var(--track-guitar);
}

.track-djembe {
  --track-color: var(--track-drums);
}

.track-harmony {
  --track-color: var(--track-keys);
}

.track-melody {
  --track-color: #e78de8;
}

.track-main {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 9px;
}

.track-dot {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--track-color) 15%, var(--surface));
  box-shadow: none;
}

.track-dot::after {
  display: block;
  color: var(--track-color);
  content: "♬";
  font-size: 1.35rem;
  line-height: 44px;
  text-align: center;
}

.track-copy {
  display: grid;
  min-width: 0;
}

.track-copy strong {
  font-size: 0;
}

.track-copy strong::after {
  font-size: 1.22rem;
  font-weight: 700;
}

.track-guitar .track-copy strong::after {
  content: "Guitar";
}
.track-djembe .track-copy strong::after {
  content: "Djembe";
}
.track-harmony .track-copy strong::after {
  content: "Harmony";
}
.track-melody .track-copy strong::after {
  content: "Melody";
}

.track-copy span {
  font-size: 0;
  overflow: hidden;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-copy span::after {
  font-size: 0.82rem;
}

.track-guitar .track-copy span::after {
  content: "Original";
}

.track-djembe .track-copy span::after {
  content: "@dejembedrummer";
}

.track-harmony .track-copy span::after,
.track-melody .track-copy span::after {
  content: "@melodicmarvel";
}

.waveform {
  position: relative;
  display: block;
  grid-column: 1 / -1;
  height: 42px;
  margin-top: 22px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--track-color) 11%, #1a1a38);
  overflow: visible;
}

/* Matches the native iPhoneLevelMeterBar's 6px meter, threshold bands, and active-fill stops. */
.waveform::before,
.waveform::after {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0;
  height: 6px;
  border-radius: 2px;
  content: "";
}

.waveform::before {
  right: 0;
  background: linear-gradient(
    to right,
    rgb(163 242 107 / 12%) 0 73%,
    rgb(255 217 51 / 12%) 73% 92%,
    rgb(242 72 34 / 12%) 92% 100%
  );
}

.waveform::after {
  right: 0;
  clip-path: inset(0 100% 0 0);
  background: linear-gradient(to right, #a3f26b 0 65%, #ffd933 82% 90%, #f24822 94% 100%);
  transition: clip-path 50ms linear;
}

.track[data-metering="true"] .waveform::after {
  animation: vamp-meter-guitar 1.45s ease-in-out infinite;
}

.track-djembe[data-metering="true"] .waveform::after {
  animation-name: vamp-meter-djembe;
  animation-duration: 1.25s;
}

.track-harmony[data-metering="true"] .waveform::after {
  animation-name: vamp-meter-harmony;
  animation-duration: 1.7s;
}

.track-melody[data-metering="true"] .waveform::after {
  animation-name: vamp-meter-melody;
  animation-duration: 1.55s;
}

@keyframes vamp-meter-guitar {
  0%,
  100% {
    clip-path: inset(0 34% 0 0);
  }
  24% {
    clip-path: inset(0 22% 0 0);
  }
  51% {
    clip-path: inset(0 31% 0 0);
  }
  78% {
    clip-path: inset(0 10% 0 0);
  }
}

@keyframes vamp-meter-djembe {
  0%,
  100% {
    clip-path: inset(0 28% 0 0);
  }
  18% {
    clip-path: inset(0 20% 0 0);
  }
  43% {
    clip-path: inset(0 36% 0 0);
  }
  69% {
    clip-path: inset(0 22% 0 0);
  }
  88% {
    clip-path: inset(0 10% 0 0);
  }
}

@keyframes vamp-meter-harmony {
  0%,
  100% {
    clip-path: inset(0 39% 0 0);
  }
  31% {
    clip-path: inset(0 27% 0 0);
  }
  58% {
    clip-path: inset(0 33% 0 0);
  }
  83% {
    clip-path: inset(0 21% 0 0);
  }
}

@keyframes vamp-meter-melody {
  0%,
  100% {
    clip-path: inset(0 36% 0 0);
  }
  22% {
    clip-path: inset(0 23% 0 0);
  }
  49% {
    clip-path: inset(0 32% 0 0);
  }
  74% {
    clip-path: inset(0 10% 0 0);
  }
}

/* Static SVGs use Vamp's PCM RMS reducer and Canvas waveform geometry without client-side audio work. */
.waveform img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.track-controls {
  display: flex;
  align-self: center;
  gap: 4px;
}

.track-controls button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(248, 245, 250, 0.14);
  border-radius: 7px;
  background: rgba(248, 245, 250, 0.06);
  color: rgba(248, 245, 250, 0.45);
  font-family: ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  font-size: 0;
  font-weight: 900;
  line-height: 1;
}

.track-controls button:not(:disabled) {
  cursor: pointer;
}

.track-controls button::after {
  font-size: 0.75rem;
  font-weight: 900;
}
.track-controls button[data-mute]::after {
  content: "M";
}
.track-controls button[data-solo]::after {
  content: "S";
}

.track-controls button[data-mute][aria-pressed="true"] {
  border-color: #f24822;
  background: #f24822;
  color: #1a1a38;
}

.track-controls button[data-solo][aria-pressed="true"] {
  border-color: #ffd933;
  background: #ffd933;
  color: #1a1a38;
}

.track[data-muted="true"] .waveform,
.track[data-muted="true"] .track-copy {
  opacity: 0.42;
}

.track[data-inactive-by-solo="true"] .track-main {
  opacity: 0.34;
}

.screen-footer {
  order: 6;
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.closing {
  max-width: 800px;
  padding: 68px 0 124px;
  text-align: center;
}

.closing .section-label {
  color: var(--track-keys);
}

.closing p:not(.section-label) {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--text-muted);
}

.support-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  grid-column: 2;
  justify-self: end;
  min-height: 40px;
  align-items: center;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--feature-color) 58%, white);
  border-radius: 12px;
  background: color-mix(in srgb, var(--feature-color) 22%, var(--surface));
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.support-cta:hover {
  background: color-mix(in srgb, var(--feature-color) 34%, var(--surface));
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
}

.site-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.history-footer-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--brand-violet) 42%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-violet) 11%, var(--surface));
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    transform 120ms ease;
}

.history-footer-link span {
  color: var(--brand-violet);
  font-size: 0.95rem;
  transition: transform 120ms ease;
}

.history-footer-link:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .history-footer-link:hover {
    border-color: color-mix(in srgb, var(--brand-violet) 68%, transparent);
    background: color-mix(in srgb, var(--brand-violet) 18%, var(--surface));
  }

  .history-footer-link:hover span {
    transform: translateX(2px);
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .app-store-link,
  .play-button {
    background: var(--surface-strong);
  }
}

@media (min-width: 1101px) {
  .site-header,
  .site-footer,
  .hero,
  .demo-section,
  .story-section,
  .features-section,
  .support-section,
  .closing {
    width: min(calc(100% - 64px), var(--page-width));
  }

  .demo-scroller {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 24px 0 20px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .vamp-screen {
    min-height: 640px;
  }

  .feature-grid {
    grid-template-columns: repeat(15, minmax(0, 1fr));
  }

  .feature-card {
    grid-column: span 5;
  }

  .feature-card:nth-child(2),
  .feature-card:nth-child(3) {
    grid-column: span 9;
  }

  .feature-card:nth-child(1),
  .feature-card:nth-child(4) {
    grid-column: span 6;
  }
}

@media (max-width: 480px) {
  .site-header,
  .site-footer,
  .hero,
  .demo-section,
  .story-section,
  .features-section,
  .support-section,
  .closing {
    width: min(calc(100% - 24px), var(--page-width));
  }

  .site-header {
    min-height: 60px;
  }

  .hero {
    min-height: 530px;
    padding: 52px 0 72px;
  }

  .hero-app-icon {
    width: 88px;
    margin-bottom: 20px;
  }

  .demo-section {
    padding-bottom: 84px;
  }

  .demo-scroller {
    grid-auto-columns: min(88vw, 365px);
    width: calc(100% + 12px);
    padding-right: 20px;
  }

  .vamp-screen {
    min-height: 600px;
    padding: 16px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-footer-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Mirrors the iOS app's short, tactile control feedback without changing layout. */
.play-button,
.track-controls button,
.app-store-link {
  transition:
    transform 120ms ease,
    filter 120ms ease,
    background-color 120ms ease;
}

.play-button:not(:disabled):active,
.track-controls button:not(:disabled):active,
.app-store-link:not([aria-disabled="true"]):active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .play-button:not(:disabled):hover,
  .track-controls button:not(:disabled):hover {
    filter: brightness(1.08);
  }
}

.support-section {
  padding: 28px 0 96px;
}

.support-heading {
  margin-bottom: 22px;
}

.support-heading p:not(.section-label) {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--text-muted);
}

.support-section .support-card {
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 22px;
  border-radius: 24px;
}

.support-page {
  min-height: 100svh;
}

.support-page-shell {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 28px 20px;
}

.support-card {
  width: min(100%, 500px);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.support-card-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--track-drums) 14%, var(--surface));
  color: var(--track-drums);
  font-size: 1.8rem;
  place-items: center;
}

.support-card h1,
.support-card h2 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.support-card-copy {
  max-width: 410px;
  margin: 16px auto 0;
  color: var(--text-muted);
}

.support-handle {
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.support-handle strong {
  color: var(--text);
}

.support-handle a {
  color: var(--text);
}

.support-qr {
  display: grid;
  width: min(100%, 175px);
  margin: 24px auto 0;
  gap: 10px;
  padding: 20px;
  border-radius: 24px;
  background: white;
  color: #2f3035;
  text-decoration: none;
}

.support-qr img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 479px) {
  .support-page-shell {
    padding: 18px 14px;
  }

  .support-card {
    padding: 26px 20px;
  }

  .support-section .support-card {
    padding: 18px;
  }
}

/* History page keeps the same surface, typography, and accent language as the main Vamp site. */
.history-page {
  width: min(calc(100% - 32px), var(--page-width));
  margin-inline: auto;
  padding: 28px 0 104px;
}

.history-hero {
  max-width: 780px;
  padding: 46px 0 62px;
}

.history-kicker,
.history-label {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.history-hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.history-intro {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.2vw, 1.24rem);
}

.history-timeline {
  position: relative;
  display: grid;
  gap: 28px;
}

.history-entry {
  --history-accent: var(--brand-violet);
  position: relative;
  display: grid;
  gap: 12px;
}

.history-entry-violet {
  --history-accent: var(--brand-violet);
}

.history-entry-orange {
  --history-accent: var(--track-drums);
}

.history-entry-sky {
  --history-accent: var(--track-keys);
}

.history-entry-lime {
  --history-accent: var(--track-bass);
}

.history-marker {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  min-width: 74px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--history-accent) 48%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--history-accent) 13%, var(--bg));
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.history-card {
  position: relative;
  display: grid;
  gap: 24px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 4px solid var(--history-accent);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.history-card::after {
  position: absolute;
  top: -110px;
  right: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--history-accent) 14%, transparent);
  content: "";
  filter: blur(40px);
  opacity: 0.58;
  pointer-events: none;
}

.history-copy,
.history-media,
.history-release-mark {
  position: relative;
  z-index: 1;
}

.history-copy h2 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.7rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.history-copy p:not(.history-label) {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.history-copy strong {
  color: var(--text);
}

.history-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(18, 18, 42, 0.46);
}

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

.history-media figcaption {
  padding: 10px 14px 12px;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.history-media-wordmark {
  display: grid;
  min-height: 200px;
  place-items: center;
  padding: 30px;
  background:
    radial-gradient(
      circle at 50% 20%,
      color-mix(in srgb, var(--history-accent) 18%, transparent),
      transparent 55%
    ),
    rgba(18, 18, 42, 0.46);
}

.history-media-wordmark img {
  width: min(100%, 357px);
}

.history-media-wordmark figcaption {
  justify-self: stretch;
  width: 100%;
  padding-bottom: 0;
  text-align: center;
}

.history-media-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.history-release-mark {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 14px 14px;
  border: 1px solid color-mix(in srgb, var(--history-accent) 34%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--history-accent) 9%, var(--bg));
}

.history-release-mark img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.history-release-mark div {
  display: grid;
  gap: 1px;
}

.history-release-mark span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-release-mark strong {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

@media (min-width: 1101px) {
  .history-page {
    width: min(calc(100% - 64px), var(--page-width));
  }

  .history-timeline::before {
    position: absolute;
    top: 18px;
    bottom: 20px;
    left: 48px;
    width: 1px;
    background: linear-gradient(
      to bottom,
      var(--brand-violet),
      var(--track-drums),
      var(--track-keys),
      var(--track-bass)
    );
    content: "";
    opacity: 0.42;
  }

  .history-entry {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 24px;
  }

  .history-marker {
    justify-self: center;
    margin-top: 22px;
  }

  .history-card {
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
    align-items: center;
    min-height: 330px;
    padding: 30px;
  }

  .history-entry-text .history-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 240px;
  }
}

@media (max-width: 480px) {
  .history-page {
    width: min(calc(100% - 24px), var(--page-width));
    padding-bottom: 82px;
  }

  .history-hero {
    padding: 28px 0 44px;
  }

  .history-card {
    padding: 18px;
    border-radius: 24px;
  }

  .history-media-wordmark {
    min-height: 164px;
    padding: 22px 18px;
  }

  .history-release-mark {
    width: 100%;
  }
}
