/* /mpe/ — the moForte MPE information hub.
   Landing-page design: alternating fold bands (homepage FOLD RHYTHM),
   one tabbed products section, comparison tables.
   Fold rule: light band is the default; dark bands opt in via
   .mpe-band--dark. Tokens come from tokens.css. */

/* ---------- Bands ---------- */
.mpe-band {
  background: var(--mf-fold-light);
}
.mpe-band--dark {
  background: var(--mf-fold-dark);
}
.mpe-inner {
  max-width: var(--mf-container-width);
  margin: 0 auto;
  padding: 72px clamp(16px, 4vw, 40px);
}

/* ---------- Section intro (eyebrow / h2 / subtitle) ---------- */
.mpe-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mf-accent-orange);
  margin-bottom: 0.6rem;
}
.mpe-band h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.mpe-band h3 {
  font-size: 1.15rem;
  margin: 2.2rem 0 0.8rem;
}
.mpe-subtitle {
  color: var(--mf-text-meta);
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}
.mpe-band p { margin-bottom: 1em; max-width: 70ch; }

/* ---------- Hero ---------- */
.mpe-hero .mpe-inner {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  flex-wrap: wrap;
  padding-top: 88px;
  padding-bottom: 88px;
}
.mpe-hero-copy { flex: 1 1 480px; min-width: 300px; }
.mpe-hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.15;
  margin-bottom: 0.35em;
}
.mpe-hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--mf-accent-teal);
  margin-bottom: 1em;
}
.mpe-hero-lede { font-size: 1.05rem; }
.mpe-authority {
  margin-top: 1.4rem;
  padding: 0.85rem 1.1rem;
  border-left: 3px solid var(--mf-accent-orange);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 6px 6px 0;
  font-size: 0.92rem;
  color: var(--mf-text-primary);
  max-width: 60ch;
}
.mpe-figure {
  flex: 0 1 420px;
  min-width: 280px;
  margin: 0;
}
.mpe-figure-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.mpe-figure-card img { width: 100%; height: auto; display: block; }
.mpe-figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--mf-text-meta);
  line-height: 1.5;
}

/* ---------- The five messages / dimensions row ---------- */
.mpe-dim-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
  margin: 1.6rem 0 0.8rem;
}
@media (max-width: 1000px) { .mpe-dim-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .mpe-dim-grid { grid-template-columns: 1fr 1fr; } }
.mpe-dim {
  border: 1px solid var(--mf-border-medium);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.03);
}
.mpe-dim-axis {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.15em 0.6em;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--mf-text-white);
}
.mpe-dim-axis--x { background: rgba(255, 60, 0, 0.22);  color: #ff9d7a; }
.mpe-dim-axis--y { background: rgba(124, 255, 58, 0.16); color: #a5e87c; }
.mpe-dim-axis--z { background: rgba(105, 170, 240, 0.2); color: #9cc6f5; }
.mpe-dim h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.mpe-dim p { font-size: 0.85rem; color: var(--mf-text-meta); margin: 0; }

/* ---------- Roots timeline ---------- */
.mpe-timeline {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  position: relative;
}
.mpe-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--mf-border-strong);
}
.mpe-timeline li {
  position: relative;
  padding: 0 0 2rem 2.2rem;
}
.mpe-timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mf-fold-light);
  border: 3px solid var(--mf-accent-orange);
}
.mpe-tl-year {
  font-weight: 700;
  color: var(--mf-text-white);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.25rem;
}
.mpe-tl-body { max-width: 62ch; }
.mpe-tl-body p { margin-bottom: 0.4em; }
.mpe-tl-photo {
  margin: 0.8rem 0 0;
  max-width: 340px;
}
.mpe-tl-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--mf-border-medium);
}
.mpe-tl-photo figcaption {
  font-size: 0.8rem;
  color: var(--mf-text-meta);
  margin-top: 0.4rem;
}
.mpe-photo-credit {
  font-size: 0.8rem;
  color: var(--mf-text-meta);
  margin-top: 0.5rem;
}

/* ---------- MIDI 2: before/after + steps + quote ---------- */
.mpe-ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.2rem 0;
}
@media (max-width: 760px) { .mpe-ba-grid { grid-template-columns: 1fr; } }
.mpe-ba-card {
  border: 1px solid var(--mf-border-medium);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  background: rgba(255, 255, 255, 0.03);
}
.mpe-ba-card--after { border-color: var(--mf-accent-orange); }
.mpe-ba-card h4 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
  letter-spacing: 0.03em;
}
.mpe-ba-card ul { list-style: none; margin: 0; padding: 0; }
.mpe-ba-card li {
  padding: 0.35em 0 0.35em 1.4em;
  position: relative;
  font-size: 0.93rem;
}
.mpe-ba-card li::before {
  content: "\2022";
  position: absolute;
  left: 0.3em;
  color: var(--mf-accent-teal);
}
.mpe-ba-card--after li::before { color: var(--mf-accent-orange); }

.mpe-steps {
  counter-reset: mpestep;
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  max-width: 62ch;
}
.mpe-steps li {
  counter-increment: mpestep;
  position: relative;
  padding: 0.45em 0 0.45em 3em;
  border-bottom: 1px solid var(--mf-border-subtle);
  font-size: 0.95rem;
}
.mpe-steps li::before {
  content: counter(mpestep);
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 1.9em;
  height: 1.9em;
  line-height: 1.9em;
  text-align: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(255, 107, 0, 0.16);
  color: var(--mf-accent-orange);
}

.mpe-quote {
  margin: 1.8rem 0 0;
  padding: 1.2rem 1.5rem;
  border-left: 4px solid var(--mf-accent-orange);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 8px 8px 0;
  max-width: 62ch;
}
.mpe-quote p { font-size: 1.02rem; margin-bottom: 0.5em; color: var(--mf-text-white); }
.mpe-quote cite { font-size: 0.85rem; color: var(--mf-text-meta); font-style: normal; }

/* ---------- Generative teaser ---------- */
.mpe-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25em 0.9em;
  border-radius: 999px;
  border: 1px solid var(--mf-accent-teal);
  color: var(--mf-accent-teal);
  margin-bottom: 1rem;
}

/* ---------- Products tabs ---------- */
.mpe-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: #11161e;
  border: 1px solid var(--mf-border-medium);
  border-radius: 999px;
  padding: 0.4rem;
  width: fit-content;
  max-width: 100%;
  margin: 1.4rem 0 1.6rem;
}
.mpe-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--mf-text-primary);
  font-family: var(--mf-font-display);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55em 1.2em;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--mf-transition), color var(--mf-transition);
}
.mpe-tab:hover { color: var(--mf-text-white); }
.mpe-tab:focus-visible { outline: 2px solid var(--mf-accent-orange); outline-offset: 2px; }
.mpe-tab.mpe-tab-active {
  background: rgba(255, 107, 0, 0.18);
  color: var(--mf-accent-orange);
}
@media (max-width: 620px) {
  .mpe-tabs { border-radius: 14px; }
}

/* Panel visibility, driven by the wrap's data-active-tab attribute. */
.mpe-tabs-wrap[data-active-tab="hardware"] .mpe-tabpanel:not([data-tab-panel="hardware"]),
.mpe-tabs-wrap[data-active-tab="synths"]   .mpe-tabpanel:not([data-tab-panel="synths"]),
.mpe-tabs-wrap[data-active-tab="daws"]     .mpe-tabpanel:not([data-tab-panel="daws"]),
.mpe-tabs-wrap[data-active-tab="mobile"]   .mpe-tabpanel:not([data-tab-panel="mobile"]) {
  display: none;
}

/* ---------- Tables (products + notation) ---------- */
.mpe-table-note {
  font-size: 0.85rem;
  color: var(--mf-text-meta);
  margin-bottom: 0.8rem;
}
.mpe-scroll-hint {
  display: none;
  font-size: 0.8rem;
  color: var(--mf-text-meta);
  margin-bottom: 0.4rem;
}
@media (max-width: 700px) { .mpe-scroll-hint { display: block; } }
.mpe-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--mf-border-medium);
  border-radius: 8px;
}
.mpe-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.92rem;
}
.mpe-table th,
.mpe-table td {
  border: 1px solid var(--mf-border-subtle);
  padding: 0.55em 0.8em;
  text-align: left;
  vertical-align: top;
}
.mpe-table thead th {
  position: sticky;
  top: 0;
  background: #11161e;
  color: var(--mf-text-white);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  z-index: 1;
}
.mpe-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.mpe-table tbody tr:hover { background: rgba(128, 203, 196, 0.07); }
.mpe-table td:first-child {
  white-space: nowrap;
  font-weight: 700;
  color: var(--mf-text-white);
}
/* Notation table: the first column is prose (message names), not a year —
   let it wrap, and keep the vendor columns comfortably sized. */
.mpe-table--notation td:first-child {
  white-space: normal;
  min-width: 200px;
}
.mpe-table--notation th:not(:first-child),
.mpe-table--notation td:not(:first-child) {
  min-width: 130px;
}
.mpe-table .mpe-row-hero {
  background: rgba(255, 107, 0, 0.1);
}
.mpe-table .mpe-row-hero:hover { background: rgba(255, 107, 0, 0.16); }
.mpe-flag {
  color: var(--mf-accent-red-hover);
  font-size: 0.82rem;
  white-space: nowrap;
}
.mpe-footnote {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: 1px dashed var(--mf-border-strong);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--mf-text-meta);
  max-width: none;
}
.mpe-footnote strong { color: var(--mf-text-primary); }

/* ---------- Resources + CTA ---------- */
.mpe-res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}
@media (max-width: 900px) { .mpe-res-grid { grid-template-columns: 1fr; } }
.mpe-res-card {
  border: 1px solid var(--mf-border-medium);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  background: rgba(255, 255, 255, 0.03);
}
.mpe-res-card h4 { font-size: 1rem; margin-bottom: 0.7rem; }
.mpe-res-card ul { list-style: none; margin: 0; padding: 0; }
.mpe-res-card li { padding: 0.3em 0; font-size: 0.93rem; }

.mpe-cta {
  margin-top: 2.2rem;
  border: 1px solid var(--mf-accent-orange);
  border-radius: 12px;
  padding: 1.8rem clamp(1.2rem, 3vw, 2.4rem);
  background:
    radial-gradient(1200px 300px at 10% -20%, rgba(255, 107, 0, 0.12), transparent 60%),
    rgba(255, 255, 255, 0.03);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  justify-content: space-between;
}
.mpe-cta-copy { flex: 1 1 380px; }
.mpe-cta h3 { margin: 0 0 0.4rem; font-size: 1.3rem; }
.mpe-cta p { margin: 0; color: var(--mf-text-primary); }
.mpe-cta-buttons { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.mpe-btn {
  display: inline-block;
  font-family: var(--mf-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75em 1.5em;
  border-radius: 8px;
  background: var(--mf-accent-orange);
  color: #000;
  transition: background var(--mf-transition);
}
.mpe-btn:hover { background: var(--mf-accent-orange-hover); color: #000; }
.mpe-btn--ghost {
  background: transparent;
  border: 1px solid var(--mf-border-strong);
  color: var(--mf-text-white);
}
.mpe-btn--ghost:hover { background: rgba(255, 255, 255, 0.06); color: var(--mf-text-white); }

.mpe-corrections {
  margin-top: 1.6rem;
  font-size: 0.85rem;
  color: var(--mf-text-meta);
}
