/* The piano viz's page (piano/). The shared look, colours and fonts are in ../hojt.css; this
   adds the piano viz's own paint, the scarlet of its chassis, and the parts only this page has:
   the screenshot tour, the chord inspector with its keybed, releases and the setup steps. */

:root {
  --paint: var(--paint-scarlet);
  --scarlet-deep: #780d13;
  --oled: #060606;
  --ivory-key: #fcfcfb;
  /* The app's own readout colours, used where the page shows what the app shows */
  --held-blue: #4fa3ff;
  --amber: #f0c06a;
}

.measure {
  max-width: 44em;
}
code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--tape-text);
  overflow-wrap: anywhere;
}
strong {
  color: var(--tape-text);
}

.section {
  padding-block: 72px 0;
}
.section-head {
  margin-bottom: 30px;
}
.section-head.sub {
  margin: 56px 0 18px;
}
.section-title {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 58px);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.subsection-title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-lead {
  margin: 0;
  color: var(--silk);
}

/* Top */

.section-stage {
  padding-top: 56px;
}
.hero-content .band {
  margin-bottom: 30px;
}
.hero-content .say {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(42px, 6.6vw, 76px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero-lead {
  margin: 0;
  font-size: 19px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 26px;
}
.badge {
  padding: 5px 12px 4px;
  border-radius: 3px;
  background: var(--tape);
  border: 1px solid var(--line);
  color: var(--tape-text);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 12px;
  margin-top: 30px;
}
.button svg {
  display: inline-block;
  margin: -4px 8px 0 0;
  vertical-align: middle;
}
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 26px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The main window, on the scarlet of the app's own chassis */

.screenshot-hardware-chassis {
  margin-top: 48px;
  padding: 18px 20px 24px;
  border-radius: 14px;
  background: var(--paint);
  box-shadow: 0 22px 40px -24px rgba(0, 0, 0, 0.9);
}
.chassis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.chassis-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--silk);
}
.chassis-screws {
  display: flex;
  gap: 8px;
}
.screw-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d9d3c7, #6e6a63);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}
.chassis-viewport {
  overflow: hidden;
  border-radius: 8px;
  background: var(--oled);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.8);
}
.chassis-viewport img {
  width: 100%;
}
.chassis-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
}
.spec-title {
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--silk);
}
.spec-desc {
  margin: 0;
  font-size: 15px;
  color: var(--tape-text);
}
.spec-desc strong {
  color: #fff;
}

/* Tour: one screenshot at a time, picked from a row of keys */

.tour-switcher-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tour-btn,
.chord-btn {
  padding: 8px 14px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--tape);
  color: var(--tape-text);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.tour-btn:hover,
.chord-btn:hover {
  border-color: var(--silk-dim);
}
.tour-btn.active,
.chord-btn.active {
  background: var(--paint);
  border-color: var(--paint);
  color: #fff;
}
.tour-display-chassis {
  padding: 16px;
  border-radius: 12px;
  background: var(--panel);
}
.tour-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  margin-top: 16px;
}
.tour-meta-title {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tour-meta-dim {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--silk-dim);
  font-variant-numeric: tabular-nums;
}
.tour-description {
  max-width: 52em;
  margin: 8px 0 4px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
  margin-top: 56px;
}
.gallery-thumb-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
}
.gallery-card-title {
  margin: 14px 0 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.gallery-card-desc {
  margin: 0;
  font-size: 15px;
  color: var(--silk-dim);
}

/* The chord inspector: the app's OLED readout, played from the buttons below it */

.architecture-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.oled-readout-deck {
  padding: 20px;
  border-radius: 12px;
  background: var(--oled);
  border: 1px solid var(--line);
}
.oled-screen-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--silk-dim);
}
.oled-chord-display {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 18px 0 20px;
}
.chord-hero-name {
  font-family: var(--body);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.chord-roman-tag {
  padding: 3px 8px 2px;
  border-radius: 3px;
  background: #fff;
  color: #000;
  font-family: var(--mono);
  font-size: 13px;
}
.oled-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}
.oled-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--silk-dim);
}
.oled-value {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--tape-text);
}
.interactive-chord-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.virtual-keyboard-wrap {
  margin-top: 22px;
}
.keyboard-title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 10px;
}
.keyboard-title {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.keyboard-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--silk-dim);
}
.legend-swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 2px;
}
.swatch-tonic {
  background: var(--amber);
}
.swatch-chord {
  background: var(--held-blue);
}
.swatch-dimmed {
  background: #8e8c8a;
}
.interactive-keybed {
  display: flex;
  position: relative;
  height: 140px;
  padding: 2px 2px 0;
  border-radius: 6px;
  background: #0a0a0a;
  border: 1px solid var(--line);
  user-select: none;
}
.key-white,
.key-black {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  border-radius: 0 0 3px 3px;
  font-family: var(--mono);
  font-size: 11px;
}
.key-white {
  flex: 1;
  padding-bottom: 6px;
  background: var(--ivory-key);
  color: #0a0a0a;
  border: 1px solid #d0cecc;
}
.key-black {
  position: absolute;
  z-index: 1;
  width: 7%;
  height: 85px;
  padding-bottom: 4px;
  background: #1a1a1a;
  color: var(--tape-text);
  border: 1px solid #2e2e2e;
}
.key-black[data-key="Db"] { left: 8.5%; }
.key-black[data-key="Eb"] { left: 21%; }
.key-black[data-key="Gb"] { left: 46%; }
.key-black[data-key="Ab"] { left: 58.5%; }
.key-black[data-key="Bb"] { left: 71%; }
.key-white.is-tonic,
.key-black.is-tonic {
  background: var(--amber);
  border-color: #eda73c;
  color: #0a0a0a;
}
.key-white.is-chord,
.key-black.is-chord {
  background: var(--held-blue);
  border-color: var(--held-blue);
  color: #0a0a0a;
}
.key-white.is-dimmed {
  background: #8e8c8a;
  border-color: #6e6c6a;
}
.key-black.is-dimmed {
  background: #0e0e0e;
  border-color: #1c1c1c;
  color: #6e6c6a;
}

/* Tables: as on the plugins' page */

.theory-table-wrap,
.shortcuts-table-wrap {
  overflow-x: auto;
}
.theory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.theory-table th,
.theory-table td {
  padding: 9px 14px 9px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.theory-table th {
  border-top: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silk-dim);
}
.theory-table td:first-child {
  white-space: nowrap;
}
.theory-table-wrap .theory-table td:first-child {
  white-space: normal;
  min-width: 9em;
}
.kbd {
  display: inline-block;
  padding: 2px 7px 1px;
  border-radius: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 2px 0 var(--line);
  color: var(--tape-text);
  font-family: var(--mono);
  font-size: 13px;
}
.tabular {
  font-variant-numeric: tabular-nums;
}

/* Releases */

.releases-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 28px;
  align-items: start;
}
.release-main-card {
  padding: 28px;
  border-radius: 14px;
  background: var(--panel);
}
.release-tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.release-version-pill {
  padding: 5px 12px 4px;
  border-radius: 3px;
  background: var(--paint);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.release-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--silk-dim);
}
.release-heading {
  margin: 18px 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.release-notes-body {
  margin: 0;
}
.release-asset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 16px;
  border-radius: 6px;
  background: var(--tape);
  border: 1px solid var(--line);
}
.asset-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.asset-name {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--tape-text);
  overflow-wrap: anywhere;
}
.asset-meta {
  font-size: 13px;
  color: var(--silk-dim);
}
.release-main-card .hero-actions {
  margin-top: 22px;
}
.requirements-card {
  padding-top: 4px;
}
.requirements-title {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.req-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.req-item {
  position: relative;
  padding-left: 20px;
}
.req-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--paint);
}

/* Setup: three steps in order, then the shortcuts */

.setup-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.step-card {
  padding-top: 16px;
  border-top: 3px solid var(--paint);
}
.step-number {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--silk-dim);
}
.step-title {
  margin: 8px 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.step-desc {
  margin: 0;
  font-size: 15px;
}

@media (max-width: 900px) {
  .architecture-layout,
  .releases-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .gallery-grid,
  .chassis-spec-grid,
  .setup-steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .section-stage {
    padding-top: 36px;
  }
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .screenshot-hardware-chassis {
    padding: 14px 12px 20px;
  }
  .chassis-screws {
    display: none;
  }
  .chord-hero-name {
    font-size: 48px;
  }
  .release-main-card {
    padding: 20px 16px;
  }
}
