/* 제품 상세 페이지 전용 스타일 (home.css 위에 추가로 로드) */

.pd-hero { padding: 48px 0 20px; }

.pd-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

.pd-back {
    display: inline-block;
    margin-bottom: 22px;
    color: #5b6b80;
    font-size: 14px;
    font-weight: 600;
}

.pd-back:hover { color: var(--blue); }

.pd-hero h1 {
    font-size: clamp(38px, 4.6vw, 62px);
    line-height: 1.12;
    letter-spacing: -0.04em;
    font-weight: 800;
    margin-bottom: 16px;
}

.pd-hero .lede { max-width: 520px; }

.pd-hero .tags { margin: 0 0 26px; }

.pd-visual {
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
    border: 1px solid #edf2f7;
}

.pd-visual img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.pd-visual.contain img {
    object-fit: contain;
    padding: 18px;
    background: #f6f4ee;
}

.pd-panel .section-head { margin-bottom: 30px; }

.pd-lead {
    max-width: 780px;
    color: #3e4c5f;
    font-size: 16.5px;
    line-height: 1.8;
}

.pd-grid {
    display: grid;
    gap: 16px;
}

.pd-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pd-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pd-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pd-grid.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.pd-card {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 18px;
    padding: 24px 22px;
    box-shadow: var(--shadow);
}

.pd-card .num {
    display: inline-block;
    color: var(--blue);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.pd-card h3 {
    font-size: 19px;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.pd-card p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.7;
}

.pd-card .record-list { margin-top: 12px; }

.pd-card.soft {
    background: #f7faff;
    box-shadow: none;
}

.pd-sub {
    margin: 34px 0 16px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #93a4b8;
}

.pd-sub:first-of-type { margin-top: 0; }

/* 공간 갤러리 */
.space-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.space-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.space-item {
    border: 1px solid #edf2f7;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}

.space-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #e8eef5;
}

.space-item div { padding: 12px 14px 14px; }
.space-item strong { display: block; font-size: 15px; letter-spacing: -0.01em; }
.space-item span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* 처리 흐름 */
.flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
    counter-reset: step;
}

.flow li {
    position: relative;
    background: #f7faff;
    border: 1px solid #e3ecfb;
    border-radius: 16px;
    padding: 18px 16px 16px;
    counter-increment: step;
}

.flow li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 10px;
}

.flow strong { display: block; font-size: 15px; margin-bottom: 4px; }
.flow span { color: var(--muted); font-size: 13px; line-height: 1.55; display: block; }
.flow em { display: block; margin-top: 8px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--blue); }

/* 비교 */
.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.compare .pd-card.old { background: #f8fafc; box-shadow: none; }
.compare .pd-card.new { border-color: #cfe0ff; background: #f5f9ff; }
.compare h3 small { display: block; font-size: 12px; letter-spacing: 0.08em; color: #93a4b8; margin-bottom: 4px; }
.compare .pd-card.new h3 small { color: var(--blue); }

/* 말풍선 / 후기 */
.quote-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.quote {
    background: #f5f9ff;
    border: 1px solid #e3ecfb;
    border-radius: 18px;
    padding: 20px 18px;
    color: #243246;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 600;
}

.persona dl { display: grid; gap: 8px; margin-top: 14px; }
.persona dt { font-size: 12px; font-weight: 800; color: var(--blue); letter-spacing: 0.04em; }
.persona dd { color: #3e4c5f; font-size: 14px; line-height: 1.6; margin-bottom: 4px; }
.persona .sample {
    background: #f4f7fb;
    border-radius: 14px;
    padding: 12px 14px;
    color: #243246;
    font-size: 14px;
    margin-top: 10px;
}

/* 앱 화면 */
.shots {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.shots figure {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 20px;
    padding: 12px;
    box-shadow: var(--shadow);
}

.shots img { height: 420px; width: auto; border-radius: 12px; }
.shots img.wide { height: 360px; }
.shots figcaption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; font-weight: 600; }

/* 영상 */
.video-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 20px;
    overflow: hidden;
    background: #0b1220;
    box-shadow: var(--shadow);
}

.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 하단 CTA */
.pd-cta {
    width: min(1240px, calc(100% - 40px));
    margin: 18px auto 0;
    border-radius: 32px;
    padding: 48px 44px;
    background: linear-gradient(120deg, #0f2a5f 0%, #1f4fc2 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.pd-cta h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; line-height: 1.35; }
.pd-cta p { color: rgba(255, 255, 255, 0.78); margin-top: 6px; }
.pd-cta .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-cta .btn-primary { background: #fff; color: #1d4ed8; box-shadow: none; }
.pd-cta .btn-primary:hover { background: #eaf1ff; }
.pd-cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }

.pd-note { margin-top: 18px; color: var(--soft); font-size: 13px; }

@media (max-width: 1100px) {
    .pd-hero-grid { grid-template-columns: 1fr; }
    .pd-visual img { height: 340px; }
    .pd-grid.c4,
    .pd-grid.c5,
    .space-grid,
    .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .space-grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flow { grid-template-columns: 1fr 1fr; }
    .shots { flex-wrap: nowrap; gap: 12px; }
    .shots img { height: 300px; }
    .shots img.wide { height: 260px; }
}

@media (max-width: 860px) {
    .pd-grid.c2,
    .pd-grid.c3,
    .pd-grid.c4,
    .pd-grid.c5,
    .space-grid,
    .space-grid.c3,
    .quote-grid,
    .compare,
    .flow { grid-template-columns: 1fr; }
    .pd-cta { flex-direction: column; align-items: flex-start; padding: 34px 22px; width: min(1240px, calc(100% - 20px)); }
    .shots { flex-wrap: wrap; }
    .shots img { height: 340px; }
    .shots figure { max-width: 100%; }
    .shots img.wide { height: auto; width: 100%; }
}
