@import url("https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600;700&display=swap");

:root {
  --ink: #22211f;
  --muted: #6b6864;
  --dim: #9f9b96;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-2: rgba(255, 255, 255, 0.86);
  --line: rgba(34, 34, 34, 0.08);
  --hot: #ff7f94;
  --gold: #f6c998;
  --lime: #c7efb5;
  --cyan: #7bd8d0;
  --blue: #b5d9ff;
  --pad: #fcfbf8;
  --pad-hit: #7bd8d0;
  --shadow: rgba(27, 25, 22, 0.09);
  --rubber: #f4f2ee;
  --metal: #e9e4dc;
  --screen: #23302f;
  --paper: #fcfbf8;
  --bg: #f4f2ee;
  --lavender: #d4c6ff;
  --rose: #ffc5d6;
  --moss: #c7efb5;
  --amber: #f4d9a1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Satoshi", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

.landing-page {
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% 12%, rgba(255, 191, 71, 0.16), transparent 27%),
    radial-gradient(circle at 14% 34%, rgba(50, 215, 196, 0.11), transparent 28%),
    linear-gradient(180deg, #090a0a 0%, #131514 46%, #080909 100%);
  border-bottom: 1px solid var(--line);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 18px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 10, 10, 0.82);
  backdrop-filter: blur(18px);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 191, 71, 0.82);
  border-radius: 8px;
  color: #090a0a;
  background: linear-gradient(180deg, #ffd978, var(--gold));
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(255, 191, 71, 0.18);
}

.landing-nav strong {
  font-family: "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0;
}

.landing-links,
.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.landing-links a,
.hero-action {
  color: var(--ink);
  text-decoration: none;
}

.landing-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.landing-links a:hover {
  color: var(--gold);
}

.landing-nav button,
.hero-action,
.pricing-panel {
  cursor: pointer;
}

.landing-nav button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #161818;
  color: var(--ink);
  padding: 0 13px;
  font-weight: 700;
}

#openAppBtn {
  color: #08100f;
  border-color: var(--gold);
  background: linear-gradient(180deg, #ffdb82, var(--gold));
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(500px, 0.98fr);
  align-items: center;
  gap: clamp(28px, 4vw, 58px);
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 110px) clamp(18px, 4vw, 54px) clamp(44px, 7vw, 84px);
}

.hero-badge {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 191, 71, 0.35);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 191, 71, 0.08);
  font-size: 0.82rem;
  font-weight: 900;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(255, 191, 71, 0.92);
}

.landing-copy h2 {
  margin: 24px 0 0;
  max-width: 690px;
  font-family: "Barlow Condensed", Impact, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(4rem, 5.85vw, 6.95rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: normal;
}

.landing-copy p {
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.24rem);
  line-height: 1.6;
  margin: 26px 0 0;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.hero-action {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 0 24px;
  color: #080a09;
  background: linear-gradient(180deg, #ffdb82, var(--gold));
  font-weight: 700;
  box-shadow: 0 22px 48px rgba(255, 191, 71, 0.18);
}

.hero-action.ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.producer-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.producer-proof span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(50, 215, 196, 0.24);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--cyan);
  background: rgba(50, 215, 196, 0.07);
  font-size: 0.82rem;
  font-weight: 700;
}

.landing-auth {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 18px auto 0;
  max-width: 520px;
}

.landing-auth span {
  color: var(--muted);
  text-align: center;
}

.google-slot {
  min-height: 44px;
}

.landing-machine {
  position: relative;
  width: min(100%, 780px);
  justify-self: end;
  border: 1px solid #454b49;
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(145deg, #303534, #151717);
  box-shadow:
    0 44px 90px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transform: rotate(-1deg);
}

.device-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.source-pill,
.live-dot {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 900;
}

.source-pill {
  color: #090a0a;
  background: var(--gold);
}

.live-dot {
  color: var(--screen);
  background: rgba(157, 247, 212, 0.1);
}

.machine-screen {
  min-height: 188px;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid #405d50;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(157, 247, 212, 0.23), rgba(157, 247, 212, 0.08)),
    #07100c;
  color: var(--screen);
  padding: 18px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow: inset 0 0 28px rgba(50, 215, 196, 0.18);
}

.machine-screen span {
  color: rgba(157, 247, 212, 0.72);
  font-size: 0.86rem;
}

.machine-screen strong {
  font-size: clamp(1.65rem, 3.1vw, 2.95rem);
}

.landing-waveform {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: 8px;
  overflow: hidden;
}

.mcp-route .landing-page {
  display: none;
}

.landing-waveform i {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: var(--screen);
  opacity: 0.78;
}

.landing-waveform i:nth-child(1) { height: 26px; }
.landing-waveform i:nth-child(2) { height: 44px; }
.landing-waveform i:nth-child(3) { height: 64px; }
.landing-waveform i:nth-child(4) { height: 38px; }
.landing-waveform i:nth-child(5) { height: 72px; background: var(--gold); }
.landing-waveform i:nth-child(6) { height: 34px; }
.landing-waveform i:nth-child(7) { height: 56px; }
.landing-waveform i:nth-child(8) { height: 42px; }
.landing-waveform i:nth-child(9) { height: 66px; }
.landing-waveform i:nth-child(10) { height: 30px; }

.landing-waveform b {
  position: absolute;
  left: 52%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--hot);
  box-shadow: 0 0 18px rgba(255, 61, 46, 0.75);
}

.machine-pads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.machine-pads span {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border: 1px solid #323837;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 44%),
    linear-gradient(145deg, #242827, #0f1111);
  color: rgba(255, 248, 237, 0.74);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  box-shadow:
    0 16px 24px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.machine-pads span:nth-child(5),
.machine-pads span:nth-child(10),
.machine-pads span:nth-child(15) {
  border-color: rgba(255, 191, 71, 0.38);
  color: var(--gold);
}

.floating-badge {
  position: absolute;
  right: -18px;
  top: -18px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255, 191, 71, 0.65);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--gold);
  background: rgba(16, 17, 17, 0.96);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.34);
}

.floating-badge span {
  color: var(--muted);
  font-size: 0.78rem;
}

.landing-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 4vw, 56px);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px clamp(18px, 4vw, 54px);
  color: rgba(255, 248, 237, 0.58);
  background: rgba(255, 255, 255, 0.025);
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-family: "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.landing-section,
.workflow-section,
.final-cta,
.landing-footer {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 106px) clamp(18px, 4vw, 54px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading h3,
.workflow-copy h3,
.final-cta h3 {
  margin: 10px 0 0;
  font-family: "Barlow Condensed", Impact, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.pricing-panel,
.workflow-demo {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    #151716;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

.feature-card {
  min-height: 380px;
  padding: 26px;
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 191, 71, 0.24);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(255, 191, 71, 0.08);
  font-weight: 700;
}

.feature-card h4 {
  margin: 28px 0 10px;
  font-size: 1.65rem;
}

.feature-card p,
.workflow-copy p,
.final-cta p,
.plan-features {
  color: var(--muted);
  line-height: 1.6;
}

.feature-card ul,
.plan-features {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.feature-card li {
  margin-top: 10px;
  color: var(--ink);
  font-weight: 750;
}

.mini-pad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 28px;
}

.mini-pad-grid span {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(50, 215, 196, 0.2);
  border-radius: 8px;
  background: #101313;
}

.workflow-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.workflow-steps {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.workflow-steps div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
}

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #080a09;
  background: var(--gold);
  font-weight: 700;
}

.workflow-steps p {
  margin: 0;
}

.workflow-demo {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: #101212;
}

.demo-url,
.demo-button {
  min-height: 54px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 16px;
}

.demo-url {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #080909;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.demo-button {
  justify-content: center;
  color: #080a09;
  background: var(--gold);
  font-weight: 700;
}

.demo-pads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.demo-pads span {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 191, 71, 0.22);
  border-radius: 8px;
  background: #1d2120;
  font-size: 1.45rem;
  font-weight: 700;
}

.pricing-grid {
  grid-template-columns: repeat(2, minmax(260px, 430px));
  justify-content: center;
}

.pricing-panel {
  min-height: 420px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 32px;
  color: var(--ink);
  text-align: left;
}

.pricing-panel.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(245, 174, 45, 0.16);
}

.pricing-panel.featured {
  color: #080a09;
  border-color: var(--gold);
  background: linear-gradient(180deg, #ffda7e, var(--gold));
  transform: translateY(-10px);
}

.plan-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.price {
  font-family: "Barlow Condensed", Impact, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(3.8rem, 7vw, 6rem);
  line-height: 0.95;
}

.plan-note {
  color: inherit;
  opacity: 0.72;
  font-weight: 700;
}

.price-action {
  align-self: end;
  min-height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  margin-top: 18px;
  color: #080a09;
  background: var(--cyan);
  font-weight: 700;
}

.pricing-panel.featured .price-action {
  color: var(--ink);
  background: #080a09;
}

.final-cta {
  display: grid;
  justify-items: center;
  text-align: center;
}

.final-cta p {
  max-width: 580px;
  margin: 16px auto 0;
  font-size: 1.12rem;
}

.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  padding-block: 30px;
}

.landing-footer strong {
  color: var(--ink);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 43vw) 1fr;
  background:
    linear-gradient(90deg, rgba(50, 215, 196, 0.075), transparent 36%),
    linear-gradient(135deg, #0a0b0b 0%, #202323 48%, #0b0d0d 100%);
}

.brand h1 a {
  color: inherit;
  text-decoration: none;
}

.brand h1 a:hover {
  color: var(--gold);
}

.shell.locked {
  display: none;
}

body:not(.mpc-skin) .landing-machine,
body:not(.mpc-skin) .machine-pads span,
body:not(.mpc-skin) .pad {
  box-shadow: none;
}

body:not(.mpc-skin) .landing-machine,
body:not(.mpc-skin) .shell,
body:not(.mpc-skin) .left {
  background: #111;
}

body:not(.mpc-skin) .tempo,
body:not(.mpc-skin) .machine-screen {
  background: #101010;
  color: var(--ink);
}

.left,
.right {
  min-width: 0;
  padding: 28px;
}

.left {
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    rgba(17, 19, 19, 0.48);
}

.brand {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow,
.mini-label {
  margin: 0 0 5px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.73rem;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 5.5rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-shadow: 0 16px 42px rgba(50, 215, 196, 0.14);
}

.tempo {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(157, 247, 212, 0.16), rgba(157, 247, 212, 0.05)),
    #07100c;
  color: var(--screen);
  padding: 10px 12px;
  min-width: 78px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  border-radius: 8px;
  box-shadow: 0 12px 30px var(--shadow);
}

.pads {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  grid-auto-rows: auto;
  gap: 12px;
}

.pad {
  position: relative;
  border: 1px solid #363c3a;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 42%),
    linear-gradient(145deg, var(--pad), var(--rubber));
  color: var(--ink);
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

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

.pad:hover,
.pad.selected {
  border-color: var(--gold);
  box-shadow: 0 18px 42px rgba(255, 191, 71, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pad.import-loading {
  border-color: rgba(255, 191, 71, 0.52);
}

.pad.import-loading .pad-time {
  color: var(--gold);
}

.pad.import-error {
  border-color: rgba(255, 83, 74, 0.48);
}

.pad.import-error .pad-time {
  color: #ffb4ad;
}

.pad.playing {
  transform: translateY(2px) scale(0.99);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(145deg, #78531f, #24190f);
  border-color: var(--pad-hit);
}

.pad-number {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
}

.pad-key {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.pad-time {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.right {
  display: grid;
  grid-template-rows: none;
  gap: 18px;
  align-content: start;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.flow-step {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.82rem;
}

.flow-step.active {
  color: #0f0f0f;
  border-color: var(--gold);
  background: var(--gold);
  font-weight: 800;
}

.pro-toggle {
  margin-left: auto;
  min-height: 38px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(109, 140, 255, 0.12);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.pro-toggle.active {
  color: #07100f;
  border-color: var(--lime);
  background: var(--lime);
}

.transport,
.account-panel,
.import,
.video-preview,
.loop-builder,
.slice-tools,
.pro-panel,
.local-load,
.editor,
.timestamp-editor,
.sequencer,
.recorder,
.export {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(18, 18, 18, 0.92);
  box-shadow: 0 18px 50px var(--shadow);
}

.transport {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.sampler-mode {
  display: grid;
  grid-template-columns: repeat(3, auto);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.sampler-mode button {
  min-height: 42px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0 11px;
  background: #181715;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 750;
}

.sampler-mode button:last-child {
  border-right: 0;
}

.sampler-mode button.active {
  background: var(--gold);
  color: #111;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #211f1d;
  color: var(--ink);
  cursor: pointer;
}

.icon-btn.active {
  color: #101010;
  background: var(--lime);
  border-color: var(--lime);
}

.gain {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  gap: 10px;
  align-items: center;
  width: min(320px, 100%);
  margin-left: auto;
  color: var(--muted);
}

.import,
.account-panel,
.video-preview,
.loop-builder,
.slice-tools,
.pro-panel,
.local-load,
.editor,
.timestamp-editor,
.sequencer,
.recorder,
.export {
  padding: 16px;
}

.account-panel {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
}

.account-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.account-copy strong {
  display: block;
}

#accountEmail {
  color: var(--muted);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
}

.google-slot {
  min-height: 40px;
}

.account-actions button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #211f1d;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  padding: 0 12px;
}

#subscribeBtn {
  color: #101010;
  border-color: var(--gold);
  background: var(--gold);
}

#manageBillingBtn {
  border-color: var(--cyan);
}

.member-badge {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  color: var(--muted);
  background: #171615;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.member-badge.active {
  color: #07100f;
  border-color: var(--lime);
  background: var(--lime);
}

.pro-panel {
  display: grid;
  gap: 15px;
}

.pro-panel[hidden] {
  display: none;
}

.pro-header,
.pro-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pro-header strong {
  display: block;
}

.pro-tabs,
.chop-mode {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.pro-tabs {
  grid-template-columns: repeat(2, auto);
}

.chop-mode {
  grid-template-columns: repeat(4, 1fr);
}

.pro-tabs button,
.chop-mode button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0 12px;
  background: #181715;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
}

.pro-tabs button:last-child,
.chop-mode button:last-child {
  border-right: 0;
}

.pro-tabs button.active,
.chop-mode button.active {
  background: var(--blue);
  color: #080b12;
}

.pro-deck {
  display: none;
  gap: 14px;
}

.pro-deck.active {
  display: grid;
}

.pro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.pro-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
}

.chop-grid {
  grid-template-columns: 92px minmax(160px, 1fr) auto;
}

select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090909;
  color: var(--ink);
  padding: 7px 9px;
}

.slice-readout {
  min-height: 38px;
  display: grid;
  align-content: center;
  gap: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#sliceLabel {
  color: var(--lime);
  font-weight: 850;
}

.pro-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.pro-actions button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #211f1d;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  padding: 0 12px;
}

.pro-actions button:last-child {
  color: #07100f;
  border-color: var(--lime);
  background: var(--lime);
}

.marker-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  max-height: 170px;
  overflow: auto;
  padding: 4px;
}

.marker-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.marker-item {
  min-height: 48px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  text-align: left;
}

.marker-item strong {
  color: var(--ink);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.marker-item.active {
  border-color: rgba(123, 216, 208, 0.72);
  background: rgba(123, 216, 208, 0.18);
}

.video-preview {
  display: grid;
  gap: 10px;
}

.video-rate {
  display: flex;
  justify-content: flex-end;
}

.video-rate label {
  display: grid;
  grid-template-columns: auto 96px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.preview-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.preview-meta {
  display: flex;
  gap: 12px;
  min-width: 0;
}

#videoPositionLabel {
  color: var(--gold);
  white-space: nowrap;
}

#videoIdLabel {
  color: var(--cyan);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080808;
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.instagram-embed {
  width: 100%;
  height: 100%;
  overflow: auto;
  background: #080808;
}

.instagram-embed blockquote {
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.video-empty {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  margin: 0;
  padding: 20px;
  color: var(--dim);
  text-align: center;
}

.video-preview.empty .video-frame iframe {
  display: none;
}

.video-preview.empty .instagram-embed {
  display: none;
}

.video-preview.empty .video-empty {
  display: grid;
}

.loop-builder {
  display: grid;
  gap: 15px;
}

.slice-tools,
.timestamp-editor {
  display: grid;
  gap: 14px;
  align-items: end;
}

.slice-tools {
  grid-template-columns: minmax(140px, 0.85fr) minmax(180px, 1fr) auto;
}

.slice-tools strong {
  display: block;
}

.control-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.slice-tools label,
.timestamp-editor label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
}

#globalSliceLengthLabel {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--cyan);
  background: #171615;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.loop-heading,
.loop-actions,
.recorder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.loop-heading strong,
.recorder strong {
  display: block;
}

.range-mode {
  display: grid;
  grid-template-columns: repeat(2, auto);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.range-mode button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0 13px;
  background: #181715;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 750;
}

.range-mode button:last-child {
  border-right: 0;
}

.range-mode button.active {
  background: var(--cyan);
  color: #0c1110;
}

.loop-controls {
  display: grid;
  grid-template-columns: 82px 96px minmax(180px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.bpm-control,
.source-time-control,
.source-scrub {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
}

input[type="number"] {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090909;
  color: var(--ink);
  padding: 7px 9px;
}

.range-readout {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#rangeStartLabel,
#rangeEndLabel {
  color: var(--ink);
}

.loop-actions {
  justify-content: stretch;
}

.loop-actions button {
  flex: 1;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #211f1d;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.loop-actions button:last-child {
  border-color: var(--gold);
  background: var(--gold);
  color: #111;
}

.import > label,
.local-load > label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.86rem;
}

.url-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
}

input[type="url"] {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090909;
  color: var(--ink);
  padding: 13px 14px;
}

button[type="submit"] {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff654f, var(--hot));
  color: white;
  font-weight: 800;
  padding: 0 20px;
  cursor: pointer;
}

.secondary-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151515;
  color: var(--ink);
  padding: 0 14px;
  font-weight: 850;
  cursor: pointer;
}

.secondary-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button:disabled,
input:disabled + span {
  opacity: 0.55;
  cursor: not-allowed;
}

.import-notice {
  margin: 10px 0 0;
  border: 1px solid rgba(65, 218, 204, 0.34);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(65, 218, 204, 0.08);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.import-notice[data-kind="loading"] {
  border-color: rgba(255, 191, 71, 0.44);
  color: var(--gold);
  background: rgba(255, 191, 71, 0.1);
}

.import-notice[data-kind="error"] {
  border-color: rgba(255, 83, 74, 0.48);
  color: #ffb4ad;
  background: rgba(255, 83, 74, 0.1);
}

.stem-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.stem-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #1d1b19;
}

input[type="file"] {
  width: 100%;
  color: var(--muted);
}

canvas {
  width: 100%;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080808;
  box-shadow: 0 18px 50px var(--shadow);
}

.editor {
  display: grid;
  grid-template-columns: 130px 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.editor strong {
  display: block;
}

.editor label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
}

input[type="range"] {
  accent-color: var(--cyan);
  width: 100%;
}

.timestamp-editor {
  grid-template-columns: 115px 115px minmax(180px, 1fr) minmax(240px, 1.2fr);
}

.nudge-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.nudge-controls button,
.sequencer-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #211f1d;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.sequencer {
  display: grid;
  gap: 14px;
}

.sequencer-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.sequencer-heading strong {
  display: block;
}

.sequencer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sequencer-actions button:first-child {
  color: #07100f;
  border-color: var(--lime);
  background: var(--lime);
}

.sequencer-actions button.active {
  color: #fff;
  border-color: var(--hot);
  background: var(--hot);
}

.sequencer-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 180px)) auto;
  gap: 10px;
  align-items: end;
}

.sequencer-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.sequencer-controls button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.sequencer-steps {
  display: grid;
  grid-template-columns: repeat(16, minmax(42px, 1fr));
  gap: 7px;
}

.sequencer-step {
  min-width: 0;
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #111313;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

.sequencer-step span {
  font-size: 0.68rem;
}

.sequencer-step strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.sequencer-step.filled {
  border-color: rgba(255, 191, 71, 0.55);
  background: #201b12;
}

.sequencer-step.filled strong {
  color: var(--gold);
}

.sequencer-step.current {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.sequencer-step.selected {
  border-color: rgba(246, 201, 152, 0.9);
  box-shadow: 0 0 0 2px rgba(246, 201, 152, 0.16);
}

.sequencer-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.recorder {
  flex-wrap: wrap;
}

.record-btn {
  display: inline-grid;
  grid-template-columns: auto auto minmax(45px, auto);
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid #62302a;
  border-radius: 8px;
  background: #211715;
  color: var(--ink);
  padding: 0 13px;
  cursor: pointer;
  font-weight: 800;
}

.record-dot {
  color: var(--hot);
  font-size: 0.9rem;
}

.record-btn.active {
  border-color: var(--hot);
  background: var(--hot);
  color: #fff;
}

.record-btn.active .record-dot {
  color: #fff;
  animation: record-pulse 1s steps(2, end) infinite;
}

#recordTime {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.record-btn.active #recordTime {
  color: #fff;
}

.recorder audio {
  flex: 1 0 100%;
  width: 100%;
  height: 38px;
}

@keyframes record-pulse {
  50% {
    opacity: 0.35;
  }
}

.export {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.export button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #211f1d;
  cursor: pointer;
  font-weight: 800;
}

.export button:last-child {
  color: #090909;
  border-color: var(--cyan);
  background: linear-gradient(180deg, #68f4e5, var(--cyan));
}

.status {
  margin: 0;
  min-height: 24px;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 44px));
  border: 1px solid rgba(255, 191, 71, 0.62);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--gold);
  background: rgba(14, 14, 13, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.44);
  font-weight: 750;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .landing-page {
    padding: 0;
  }

  .landing-nav {
    position: static;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .landing-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .landing-nav-actions {
    gap: 8px;
  }

  .landing-nav button {
    padding: 0 10px;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .landing-copy h2 {
    font-size: clamp(3rem, 15vw, 5.4rem);
  }

  .landing-actions,
  .producer-proof {
    grid-template-columns: 1fr;
  }

  .landing-machine {
    transform: none;
  }

  .floating-badge {
    right: 10px;
    top: 10px;
  }

  .url-row {
    grid-template-columns: 1fr;
  }

  .url-row button {
    min-height: 46px;
  }

  .feature-grid,
  .workflow-section,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-panel.featured {
    transform: none;
  }

  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .left {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pads {
    grid-template-columns: repeat(4, minmax(62px, 1fr));
  }

  .gain {
    width: 100%;
    margin-left: 0;
  }

  .right {
    grid-template-rows: none;
  }

  .account-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .account-actions {
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .editor {
    grid-template-columns: 1fr;
  }

  .slice-tools,
  .timestamp-editor {
    grid-template-columns: 1fr;
  }

  .nudge-controls {
    grid-template-columns: repeat(2, 1fr);
  }

  .sequencer-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .sequencer-steps {
    grid-template-columns: repeat(4, minmax(58px, 1fr));
  }

  .sequencer-controls {
    grid-template-columns: 1fr;
  }

  .loop-controls {
    grid-template-columns: 82px 1fr;
  }

  .source-scrub {
    grid-column: 1 / -1;
  }

  .range-readout {
    grid-column: 1 / -1;
  }

  .loop-heading,
  .loop-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .range-mode {
    grid-template-columns: 1fr 1fr;
  }

  .pro-toggle {
    margin-left: 0;
  }

  .pro-header,
  .pro-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pro-tabs,
  .chop-mode {
    grid-template-columns: 1fr 1fr;
  }

  .pro-grid,
  .chop-grid {
    grid-template-columns: 1fr;
  }

  .export {
    grid-template-columns: 1fr;
  }
}

/* Final brand layer: keep the refreshed visual system above legacy rules. */
.landing-page {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(123, 216, 208, 0.16), transparent 24%),
    radial-gradient(circle at 12% 64%, rgba(246, 201, 152, 0.2), transparent 27%),
    linear-gradient(180deg, #faf8f5 0%, var(--bg) 100%);
}

.landing-nav {
  border-bottom-color: rgba(34, 34, 34, 0.07);
  background: rgba(252, 251, 248, 0.78);
  box-shadow: 0 14px 42px rgba(27, 25, 22, 0.05);
}

.landing-brand,
.landing-links a,
.hero-action,
.landing-footer strong,
.landing-copy h2,
.section-heading h3,
.workflow-copy h3,
.final-cta h3,
.shell,
.pad,
.machine-pads span {
  color: var(--ink);
}

.brand-mark,
.hero-action.ghost,
.landing-nav button,
.feature-card,
.pricing-panel,
.workflow-demo,
.landing-machine,
.transport,
.account-panel,
.import,
.video-preview,
.loop-builder,
.slice-tools,
.pro-panel,
.local-load,
.editor,
.timestamp-editor,
.sequencer,
.recorder,
.export {
  border-color: rgba(34, 34, 34, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(248, 245, 240, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 22px 60px rgba(27, 25, 22, 0.08);
}

.brand-mark {
  color: var(--ink);
}

.landing-copy h2,
.section-heading h3,
.workflow-copy h3,
.final-cta h3,
.landing-nav strong,
.price,
h1 {
  font-family: "Satoshi", Inter, ui-sans-serif, system-ui, sans-serif;
}

.landing-copy h2,
.section-heading h3,
.workflow-copy h3,
.final-cta h3 {
  text-transform: none;
  line-height: 0.98;
}

.hero-badge,
.producer-proof span,
.source-pill,
.live-dot,
.mini-label {
  color: var(--muted);
  border-color: rgba(34, 34, 34, 0.08);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.hero-badge span {
  background: var(--cyan);
  box-shadow: 0 0 0 8px rgba(123, 216, 208, 0.14);
}

.hero-action,
#openAppBtn,
.step-number,
.demo-button,
.loop-actions button:last-child,
.flow-step.active,
.sampler-mode button.active {
  color: var(--ink);
  border-color: rgba(34, 34, 34, 0.06);
  background: linear-gradient(180deg, #ffe2bf, var(--gold));
  box-shadow: 0 18px 42px rgba(246, 201, 152, 0.25);
}

.landing-machine {
  border-radius: 28px;
  transform: rotate(-0.6deg);
}

.machine-screen,
.tempo {
  color: var(--screen);
  border-color: rgba(123, 216, 208, 0.28);
  background: linear-gradient(180deg, rgba(123, 216, 208, 0.2), rgba(255, 255, 255, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.machine-screen span,
.floating-badge span,
.status,
.landing-copy p,
.feature-card p,
.workflow-copy p,
.final-cta p,
.plan-features,
.landing-footer,
.pad-key,
.pad-time,
.preview-heading,
.range-readout,
.sequencer-hint,
#recordTime,
#accountEmail {
  color: var(--muted);
}

.landing-waveform i {
  background: var(--cyan);
}

.landing-waveform i:nth-child(5),
.landing-waveform b {
  background: var(--rose);
}

.machine-pads span,
.pad,
.demo-pads span,
.mini-pad-grid span,
.sequencer-step {
  border-color: rgba(34, 34, 34, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 241, 236, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 12px 28px rgba(27, 25, 22, 0.07);
}

.machine-pads span:nth-child(5),
.machine-pads span:nth-child(10),
.machine-pads span:nth-child(15),
.sequencer-step.filled strong,
#videoIdLabel,
#globalSliceLengthLabel {
  color: #338f89;
}

.floating-badge,
.toast {
  color: var(--ink);
  border-color: rgba(34, 34, 34, 0.08);
  background: rgba(252, 251, 248, 0.92);
  box-shadow: 0 22px 60px rgba(27, 25, 22, 0.12);
}

.feature-icon,
.price-action,
.pro-toggle.active,
.icon-btn.active,
.sequencer-actions button:first-child,
.pro-actions button:last-child,
.member-badge.active,
.range-mode button.active,
.export button:last-child {
  color: var(--ink);
  border-color: rgba(34, 34, 34, 0.06);
  background: var(--cyan);
}

.pricing-panel.featured {
  color: var(--ink);
  border-color: rgba(34, 34, 34, 0.08);
  background: linear-gradient(180deg, #fff0dc, var(--gold));
}

.pricing-panel.featured .price-action {
  color: var(--ink);
  background: var(--paper);
}

.shell {
  background:
    radial-gradient(circle at 18% 8%, rgba(123, 216, 208, 0.18), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(212, 198, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #faf8f5 0%, var(--bg) 100%);
}

.left {
  border-right-color: var(--line);
  background: rgba(255, 255, 255, 0.36);
}

.brand h1 a:hover,
#videoPositionLabel,
.pad.import-loading .pad-time {
  color: #b67a34;
}

.pad:hover,
.pad.selected,
.pad.import-loading {
  border-color: rgba(246, 201, 152, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 18px 40px rgba(246, 201, 152, 0.2);
}

.pad.playing {
  background: linear-gradient(180deg, rgba(123, 216, 208, 0.42), rgba(255, 255, 255, 0.86));
  border-color: var(--cyan);
}

.flow-step,
.sampler-mode button,
.range-mode button,
.pro-tabs button,
.chop-mode button,
.icon-btn,
.account-actions button,
.pro-actions button,
.loop-actions button,
.nudge-controls button,
.sequencer-actions button,
.record-btn,
.export button,
.stem-row label,
select,
input[type="url"],
input[type="number"],
canvas,
.video-frame,
.instagram-embed,
#globalSliceLengthLabel,
.member-badge {
  color: var(--ink);
  border-color: rgba(34, 34, 34, 0.08);
  background: rgba(255, 255, 255, 0.64);
}

button[type="submit"],
.record-btn.active,
.sequencer-actions button.active {
  color: var(--ink);
  background: var(--rose);
}

#subscribeBtn {
  color: var(--ink);
  border-color: rgba(34, 34, 34, 0.08);
  background: var(--gold);
}

#manageBillingBtn {
  border-color: rgba(123, 216, 208, 0.5);
}

body:not(.mpc-skin) .landing-machine,
body:not(.mpc-skin) .shell,
body:not(.mpc-skin) .left,
body:not(.mpc-skin) .tempo,
body:not(.mpc-skin) .machine-screen {
  background: var(--paper);
  color: var(--ink);
}

/* Liquid sampler pads */
.flow-step {
  cursor: pointer;
  font: inherit;
}

.pads {
  gap: clamp(10px, 1.2vw, 16px);
}

.pad {
  position: relative;
  isolation: isolate;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(34, 34, 34, 0.06);
  border-radius: 26px;
  padding: clamp(12px, 1.2vw, 16px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 238, 232, 0.84));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -10px 18px rgba(130, 118, 102, 0.09),
    0 12px 24px rgba(29, 26, 22, 0.06);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 260ms cubic-bezier(0.16, 1, 0.3, 1), background 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pad::before,
.pad::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms cubic-bezier(0.16, 1, 0.3, 1), transform 260ms cubic-bezier(0.16, 1, 0.3, 1), filter 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pad::before {
  inset: 10%;
  z-index: -1;
  border-radius: 22px;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), transparent 38%), var(--glow);
  filter: blur(18px) saturate(130%);
  transform: scale(0.92);
}

.pad::after {
  inset: auto 14px -8px;
  z-index: -2;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(95, 88, 79, 0.18), rgba(55, 49, 43, 0.06));
  filter: blur(10px);
  opacity: 0.85;
}

.pad:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -12px 20px rgba(130, 118, 102, 0.11),
    0 18px 30px rgba(29, 26, 22, 0.08);
}

.pad:active,
.pad.playing {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -8px 12px rgba(130, 118, 102, 0.12),
    0 8px 14px rgba(29, 26, 22, 0.07);
}

.pad.is-active,
.pad.selected,
.pad.import-loading {
  border-color: color-mix(in srgb, var(--pad-color) 72%, rgba(34, 34, 34, 0.06));
  border-width: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 247, 242, 0.88)),
    color-mix(in srgb, var(--pad-color) 16%, white);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--pad-color) 32%, rgba(255, 255, 255, 0.92)),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -12px 22px color-mix(in srgb, var(--pad-color) 12%, rgba(130, 118, 102, 0.12)),
    0 20px 36px color-mix(in srgb, var(--pad-color) 18%, rgba(29, 26, 22, 0.1));
}

.pad.playing {
  border-color: color-mix(in srgb, var(--pad-color) 82%, rgba(34, 34, 34, 0.06));
  border-width: 3px;
}

.pad.is-active::before,
.pad.is-active::after,
.pad.playing::before,
.pad.playing::after {
  opacity: 1;
  transform: scale(1);
}

.pad-top,
.pad-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pad-top {
  align-items: flex-start;
}

.pad-number {
  display: block;
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pad-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--pad-color) 45%, white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.pad.is-active .pad-led,
.pad.playing .pad-led {
  background: var(--pad-color);
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--pad-color) 18%, transparent),
    0 0 24px color-mix(in srgb, var(--pad-color) 42%, transparent);
}

.pad-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.pad-name {
  color: var(--ink);
  font-size: clamp(0.96rem, 0.86rem + 0.35vw, 1.18rem);
  font-weight: 800;
  line-height: 1.05;
}

.pad-time {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.pad-key {
  position: static;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.pad-meta {
  color: var(--muted);
  font-size: 0.72rem;
}

.instagram-embed {
  display: grid;
  align-items: stretch;
  gap: 10px;
  padding: 0;
}

.instagram-embed[hidden] {
  display: none;
}

.instagram-embed iframe {
  width: 100%;
  min-height: 100%;
  border: 0;
  background: #fff;
}

.instagram-fallback {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(252, 251, 248, 0.9);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
}
