.wrap, .hero, .header.bannerHeader, .hero.hero-grid.hero-grid-patterns {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* Tab color variables for keys page */
:root {
  --ui-tab: #fcfdff;
  --ui-tab-2: #f3f7fb;
  --ui-tab-active: var(--site-gold-bright, #f0c45b);
  --ui-indigo-deep: #2a3a5e;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}
.brandTitle {
  margin: 0 0 8px 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--site-text, #f5f7fb);
}

.brandTitle-accent {
  color: var(--site-gold-bright, #f0c45b);
}
body {
  margin: 0;
  min-height: 100vh;
  padding: 24px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--site-text, #f5f7fb);
  background:
    radial-gradient(circle at top left, rgba(111, 87, 255, 0.10), transparent 30%),
    radial-gradient(circle at top right, rgba(90, 170, 220, 0.08), transparent 24%),
    var(--site-blue-gradient, linear-gradient(180deg, #33466f 0%, #41577d 100%));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  margin: 0 auto;
}

/* Restore logo and nav link button colors to match landing page */
.logo-dot {
  color: var(--site-text, #f5f7fb);
}
.logo-beat {
  color: var(--site-gold-bright, #f0c45b);
}
.logo-tm {
  display: inline-block;
  margin-left: 1px;
  font-size: 13px;
  color: var(--site-text, #f5f7fb);
  opacity: 0.9;
  vertical-align: text-top;
  transform: translateY(-0.14em);
}
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  color: rgba(185, 192, 207, 0.94);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 600;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: #f5f7fb;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  outline: none;
}
.nav-link.active {
  color: #f5f7fb;
  background: linear-gradient(180deg, rgba(240, 196, 91, 0.18), rgba(240, 196, 91, 0.08));
  border-color: rgba(240, 196, 91, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 18px rgba(15, 23, 42, 0.16);
}

.hero,
.hero-grid,
.hero-grid-keys {
  background: var(--card-bg, rgba(14, 29, 57, 0.9));
  border: 1px solid var(--card-border-soft, rgba(255, 255, 255, 0.12));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 18px;
  padding: 34px 38px 36px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
}

.hero-ambient-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-ambient-lines span {
  position: absolute;
  left: 120px;
  right: -20px;
  height: 1px;
  background: rgba(214, 223, 238, 0.12);
}
.hero-ambient-lines span:nth-child(1) { top: 56px; }
.hero-ambient-lines span:nth-child(2) { top: 96px; }
.hero-ambient-lines span:nth-child(3) { top: 136px; }
.hero-ambient-lines span:nth-child(4) { top: 176px; }

.hero-copy {
  max-width: 760px;
  flex: 1 1 58%;
  position: relative;
  z-index: 2;
}
.hero-kicker {
  margin-bottom: 10px;
  color: #f0c45b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-visual.keys-hero-visual {
  width: min(100%, 420px);
  margin-right: 44px;
  margin-left: 0;
  padding: 8px 0 0;
  flex: 0 1 34%;
  position: relative;
  z-index: 2;
}

.patternTopRow {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.95fr);
}

.patternTopRow > .tipBox {
  width: 100%;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
}

.tipBox {
  position: relative;
  gap: 0;
  min-width: 220px;
  max-width: 280px;
  padding: 16px 18px 14px;
  background:
    linear-gradient(180deg, rgba(23, 35, 58, 0.96), rgba(31, 47, 73, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow:
    0 18px 36px rgba(10, 18, 34, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  flex-shrink: 0;
  color: #f5f7fb;
}

.tipBox::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(180deg, rgba(240, 196, 91, 0.16), rgba(240, 196, 91, 0));
  pointer-events: none;
}

.tipBox:hover {
  transform: none;
  box-shadow:
    0 18px 36px rgba(10, 18, 34, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tipBoxHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  min-height: 18px;
}

.tipBoxIcon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(240, 196, 91, 0.42);
  background: rgba(240, 196, 91, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
  color: #f0c45b;
}

.tipBoxLabel {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 196, 91, 0.92);
}

.tipText {
  min-width: 0;
  min-height: 72px;
  flex: 1;
  position: relative;
  z-index: 1;
  color: rgba(245, 247, 251, 0.96);
  font-size: 13.5px;
  line-height: 1.6;
  transition: opacity 0.2s ease;
}

.tipText.tip-fade {
  opacity: 0;
}

.keys-shell .tipInline {
  color: rgba(245, 247, 251, 0.97);
}

.keys-shell .tipInlineMain {
  line-height: 1.16;
}

.keys-shell .tipInlineLabel {
  display: none;
}

.keys-shell .tipInlineText {
  color: #f3f8ff;
  line-height: 1.18;
  position: relative;
  top: -2px;
}

.keys-shell .tipInlineText::before {
  content: "Tip: ";
}

.keys-shell .tipInline .tipText,
.keys-shell .tipInlineText.tipText {
  color: #f3f8ff;
}

.keys-shell .tabDetails .tab,
.keys-shell .tabDetails .tabStack .tab {
  border-radius: 12px;
}

.keys-shell .progressionSection .progBtn {
  text-align: center;
}

.keys-shell .progressionSection .progBtn span {
  display: block;
  text-align: center;
}

.keys-shell .controlsVertical select,
.keys-shell .controlsVertical input[type="number"] {
  border-color: rgba(219, 207, 181, 0.85);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.12) 100%),
    linear-gradient(135deg, #fbf7ee 0%, #f6f0e4 42%, #eaf1f8 100%);
  color: #2f366f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 4px 10px rgba(20, 33, 58, 0.07);
}

.keys-shell .controlsVertical button.secondary,
.keys-shell .controlsVertical .tabShortcut {
  border-color: rgba(219, 207, 181, 0.85);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.12) 100%),
    linear-gradient(135deg, #fbf7ee 0%, #f6f0e4 42%, #eaf1f8 100%);
  color: #41577d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 4px 10px rgba(20, 33, 58, 0.07);
}

.keys-shell .controlsVertical button.secondary:hover,
.keys-shell .controlsVertical .tabShortcut:hover {
  border-color: rgba(231, 183, 62, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.16) 100%),
    linear-gradient(135deg, #fff9ef 0%, #f8f0e1 44%, #edf3fa 100%);
}

.keys-shell .tempoSliderWrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.keys-shell #tempo.tempoSlider {
  width: 100%;
  min-height: 0;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: #2a9db5;
}

.keys-shell #tempo.tempoSlider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #2a9db5 0%,
    #2a9db5 var(--tempo-progress, 25%),
    rgba(255, 255, 255, 0.96) var(--tempo-progress, 25%),
    rgba(255, 255, 255, 0.96) 100%
  );
}

.keys-shell #tempo.tempoSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: -4px;
  border: 1px solid rgba(18, 36, 62, 0.42);
  background: #2a9db5;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.28);
}

.keys-shell #tempo.tempoSlider::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

.keys-shell #tempo.tempoSlider::-moz-range-progress {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: #2a9db5;
}

.keys-shell #tempo.tempoSlider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(20, 36, 68, 0.45);
  border-radius: 50%;
  background: #2a9db5;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.28);
}

.keys-shell .tempoValue {
  min-width: 56px;
  text-align: right;
  color: #f5f7fb;
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 6px rgba(15, 23, 42, 0.35);
}

.keys-shell .tempoRow {
  border: 1px solid rgba(184, 205, 239, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(45, 66, 104, 0.9), rgba(35, 53, 88, 0.9));
  padding: 7px 10px;
  gap: 10px;
}

.keys-shell .tempoLabel {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(245, 247, 251, 0.86);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.01em;
}

.keys-shell .chordBridge .chordGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.tipDots {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.tipDotsHeader {
  margin: 0;
  margin-right: 4px;
  flex-shrink: 0;
}

.tipDot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.tipDotsHeader .tipDot {
  width: 4px;
  height: 4px;
}

.tipDot.active {
  background: #f0c45b;
  transform: scale(1.3);
}

.tipNavRow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 10px;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tipNavRow .tipNav:first-child {
  justify-self: start;
}

.tipNavRow .tipNav:last-child {
  justify-self: end;
}

.tipNavRow .tipNavShuffle {
  justify-self: center;
}

.tipNav,
.tipNavShuffle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 11px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.1s ease;
}

.tipNav {
  border: 1px solid rgba(240, 196, 91, 0.34);
  background: rgba(240, 196, 91, 0.12);
  color: #f0c45b;
  font-size: 15px;
}

.tipNav:hover {
  background: rgba(240, 196, 91, 0.2);
  border-color: rgba(240, 196, 91, 0.56);
  color: #ffd97f;
  transform: scale(1.05);
}

.tipNav:active,
.tipNavShuffle:active {
  transform: scale(0.96);
}

.tipNavShuffle {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(245, 247, 251, 0.78);
  font-size: 14px;
}

.tipNavShuffle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f5f7fb;
  transform: scale(1.05);
}

.tipNav:focus-visible,
.tipNavShuffle:focus-visible {
  outline: 2px solid rgba(240, 196, 91, 0.45);
  outline-offset: 2px;
}

.tab {
  white-space: pre;
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tab::-webkit-scrollbar {
  display: none;
}

@media (max-width: 980px) {
  .header.bannerHeader {
    min-height: 104px;
    padding: 14px 16px;
    gap: 12px;
  }

  .brandTitle {
    font-size: clamp(1.8rem, 6.6vw, 2.15rem);
    line-height: 1.08;
  }

  .hero p,
  .brandTag {
    font-size: 14px;
    line-height: 1.4;
  }

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

  .patternTopRow > .tab,
  .patternTopRow > .tabStack,
  .patternTopRow > .tipBox {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

@media (max-width: 700px) {
  .keys-shell .chordBridge .chordGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tipBox {
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .nav-link {
    font-size: 12px;
    padding: 0 7px;
    min-height: 40px;
  }

  .nav-logo {
    font-size: 18px;
  }
}
