.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: start;
  overflow: hidden;
  isolation: isolate;
  height: clamp(320px, 32vw, 410px);
  margin: 0;
  padding-top: 20px;
  border: 1px solid #527398;
  border-radius: 21px;
  background: radial-gradient(ellipse at 50% 25%, #2b5696, #0a2244 68%, #081b35);
  box-shadow: 0 18px 38px #020d2078;
}
.hero-visual img {
  display: block;
  width: min(72%, 344px);
  height: auto;
  mix-blend-mode: lighten;
}
.hero-visual figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  padding: 36px 16px 6px;
  background: linear-gradient(transparent, #06162df5 65%);
  color: #e4effc;
  font-size: 13px;
  font-weight: 650;
}
.hero-visual a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: white;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero-visual a .icon { width: 16px; height: 16px; }
.hero-visual a:focus-visible { outline-offset: 0; }

.app-preview { background: #f5f9ff; }
.app-preview .wrap { max-width: 960px; }
.app-preview-options { display: none; }
.app-preview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.app-preview-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d6e5f6;
  border-radius: 17px;
  background: white;
  box-shadow: 0 8px 24px #0d2a5010;
}
.app-preview-card a {
  display: block;
  padding-top: 13px;
  background: radial-gradient(ellipse at 50% 18%, #18395e, #071a33 75%);
}
.app-preview-card a:focus-visible { outline: 3px solid #1679ff; outline-offset: -3px; }
.app-preview-card img {
  display: block;
  width: min(65%, 180px);
  height: auto;
  margin: auto;
  mix-blend-mode: lighten;
}
.app-preview-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 16px;
  margin-top: 13px;
  color: #0a1b3b;
  background: white;
  font-size: 15px;
  font-weight: 800;
}
.preview-enlarge {
  color: #155dc6;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.app-preview-dialog {
  max-width: min(440px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 10px;
  border: 1px solid #42618a;
  border-radius: 16px;
  background: #061833;
  color: white;
}
.app-preview-dialog::backdrop { background: #031024d9; }
.app-preview-dialog-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 4px 8px;
}
.app-preview-dialog-bar h2 { margin: 0; font-size: 17px; }
.app-preview-dialog-bar button {
  min-height: 44px;
  padding: 6px 11px;
  border: 1px solid #6687b3;
  border-radius: 8px;
  color: white;
  background: #183657;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.app-preview-dialog-bar button:focus-visible { outline-color: #ffc927; }
.app-preview-dialog img {
  display: block;
  width: auto;
  height: auto;
  max-height: calc(100dvh - 100px);
  margin: auto;
  object-fit: contain;
}

@media (max-width: 730px) {
  .hero-visual { height: clamp(200px, 59vw, 295px); padding-top: 12px; border-radius: 16px; }
  .hero-visual img { width: min(75%, 312px); }
  .hero-visual figcaption { padding: 26px 12px 4px; }
  .app-preview-list { grid-template-columns: 1fr; }
  .app-preview-list.is-switchable .app-preview-card:not(.is-selected) { display: none; }
  .app-preview-options:not([hidden]) {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
  }
  .app-preview-options button {
    min-height: 44px;
    padding-inline: 11px;
    border: 1px solid #cdddf1;
    border-radius: 9px;
    color: #26446b;
    background: white;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
  }
  .app-preview-options button[aria-pressed="true"] { background: #155dc6; border-color: #155dc6; color: white; }
  .app-preview-card img { width: min(60%, 184px); }
}
