/* The two faces share one fixed card footprint so the deck turns without shifting the hero. */
.hero-visual {
  width: min(100%, 440px);
  padding: 0;
  margin: 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  position: relative;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8px -9px -8px 9px;
  border: 0;
  border-radius: 25px;
  background: #a9c3ff;
  transform: rotate(-2deg);
  z-index: -1;
}

.hero-visual .demo-card {
  min-height: 365px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
  perspective: 1400px;
  display: block;
}

.hero-visual .demo-card-inner {
  position: relative;
  width: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform var(--motion-card) var(--motion-ease);
}

.hero-visual .demo-card.is-flipped .demo-card-inner {
  transform: rotateY(180deg);
}

.hero-visual .demo-card-face {
  position: absolute;
  inset: 0;
  padding: 27px 28px 25px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 38px #0a328336;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-visual .demo-card-back {
  transform: rotateY(180deg);
  pointer-events: none;
}

.hero-visual .demo-card.is-flipped .demo-card-front {
  pointer-events: none;
}

.hero-visual .demo-card.is-flipped .demo-card-back {
  pointer-events: auto;
}

.hero-visual .card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15px;
  color: #65738d;
}

.hero-visual .card-content {
  margin-top: 57px;
}

.hero-visual .card-content h2 {
  margin: 0 0 7px;
  color: #101c35;
  font-size: clamp(34px, 3.5vw, 39px);
  font-weight: 750;
  letter-spacing: -1.3px;
  line-height: 1.2;
}

.hero-visual .card-content p {
  margin: 0;
  min-height: 0;
  color: #65738d;
  font-size: 13px;
  line-height: 1.5;
}

.hero-visual .demo-card-face [data-flip] {
  width: auto;
  min-height: 42px;
  margin-top: 25px;
  padding: 10px 24px;
  border-radius: 12px;
  background: #edf2ff;
  box-shadow: none;
  color: #2458e6;
  font-size: 13px;
  gap: 0;
}

.hero-visual .demo-card-face [data-flip]:hover { background: #dfe9ff; }

.hero-visual .visual-bottom {
  align-self: center;
  margin-top: auto;
  gap: 10px;
  text-align: center;
}

.hero-visual .check {
  width: 25px;
  height: 25px;
  background: #f1faf5;
  color: #20bb65;
  font-size: 13px;
}

.hero-visual .visual-bottom p { margin: 0; line-height: 1.35; }
.hero-visual .visual-bottom strong { color: #17233b; font-size: 12px; font-weight: 650; }

@media (max-width: 900px) {
  .hero-visual { width: min(100%, 410px); max-width: 410px; }
  .hero-visual .demo-card { min-height: 350px; }
  .hero-visual .demo-card-face { padding: 25px 23px 24px; }
  .hero-visual .card-content { margin-top: 49px; }
  .hero-visual .demo-card-face [data-flip] { width: auto; min-height: 44px; padding-inline: 22px; }
}

@media (max-width: 700px) {
  .hero-visual .demo-card { min-height: 320px; }
  .hero-visual .demo-card-face { padding-block: 22px 20px; }
  .hero-visual .card-content { margin-top: 36px; }
  .hero-visual .demo-card-face [data-flip] { margin-top: 20px; }
}

@media (max-width: 480px) {
  .hero-visual { width: min(100% - 10px, 380px); }
  .hero-visual .demo-card { min-height: 300px; }
  .hero-visual .demo-card-face { padding: 20px 18px 18px; }
  .hero-visual .card-content { margin-top: 30px; }
  .hero-visual .card-content h2 { font-size: 34px; }
  .hero-visual .demo-card-face [data-flip] { font-size: 13px; }
  .hero-visual .visual-bottom strong { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual .demo-card-inner { transition-duration: 0.01ms; }
}
