/* Landing page custom styles */
.vp-hero-description {
    max-width: 50rem;
    color: var(--vp-c-text-mute);
    font-size: 1.6rem;
    line-height: 1.3;
}

.theme-default-content {
  max-width: 1000px;
}

.landing-visual {
  margin: 2rem 0 1rem;
}
.landing-visual .visual-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  gap: 1.5rem;
}
.landing-visual .visual-left {
  width: 100%;
  border-radius: 12px;
}
.landing-visual .visual-right {
  width: 100%;
  background: transparent;
  overflow: visible;
}
.landing-visual .visual-arrow {
  width: 120px;
  opacity: .7;
}

/* Right-side stacked screenshots */
.right-stack {
  position: relative;
  min-height: 360px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: visible;
}
.right-stack img {
  width: 60%;
  border-radius: 0;
  border: none;
  background: transparent;
  outline: none;
  background-color: transparent !important;
}
.right-stack .stack-back {
  position: absolute;
  right: -2%;
  top: -82px;
  transform: translate(0, 0);
  z-index: 1;
  opacity: 0.8;
}
.right-stack .stack-front {
  position: absolute;
  left: 2%;
  bottom: -82px;
  transform: translate(0, 0);
  z-index: 2;
}

.landing-cta {
  text-align: center;
}

.landing-cta + .landing-cta {
  margin-bottom: 60px;
}

.landing-cta h3 {
  font-size: 1.8rem;
}

.vp-hero-action-button.primary,
.landing-cta .btn-primary {
  display: inline-block;
  box-sizing: border-box;
  min-width: 92px;
  padding: 0.58rem 1.28rem;
  border: 1px solid #2F4F4F;
  border-radius: 8px;
  background: #2F4F4F;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none !important;
  text-align: center;
  box-shadow: 0 2px 6px rgba(47,86,82,.12);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.vp-hero-action-button.primary:hover,
.landing-cta .btn-primary:hover {
  border-color: #2f504d;
  background: #2f504d;
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(47,86,82,.16);
}

.cta-text {
  color: var(--vp-c-text-mute);
  margin-bottom: 20px;
}

.landing-footer-grid .grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.landing-footer-grid h3,
.landing-footer-grid h4 {
  margin: 0 0 .6rem 0;
}
.landing-footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.landing-footer-grid li { margin: .2rem 0; }

@media (max-width: 700px) {
  .landing-visual .visual-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .landing-visual .visual-arrow { display: none; }
  .landing-visual .visual-left {
    display: block;
    width: min(100%, 420px);
    margin: 0 auto;
  }
  .landing-visual .visual-right {
    display: flex;
    justify-content: center;
  }
  .right-stack {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
  }
  .right-stack img { 
    position: relative; 
    width: min(100%, 320px);
    margin: 0;
  }
  .right-stack .stack-back, 
  .right-stack .stack-front {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    margin: 0;
  }
  .right-stack .stack-front { order: 1; }
  .right-stack .stack-back { order: 2; }
  .landing-footer-grid .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Footer link styles */
.landing-footer-grid a {
  color:#808080;
  font-weight: 400;
  text-decoration:none !important;
}

.chapter {
  font-weight: 500;
  font-size: large;
}

.landing-footer-grid a:hover {
  opacity: 0.7;
}

.landing-site-footer {
  padding: 2.5rem;
  border-top: 1px solid #e1e1e2;
  color: var(--vp-c-text-mute);
  text-align: center;
}

.landing-site-footer .footer-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.landing-site-footer .footer-sep {
  color: var(--vp-c-text-mute);
}

@media (min-width: 701px) {
  .landing-site-footer {
    position: relative;
    left: 50%;
    width: min(1280px, calc(100vw - 4rem));
    transform: translateX(-50%);
    box-sizing: border-box;
  }
}

@media (max-width: 500px) {
  .landing-footer-grid .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .landing-site-footer {
    position: relative;
    left: 50%;
    width: calc(100vw - 1.5rem);
    padding: 2rem 0.75rem;
    transform: translateX(-50%);
    box-sizing: border-box;
  }

  .landing-site-footer .footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  .landing-site-footer .footer-sep {
    display: none;
  }
}
