@font-face {
  font-family: MC Museo;
  src: url("../../demo/curva/assets/MuseoModerno.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: MC Museo;
  src: url("../../public/fonts/museomoderno/MuseoModerno-G-ss01.woff2") format("woff2");
  font-weight: 100 900;
  unicode-range: U+0047;
  font-display: swap;
}
@font-face {
  font-family: MC Comfortaa;
  src: url("../../demo/curva/assets/Comfortaa.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --mc-ink: #202123;
  --mc-paper: #f8f7f2;
  --mc-white: #fdfcf8;
  --mc-lilac: #e8dff3;
  --mc-purple: #60429a;
  --mc-body-ink: #44464b;
  --mc-muted: #5d5f64;
  --mc-rule: #d9d7d2;
  --mc-display: "MC Museo", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --mc-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --mc-round: "MC Comfortaa", var(--mc-body);
}

/* Design D7: these pages also load the site's shared stylesheets (Tailwind preflight in /dist/output.css,
   lese-theme.css, lese-reskin.css) for the shared header and footer. Inside <main>, fall back to the browser
   defaults this design was drawn on; zero specificity and placed before every MIDI Canvas rule, so those still win. */
:where(.mc-page main, .mc-page main *) {
  all: revert;
}

:where(.mc-page main *)::before,
:where(.mc-page main *)::after {
  all: revert;
}

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

html {
  scroll-padding-top: 76px;
}

.mc-page {
  margin: 0;
  background: var(--mc-paper);
}

/* D7: text colour and font on the page body (not <body>), so the shared header and footer keep the site's own. */
.mc-page > main,
.mc-skip {
  color: var(--mc-ink);
  font: 400 1rem/1.68 var(--mc-body);
  -webkit-font-smoothing: antialiased;
}

.mc-page [hidden] {
  display: none !important;
}

.mc-page :where(main) img {
  display: block;
  max-width: 100%;
}

.mc-page :where(main) :where(a) {
  color: inherit;
  text-underline-offset: .21em;
}

.mc-page :where(main) a:hover {
  text-decoration-thickness: 2px;
}

.mc-page :where(main) button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.mc-page :where(main) :focus-visible {
  outline: 3px solid #7041b1;
  outline-offset: 4px;
}

.mc-page :where(main) ::selection {
  background: #cfc0ed;
  color: #202123;
}

.mc-page :where(main) h1,
.mc-page :where(main) h2,
.mc-page :where(main) h3,
.mc-page :where(main) h4 {
  margin: 0;
  text-wrap: balance;
}

.mc-page :where(main) figure,
.mc-page :where(main) p {
  margin: 0;
}

.mc-page :where(main) h1,
.mc-page :where(main) h2,
.mc-page :where(main) h3 {
  font-family: var(--mc-display);
}

.mc-page :where(main) h2 {
  font-weight: 710;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.18;
  letter-spacing: -.025em;
}

.mc-page :where(main) h3 {
  font-weight: 670;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.24;
  letter-spacing: -.02em;
}

.mc-wrap {
  width: min(100% - clamp(32px, 8vw, 112px), 1216px);
  margin: 0 auto;
}

.mc-skip {
  position: absolute;
  z-index: 20;
  top: .4rem;
  left: .6rem;
  transform: translateY(-180%);
  padding: .6rem 1rem;
  border-radius: .5rem;
  background: #fff;
}

.mc-skip:focus {
  transform: none;
}

/* Header */
.mc-top {
  border-bottom: 1px solid var(--mc-rule);
  position: relative;
  z-index: 2;
  background: var(--mc-paper);
}

.mc-nav,
.mc-brand,
.mc-nav nav,
.mc-foot nav {
  display: flex;
  align-items: center;
}

.mc-nav {
  min-height: 64px;
  justify-content: space-between;
  gap: 15px;
}

.mc-nav .mc-brand,
.mc-nav nav {
  flex-shrink: 0;
}

.mc-brand {
  gap: .45rem;
  font: 720 1.12rem/1 var(--mc-display);
  white-space: nowrap;
  text-decoration: none;
}

.mc-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.mc-nav nav {
  gap: clamp(12px, 2.6vw, 32px);
}

.mc-nav nav a {
  padding: .45rem 0;
  font-size: .92rem;
  font-weight: 560;
  white-space: nowrap;
  text-decoration: none;
}

.mc-nav nav a:hover,
.mc-foot nav a:hover {
  color: var(--mc-purple);
  text-decoration: underline;
}

/* Hero (matches screenshot aesthetic) */
.mc-hero {
  background: var(--mc-lilac);
  border-bottom: 1px solid #c7b8d9;
}

.mc-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(28px, 4.8vw, 76px);
  padding-block: clamp(52px, 6.8vw, 108px);
}

.mc-hero-copy {
  min-width: 0;
}

.mc-hero h1 {
  font-size: clamp(4.1rem, 7.6vw, 7.8rem);
  font-weight: 795;
  line-height: .9;
  letter-spacing: -.072em;
  color: var(--mc-ink);
}

.mc-hero h1 span {
  display: block;
}

.mc-hero-copy > p {
  margin-top: clamp(22px, 2.5vw, 32px);
  max-width: 30ch;
  font-size: clamp(1.02rem, 1.32vw, 1.18rem);
  line-height: 1.7;
  color: #36303d;
}

.mc-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 2rem;
}

.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 52px;
  padding: .8rem 1.75rem;
  border-radius: 100px;
  background: var(--mc-ink);
  color: #fff;
  border: 1px solid var(--mc-ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.02rem;
}

.mc-btn:hover {
  background: #403052;
  border-color: #403052;
}

.mc-hero-sublink {
  font-size: 1.04rem;
  font-weight: 600;
  color: #2a2431;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.mc-compare {
  min-width: 0;
}

.mc-compare-frame {
  background: #f7f6fa;
  border: 1px solid #a59ab2;
  border-radius: 12px;
  box-shadow: 0 1px 2px #31253c12, 0 16px 40px -22px #4434548c;
  overflow: hidden;
}

.mc-compare-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 952;
  object-fit: contain;
}

.mc-compare figcaption {
  margin-top: 1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 14px;
}

.mc-compare figcaption > span {
  font: 500 1.05rem/1.3 var(--mc-round);
  color: #3c3346;
}

.mc-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  gap: 2px;
  border: 1px solid #b3a5c2;
  border-radius: 100px;
  background: transparent;
}

.mc-switch button {
  background: transparent;
  border: 0;
  padding: .48rem 1.05rem;
  border-radius: 100px;
  font-size: .92rem;
  font-weight: 640;
  line-height: 1.3;
  color: #2b2533;
}

.mc-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--mc-ink);
}

/* Section 2: Pet Gallery */
.mc-pets {
  padding-block: clamp(48px, 6vw, 84px);
  background: var(--mc-paper);
  border-bottom: 1px solid var(--mc-rule);
  scroll-margin-top: 24px;
}

.mc-pets-head {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: end;
  gap: 14px 40px;
  margin-bottom: clamp(20px, 2.8vw, 28px);
}

.mc-pets-head p {
  max-width: 48ch;
  color: var(--mc-body-ink);
}

.mc-pets-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--mc-rule);
  padding-block: 16px;
}

.mc-pet-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.mc-pet-picker button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 11px 3px 3px;
  min-height: 36px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 40px;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.1;
}

.mc-pet-picker button img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  background: #dedad0;
}

.mc-pet-picker button:hover {
  background: #ece8f3;
}

.mc-pet-picker button[aria-selected="true"] {
  border-color: #786191;
  background: #fff;
  color: var(--mc-ink);
}

/* D12 / D13: four sample groups, each with its own row of sample tabs; each tab shows a 96 px thumbnail at 48 px (the full
   photos load only for the selected sample). */
.mc-group-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid #c9bdd4;
  border-radius: 100px;
  background: #f3edf8;
}

.mc-group-picker button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 16px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: #493a56;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.25;
}

.mc-group-picker button:hover {
  background: #e0d3ec;
}

.mc-group-picker button[aria-selected="true"] {
  background: #493855;
  color: #fff;
}

.mc-group-count {
  font-size: .78rem;
  font-weight: 600;
  opacity: .8;
}

.mc-group-panel {
  padding-bottom: 16px;
}

.mc-group-panel .mc-pet-picker button {
  gap: 8px;
  padding: 4px 16px 4px 4px;
}

.mc-group-panel .mc-pet-picker button img {
  width: 48px;
  height: 48px;
}

.mc-static-group {
  font-weight: 700;
}

.mc-pet-note {
  margin-top: 8px;
  color: var(--mc-muted);
  font-size: .86rem;
}

.mc-static-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  font-size: .93rem;
}

.mc-pet-mobile {
  display: none;
  align-items: center;
  gap: 8px;
}

.mc-pet-mobile label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mc-pet-mobile span {
  position: relative;
}

.mc-pet-mobile span::after {
  content: "";
  position: absolute;
  right: 12px;
  top: calc(50% - 4px);
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
}

.mc-pet-mobile select {
  appearance: none;
  color: var(--mc-ink);
  background: #fff;
  border: 1px solid #b8b3c2;
  border-radius: 8px;
  font: 600 .91rem/1.3 var(--mc-body);
  padding: 7px 30px 7px 10px;
}

.mc-pet-panel {
  min-width: 0;
  scroll-margin-top: 65px;
}

.mc-pet-panel + .mc-pet-panel {
  margin-top: 32px;
}

.js .mc-pet-panel + .mc-pet-panel {
  margin-top: 0;
}

.mc-pet-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
}

.mc-pet-figure {
  min-width: 0;
  border: 1px solid #c9c4d1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.mc-pet-figure figcaption {
  display: flex;
  gap: 6px 10px;
  justify-content: space-between;
  align-items: center;
  padding: 8px 13px;
  min-height: 42px;
  font-size: .88rem;
  line-height: 1.25;
}

.mc-pet-figure figcaption > strong {
  font-weight: 650;
}

.mc-pet-figure figcaption small {
  font-size: .86rem;
  color: var(--mc-muted);
}

.mc-pet-frame {
  aspect-ratio: 8 / 5;
  background: #e9e5dc;
  border-top: 1px solid #dcd8d0;
}

.mc-pet-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mc-pet-output {
  border-color: #2f3f45;
  background: #202d32;
  color: #f0f2f0;
}

.mc-pet-output figcaption small {
  color: #bac9c4;
}

.mc-pet-output .mc-pet-frame {
  background: #1a2428;
  border-top-color: #32444a;
}




.mc-pet-summary {
  padding-top: 15px;
}

.mc-pet-byline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 15px;
}

.mc-pet-tip {
  margin-top: 6px;
  max-width: 72ch;
  color: var(--mc-body-ink);
}

.mc-credit {
  color: var(--mc-muted);
  font-size: .84rem;
}

.mc-credit a {
  text-decoration-thickness: 1px;
}

/* Section 3: Scale Quantize */
.mc-scale {
  background: #233034;
  color: #f4f3ee;
  padding-block: clamp(48px, 6vw, 84px);
}

.mc-scale-layout {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  grid-template-areas: "intro player" "guide player";
  gap: 22px clamp(34px, 6vw, 90px);
}

.mc-scale-intro {
  grid-area: intro;
  align-self: end;
}

.mc-scale-intro > p {
  margin-top: 1rem;
  max-width: 41ch;
  font-size: 1.05rem;
  line-height: 1.62;
  color: #e4e9e6;
}

.mc-scale-source {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
  text-decoration: none;
}

.mc-scale-source img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.mc-scale-source strong,
.mc-scale-source small {
  display: block;
}

.mc-scale-source strong {
  text-decoration: underline;
  font-size: 1rem;
}

.mc-scale-source small {
  color: #c7d4d0;
  font-size: .87rem;
}

.mc-scale-guide {
  grid-area: guide;
  align-self: start;
}

.mc-scale-guide p {
  max-width: 46ch;
  color: #d8e0dc;
}

.mc-scale-links,
.mc-feature-related,
.mc-scale-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 19px;
}

.mc-scale-links {
  margin-top: 1rem;
}

.mc-scale-links a,
.mc-scale-fallback a {
  color: #c5e6d6;
  font-weight: 600;
}

.mc-scale-player {
  grid-area: player;
  align-self: center;
  min-width: 0;
}

.mc-scale-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #71847f;
  border-radius: 11px;
  margin-bottom: 12px;
}

.mc-scale-picker button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 7px 13px;
  font-size: .94rem;
  font-weight: 610;
  line-height: 1.25;
}

.mc-scale-picker button[aria-selected="true"] {
  background: #cae6d8;
  color: #243432;
}

.mc-scale-picker button:hover:not([aria-selected="true"]) {
  background: #3c4d4e;
}

.mc-scale :focus-visible {
  outline-color: #d8c5f6;
}

.mc-scale-fallback {
  margin-bottom: 12px;
}

.mc-scale-panel {
  scroll-margin-top: 50px;
}

.mc-scale-panel + .mc-scale-panel {
  margin-top: 28px;
}

.js .mc-scale-panel + .mc-scale-panel {
  margin-top: 0;
}

.mc-scale-panel > img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: contain;
  border: 1px solid #6b7c7a;
  border-radius: 9px;
  background: #172326;
}

.mc-scale-result {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.mc-scale-result span,
.mc-scale-pitches {
  color: #c8d6d1;
  font-size: .94rem;
}

.mc-scale-listen {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 10px;
}

.mc-scale-listen audio {
  width: 100%;
  max-width: 290px;
  height: 35px;
  color-scheme: light;
}

.mc-scale-listen a {
  color: #cee9dd;
  font-size: .94rem;
  font-weight: 650;
}

.mc-scale-timing {
  margin-top: 10px;
  max-width: 66ch;
  color: #c1cdca;
  font-size: .88rem;
  line-height: 1.5;
}

/* Section 4: Features */
.mc-atelier {
  padding-block: clamp(52px, 6vw, 84px);
  background: var(--mc-paper);
}

.mc-section-head {
  margin-bottom: clamp(24px, 3.6vw, 40px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 32px;
}

.mc-section-head > p {
  max-width: 38ch;
  font-size: 1.04rem;
  color: var(--mc-muted);
}

.mc-feature-picker {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.mc-feature-picker button {
  border: none;
  border-top: 2px solid #c7c4c4;
  padding: .8rem 0;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 620;
  background: transparent;
  color: #66616a;
}

.mc-feature-picker button[aria-selected="true"] {
  border-color: var(--mc-purple);
  color: var(--mc-purple);
}

.mc-feature-picker button:hover {
  color: var(--mc-purple);
}

.mc-feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: clamp(26px, 5vw, 80px);
}

.mc-feature-panel + .mc-feature-panel {
  margin-top: 36px;
}

.js .mc-feature-panel + .mc-feature-panel {
  margin-top: 0;
}

.mc-feature-copy {
  max-width: 40ch;
}

.mc-feature-copy > p {
  margin-block: .85rem;
  color: var(--mc-body-ink);
  font-size: 1.03rem;
}

.mc-feature-copy > a,
.mc-feature-related a,
.mc-export-copy > a {
  display: inline-block;
  color: var(--mc-purple);
  font-weight: 650;
  margin-top: .25rem;
}

/* GIF demo container */
.mc-demo {
  position: relative;
  background: #efedf2;
  overflow: hidden;
  border: 1px solid var(--mc-rule);
  border-radius: 12px;
  min-width: 0;
}

.mc-demo > img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: contain;
}

.mc-motion-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eeecf0;
  border-top: 1px solid #dcd8e0;
  padding: 7px 10px 7px 14px;
  gap: 8px;
  min-height: 44px;
  color: #514b57;
  font-size: .86rem;
}

.mc-motion-bar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  min-height: 32px;
  border: 1px solid #bdb7c2;
  border-radius: 100px;
  background: #fbfafd;
  color: var(--mc-ink);
  font-size: .83rem;
  font-weight: 650;
  flex-shrink: 0;
}

.mc-motion-bar button:hover {
  background: #e4d9f3;
}

.mc-motion-letter {
  display: block;
  width: .65rem;
  height: .65rem;
  background: currentColor;
  clip-path: polygon(10% 0, 100% 50%, 10% 100%);
}

.mc-motion-bar button[aria-pressed="true"] .mc-motion-letter {
  clip-path: inset(8%);
}

/* Section 5: Export */
.mc-export {
  padding-block: clamp(48px, 6vw, 84px);
  background: #e8e9e2;
  border-block: 1px solid #d1d3ca;
}

.mc-export-grid {
  display: grid;
  align-items: center;
  gap: clamp(26px, 6vw, 96px);
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
}

.mc-export-copy h2 {
  max-width: 14ch;
}

.mc-export-copy > p {
  color: #454943;
  font-size: 1.04rem;
  margin: 1rem 0;
  max-width: 42ch;
}

.mc-export-copy .mc-example-meta {
  color: #555c54;
  font-size: .88rem;
  margin: 4px 0 .7rem;
}

.mc-export figure {
  overflow: hidden;
  border: 1px solid #c0c6ba;
  border-radius: 10px;
  background: #f6f6f3;
}

.mc-export figure > img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

/* Section 6: Purchase */
.mc-purchase {
  background: #202426;
  color: #f8f7f2;
  padding-block: clamp(48px, 7vw, 88px);
}

.mc-purchase-grid {
  display: grid;
  gap: clamp(28px, 7vw, 108px);
  grid-template-columns: minmax(0, .74fr) minmax(0, 1fr);
}

.mc-price {
  display: block;
  margin-top: .8rem;
  color: #d9ccee;
  font: 760 clamp(3.8rem, 7.2vw, 6.2rem)/1 var(--mc-display);
  letter-spacing: -.06em;
}

.mc-price small {
  font: 600 .95rem/1.3 var(--mc-body);
  letter-spacing: 0;
  color: #efedf4;
  display: inline-block;
  vertical-align: middle;
  margin-left: .45rem;
}

.mc-purchase-grid > div:first-child > p {
  margin-top: 1rem;
  color: #d2d4d3;
  max-width: 38ch;
}

.mc-specs {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-self: start;
  gap: 0 26px;
  margin: 0;
  font-size: .98rem;
}

.mc-specs dt,
.mc-specs dd {
  margin: 0;
  padding: .66rem 0;
  border-bottom: 1px solid #45494a;
}

.mc-specs dt {
  color: #c5c5c9;
}

.mc-specs dd {
  color: #fff;
}

.mc-purchase-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}

.mc-purchase a {
  color: #e7def5;
  font-weight: 600;
}

.mc-purchase .mc-btn-get {
  margin-top: 1.5rem;
  background: #e7def5;
  border-color: #e7def5;
  color: var(--mc-ink);
}

.mc-purchase .mc-btn-get:hover {
  background: #fff;
  border-color: #fff;
}

/* Footer */
.mc-foot {
  border-top: 1px solid var(--mc-rule);
}

.mc-foot .mc-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 86px;
  padding-block: 20px;
}

.mc-foot nav {
  gap: clamp(15px, 2.8vw, 34px);
  flex-wrap: wrap;
}

.mc-foot nav a {
  font-size: .91rem;
  font-weight: 550;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 900px) {
  .mc-hero-layout {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 28px;
  }

  .mc-hero h1 {
    font-size: clamp(3.3rem, 8vw, 5.2rem);
  }

  .mc-pets-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .mc-scale-layout,
  .mc-feature-panel,
  .mc-export-grid,
  .mc-purchase-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mc-scale-layout {
    grid-template-areas: "intro" "player" "guide";
  }
}

@media (max-width: 660px) {
  .mc-hero-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 38px 44px;
    gap: 30px;
  }

  .mc-hero h1 {
    font-size: clamp(3.2rem, 14vw, 4.5rem);
  }

  .mc-hero-copy > p {
    max-width: 34ch;
  }

  .mc-pet-picker {
    display: none;
  }

  .mc-group-picker {
    display: none;
  }

  .mc-group-panel {
    padding-bottom: 0;
  }

  .mc-pet-mobile {
    display: flex;
  }

  .mc-pet-visuals {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .mc-feature-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }

  .mc-feature-picker button {
    font-size: .95rem;
  }

  .mc-foot .mc-wrap {
    flex-wrap: wrap;
  }

  .mc-specs {
    grid-template-columns: minmax(0, 1fr);
  }

  .mc-specs dt {
    border-bottom: 0;
    padding-bottom: 2px;
    font-size: .86rem;
  }

  .mc-specs dd {
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .mc-nav {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding-block: 12px 8px;
  }

  .mc-nav nav {
    width: 100%;
    flex-wrap: wrap;
    column-gap: clamp(12px, 3.6vw, 20px);
    row-gap: 4px;
  }

  .mc-nav nav a {
    padding: .25rem 0;
    line-height: 1.4;
  }
}

@media (max-width: 380px) {
  .mc-scale-picker {
    gap: 1px;
  }

  .mc-scale-picker button {
    padding: 7px 8px;
    font-size: .83rem;
  }

  .mc-nav nav {
    column-gap: 10px;
  }

  .mc-nav nav a {
    font-size: .84rem;
  }
}

/* Design D7: lese-reskin.css (shared) styles <body>, headings and links of every page with !important or
   high-specificity rules. The shared header and footer take its body colour and font; the MIDI Canvas page body
   keeps its own. The shared header is fixed, 56 px tall (h-14) plus its 1 px bottom border, so the page starts below
   it; <body> is a flow root so that margin does not collapse through it and move the header down too. */
body.mc-page { background: var(--mc-paper) !important; display: flow-root; }
.mc-page > main { margin-top: calc(3.5rem + 1px); color: var(--mc-ink); font-family: var(--mc-body); }
.mc-page main ::selection { background: #cfc0ed !important; color: #202123 !important; }

/* ---- D7 guard: begin ---- */
/* Design D7: lese-reskin.css (shared) sets heading fonts and h1/h2 letter-spacing with !important and colours
   every `main a[href]` blue. These are !important copies of this file's own color / font-family / letter-spacing
   declarations, same selectors and order, so the MIDI Canvas body keeps its design. Regenerate after editing the
   rules above; tests/browser/midi-canvas-pages.browser.mjs compares computed styles with and without the shared CSS. */
.mc-skip { color: var(--mc-ink) !important; font-family: var(--mc-body) !important; }
.mc-page :where(main) :where(a) { color: inherit !important; }
.mc-page :where(main) button { color: inherit !important; font-family: inherit !important; }
.mc-page :where(main) ::selection { color: #202123 !important; }
.mc-page :where(main) h1, .mc-page :where(main) h2, .mc-page :where(main) h3 { font-family: var(--mc-display) !important; }
.mc-page :where(main) h2 { letter-spacing: -.025em !important; }
.mc-page :where(main) h3 { letter-spacing: -.02em !important; }
.mc-brand { font-family: var(--mc-display) !important; }
.mc-nav nav a:hover, .mc-foot nav a:hover { color: var(--mc-purple) !important; }
.mc-hero h1 { letter-spacing: -.072em !important; color: var(--mc-ink) !important; }
.mc-hero-copy > p { color: #36303d !important; }
.mc-btn { color: #fff !important; }
.mc-hero-sublink { color: #2a2431 !important; }
.mc-compare figcaption > span { font-family: var(--mc-round) !important; color: #3c3346 !important; }
.mc-switch button { color: #2b2533 !important; }
.mc-switch button[aria-pressed="true"] { color: #fff !important; }
.mc-pets-head p { color: var(--mc-body-ink) !important; }
.mc-pet-picker button[aria-selected="true"] { color: var(--mc-ink) !important; }
.mc-group-picker button { color: #493a56 !important; }
.mc-group-picker button[aria-selected="true"] { color: #fff !important; }
.mc-pet-note { color: var(--mc-muted) !important; }
.mc-pet-mobile select { color: var(--mc-ink) !important; font-family: var(--mc-body) !important; }
.mc-pet-figure figcaption small { color: var(--mc-muted) !important; }
.mc-pet-output { color: #f0f2f0 !important; }
.mc-pet-output figcaption small { color: #bac9c4 !important; }
.mc-pet-tip { color: var(--mc-body-ink) !important; }
.mc-credit { color: var(--mc-muted) !important; }
.mc-scale { color: #f4f3ee !important; }
.mc-scale-intro > p { color: #e4e9e6 !important; }
.mc-scale-source small { color: #c7d4d0 !important; }
.mc-scale-guide p { color: #d8e0dc !important; }
.mc-scale-links a, .mc-scale-fallback a { color: #c5e6d6 !important; }
.mc-scale-picker button[aria-selected="true"] { color: #243432 !important; }
.mc-scale-result span, .mc-scale-pitches { color: #c8d6d1 !important; }
.mc-scale-listen a { color: #cee9dd !important; }
.mc-scale-timing { color: #c1cdca !important; }
.mc-section-head > p { color: var(--mc-muted) !important; }
.mc-feature-picker button { color: #66616a !important; }
.mc-feature-picker button[aria-selected="true"] { color: var(--mc-purple) !important; }
.mc-feature-picker button:hover { color: var(--mc-purple) !important; }
.mc-feature-copy > p { color: var(--mc-body-ink) !important; }
.mc-feature-copy > a, .mc-feature-related a, .mc-export-copy > a { color: var(--mc-purple) !important; }
.mc-motion-bar { color: #514b57 !important; }
.mc-motion-bar button { color: var(--mc-ink) !important; }
.mc-export-copy > p { color: #454943 !important; }
.mc-export-copy .mc-example-meta { color: #555c54 !important; }
.mc-purchase { color: #f8f7f2 !important; }
.mc-price { color: #d9ccee !important; font-family: var(--mc-display) !important; letter-spacing: -.06em !important; }
.mc-price small { font-family: var(--mc-body) !important; letter-spacing: 0 !important; color: #efedf4 !important; }
.mc-purchase-grid > div:first-child > p { color: #d2d4d3 !important; }
.mc-specs dt { color: #c5c5c9 !important; }
.mc-specs dd { color: #fff !important; }
.mc-purchase a { color: #e7def5 !important; }
.mc-purchase .mc-btn-get, .mc-purchase .mc-btn-get:hover { color: var(--mc-ink) !important; }
/* ---- D7 guard: end ---- */
