.rabbit-case #system {
  background: #fff;
}

#system .system-heading {
  display: block;
  text-align: center;
  text-wrap: balance;
}

#system .system-showcase {
  --scene-duration: 300ms;
  --scene-ease: cubic-bezier(.22, .65, .24, 1);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 7vw, 104px);
}

#system .system-scene-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#system .system-scene-card {
  border: 1px solid #e8e8e5;
  border-radius: 14px;
  background: #fafaf9;
  transition: background-color var(--scene-duration), border-color var(--scene-duration);
}

#system .system-scene-card:has([aria-expanded="true"]) {
  border-color: #ecce80;
  background: #fffaf0;
}

#system .system-scene-card button {
  display: block;
  width: 100%;
  min-height: 60px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  padding: 16px 22px;
  text-align: start;
  color: var(--gr-ink);
  font: inherit;
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 600;
  cursor: pointer;
  transition: min-height var(--scene-duration) var(--scene-ease),
    padding-bottom var(--scene-duration) var(--scene-ease);
}

#system .system-scene-card button[aria-expanded="true"] {
  min-height: 46px;
  padding-bottom: 4px;
}

#system .system-scene-detail {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--scene-duration) var(--scene-ease);
}

#system .system-scene-detail[aria-hidden="true"] {
  grid-template-rows: 0fr;
}

#system .system-scene-detail > div {
  min-height: 0;
  overflow: hidden;
}

#system .system-scene-detail p {
  padding: 0 22px 18px;
  margin: 0;
  color: #62625b;
  font-size: 14px;
  line-height: 1.75;
}

.rabbit-case #system .system-showcase-device {
  --device-width: 348px;
  justify-self: center;
}

#system .system-phone-shell {
  padding: 8px;
  border-radius: 43px;
  box-shadow: 0 25px 45px -25px #0004;
}

#system .system-phone-window {
  position: relative;
  aspect-ratio: 390 / 844;
  border-radius: 35px;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
}

.rabbit-case #system .system-phone-screen {
  position: absolute;
  inset: 0;
}

#system .system-phone-screen[aria-hidden="true"] {
  visibility: hidden;
}

#system .system-phone-screen:not([aria-hidden="true"]) {
  animation: system-scene-in var(--scene-duration) var(--scene-ease) both;
}

@keyframes system-scene-in {
  from { opacity: .82; }
  to { opacity: 1; }
}

#system .system-pager {
  display: flex;
  justify-content: center;
  margin-top: 5px;
}

#system .system-pager button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

#system .system-pager button::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: #d2d2cf;
  transition: width var(--scene-duration) var(--scene-ease);
}

#system .system-pager button[aria-current="true"]::after {
  width: 18px;
  background: var(--gr-yellow);
}

#system .system-pager button:focus-visible,
#system .system-scene-card button:focus-visible {
  outline: 2px solid #866000;
  outline-offset: -2px;
}

@media (pointer: coarse) {
  #system .system-pager button {
    width: 24px;
  }
}

@media (max-width: 720px) {
  #system .system-showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .rabbit-case #system .system-showcase-device {
    --device-width: 300px;
  }

  #system .system-phone-shell {
    padding: 6px;
    border-radius: 34px;
  }

  #system .system-phone-window {
    border-radius: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #system .system-showcase {
    --scene-duration: 0ms;
  }
}
