/* 꿈현시 상세 — 1:1 시스템, 프로그램, 운영 실적, 혜택 */
/* ---------- 4. 1:1 시스템 ---------- */
.system {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}

.system-points {
  display: grid;
  gap: 22px;
  margin-top: 36px;
}

.system-points li {
  display: flex;
  gap: 16px;
}

.system-points .n {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--cta);
  font-size: var(--text-xs);
  font-weight: 800;
}

.system-points b {
  display: block;
  font-size: var(--text-h3);
  letter-spacing: -0.03em;
}

.system-points p {
  margin-top: 2px;
  color: var(--ink-2);
  font-size: var(--text-small);
}

.planner {
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--gray-100), var(--shadow-lift);
}

.planner-kicker {
  color: var(--cta);
  font-size: var(--text-xs);
  font-weight: 700;
}

.planner h3 {
  margin-top: 6px;
  font-size: 1.375rem;
}

.planner-group {
  min-width: 0;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.planner-group legend {
  margin-bottom: 10px;
  padding: 0;
  color: var(--ink-3);
  font-size: var(--text-xs);
  font-weight: 600;
}

.planner-group .chip span {
  min-width: 52px;
  justify-content: center;
}

.planner-group .chip input:checked + span {
  background: var(--cta);
}

.planner-result {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--brand-soft);
}

.planner-result img {
  flex: 0 0 56px;
  width: 56px;
}

.planner-result p {
  color: var(--ink-2);
  font-size: var(--text-lead);
  line-height: 1.45;
}

.planner-result b,
.planner-result span {
  color: var(--brand);
  font-weight: 700;
}

.planner-result [data-planner-out] {
  display: inline-block;
}

.planner-result .bump {
  animation: bump 420ms var(--ease-spring);
}

@keyframes bump {
  from {
    transform: translateY(6px);
    opacity: 0.2;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .system {
    grid-template-columns: 1fr;
  }
}

/* ---------- 5. 프로그램 벤토 ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* 사진 두 장(강의·실습)이 카드와 엇갈려 놓인다: [강의][카드][카드] / [카드][카드][실습] */
.bento-photo {
  position: relative;
  grid-column: span 2;
  min-height: 280px;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand);
}

.bento-photo.is-lecture img {
  object-position: 28% 50%;
}

.bento-photo.is-practice img {
  object-position: 50% 35%;
}

.bento-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out-expo);
}

.bento-photo:hover img {
  transform: scale(1.04);
}

.bento-photo figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 64px 24px 20px;
  background: linear-gradient(0deg, rgba(12, 27, 54, 0.85), transparent);
  color: var(--white);
  font-size: var(--text-h3);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.bento-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.bento-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  object-fit: contain;
}

.bento-card .tag {
  color: var(--cta);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.bento-card h3 {
  margin: 4px 0 12px;
  font-size: 1.1875rem;
}

.bento-card li {
  position: relative;
  padding-left: 14px;
  color: var(--ink-2);
  font-size: var(--text-small);
  line-height: 1.6;
}

.bento-card li + li {
  margin-top: 4px;
}

.bento-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.bento-note {
  margin-top: 22px;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--gray-200);
  color: var(--ink-2);
}

.bento-note b {
  color: var(--brand);
}

@media (max-width: 1024px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-photo {
    min-height: 0;
    aspect-ratio: 2.4 / 1;
  }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .bento-photo {
    grid-column: auto;
    aspect-ratio: 16 / 10;
  }

  .bento-photo.is-lecture img {
    object-position: 42% 50%;
  }

  .bento-photo figcaption {
    padding: 48px 18px 16px;
    font-size: 1.0625rem;
  }

  .bento-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 16px;
    padding: 20px;
  }

  .bento-card img {
    grid-row: span 3;
    width: 56px;
    height: 56px;
    margin: 0;
  }
}

/* ---------- 6. 운영 실적 ---------- */
.records {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.record {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
}

.record strong {
  display: block;
  color: var(--brand);
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.record:nth-child(-n + 2) strong {
  color: var(--cta);
}

.record p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: var(--text-small);
}

.record p b {
  color: var(--brand);
}

.record.has-art img {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.live-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 12px;
  padding: 22px 24px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.live {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 700;
}

.live-card p {
  color: var(--ink-2);
  font-size: var(--text-small);
}

@media (max-width: 1024px) {
  .records {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .records {
    grid-template-columns: 1fr;
  }

  .live-card {
    flex-direction: column;
    gap: 12px;
  }
}

/* ---------- 7. 혜택 ---------- */

/* 카핑컷 30만 원 지원 — 뜯어 쓰는 쿠폰 모양으로 가장 먼저 눈에 띄게 */
.coupon {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  margin-bottom: 6px;
  border-radius: 28px;
  background: radial-gradient(120% 140% at 0% 0%, #2f5be0 0%, #14284b 55%, #0c1b36 100%);
  box-shadow: 0 24px 60px rgba(20, 40, 75, 0.28);
  color: var(--white);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal) ease,
    opacity var(--duration-slow) var(--ease-out-expo);
}

.coupon:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(20, 40, 75, 0.34);
}

/* 지나가는 빛 */
.coupon::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.16) 50%, transparent 62%);
  transform: translateX(-110%);
  pointer-events: none;
}

.coupon.is-in::after {
  animation: coupon-shine 6s ease-in-out 0.8s infinite;
}

@keyframes coupon-shine {
  0% {
    transform: translateX(-110%);
  }
  22%,
  100% {
    transform: translateX(110%);
  }
}

.coupon-main {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem) clamp(1.375rem, 1rem + 2vw, 2.5rem);
}

.coupon-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(226, 182, 91, 0.18);
  color: #f1cf86;
  font-size: var(--text-xs);
  font-weight: 700;
}

.coupon-kicker {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--text-lead);
  font-weight: 700;
}

.coupon-amount {
  margin-top: 2px;
  font-size: clamp(3rem, 2rem + 4.2vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.coupon-amount span {
  color: #f1cf86;
  font-variant-numeric: tabular-nums;
}

.coupon-amount small {
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.coupon-desc {
  margin-top: 14px;
  max-width: 30em;
  color: rgba(255, 255, 255, 0.84);
}

.coupon-what {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-small);
}

.coupon-what b {
  color: #f1cf86;
}

.coupon-art {
  position: absolute;
  right: 22px;
  top: 22px;
  width: clamp(84px, 60px + 5vw, 132px);
  transform: rotate(10deg);
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.35));
  animation: e-float 5s ease-in-out infinite;
}

.coupon-stub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 22px;
  border-left: 2px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

/* 쿠폰 절취선 양 끝의 둥근 홈 (섹션 바탕색과 같은 원) */
.coupon-stub::before,
.coupon-stub::after {
  content: '';
  position: absolute;
  left: -15px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-50);
}

.coupon-stub::before {
  top: -14px;
}

.coupon-stub::after {
  bottom: -14px;
}

.stub-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-xs);
  font-weight: 600;
}

.stub-label.strong {
  margin-top: 14px;
  color: #f1cf86;
  font-weight: 700;
}

.coupon-stub s {
  position: relative;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.125rem;
  text-decoration: none;
}

.coupon-stub s::after {
  content: '';
  position: absolute;
  left: -3px;
  right: -3px;
  top: 52%;
  height: 2px;
  background: #ff8a8a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out-expo) 0.5s;
}

.coupon.is-in .coupon-stub s::after,
.no-js .coupon-stub s::after {
  transform: scaleX(1);
}

.coupon-stub b {
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 2.875rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.btn-gold {
  margin-top: 18px;
  background: var(--gold);
  color: var(--brand-deep);
}

.btn-gold:hover {
  background: #ecc777;
}

@media (max-width: 640px) {
  .coupon {
    grid-template-columns: 1fr;
  }

  .coupon-main {
    padding-right: 110px;
  }

  .coupon-what,
  .coupon-desc {
    margin-right: -88px;
  }

  .coupon-stub {
    border-left: 0;
    border-top: 2px dashed rgba(255, 255, 255, 0.28);
  }

  .coupon-stub::before {
    top: -15px;
    left: -14px;
  }

  .coupon-stub::after {
    top: -15px;
    bottom: auto;
    left: auto;
    right: -14px;
  }

  .coupon-stub .btn {
    width: 100%;
  }
}

.benefits {
  display: grid;
  gap: 12px;
}

.benefit {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.benefit > img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.benefit.is-key {
  box-shadow: inset 0 0 0 2px var(--cta), var(--shadow-card);
}

.benefit .tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--cta);
  font-size: 0.75rem;
  font-weight: 700;
}

.benefit .tag.gold {
  background: var(--gold-tint);
  color: var(--gold-ink);
}

.benefit h3 {
  margin: 8px 0 6px;
  font-size: var(--text-h3);
}

.benefit p {
  color: var(--ink-2);
  font-size: var(--text-small);
}

.benefit p.muted {
  color: var(--ink-3);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin: 16px 0 12px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--gray-50);
}

.price s {
  position: relative;
  color: var(--ink-3);
  font-size: var(--text-body);
  text-decoration: none;
}

.price s::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 2px;
  background: var(--ink-3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out-expo) 0.5s;
}

.benefit.is-in .price s::after,
.no-js .price s::after {
  transform: scaleX(1);
}

.price b {
  color: var(--cta);
  font-size: clamp(1.625rem, 1.4rem + 0.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.price em {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--gold-tint);
  color: var(--gold-ink);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
}

.benefit-close {
  margin-top: 32px;
  color: var(--ink-2);
  font-size: var(--text-lead);
  text-align: center;
}

.benefit-close b {
  color: var(--brand);
}

@media (max-width: 560px) {
  .benefit {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 20px;
  }

  .benefit > img {
    width: 56px;
    height: 56px;
  }
}
