/* odssi lab shop 상세페이지 v2 (2026-11-03)
   shop.css 위에 얹는다. body.pdp 안에서만 쓴다.
   - 먹색 테두리를 쓰지 않는다: 면은 옅은 바탕색과 부드러운 그림자로 나눈다
   - 섹션마다 크게 비우고, 글은 짧게·가운데 폭을 좁게 */

.pdp {
  --lilac-deep: #6f56d6;
  --mint-soft: #ecfaf5;
  --pink-soft: #fff0f4;
  --shadow-sm: 0 1px 2px rgba(50, 51, 41, .06), 0 4px 14px rgba(50, 51, 41, .06);
  --shadow-lg: 0 2px 6px rgba(50, 51, 41, .06), 0 18px 48px rgba(50, 51, 41, .12);
  --sec-pad: clamp(72px, 11vw, 128px);
}

/* ---------- 위쪽: 갤러리 + 구매 칸 ---------- */
.pdp .product { padding: 20px 0 clamp(48px, 8vw, 80px); gap: 28px; }
@media (min-width: 860px) { .pdp .product { gap: 56px; padding-top: 36px; } }
.pdp .gallery-main { border: 0; border-radius: 24px; box-shadow: var(--shadow-lg); }
.pdp .gallery-thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.pdp .gallery-thumbs button { border: 0; border-radius: 12px; box-shadow: var(--shadow-sm); transition: transform .15s ease; }
.pdp .gallery-thumbs button:hover { transform: translateY(-2px); }
.pdp .gallery-thumbs button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--lilac); }
.pdp .gallery-thumbs .play { background: rgba(50, 51, 41, .6); }
.pdp .gallery-note { margin-top: 12px; }

.pdp .buy-panel .kicker { background: var(--lilac-soft); color: var(--lilac-deep); padding: 5px 12px; margin-bottom: 16px; }
.pdp .buy-panel h1 { font-size: clamp(28px, 4.6vw, 40px); line-height: 1.22; letter-spacing: -0.03em; margin-bottom: 16px; }
.pdp .buy-panel .lead { font-size: 17px; line-height: 1.75; margin-bottom: 22px; }
.pdp .chips { gap: 8px; margin-bottom: 24px; }
.pdp .chips span { border: 0; background: var(--box-gray); padding: 6px 12px; font-weight: 600; }
.pdp .price { padding: 18px 0; margin-bottom: 20px; border-color: var(--border); }
.pdp .price b { font-size: 34px; }
.pdp .price .free { border: 0; background: var(--lilac-soft); color: var(--lilac-deep); }
.pdp .spec { gap: 12px; margin-bottom: 24px; }
.pdp .spec li { grid-template-columns: 84px minmax(0, 1fr); }
.pdp .buy-btn { min-height: 60px; border-radius: 16px; font-size: 18px; box-shadow: 0 6px 18px rgba(143, 117, 255, .28); }
.pdp .buy-fine { margin-top: 12px; }

/* ---------- 본문 섹션 공통 ---------- */
.pdp-sec { padding-block: var(--sec-pad); }
.pdp-sec.tint { background: var(--lilac-soft); }
.pdp-sec.white { background: var(--surface); }
.pdp-in { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.pdp-head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); }
.pdp-label { display: inline-block; margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--lilac-deep); }
.pdp-h2 { margin: 0; font-size: clamp(28px, 5.4vw, 44px); line-height: 1.3; letter-spacing: -0.035em; text-wrap: balance; }
.pdp-h2 em { font-style: normal; color: var(--lilac-deep); }
.pdp-sub { margin: 18px auto 0; max-width: 34em; font-size: clamp(16px, 2.2vw, 18px); line-height: 1.8; color: var(--ink-soft); text-wrap: pretty; }
.pdp-h3 { margin: 0 0 10px; font-size: clamp(21px, 3.2vw, 26px); line-height: 1.35; letter-spacing: -0.02em; }
.pdp-p { margin: 0; font-size: 17px; line-height: 1.8; color: var(--ink-soft); }
.pdp-note { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

/* 세로 영상 틀(폰 화면처럼, 테두리 없이 그림자만) */
.phone { position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 30px; overflow: hidden; background: var(--box-gray); box-shadow: var(--shadow-lg); }
.phone video, .phone img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone.sm { width: min(240px, 62vw); border-radius: 24px; }
.sound-btn { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-sm); }

/* ---------- 소개: 세 단계 ---------- */
.flow { list-style: none; margin: 0 auto; padding: 0; max-width: 880px; display: grid; gap: 16px; counter-reset: flow; }
@media (min-width: 720px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.flow li { counter-increment: flow; background: var(--surface); border-radius: 22px; padding: 28px 24px; text-align: center; box-shadow: var(--shadow-sm); }
.flow li::before { content: counter(flow); display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 50%; background: var(--lilac); font-size: 18px; font-weight: 800; }
.flow b { display: block; font-size: 19px; margin-bottom: 6px; letter-spacing: -0.02em; }
.flow span { display: block; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }

/* ---------- 샘플 영상 자리 ---------- */
.sample-slot { height: 100%; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; background: repeating-linear-gradient(-45deg, var(--lilac-soft), var(--lilac-soft) 12px, #ece6ff 12px, #ece6ff 24px); }

/* ---------- 고르기: 레이아웃·디자인·컬러 ---------- */
.choose { display: grid; gap: clamp(56px, 9vw, 96px); }
.choose-row { display: grid; gap: 24px; }
.choose-row > header { text-align: center; }
.choose-row .step-no { display: inline-block; margin: 0 0 10px; font-size: 14px; font-weight: 800; color: var(--lilac-deep); }

.layouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 4vw, 40px); max-width: 560px; margin: 0 auto; }
.layout-card { text-align: center; }
.layout-card .scr { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #d9d4c8; box-shadow: var(--shadow-sm); }
.scr .vid { position: absolute; inset: 0; background: linear-gradient(160deg, #cfc7b8, #b9b1a2); }
.scr .face { position: absolute; left: 50%; top: 38%; width: 34%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(255, 255, 255, .42); }
.scr .body { position: absolute; left: 50%; top: 62%; width: 64%; height: 40%; border-radius: 50% 50% 0 0; transform: translateX(-50%); background: rgba(255, 255, 255, .3); }
.scr .cap { position: absolute; left: 50%; transform: translateX(-50%); height: 7%; border-radius: 6px; background: var(--lilac); }
.scr .cap.title { top: 10%; width: 62%; background: #fff; }
.scr .cap.speech { top: 70%; width: 56%; height: 5.5%; }
.scr.info { background: #f6dfe8; }
.scr.info .band { position: absolute; left: 0; right: 0; height: 21.875%; background-image: radial-gradient(#f2b6cb 18%, transparent 20%); background-size: 16px 16px; }
.scr.info .band.top { top: 0; }
.scr.info .band.bot { bottom: 0; }
.scr.info .vid { inset: 21.875% 0; }
.scr.info .cap.title { top: 6.5%; z-index: 2; }
.scr.info .cap.speech { top: 68%; }
.layout-card b { display: block; margin-top: 16px; font-size: 18px; }
.layout-card span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

.designs { display: grid; gap: 16px; }
@media (min-width: 820px) { .designs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.design-card { border-radius: 24px; padding: 28px 22px 24px; background: var(--surface); box-shadow: var(--shadow-sm); display: grid; gap: 18px; align-content: start; }
.design-card .swatch { display: grid; gap: 14px; justify-items: center; align-content: center; min-height: 230px; padding: 22px 14px; border-radius: 18px; }
.design-card.cute .swatch { background: #fff4f8 radial-gradient(#ffd3e4 14%, transparent 16%) 0 0 / 22px 22px; }
.design-card.emo .swatch { background: #2c2824; }
.design-card.mini .swatch { background: #f3f3f0; }
.design-card .swatch img { width: auto; max-width: 100%; height: auto; max-height: 62px; object-fit: contain; }
.design-card .swatch img.big { max-height: 92px; }
.design-card b { display: block; font-size: 20px; letter-spacing: -0.02em; }
.design-card p { margin: 6px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }

.colors-wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) { .colors-wrap { grid-template-columns: auto minmax(0, 1fr); gap: 56px; max-width: 900px; margin: 0 auto; } }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; max-width: 360px; margin-inline: auto; }
.swatches li { display: grid; justify-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.swatches i { display: block; width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(50, 51, 41, .08); }
.swatches .mono i { background: linear-gradient(135deg, #fff 0 50%, #3a3a35 50% 100%); }
.swatches .custom i { background: conic-gradient(#ffa59a, #fff2a6, #b8ffee, #b5dcff, #c9b8ff, #ffb3ec, #ffa59a); }
.colors-text { text-align: center; }
@media (min-width: 820px) { .colors-text { text-align: left; } .swatches { margin-inline: 0; } }
.colors-pair { display: flex; justify-content: center; gap: clamp(14px, 4vw, 28px); }

/* ---------- 기능: 영상 + 글 번갈아 ---------- */
.feature { display: grid; gap: 32px; align-items: center; }
.feature + .feature { margin-top: clamp(72px, 11vw, 120px); }
@media (min-width: 820px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; max-width: 920px; margin-inline: auto; }
  .feature.flip .feature-media { order: 2; }
}
.feature-text { text-align: center; }
@media (min-width: 820px) { .feature-text { text-align: left; } }
.feature .num { display: block; margin: 0 0 8px; font-size: clamp(44px, 8vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--lilac-deep); }
.feature .num small { font-size: .42em; margin-left: 4px; letter-spacing: 0; }
.feature ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-soft); }
.feature li::before { content: "·"; margin-right: 6px; color: var(--lilac-deep); font-weight: 800; }

/* ---------- 숫자 띠 ---------- */
.stats { list-style: none; margin: 0 auto; padding: 0; max-width: 920px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; text-align: center; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.stats b { display: block; font-size: clamp(36px, 6vw, 52px); font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; }
.stats span { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
.stats li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 720px) { .stats li:last-child:nth-child(odd) { grid-column: auto; } }

/* ---------- 이런 분께 ---------- */
.fit { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; display: grid; gap: 14px; }
.fit li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; background: var(--surface); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow-sm); }
.fit li::before { content: ""; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; background: var(--lilac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23323329' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.fit b { display: block; font-size: 17px; margin-bottom: 4px; }
.fit span { display: block; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }

/* ---------- 말로 고치기: 대화 ---------- */
.chat { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; }
.chat p { margin: 0; max-width: 82%; padding: 14px 18px; font-size: 16px; line-height: 1.6; border-radius: 22px; box-shadow: var(--shadow-sm); }
.chat .me { justify-self: end; background: var(--lilac); border-bottom-right-radius: 6px; }
.chat .ai { justify-self: start; background: var(--surface); border-bottom-left-radius: 6px; color: var(--ink-soft); }
.chat .ai b { color: var(--ink); }
.chat .gap { height: 8px; box-shadow: none; padding: 0; }

/* ---------- 시작하기 ---------- */
.start { max-width: 680px; margin: 0 auto; list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: st; }
.start > li { counter-increment: st; position: relative; background: var(--surface); border-radius: 22px; padding: 24px 22px 24px 76px; box-shadow: var(--shadow-sm); }
.start > li::before { content: counter(st); position: absolute; left: 22px; top: 22px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--lilac-soft); color: var(--lilac-deep); font-weight: 800; }
.start b { display: block; font-size: 18px; letter-spacing: -0.02em; }
.start .when { margin-left: 6px; font-size: 12px; vertical-align: 2px; }
.start p { margin: 6px 0 0; font-size: 15px; line-height: 1.75; color: var(--ink-soft); }
.start .mini-prompt { margin-top: 14px; }
.start .mini-prompt pre { background: var(--lilac-soft); border-radius: 14px; padding: 14px 16px; font-size: 15px; }
.start .mini-prompt .btn { margin-top: 10px; }
.start .tree { margin-top: 14px; background: var(--box-gray); border-radius: 14px; font-size: 14px; }
@media (max-width: 480px) { .start > li { padding: 22px 18px 22px 66px; } .start > li::before { left: 16px; } }

/* ---------- 사용 조건 ---------- */
.terms { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
@media (min-width: 720px) { .terms { grid-template-columns: 1fr 1fr; gap: 20px; } }
.terms > div { border-radius: 22px; padding: 26px 24px; }
.terms .ok { background: var(--mint-soft); }
.terms .no { background: var(--pink-soft); }
.terms h3 { margin: 0 0 12px; font-size: 18px; }
.terms ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }

/* ---------- 자주 묻는 것 ---------- */
.pdp .faq { max-width: 720px; margin: 0 auto; }
.pdp .faq details { border-bottom: 1px solid var(--border); }
.pdp .faq details:first-child { border-top: 1px solid var(--border); }
.pdp .faq summary { padding: 22px 36px 22px 4px; font-size: 17px; font-weight: 700; }
.pdp .faq .answer { padding: 0 4px 22px; }
.pdp .faq .answer p { margin: 0; font-size: 16px; line-height: 1.8; color: var(--ink-soft); }

/* ---------- 마지막 받기 ---------- */
.final { text-align: center; }
.final .pdp-h2 { font-size: clamp(28px, 5vw, 40px); }
.final .btn { margin-top: 32px; min-height: 60px; min-width: min(320px, 100%); border-radius: 16px; font-size: 18px; box-shadow: 0 6px 18px rgba(143, 117, 255, .28); }
.final .pdp-note { margin-top: 14px; }

/* ---------- 받기 창·아래 구매 줄: 먹색 테두리 대신 그림자 ---------- */
.pdp .buy-dialog { border: 0; border-radius: 24px; box-shadow: 0 24px 64px rgba(50, 51, 41, .28); }
.pdp .buy-dialog .inner { padding: 28px 24px 24px; gap: 16px; }
.pdp .buy-dialog input[type="email"] { border: 1.5px solid var(--border); border-radius: 14px; }
.pdp .buy-dialog input[type="email"]:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px var(--lilac-soft); }
.pdp .buy-bar { border-top: 0; box-shadow: 0 -6px 24px rgba(50, 51, 41, .1); }
.pdp .site-footer { border-top: 0; }
.pdp .site-footer { margin-top: 0; }
.choose-row, .colors-wrap > * { min-width: 0; }
.colors-pair .phone.sm { width: min(240px, 42vw); }

/* 샘플 영상 2개(11/04) */
.samples { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(28px, 6vw, 64px); }
.sample { margin: 0; min-width: 0; }
.sample figcaption { margin-top: 16px; text-align: center; font-size: 14px; color: var(--ink-soft); }
.sample figcaption strong { display: block; font-size: 17px; color: var(--ink); margin-bottom: 2px; }
.colors-wrap.solo { display: block; max-width: 640px; margin: 0 auto; }
.colors-wrap.solo .colors-text { text-align: center; }
.colors-wrap.solo .swatches { margin-inline: auto; }

/* 상단 구매 영역 단순하게(11/04) */
.pdp .buy-panel { align-self: center; }
.pdp .buy-panel .price { border: 0; padding: 0; margin-bottom: 20px; }
.pdp .buy-panel .lead { margin-bottom: 18px; }

/* 상단 이미지: 좌우로 넘겨 보기(11/04) */
.swipe { position: relative; }
.swipe-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 5; border-radius: 28px; background: var(--lilac-soft); box-shadow: var(--shadow-lg); outline-offset: 3px; }
.swipe-track::-webkit-scrollbar { display: none; }
.swipe-slide { position: relative; flex: 0 0 100%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.swipe-slide img, .swipe-slide video { display: block; width: 100%; height: 100%; object-fit: contain; }
.swipe-slide img { object-fit: cover; }
.swipe-arrow { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; padding: 0 0 4px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.swipe-arrow.prev { left: 12px; }
.swipe-arrow.next { right: 12px; }
@media (hover: none) { .swipe-arrow { display: none; } }
.swipe-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.swipe-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background .2s, width .2s; }
.swipe-dots i.on { width: 22px; border-radius: 4px; background: var(--lilac); }

/* 손그림 포인트(11/05): 릴스 모션그래픽과 같은 먹선·라일락을 몇 군데에만. 카드와 글은 그대로 두고 과하지 않게 */
.doodle { display: block; width: min(232px, 100%); height: auto; margin: 0 auto 18px; overflow: visible; font-family: var(--font); }
.doodle.wave { width: min(260px, 100%); margin-bottom: 22px; }
.doodle.spark { width: 104px; margin-bottom: 8px; }
@media (min-width: 820px) { .feature-text .doodle.wave { margin-left: 0; } }
.flow li::before { display: none; }
.flow b::before { content: counter(flow) ". "; }
.pdp-sec.tint { background-image: radial-gradient(circle, rgba(255, 255, 255, .85) 2.6px, transparent 3px), radial-gradient(circle, rgba(255, 255, 255, .85) 2.6px, transparent 3px); background-size: 44px 44px; background-position: 0 0, 22px 22px; }
.pdp-h2 em { color: inherit; padding: 0 .12em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 12C30 7 58 14 92 10S160 7 197 11' fill='none' stroke='%23BFADFF' stroke-width='13' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 92% / 100% .52em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.fit li::before { border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14.5 2.4C21 2 26 7 25.6 13.8 25.3 20.5 20.6 25.7 14 25.5 7.4 25.8 2.3 20.9 2.5 14.2 2.3 7.5 7.6 2.9 14.5 2.4Z' fill='%23BFADFF' stroke='%23323329' stroke-width='1.9'/%3E%3Cpath d='M8.4 14.6C9.8 16 11 17.5 12.4 19 14.8 15.4 17.4 12 20.4 9' fill='none' stroke='%23323329' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 28px no-repeat; }
