/* PLC IO 체크 모니터링 for MELSEC — 브랜드 색과 제품 전용 규칙.
   공용 셸은 /assets/product.css (부모 소유). 이 파일은 100 워크스페이스 소유다. */

:root {
  --brand: #087f8c;
  --brand-strong: #066775;
  --brand-soft: #e4f6f5;
  --mint: #087f8c;
}

:root[data-theme="dark"] {
  --brand: #5bd3dc;
  --brand-strong: #7ce6ec;
  --brand-soft: #17363b;
  --mint: #55d5bd;
}

.final-actions {
  max-width: 245px;
}

/* PLC IO Check Helper — portrait Android product presentation */
.plc-hero .hero-glow-one {
  background: radial-gradient(circle, rgba(8, 127, 140, .2), transparent 68%);
}

.plc-hero .button-primary {
  box-shadow: 0 12px 30px rgba(8, 127, 140, .24);
}

.brand img {
  box-shadow: 0 7px 18px rgba(8, 127, 140, .2);
}

.plc-visual {
  min-height: 610px;
}

.plc-visual .floating-card {
  z-index: 4;
}

.plc-visual .floating-card-bottom {
  bottom: 76px;
  left: -22px;
}

@media (min-width: 981px) {
  .plc-hero h1 {
    font-size: clamp(2.6rem, 4vw, 3.3rem);
    white-space: nowrap;
  }
}

.phone-stage {
  position: relative;
  width: 100%;
  height: 610px;
}

.phone-frame {
  position: absolute;
  overflow: hidden;
  width: 276px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 85%, transparent);
  border-radius: 30px;
  background: #0b0e13;
  box-shadow: var(--shadow);
}

.phone-frame::after {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 62px;
  height: 16px;
  border-radius: 999px;
  background: rgba(7, 10, 14, .88);
  content: "";
  transform: translateX(-50%);
}

.phone-frame img {
  width: 100%;
}

.phone-frame-back {
  top: 12px;
  right: 8px;
  transform: rotate(4deg);
}

.phone-frame-front {
  bottom: 4px;
  left: 8px;
  z-index: 2;
  transform: rotate(-3deg);
}

.screens-section {
  border-top: 1px solid var(--line);
  background: var(--page-alt);
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.screen-grid figure {
  margin: 0;
}

.screen-grid figure > div {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: #0c1015;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}

.screen-grid figure:hover > div {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.screen-grid img {
  width: 100%;
}

.screen-grid figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 4px 0;
}

.screen-grid figcaption strong {
  font-size: .92rem;
}

.screen-grid figcaption span {
  color: var(--muted);
  font-size: .76rem;
}

.import-panel {
  display: grid;
  min-height: 240px;
  align-content: center;
  justify-items: center;
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
  border-radius: 20px;
  background: linear-gradient(145deg, var(--surface), var(--brand-soft));
  color: var(--muted);
  text-align: center;
}

.import-panel span {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.import-panel strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.import-panel i {
  width: 56px;
  height: 2px;
  background: var(--brand);
}

@media (max-width: 980px) {
  .plc-visual {
    width: min(570px, 94%);
  }

  .screen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
}

@media (max-width: 740px) {
  .plc-visual,
  .phone-stage {
    min-height: 470px;
    height: 470px;
  }

  .phone-frame {
    width: min(215px, 61vw);
    border-radius: 23px;
  }

  .phone-frame-back {
    right: 0;
  }

  .phone-frame-front {
    left: 0;
  }

  .screen-grid {
    gap: 24px 12px;
  }

  .screen-grid figure > div {
    border-radius: 16px;
  }

  .screen-grid figcaption {
    padding-top: 11px;
  }

  .screen-grid figcaption span {
    font-size: .7rem;
  }
}
