.app-page {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)) var(--space-page) clamp(3rem, 7vw, 5.5rem);
  background: var(--background-dark);
  color: var(--text-on-dark);
}

.app-card {
  width: min(72rem, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3.4rem);
  border: 1px solid var(--border-on-dark);
}

.app-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-mark {
  display: block;
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 1.25rem;
}

.app-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.app-copy .display {
  font-size: clamp(2.6rem, 4.4vw, 4rem);
}

.app-subtitle {
  margin-top: 0.7rem;
  color: var(--accent-soft);
  font-size: 1.05rem;
}

.app-text {
  max-width: 34ch;
  margin: 1rem 0 0;
  color: var(--text-on-dark-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.app-stores {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  width: min(16rem, 100%);
  margin-top: 1.7rem;
}

.app-store {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.9rem;
  background: rgba(243, 238, 230, 0.08);
  color: var(--text-on-dark);
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

.app-store:hover {
  background: var(--text-on-dark);
  color: var(--background-dark);
}

.app-store-mark {
  display: flex;
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
}

.app-store-mark svg {
  width: 100%;
  height: 100%;
}

.app-store-label,
.app-store-name {
  display: block;
  font-family: var(--font-sans);
  text-align: left;
  white-space: nowrap;
}

.app-store-label {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-on-dark-muted);
  transition: color 0.5s var(--ease);
}

.app-store-name {
  margin-top: 0.2rem;
  font-size: 0.95rem;
  line-height: 1;
}

.app-store:hover .app-store-label {
  color: var(--text-muted);
}

.app-phone {
  display: flex;
  justify-content: center;
}

.app-device {
  position: relative;
  width: min(16.25rem, 100%);
  aspect-ratio: 9 / 18.6;
  padding: 0.55rem;
  border-radius: 1.8rem;
  background: #0e0c0a;
  border: 1px solid rgba(243, 238, 230, 0.22);
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.28);
}

.app-device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.35rem;
}

.app-device-island {
  position: absolute;
  z-index: 1;
  top: 0.85rem;
  left: 50%;
  width: 28%;
  height: 0.7rem;
  border-radius: 999px;
  background: #0e0c0a;
  transform: translateX(-50%);
}

@media (max-width: 860px) {
  .app-card {
    grid-template-columns: 1fr;
    padding: 1.6rem 1.2rem 1.8rem;
  }

  .app-device {
    width: min(12.5rem, 70%);
  }
}
