/* ===================================================================
   /wedding/ 웨딩 식전영상 (2026-10-08) — style.css 토큰 위에 얹는다
=================================================================== */
.wd { overflow-x: clip; }
.wd section[id] { scroll-margin-top: 76px; }

/* ── 첫 화면: 메인 히어로와 같은 다크, 왼쪽 문구 · 오른쪽 템플릿 영상 ── */
.wd-hero {
  position: relative; color: #fff; padding: 128px 0 72px;
  background:
    radial-gradient(800px 380px at 78% 10%, rgba(49,130,246,.30), transparent 62%),
    radial-gradient(520px 360px at 8% 90%, rgba(244,182,196,.12), transparent 60%),
    linear-gradient(180deg, #0B1220 0%, #101A2C 60%, #0B1220 100%);
}
.wd-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 52px; align-items: center; }
.wd-hero__title { font-size: clamp(2.05rem, 4.6vw, 3.35rem); font-weight: 900; line-height: 1.22; letter-spacing: -0.045em; text-wrap: balance; }
.wd-hero__title .accent { background: linear-gradient(100deg, #93C5FD 0%, #3182F6 60%, #F4B6C4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wd-hero__lead { margin-top: 18px; font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--dark-txt); line-height: 1.75; max-width: 34em; }
.wd-hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.wd-hero__facts li { font-size: .9rem; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.88); }
.wd-hero__facts b { color: #fff; font-weight: 800; }
.wd-hero__actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.wd-hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.wd-hero .btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.wd-hero__trust { margin-top: 18px; font-size: .86rem; color: rgba(255,255,255,.5); }
.wd-hero__media {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: #000;
  border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
}
.wd-hero__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wd-hero__play {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px; background: rgba(11,18,32,.72); backdrop-filter: blur(8px);
  color: #fff; font-size: .88rem; font-weight: 700; transition: background .2s;
}
.wd-hero__media:hover .wd-hero__play { background: var(--blue); }

/* ── 템플릿 갤러리 ── */
.wchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -24px 0 34px; }
.wchip {
  font: inherit; font-size: .93rem; font-weight: 700; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--muted); transition: all .18s;
}
.wchip:hover { border-color: var(--blue); color: var(--blue); }
.wchip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.wchip:focus-visible, .wtpl__frame:focus-visible, .wd-hero__media:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wgrid2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; }
.wtpl { min-width: 0; }
.wtpl[hidden] { display: none; }
.wtpl__frame {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: var(--soft2);
  border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.wtpl__frame:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.wtpl__frame img, .wtpl__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.wtpl__play {
  position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: .85rem; padding-left: 3px;
  background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: background .2s, color .2s;
}
.wtpl__frame:hover .wtpl__play { background: var(--blue); color: #fff; }
.wtpl__body { padding: 12px 4px 0; }
.wtpl__mood { font-size: .78rem; font-weight: 800; color: var(--blue); letter-spacing: .02em; }
.wtpl__name { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.wtpl__line { font-size: .9rem; color: var(--muted); margin-top: 4px; line-height: 1.6; }

/* ── 누가 만드나 ── */
.wd-trust__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.wd-link { display: inline-block; margin-top: 22px; font-weight: 700; color: var(--blue); }
.wd-link:hover { text-decoration: underline; }
.wd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wd-stats > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 16px; }
.wd-stats strong { font-size: 1.9rem; font-weight: 900; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.wd-stats strong span { font-size: 1.1rem; color: var(--blue); margin-left: 2px; }
.wd-stats p { font-size: .84rem; color: var(--muted); margin-top: 2px; }
.wd-clients__label { margin-top: 24px; font-size: .82rem; font-weight: 700; color: var(--gray); }
.wd-clients { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.wd-clients li { font-size: .86rem; font-weight: 600; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }

/* ── 가격 ── */
.wplans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.wplan {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 30px 26px 26px; box-shadow: var(--shadow);
}
.wplan--best { border: 2px solid var(--blue); box-shadow: 0 18px 40px rgba(49,130,246,.16); }
.wplan__badge { position: absolute; top: -13px; left: 26px; background: var(--blue); color: #fff; font-size: .78rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.wplan__name { font-size: 1rem; font-weight: 900; letter-spacing: .04em; }
.wplan__tag { font-size: .92rem; color: var(--muted); margin-top: 4px; }
.wplan__price { font-size: 2rem; font-weight: 900; letter-spacing: -0.04em; margin-top: 14px; font-variant-numeric: tabular-nums; }
.wplan__pts { list-style: none; margin: 16px 0 24px; display: grid; gap: 8px; flex: 1; }
.wplan__pts li { position: relative; padding-left: 22px; font-size: .92rem; color: var(--ink); }
.wplan__pts li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 900; }
.wd-note { text-align: center; margin-top: 22px; font-size: .9rem; color: var(--muted); }

/* ── 진행 ── */
.wsteps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.wsteps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 18px; min-width: 0; }
.wsteps__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); font-weight: 900; font-size: .9rem; }
.wsteps h3 { font-size: 1.02rem; font-weight: 800; margin-top: 12px; letter-spacing: -0.02em; }
.wsteps p { font-size: .88rem; color: var(--muted); margin-top: 6px; line-height: 1.65; word-break: keep-all; }

/* ── FAQ ── */
.wd-faq__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.wd-faq .section__head { margin-bottom: 0; }
.wfaq { display: grid; gap: 10px; }
.wfaq details { background: var(--soft); border-radius: var(--radius); padding: 0 20px; }
.wfaq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
.wfaq summary::-webkit-details-marker { display: none; }
.wfaq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--gray); transition: transform .2s; }
.wfaq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.wfaq details p { padding: 0 0 18px; color: var(--muted); line-height: 1.75; font-size: .95rem; }

/* ── 마지막 행동 유도 ── */
.wd-final { background: var(--dark); color: #fff; padding: 84px 0 96px; text-align: center; }
.wd-final h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 900; letter-spacing: -0.04em; text-wrap: balance; }
.wd-final p { margin-top: 10px; color: var(--dark-txt); }
.wd-final__actions { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.wd-final__kakao { font-size: .9rem; color: rgba(255,255,255,.55); text-decoration: underline; text-underline-offset: 3px; }
.wd-final__kakao:hover { color: #fff; }

/* 라이트박스 안 견적 버튼 */
.wlb__cta { padding: 11px 20px; font-size: .92rem; }

/* ── 휴대폰 하단 고정 바 ── */
.wd-bar { display: none; }

@media (max-width: 1080px) {
  .wgrid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wplans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
}
@media (max-width: 860px) {
  .wd-hero { padding: 104px 0 48px; }
  .wd-hero__inner, .wd-trust__inner, .wd-faq__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .wd-hero__media { order: -1; }
  .wd-bar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .wd-bar.is-on { transform: none; }
  .wd-bar a { display: grid; place-items: center; height: 48px; border-radius: 12px; font-weight: 800; font-size: .98rem; }
  .wd-bar__ghost { flex: 0 0 92px; background: var(--soft2); color: var(--ink); }
  .wd-bar__main { flex: 1; background: var(--blue); color: #fff; }
  body:has(.wd) .footer { padding-bottom: 96px; }
  body:has(.wd) .fab { display: none; }
}
@media (max-width: 560px) {
  .wgrid2, .wsteps { grid-template-columns: minmax(0, 1fr); }
  .wd-stats strong { font-size: 1.55rem; }
  .wd-hero__actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .wtpl__frame, .wtpl__frame:hover { transition: none; transform: none; }
}

/* ── 10-08 주문 3단계 띠 ── */
.wd-o3 { background: #fff; border-bottom: 1px solid var(--line); }
.wo3 { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.wo3 li { display: flex; align-items: center; gap: 14px; padding: 22px 20px; min-width: 0; }
.wo3 li + li { border-left: 1px solid var(--line); }
.wo3__n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; }
.wo3 b { display: block; font-size: 1rem; font-weight: 800; }
.wo3 span:not(.wo3__n) { display: block; font-size: .86rem; color: var(--muted); margin-top: 1px; word-break: keep-all; }
.wtpl__pick { display: inline-block; margin-top: 8px; font-size: .88rem; font-weight: 700; color: var(--blue); }
.wtpl__pick:hover { text-decoration: underline; }

/* ── 주문서 ── */
.worder { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.worder__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 28px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.wf { display: grid; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.wf label, .wf legend { font-size: .9rem; font-weight: 700; color: var(--ink); padding: 0; }
.wf small { font-weight: 500; color: var(--gray); }
.wf input, .wf select, .wf textarea {
  font: inherit; font-size: 1rem; width: 100%; min-width: 0; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--soft); color: var(--ink); transition: border-color .18s, background .18s;
}
.wf input:focus, .wf select:focus, .wf textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(49,130,246,.15); }
.wf textarea { resize: vertical; }
.wf2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wplanpick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wpp { position: relative; cursor: pointer; }
.wpp input { position: absolute; opacity: 0; pointer-events: none; }
.wpp span { display: block; padding: 12px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); text-align: center; font-size: .86rem; color: var(--muted); transition: all .18s; }
.wpp b { display: block; font-size: .92rem; color: var(--ink); }
.wpp input:checked + span { border: 2px solid var(--blue); background: var(--blue-tint); color: var(--blue-strong); padding: 11px 9px; }
.wpp input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.worder__out { position: sticky; top: 88px; background: var(--dark); color: #fff; border-radius: var(--radius-xl); padding: 26px; display: grid; gap: 12px; }
.worder__label { font-size: .84rem; font-weight: 700; color: rgba(255,255,255,.6); }
.worder__msg {
  margin: 0; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; font-family: inherit; font-size: .93rem; line-height: 1.75;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 16px 18px; min-height: 220px; color: rgba(255,255,255,.92);
}
.worder__copy { font: inherit; font-size: .92rem; font-weight: 700; padding: 12px; border-radius: 12px; cursor: pointer; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.worder__copy:hover { background: rgba(255,255,255,.16); }
.worder__status { min-height: 1.4em; font-size: .9rem; font-weight: 700; color: #7FE0A8; }
.worder__help { font-size: .84rem; color: rgba(255,255,255,.55); line-height: 1.65; }
.worder__help b { color: #fff; }

/* ── 준비물 ── */
.wprep { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.wprep__col { background: var(--soft); border-radius: var(--radius-xl); padding: 26px 26px 18px; }
.wprep__col h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 10px; }
.wprep__col ul { list-style: none; display: grid; }
.wprep__col li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.wprep__col li b { font-weight: 700; }
.wprep__col li span { color: var(--muted); line-height: 1.6; word-break: keep-all; }
.wprep__tips { list-style: none; margin-top: 18px; display: grid; gap: 8px; }
.wprep__tips li { position: relative; padding-left: 26px; font-size: .93rem; color: var(--ink); }
.wprep__tips li::before { content: "!"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); font-weight: 900; font-size: .74rem; }

@media (max-width: 1080px) {
  .worder { grid-template-columns: minmax(0, 1fr); }
  .worder__out { position: static; }
}
@media (max-width: 860px) {
  .wo3 { grid-template-columns: minmax(0, 1fr); }
  .wo3 li { padding: 12px 4px; }
  .wo3 li + li { border-left: 0; border-top: 1px solid var(--line); }
  .wprep { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .worder__form { padding: 20px; }
  .wf2 { grid-template-columns: minmax(0, 1fr); }
  .wpp span { padding: 10px 4px; font-size: .8rem; }
  .wpp input:checked + span { padding: 9px 3px; }
  .wpp b { font-size: .84rem; }
  .wprep__col li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
