/* Harmodus Piano multilingual promotion pages */

.promo-page {
  max-width: var(--mtl-container);
}

.promo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: var(--mtl-space-8);
  padding: var(--mtl-space-12) 0 var(--mtl-space-8);
}

.promo-hero__copy {
  text-align: center;
}

.promo-hero__icon {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--mtl-space-4);
  border-radius: var(--mtl-radius);
}

.promo-hero__title {
  max-width: 15ch;
  margin: 0 auto var(--mtl-space-3);
  font-size: clamp(var(--mtl-text-fff), 5vw, var(--mtl-text-tutti));
  font-weight: 600;
  line-height: var(--mtl-leading-hero);
  letter-spacing: 0.01em;
}

.promo-hero__title-ja {
  font-size: 0.75em;
  font-weight: 700;
  vertical-align: middle;
}

.promo-hero__description {
  max-width: 48ch;
  margin-inline: auto;
  color: var(--mtl-ink-2);
  font-size: var(--mtl-text-mf);
  line-height: var(--mtl-leading-body);
}

.promo-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--mtl-space-3);
  margin-top: var(--mtl-space-4);
}

.promo-download__badge {
  display: block;
  flex: 0 0 auto;
  width: 156px;
  height: 52px;
  transition: opacity var(--mtl-dur-s) var(--mtl-ease),
              transform var(--mtl-dur-s) var(--mtl-ease);
}

.promo-download__badge:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.promo-download__badge:focus-visible {
  opacity: 0.82;
  transform: translateY(-1px);
  outline: 2px solid var(--mtl-ink);
  outline-offset: 3px;
}

.promo-download__badge img {
  width: 156px;
  height: 52px;
}

.promo-download__note {
  max-width: 29ch;
  padding-top: var(--mtl-space-half);
  color: var(--mtl-ink-3);
  font-size: var(--mtl-text-p);
  line-height: 1.6;
}

/* Device mockup — Apple Design Resources iPhone 17 Pro Max (Silver), landscape. */
.promo-device-frame {
  margin: 0;
  box-sizing: border-box;
}

.promo-device-frame--landscape {
  width: min(100%, 720px);
  margin-inline: auto;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.promo-device-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 3000 / 1470;
  margin: 0;
  container-type: size;
}

.promo-device-screen-clip {
  position: absolute;
  left: 2.2%;
  top: 5.034%;
  width: 95.6%;
  height: 89.796%;
  border-radius: 7% / 15.5%;
  overflow: hidden;
  z-index: 0;
}

.promo-device-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: none;
  border-radius: 0;
}

.promo-device-bezel {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 100cqw;
  width: auto;
  aspect-ratio: 1470 / 3000;
  transform: translate(-50%, -50%) rotate(90deg);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* iPad Air landscape bezel — Apple Design Resources (Space Gray). */
.promo-device-frame--ipad-landscape {
  width: min(100%, 920px);
  margin-inline: auto;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.promo-device-shell--ipad {
  position: relative;
  width: 100%;
  aspect-ratio: 2640 / 1920;
  margin: 0;
}

.promo-device-screen-clip--ipad {
  position: absolute;
  /* Screenshot 2388×1668 centered in 2640×1920 bezel frame (126px inset each axis). */
  left: 4.7727%;
  top: 6.5625%;
  width: 90.4545%;
  height: 86.875%;
  border-radius: 0;
  overflow: hidden;
  z-index: 0;
}

.promo-device-screen-clip--ipad .promo-device-screen {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
}

.promo-device-bezel--ipad {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.promo-rule {
  margin: 0;
}

.promo-hero__video {
  margin: 0;
  background: var(--mtl-paper-dim);
  border-radius: var(--mtl-radius);
  box-shadow: none;
}

.promo-index {
  display: block;
  margin-bottom: var(--mtl-space-2);
  font-family: var(--mtl-font-mono);
  font-size: var(--mtl-text-p);
  color: var(--mtl-accent);
}

.promo-feature__title {
  font-size: var(--mtl-text-f);
  font-weight: 600;
  line-height: var(--mtl-leading-heading);
}

.promo-features {
  border-top: 1px solid var(--mtl-line);
}

.promo-feature:first-child {
  padding-top: var(--mtl-space-12);
}

.promo-feature {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  align-items: start;
  gap: var(--mtl-space-8);
  padding: var(--mtl-space-8) 0;
  border-bottom: 1px solid var(--mtl-line);
}

.promo-feature:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
}

.promo-feature:nth-child(even) .promo-feature__copy {
  order: 2;
}

.promo-feature:nth-child(even) .promo-device-frame {
  order: 1;
}

.promo-feature__copy {
  max-width: 30ch;
}

.promo-feature__description,
.promo-more__description {
  margin-top: var(--mtl-space-2);
  color: var(--mtl-ink-2);
  font-size: var(--mtl-text-mp);
  line-height: var(--mtl-leading-body);
}

.promo-more {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: var(--mtl-space-8);
  padding: var(--mtl-space-12) 0;
}

.promo-more__label {
  font-family: var(--mtl-font-mono);
  font-size: var(--mtl-text-p);
  color: var(--mtl-ink-3);
  letter-spacing: var(--mtl-tracking-caps);
}

.promo-more__title {
  max-width: 14ch;
  margin-top: var(--mtl-space-2);
  font-size: var(--mtl-text-f);
  font-weight: 600;
  line-height: var(--mtl-leading-heading);
}

.promo-more__list {
  list-style: none;
  border-top: 1px solid var(--mtl-line);
}

.promo-more__item {
  display: grid;
  grid-template-columns: 3ch minmax(0, 1fr);
  align-items: start;
  gap: var(--mtl-space-3);
  padding: var(--mtl-space-4) var(--mtl-space-1);
  border-bottom: 1px solid var(--mtl-line);
}

.promo-more__number {
  font-family: var(--mtl-font-mono);
  font-size: var(--mtl-text-p);
  color: var(--mtl-ink-3);
}

.promo-more__text {
  font-size: var(--mtl-text-mf);
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.promo-cta {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: var(--mtl-space-3);
  padding: var(--mtl-space-8) 0;
  border-top: 1px solid var(--mtl-ink);
  text-align: center;
}

.promo-cta__title {
  font-size: var(--mtl-text-ff);
  font-weight: 600;
  line-height: var(--mtl-leading-heading);
}

.promo-cta__description {
  max-width: 48ch;
  color: var(--mtl-ink-2);
  font-size: var(--mtl-text-mp);
  line-height: var(--mtl-leading-body);
}

.promo-footer-name {
  color: var(--mtl-ink-2);
}

.site-footer .footer-sns:focus-visible {
  color: var(--mtl-accent);
  outline: 2px solid var(--mtl-accent);
  outline-offset: var(--mtl-space-half);
}

@media (min-width: 821px) {
  .promo-features {
    max-width: 1080px;
    margin-inline: auto;
  }

  .promo-feature {
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    overflow: visible;
  }

  .promo-device-frame--landscape {
    width: min(100%, 720px);
    margin-inline: 0;
  }

  .promo-feature > .promo-device-frame--landscape {
    min-width: 0;
    max-width: 720px;
    width: min(100%, 720px);
  }
}

@media (max-width: 820px) {
  .promo-hero,
  .promo-feature,
  .promo-feature:nth-child(even),
  .promo-more {
    grid-template-columns: 1fr;
    gap: var(--mtl-space-4);
  }

  .promo-hero {
    padding-top: var(--mtl-space-8);
  }

  .promo-feature:nth-child(even) .promo-feature__copy,
  .promo-feature:nth-child(even) .promo-device-frame {
    order: initial;
  }

  .promo-feature__copy {
    max-width: var(--mtl-measure);
  }
}

@media (max-width: 600px) {
  .promo-page {
    width: min(100% - var(--mtl-space-4), var(--mtl-container));
  }

  .promo-hero {
    padding: var(--mtl-space-8) 0;
  }

  .promo-hero__title {
    font-size: var(--mtl-text-fff);
  }

  .promo-hero__description {
    font-size: var(--mtl-text-mp);
  }

  .promo-download {
    flex-direction: column;
    gap: var(--mtl-space-1);
  }

  .promo-download__note {
    text-align: center;
  }

  .promo-feature {
    padding: var(--mtl-space-6) 0;
  }

  .promo-more {
    padding: var(--mtl-space-8) 0;
  }

  .promo-feature__title {
    font-size: var(--mtl-text-mf);
  }

  .promo-more__text {
    font-size: var(--mtl-text-mp);
  }

  .promo-more__item {
    grid-template-columns: 3ch minmax(0, 1fr);
    gap: var(--mtl-space-2);
    padding: var(--mtl-space-3) 0;
  }

  .promo-more__title {
    max-width: none;
  }

  .promo-cta {
    padding: var(--mtl-space-6) 0;
  }

  .promo-cta__title {
    font-size: var(--mtl-text-f);
  }

  .locale-menu__list {
    position: fixed;
    top: 124px;
    right: var(--mtl-space-2);
    left: var(--mtl-space-2);
    width: auto;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }

  [dir="rtl"] .locale-menu__list {
    right: var(--mtl-space-2);
    left: var(--mtl-space-2);
  }
}
