/* 광고센터 /ad — 공통 틀은 common.css, 칩·마크 등은 main.css 를 같이 쓴다 */

/* ① 배너: 왼쪽 문구 + 오른쪽 실제 송출 영상 */
.ad-hero {
  position: relative; overflow: hidden;
  min-height: min(860px, 44.8vw);
  padding: 8rem 0 4rem;
  display: flex; align-items: center;
  color: #fff;
  background:
    radial-gradient(ellipse 34rem 30rem at 72% 58%, rgba(150, 110, 20, .32), transparent 72%),
    var(--ink);
}
.ad-hero-inner { display: grid; grid-template-columns: 1fr 1.36fr; gap: 4rem; align-items: center; }
.ad-hero .eyebrow { color: var(--yellow); margin-bottom: 1.4rem; }
.ad-hero h1 { margin: 0; font-size: 3.7rem; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; white-space: nowrap; }
.ad-hero h1 em { font-style: normal; color: var(--yellow); }
.ad-hero .lead { margin: 2rem 0 2.6rem; font-size: 1.15rem; line-height: 1.8; color: #cfcbc2; }
.ad-hero .pill-btn { height: 3.6rem; padding: 0 2.1rem; font-size: 1.08rem; transition: transform .55s cubic-bezier(.25, .8, .25, 1), box-shadow .55s ease; }
.ad-site-link { margin: 1.2rem 0 0; font-size: 0.95rem; }
.ad-site-link a { color: #cfcbc2; text-decoration: underline; text-underline-offset: 4px; }
.ad-site-link a:hover { color: var(--yellow); }
.ad-hero .pill-btn:hover { transform: translateY(-2px); box-shadow: 0 0.6rem 1.6rem rgba(255, 194, 26, .3); }
/* 테이블오더 기기 틀: 검은 베젤 + 화면 + 아래로 곧게 내려가는 기둥 (뒤쪽 배터리 · 클립 없음) */
.to-dev { position: relative; display: flex; flex-direction: column; align-items: center; }
.to-tab {
  position: relative; z-index: 1; width: 100%; padding: 2.3%;
  border-radius: 1.15rem; background: linear-gradient(150deg, #2b2b30 0%, #121215 45%, #0a0a0c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .12), 0 1.4rem 2.8rem rgba(0, 0, 0, .28);
}
.to-tab::before { content: ""; position: absolute; top: 0.95%; left: 50%; width: 0.32rem; height: 0.32rem; margin-left: -0.16rem; border-radius: 50%; background: #1c1c22; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.to-scr { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 0.4rem; background: #000; }
.to-scr::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 38%); }   /* 화면 유리 반사 */
.to-scr video, .to-scr img { display: block; width: 100%; height: 100%; object-fit: cover; }
.to-pole {
  display: block; width: 11%; min-width: 20px; height: 5rem; margin-top: -2px;   /* 굵고 납작한 판형 기둥 */
  background: linear-gradient(90deg, #141416 0%, #1d1d21 12%, #1d1d21 88%, #141416 100%);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .07), inset -1px 0 0 rgba(255, 255, 255, .04);
}
/* 배너: 어두운 배경에서도 기기 모양이 보이게 — 밝은 금속 테두리 + 뒤쪽 은은한 빛 */
.ad-video .to-tab {
  background: linear-gradient(150deg, #4a4a52 0%, #2a2a30 38%, #1a1a1f 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .34), 0 0 0 1px rgba(255, 255, 255, .06),
    0 0 6rem rgba(255, 194, 26, .16), 0 2rem 4rem rgba(0, 0, 0, .5);
}
.ad-video .to-tab::before { background: #34343b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.ad-video .to-scr { aspect-ratio: 16 / 10; box-shadow: 0 0 0 1px rgba(0, 0, 0, .7); }   /* 테이블오더 화면 비율 그대로 (영상 1280 × 800) */
.ad-video .to-pole { background: linear-gradient(90deg, #2a2a30 0%, #3a3a41 12%, #3a3a41 88%, #2a2a30 100%); box-shadow: inset 1px 0 0 rgba(255, 255, 255, .14), inset -1px 0 0 rgba(255, 255, 255, .08); }
.ad-video .to-pole { height: 6.5rem; -webkit-mask: linear-gradient(#000 35%, transparent); mask: linear-gradient(#000 35%, transparent); }   /* 배너는 기둥이 아래로 스르르 사라짐 */
.ad-caption { text-align: center; margin: 1.2rem 0 0; font-size: 0.85rem; color: #8a867c; }

/* ② 성과를 알 수 없는 광고만 하고 계신가요? */
.limit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.limit-card { display: flex; align-items: center; gap: 1.4rem; padding: 2rem 2rem; border-radius: 1.3rem; background: #f6f4ee; }
.limit-x { flex-shrink: 0; width: 2.7rem; height: 2.7rem; border-radius: 50%; display: grid; place-items: center; background: #e6e2d8; color: #9a958a; }
.limit-x svg { width: 1.1rem; height: 1.1rem; }
.limit-card b { display: block; margin-bottom: 0.4rem; font-size: 1.12rem; font-weight: 700; color: #333; }
.limit-card span { font-size: 0.95rem; color: #8a867c; }
.flow-label { display: flex; align-items: center; gap: 1.6rem; margin: 4rem 0 3.4rem; font-size: 1.08rem; font-weight: 700; color: #222; white-space: nowrap; }
.flow-label::before, .flow-label::after { content: ""; flex: 1; height: 1px; background: #ebe8e1; }
.flow-label em { font-style: normal; color: var(--yellow-deep); }
.flow-label i { width: 0; height: 0; margin-right: -0.9rem; border-left: 0.45rem solid transparent; border-right: 0.45rem solid transparent; border-top: 0.6rem solid var(--yellow); }
.flow { display: grid; grid-template-columns: 1fr 2.6rem 1fr 2.6rem 1fr; align-items: center; }
.flow-arrow { justify-self: center; width: 0; height: 0; border-top: 0.6rem solid transparent; border-bottom: 0.6rem solid transparent; border-left: 0.75rem solid #e5b84a; }
.fcard {
  display: flex; flex-direction: column; align-items: flex-start;
  height: 100%; padding: 2.6rem 2.4rem 2.6rem;
  border: 1px solid #ebe8e1; border-radius: 1.5rem; background: #fff;
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, .04);
  transition: background-color .6s ease, border-color .6s ease, box-shadow .6s ease, transform .6s cubic-bezier(.25, .8, .25, 1);
}
html .fcard.reveal { transform: translateY(2.4rem); transition: opacity 1.2s ease, transform 1.4s cubic-bezier(.22, .7, .2, 1); }
html .fcard.reveal.is-in { transform: none; }
.fcard h3 { display: flex; align-items: baseline; gap: 1rem; margin: 0 0 2.6rem; font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; }
.fcard h3 small { font-family: var(--font-num); font-size: 1rem; font-weight: 700; color: var(--yellow-deep); transition: color .6s ease; }
.fcard p { margin: 0 0 2.4rem; font-size: 1.08rem; line-height: 1.9; color: #666; transition: color .6s ease; }
.fcard p strong { color: #1a1813; font-weight: 700; }
.fcard p { flex: 1; }
.fcard .tag { display: inline-block; margin-top: auto; padding: 0.55rem 1.1rem; border-radius: 999px; background: #fff0c2; font-size: 0.95rem; font-weight: 700; color: #7a5c08; transition: background-color .6s ease, color .6s ease; }
/* 노란 강조: 기본은 03 성과, 마우스를 올린 카드로 옮겨감 */
.fcard.is-hl, .flow:hover .fcard:hover { background: var(--yellow); border-color: var(--yellow); box-shadow: 0 1.4rem 3rem rgba(255, 194, 26, .28); }
.flow:hover .fcard.is-hl:not(:hover) { background: #fff; border-color: #ebe8e1; box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, .04); }
.fcard.is-hl h3 small, .flow:hover .fcard:hover h3 small { color: #1a1813; }
.fcard.is-hl p, .flow:hover .fcard:hover p { color: #3a3426; }
.fcard.is-hl .tag, .flow:hover .fcard:hover .tag { background: #1a1813; color: #fff; }
.flow:hover .fcard.is-hl:not(:hover) h3 small { color: var(--yellow-deep); }
.flow:hover .fcard.is-hl:not(:hover) p { color: #666; }
.flow:hover .fcard.is-hl:not(:hover) .tag { background: #fff0c2; color: #7a5c08; }

/* ③ 고객 동선 안에 자연스럽게 */
.journey { position: relative; padding-top: 2.2rem; }
.journey-ends { display: flex; justify-content: space-between; margin-bottom: 0.9rem; font-size: 0.85rem; color: #999; }
.journey-bar { position: absolute; left: 0; right: 0; top: 4.6rem; height: 0.7rem; border-radius: 999px; background: linear-gradient(90deg, #fdf0c8, #ffdf85 55%, var(--yellow)); transform-origin: left center; }
.journey-steps { position: relative; display: flex; justify-content: space-between; margin: 0; padding: 0 7.5% 0 5.5%; list-style: none; }
.journey-steps li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.jnode { width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--yellow); color: #1a1813; box-shadow: 0 0 0 0.45rem #fff; }
.jnode svg { width: 1.4rem; height: 1.4rem; }
.journey-steps li:last-child .jnode { background: #1a1813; border-color: var(--yellow); color: var(--yellow); }
.journey-steps b { margin-top: 1.9rem; font-size: 1.35rem; font-weight: 700; }
.journey-steps span { margin-top: 0.5rem; font-size: 0.98rem; color: #777; }
/* 등장: 막대가 왼쪽부터 차오르고 단계가 차례로 올라옴 */
.journey .journey-bar { transform: scaleX(0); transition: transform 1.6s cubic-bezier(.25, .8, .25, 1) .2s; }
.journey.is-in .journey-bar, .journey:not(.reveal) .journey-bar { transform: none; }
.journey-steps li { opacity: 0; transform: translateY(1.2rem); transition: opacity .9s ease, transform 1s cubic-bezier(.25, .8, .25, 1); }
.journey.is-in li, .journey:not(.reveal) li { opacity: 1; transform: none; }
.journey li:nth-child(1) { transition-delay: .5s; }
.journey li:nth-child(2) { transition-delay: .75s; }
.journey li:nth-child(3) { transition-delay: 1s; }
.journey li:nth-child(4) { transition-delay: 1.25s; }

/* ④ 광고 상품 2×2 */
.products { background: #faf8f2; }
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.prod-card {
  display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden;
  border: 1px solid #ebe8e1; border-radius: 1.5rem; background: #fff;
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, .04);
  transition: transform .55s cubic-bezier(.25, .8, .25, 1), box-shadow .55s ease;
}
.prod-card:hover { transform: scale(1.02); box-shadow: 0 1.6rem 3.4rem rgba(0, 0, 0, .1); }
.prod-media { display: flex; justify-content: center; padding: 0 0.8rem; background: #f3f0e8; }
.prod-media .to-dev { width: 100%; height: 100%; }
.prod-media .to-dev::before { content: ""; flex: 1; min-height: 1rem; }   /* 위 여백 = 기둥 길이 → 기기가 카드 가운데 */
.prod-media .to-tab { border-radius: 0.8rem; }
.prod-media .to-scr { border-radius: 0.28rem; }
.prod-media .to-pole { flex: 1; height: auto; min-height: 1rem; }   /* 카드 아래 끝까지 */
.prod-body { display: flex; flex-direction: column; padding: 2.2rem 1.9rem 1.9rem; }
.prod-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.prod-type { font-size: 0.92rem; font-weight: 700; color: var(--yellow-deep); }
.prod-level { display: flex; gap: 0.25rem; }
.prod-level i { width: 0.7rem; height: 0.32rem; border-radius: 2px; background: #e8e4da; }
.prod-level i.on { background: var(--yellow); }
.prod-body h3 { margin: 0 0 0.9rem; font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; }
.prod-body p { margin: 0 0 1.8rem; font-size: 0.98rem; line-height: 1.75; color: #777; }
.prod-btn {
  align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 0.5rem;
  height: 2.4rem; padding: 0 1.15rem; border: 1px solid #ddd8cc; border-radius: 999px; font-size: 0.9rem; font-weight: 700; color: #1a1813;
  transition: background-color .5s ease, border-color .5s ease, color .5s ease;
}
.prod-btn:hover { background: #1a1813; border-color: #1a1813; color: #fff; }

/* ══ 모바일·태블릿 (1100px 이하) — 광고센터 모바일 시안 기준 ══ */
@media (max-width: 1100px) {
  .ad-hero { min-height: 0; padding: 106px 0 52px; }
  .ad-hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .ad-hero .eyebrow { margin-bottom: 14px; }
  .ad-hero h1 { font-size: 32px; }
  .ad-hero .lead { margin: 12px 0 24px; font-size: 15px; }
  .ad-hero .pill-btn { height: 48px; padding: 0 22px; font-size: 15px; }
  .ad-video .to-tab { border-radius: 14px; }
  .ad-video .to-pole { height: 40px; }
  .ad-caption { margin-top: 12px; font-size: 12px; }

  /* 한계: 하나의 회색 카드에 두 줄 */
  .limit-grid { grid-template-columns: 1fr; gap: 0; padding: 4px 18px; border-radius: 18px; background: #f6f4ee; }
  .limit-card { padding: 14px 0; gap: 12px; background: none; border-radius: 0; }
  .limit-card + .limit-card { border-top: 1px solid #e6e2d8; }
  .limit-card > div { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .limit-x { width: 24px; height: 24px; }
  .limit-x svg { width: 12px; height: 12px; }
  .limit-card b { margin: 0; font-size: 15px; }
  .limit-card > div > span { font-size: 13px; text-align: right; }
  .flow-label { margin: 24px 0 12px; gap: 0; font-size: 15px; }
  .flow-label::before, .flow-label::after { display: none; }
  .flow-label i { margin-right: 8px; }
  /* 노출 · 참여 · 성과: 한 줄 머리(번호 · 제목 · 태그) + 짧은 설명 */
  .flow { grid-template-columns: 1fr; gap: 10px; }
  .flow-arrow { display: none; }
  .fcard { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; padding: 18px 18px 18px; border-radius: 16px; box-shadow: none; }
  .fcard h3 { margin: 0; font-size: 18px; gap: 10px; }
  .fcard h3 small { font-size: 13px; }
  .fcard .tag { grid-row: 1; grid-column: 2; margin: 0; padding: 6px 12px; font-size: 12px; }
  .fcard p { grid-column: 1 / -1; margin: 0; font-size: 14px; line-height: 1.6; }

  /* 광고 상품: 2열 세로 카드 */
  .prod-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .prod-card { grid-template-columns: 1fr; border-radius: 18px; box-shadow: none; }
  .prod-card:hover { transform: none; }
  .prod-media { padding: 14px 12px 0; background: #f3f0e8; }
  .prod-media .to-dev::before { min-height: 0; }
  .prod-media .to-tab { border-radius: 9px; }
  .prod-media .to-scr { border-radius: 3px; }
  .prod-media .to-pole { min-width: 14px; min-height: 12px; }
  .to-tab::before { width: 3px; height: 3px; margin-left: -1.5px; }
  .prod-body { position: relative; padding: 14px 14px 18px; }
  .prod-top { margin-bottom: 6px; }
  .prod-type { font-size: 12px; }
  .prod-level i { width: 9px; height: 4px; }
  .prod-body h3 { margin-bottom: 4px; font-size: 15px; }
  .prod-body p { margin: 0; padding-right: 22px; font-size: 12px; line-height: 1.5; }
  .prod-btn { position: absolute; right: 12px; bottom: 16px; height: auto; padding: 0; border: 0; font-size: 15px; }
  .prod-btn b { display: none; }
  .prod-btn:hover { background: none; color: #1a1813; }
}
@media (min-width: 601px) and (max-width: 1100px) {
  .journey-steps { padding: 0 2%; }
  .journey-steps b { font-size: 17px; }
  .journey-steps span:not(.jnode) { font-size: 13px; }
  .prod-body h3 { font-size: 17px; }
  .prod-body p { font-size: 13px; }
}

/* 고객 동선: 휴대폰만 세로 타임라인 (태블릿은 PC처럼 가로) */
@media (max-width: 600px) {
  .journey { padding-top: 0; }
  .journey-ends { display: none; }
  .journey-bar { display: none; }
  .journey-steps { display: block; position: relative; padding: 0; }
  .journey-steps::before { content: "입장"; display: block; margin-bottom: 14px; font-size: 12px; color: #999; }
  .journey-steps::after { content: "식사 약 40~60분 · 퇴장"; display: block; margin-top: 10px; font-size: 12px; color: #999; }
  .journey-steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; width: auto; padding-bottom: 26px; text-align: left; }
  .journey-steps li:last-child { padding-bottom: 0; }
  .journey-steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 3px; transform: translateX(-1px); background: linear-gradient(#fbe6a8, #ffcf4d); }
  .jnode { grid-row: span 2; width: 40px; height: 40px; box-shadow: none; }
  .jnode svg { width: 18px; height: 18px; }
  .journey-steps b { margin: 0; font-size: 16px; align-self: end; }
  .journey-steps span:not(.jnode) { margin: 2px 0 0; font-size: 13px; align-self: start; }

}
