/* ═══ LG EI 서체 (LGEIHeadline / LGEIText) ══════════════════
   webapp.zip의 font.css 구조를 기준으로, 실제 서비스 도메인(rbFront)에
   호스팅된 폰트 파일을 절대경로로 로드합니다. */
@font-face{ font-family:'LG EI Headline'; font-display:swap; font-weight:200; font-style:normal;
  src: url("/theme/rbFront/fonts/LGEIHeadline-Thin.woff2") format("woff2"),
       url("/theme/rbFront/fonts/LGEIHeadline-Thin.woff") format("woff"); }
@font-face{ font-family:'LG EI Headline'; font-display:swap; font-weight:300; font-style:normal;
  src: url("/theme/rbFront/fonts/LGEIHeadline-Light.woff2") format("woff2"),
       url("/theme/rbFront/fonts/LGEIHeadline-Light.woff") format("woff"); }
@font-face{ font-family:'LG EI Headline'; font-display:swap; font-weight:400; font-style:normal;
  src: url("/theme/rbFront/fonts/LGEIHeadline-Regular.woff2") format("woff2"),
       url("/theme/rbFront/fonts/LGEIHeadline-Regular.woff") format("woff"); }
@font-face{ font-family:'LG EI Headline'; font-display:swap; font-weight:600; font-style:normal;
  src: url("/theme/rbFront/fonts/LGEIHeadline-Semibold.woff2") format("woff2"),
       url("/theme/rbFront/fonts/LGEIHeadline-Semibold.woff") format("woff"); }
@font-face{ font-family:'LG EI Headline'; font-display:swap; font-weight:700; font-style:normal;
  src: url("/theme/rbFront/fonts/LGEIHeadline-Bold.woff2") format("woff2"),
       url("/theme/rbFront/fonts/LGEIHeadline-Bold.woff") format("woff"); }
 
@font-face{ font-family:'LG EI Text'; font-display:swap; font-weight:300; font-style:normal;
  src: url("/theme/rbFront/fonts/LGEIText-Light.woff2") format("woff2"),
       url("/theme/rbFront/fonts/LGEIText-Light.woff") format("woff"); }
@font-face{ font-family:'LG EI Text'; font-display:swap; font-weight:400; font-style:normal;
  src: url("/theme/rbFront/fonts/LGEIText-Regular.woff2") format("woff2"),
       url("/theme/rbFront/fonts/LGEIText-Regular.woff") format("woff"); }
@font-face{ font-family:'LG EI Text'; font-display:swap; font-weight:600; font-style:normal;
  src: url("/theme/rbFront/fonts/LGEIText-SemiBold.woff2") format("woff2"),
       url("/theme/rbFront/fonts/LGEIText-SemiBold.woff") format("woff"); }
@font-face{ font-family:'LG EI Text'; font-display:swap; font-weight:700; font-style:normal;
  src: url("/theme/rbFront/fonts/LGEIText-Bold.woff2") format("woff2"),
       url("/theme/rbFront/fonts/LGEIText-Bold.woff") format("woff"); }
.df-site, #popup {
  --red:   #fd312e;
  --ink:   #0f1420;
  --muted: #6b7585;
  --line:  #eaedf2;
  --bg:    #f7f8fa;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 12px 40px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 32px 80px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.08);
}
/* Reset & base — SCOPED to the widget only, so the host page's text/spacing is never touched */
.df-site, .df-site *, .df-site *::before, .df-site *::after,
#popup, #popup *, #popup *::before, #popup *::after { box-sizing: border-box; margin: 0; padding: 0; }
.df-site { font-family: 'LG EI Text', sans-serif; background: #fff; color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; }
.df-site button, #popup button { font: inherit; cursor: pointer; }
.df-site img, #popup img { display: block; }

/* ═══ SITE ═══════════════════════════════════ */
.df-site{ background: #fff; max-width: 1920px; margin: 0 auto; }

/* ═══ GNB ════════════════════════════════════ */
.df-site .gnb{
  background: #111;
  height: 56px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
}
.df-site .gnb-logo{ display: flex; align-items: center; gap: 8px; }
.df-site .gnb-logo .mark{
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900; color: #fff; letter-spacing: -.5px;
}
.df-site .gnb-logo span{ color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .3px; }
.df-site .gnb-nav{ display: flex; gap: 28px; }
.df-site .gnb-nav a{ color: rgba(255,255,255,.6); font-size: 12.5px; text-decoration: none; transition: color .15s; }
.df-site .gnb-nav a:hover{ color: #fff; }
.df-site .gnb-icon{ color: rgba(255,255,255,.5); font-size: 17px; cursor: pointer; }

/* ═══ HERO ═══════════════════════════════════ */
.df-site .hero{
  position: relative;
  height: 420px;
  background: #0b1016;
  overflow: hidden;
}
.df-site .hero-visual{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, #0b1016 40%, rgba(11,16,22,.4) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='960' height='420'%3E%3Crect fill='%230b1016'/%3E%3Crect x='400' y='20' width='520' height='380' rx='3' fill='%23131c2a'/%3E%3Crect x='418' y='38' width='486' height='344' fill='%231a2840' rx='2'/%3E%3Crect x='418' y='38' width='240' height='344' fill='%23ff3040' opacity='.07'/%3E%3C/svg%3E") right/cover no-repeat;
}
.df-site .hero-content{
  position: relative;
  z-index: 2;
  padding: 80px 52px;
  max-width: 560px;
}
.df-site .hero-label{
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 2px;
  letter-spacing: 1.4px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.df-site .hero-title{
  font-family: 'LG EI Headline', sans-serif;
  color: #fff;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.df-site .hero-sub{
  color: rgba(255,255,255,.52);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 32px;
}
.df-site .hero-cta{
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 26px;
  border: none;
  border-radius: 3px;
  letter-spacing: .2px;
  transition: opacity .15s;
}
.df-site .hero-cta:hover{ opacity: .88; }

/* ═══ BANNER BLOCK ════════════════════════════ */
.df-site .block-wrap{
  width: 100%;
  background: #fff;
  padding: 0 48px;
}
.df-site .block-banner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 29px 50px;
  background: #F3F4F4;
  border-radius: 30px;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
  cursor: pointer;
}
.df-site .block-banner .copy{ display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.df-site .block-banner h3{
  margin: 0;
  color: #000;
  font-family: 'LG EI Headline', sans-serif;
  font-size: 29px;
  font-weight: 400;
  line-height: normal;
}
.df-site .block-banner .cta{
  flex-shrink: 0;
  padding: 0 30px;
  height: 62px;
  border: none;
  border-radius: 200px;
  color: #FFF;
  font-family: inherit;
  font-size: 24px;
  font-weight: 300;
  line-height: normal;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  cursor: pointer;
  background: #FD312E;
  transition: opacity .15s ease;
}
.df-site .block-banner .cta:hover{ opacity: .88; }
.df-site .block-banner .cta span{ display: inline; margin-left: 8px; }

@media only screen and (min-width: 1081px) and (max-width: 1439px) {
  .df-site .block-banner{
    padding: 2.0138888889vw 3.4722222222vw;
    border-radius: 2.0833333333vw;
  }
  .df-site .block-banner h3{ font-size: 1.6666666667vw; }
  .df-site .block-banner .cta{
    padding: 0 2.0833333333vw;
    height: 4.3055555556vw;
    border-radius: 13.8888888889vw;
    font-size: 1.6666666667vw;
  }
}
@media only screen and (max-width: 1080px) {
  .df-site .block-wrap{ padding: 30px 16px 0; }
  .df-site .block-banner{
    padding: 16px 18px;
    border-radius: 24px;
    gap: 12px;
  }
  .df-site .block-banner h3{ font-size: 16px; font-weight: 400; }
  .df-site .block-banner .cta{
    font-size: 14px;
    padding: 0 13px;
    height: 36px;
    min-width: 111px;
    box-sizing: border-box;
  }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(253,49,46,.55); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ═══ EXPLORE ═══════════════════════════════ */
.df-site .explore{ padding: 56px 52px 0; }
.df-site .explore-title{ font-family: 'LG EI Headline', sans-serif; text-align: center; font-size: 28px; font-weight: 700; margin-bottom: 32px; letter-spacing: -.02em; }
.df-site .tabs{ display: flex; border-bottom: 1.5px solid var(--line); margin-bottom: 0; }
.df-site .tab{ padding: 10px 22px; font-size: 13px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1.5px; transition: color .15s; }
.df-site .tab.on{ color: var(--red); border-color: var(--red); font-weight: 700; }
.df-site .product-card{
  position: relative;
  min-height: 260px;
  background: #0b1016;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.df-site .product-card-bg{
  position: absolute; left: 0; top: 0; bottom: 0; width: 62%;
  background:
    linear-gradient(90deg, transparent 0%, #0b1016 90%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='260'%3E%3Crect fill='%23040b14'/%3E%3Crect x='18' y='12' width='565' height='236' rx='2' fill='%230a1628'/%3E%3Crect x='28' y='28' width='265' height='200' rx='2' fill='%23112040'/%3E%3Crect x='304' y='28' width='265' height='95' rx='2' fill='%23112040'/%3E%3Crect x='304' y='133' width='128' height='95' rx='2' fill='%23112040'/%3E%3Crect x='441' y='133' width='128' height='95' rx='2' fill='%23112040'/%3E%3C/svg%3E") left/cover no-repeat;
}
.df-site .product-card-content{ position: relative; z-index: 2; margin-left: auto; padding: 44px 52px; max-width: 340px; }
.df-site .product-card-content h3{ font-family: 'LG EI Headline', sans-serif; color: #fff; font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.df-site .product-card-content p{ color: rgba(255,255,255,.45); font-size: 13px; line-height: 1.7; margin-bottom: 20px; }
.df-site .product-btn{ background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 10px 20px; border: none; border-radius: 3px; }

/* ═══ INDUSTRIES ════════════════════════════ */
.df-site .industries{ padding: 52px; border-top: 1px solid var(--line); }
.df-site .industries h3{ font-family: 'LG EI Headline', sans-serif; text-align: center; font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.df-site .ind-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.df-site .ind-item{ background: var(--bg); border: 1px solid var(--line); border-radius: 10px; height: 100px; display: flex; align-items: flex-end; padding: 14px; font-size: 13px; font-weight: 600; color: #2a3347; }

/* ═══════════════════════════════════════════
   LAYER POPUP — STG 스타일 통일
   (popup.css / common.css / component.css 기준
    #popup 스코프 안에서만 변수 오버라이드 → 다른 섹션 영향 없음)
═══════════════════════════════════════════ */
#popup {
  --ink: #000;
  --muted: #767676;
  --line: #dddee0;
  --chipline: #b4b7bd;
  --bg: #f3f4f4;
  font-family: 'LG EI Text', sans-serif;
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* 헤드라인/타이틀류만 EI Headline, 나머지 전부(버튼·칩·배지·스펙·요약 텍스트 등)는 위 기본값(EI Text) 사용 */
#popup .view-title,
#popup .model-name,
#popup .modal-head-info strong,
#popup .chat-header-name {
  font-family: 'LG EI Headline', sans-serif;
}
#popup.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}
#popup.overlay.hidden { display: none; }
#popup .overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
}

#popup .modal {
  position: relative;
  width: min(920px, 97%);
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: min(860px, 88vh);
  animation: modalIn .24s cubic-bezier(.34,1.28,.64,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);   }
}

/* ── Modal Header ── */
#popup .modal-head {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
#popup .modal-head-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid rgba(253,49,46,.2);
}
#popup .modal-head-avatar img { width: 100%; height: 100%; object-fit: cover; }
#popup .modal-head-info { flex: 1; display: flex; align-items: baseline; gap: 10px; }
#popup .modal-head-info strong { font-size: 22px; font-weight: 800; white-space: nowrap; }
#popup .modal-head-info span { font-size: 18.5px; color: var(--muted); }
#popup .modal-close {
  width: 28px; height: 28px;
  border: none; background: transparent;
  color: #666;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s;
  flex-shrink: 0;
  padding: 0;
}
#popup .modal-close:hover { color: #000; }
#popup .modal-close svg { width: 22px; height: 22px; display: block; }

/* 스크롤 시 본문이 닫기 버튼과 겹치지 않도록 상단에 페이드 그라데이션 오버레이
   (기본은 숨김 → 스크롤량에 비례해 서서히 나타남, JS에서 opacity 직접 계산) */
#popup .modal-close-fade {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: linear-gradient(to bottom, rgba(255,255,255,.95) 0%, rgba(255,255,255,.85) 35%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 9;
  border-radius: 15px 15px 0 0;
  opacity: 0;
  transition: opacity .05s linear;
}

/* ── Modal content layout ── */
#popup .modal-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* ── Modal Body ── */
#popup .modal-body {
  padding: 26px 28px 16px;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

/* Step 1: 스크롤 없이 그리드 전체 노출 */
#popup #v1 {
  display: none;
  flex-direction: column;
  flex: 1;
}
#popup #v1.active {
  display: flex;
}

#popup .view { display: none; }
#popup .view.active { display: block; animation: fadeUp .2s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Step title */
#popup .view-title { font-size: 26px; font-weight: 600; margin-bottom: 6px; letter-spacing: -.02em; }
#popup .view-sub { font-size: 17px; color: #4a4f58; margin-bottom: 18px; }

/* ── Step 1: Industry cards ── */
#popup .industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  flex: 1;
  align-content: start;
}
#popup .industry-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  background: transparent;
  text-align: center;
  transition: opacity .15s;
  cursor: pointer;
  width: 100%;
}
#popup .industry-btn:hover { opacity: .8; }

#popup .industry-btn .ind-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  background-size: cover;
  background-position: center 30%;
  background-color: #0b1220;
  border: 1px solid var(--line);
  transition: border-color .15s;
  overflow: hidden;
}
#popup .industry-btn:hover .ind-thumb { border-color: #bbb; }
#popup .industry-btn.selected .ind-thumb {
  border-color: var(--red);
  outline: 1px solid var(--red);
}

#popup .industry-btn .name {
  font-size: 17.5px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  width: 100%;
}
#popup .industry-btn.selected .name { color: var(--red); }
#popup .industry-btn .desc { display: none; }

/* ── Step 2: Env ── */
#popup .env-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
#popup .env-field { padding: 28px 0; border-top: 1px solid var(--line); border-radius: 0; }
#popup .env-field:last-child { padding-bottom: 4px; }
#popup .env-field label { display: block; font-size: 16px; font-weight: 400; color: #4a4f58; margin-bottom: 16px; text-transform: none; letter-spacing: normal; }
#popup .chips { display: flex; gap: 10px; flex-wrap: wrap; }
#popup .chip {
  padding: 9px 18px;
  border: 1.5px solid var(--chipline);
  border-radius: 999px;
  font-size: 17.5px;
  font-weight: 400;
  background: #fff;
  color: var(--ink);
  transition: all .14s;
}
#popup .chip:hover { border-color: var(--red); }
#popup .chip.on { background: #fff2f3; border-color: var(--red); color: var(--red); font-weight: 700; }

/* 이진 선택(예: Indoor/Outdoor)용 세그먼트 토글 — inch/pitch 토글과 동일한 스타일 재사용 */
#popup .chips.seg {
  display: inline-flex;
  background: #fff;
  border: 1.5px solid var(--chipline);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
#popup .chips.seg .chip {
  border: none;
  background: transparent;
  color: var(--ink);
  font-weight: 400;
  padding: 5px 16px;
}
#popup .chips.seg .chip:hover { border-color: transparent; color: var(--ink); }
#popup .chips.seg .chip.on { background: var(--red); color: #fff; border-color: transparent; font-weight: 700; }
#popup .size-group-row { display: flex; align-items: center; gap: 14px; }
#popup .size-group-label { font-size: 17.5px; font-weight: 700; color: var(--muted); width: 38px; flex-shrink: 0; letter-spacing: .04em; }
#popup .size-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
#popup .size-toggle { display: flex; background: #fff; border: 1.5px solid var(--chipline); border-radius: 999px; padding: 3px; gap: 2px; }
#popup .size-opt { padding: 5px 16px; border: none; border-radius: 999px; font-size: 17.5px; background: transparent; color: var(--ink); cursor: pointer; transition: all .18s; font-weight: 400; }
#popup .size-opt:hover { color: var(--ink); }
#popup .size-opt.active { background: var(--red); color: #fff; font-weight: 700; }
#popup .size-ctrl { display: none; flex-wrap: wrap; gap: 8px; }
#popup .size-ctrl.active { display: flex; }
#popup .size-row { display: flex; align-items: center; gap: 8px; }
#popup .size-sep { color: var(--muted); font-size: 19.5px; }
#popup .size-unit { color: var(--muted); font-size: 18.5px; }
#popup .stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; }
#popup .stepper button { width: 34px; height: 36px; background: var(--bg); border: none; font-size: 20.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
#popup .stepper button:hover { background: var(--line); }
#popup .stepper span { width: 42px; text-align: center; font-size: 19.5px; font-weight: 600; }
#popup .stepper-input { width: 50px; height: 36px; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 19.5px; font-weight: 600; color: var(--ink); background: #fff; outline: none; -moz-appearance: textfield; }
#popup .stepper-input::-webkit-outer-spin-button,
#popup .stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#popup .stepper-input::placeholder { color: var(--line); font-weight: 400; }
/* ── Step 3: Chat — LG Liam site style ── */
#popup .chat-wrap {
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #f0ece4;
}
/* header */
#popup .chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
  background: #f0ece4;
  border-bottom: none;
}
#popup .chat-header-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #ccc;
}
#popup .chat-header-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
#popup .chat-header-name { font-size: 19px; font-weight: 800; color: #1a1a1a; line-height: 1.35; }
/* message list */
#popup .chat-body {
  padding: 6px 14px 12px;
  min-height: 180px;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f0ece4;
}
#popup .chat-body::-webkit-scrollbar { width: 3px; }
#popup .chat-body::-webkit-scrollbar-thumb { background: #c5c0ba; border-radius: 3px; }
/* AI bubble — white card, left corner sharp */
#popup .bubble { max-width: 86%; font-size: 20px; line-height: 1.6; }
#popup .bubble.ai {
  background: #fff;
  color: #1a1a1a;
  padding: 12px 15px;
  border-radius: 4px 18px 18px 18px;
  align-self: flex-start;
  box-shadow: 0 1px 3px rgba(0,0,0,.09);
}
/* user message — right, quotation style, no bg */
#popup .bubble.me {
  align-self: flex-end;
  background: transparent;
  color: #1a1a1a;
  font-size: 21px;
  font-weight: 700;
  padding: 0;
  text-align: right;
  max-width: 80%;
}
#popup .bubble.me::before { content: '"'; }
#popup .bubble.me::after { content: '"'; }
#popup .bubble-meta {
  font-size: 17px;
  color: #aaa;
  align-self: flex-end;
  margin-top: -8px;
}
/* quick reply chips — dark pill */
#popup .quick-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 14px 14px;
  background: #f0ece4;
}
#popup .quick-chips button {
  padding: 8px 16px;
  background: #2a2a2a;
  border: 2px solid #2a2a2a;
  color: #fff;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: all .14s;
}
#popup .quick-chips button:hover { background: #111; border-color: #111; }
#popup .quick-chips button.outline {
  background: transparent;
  border-color: #2a2a2a;
  color: #2a2a2a;
}
#popup .quick-chips button.outline:hover { background: #2a2a2a; color: #fff; }
/* compose bar */
#popup .chat-compose {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  background: #f0ece4;
  border-top: 1px solid rgba(0,0,0,.07);
}
#popup .chat-compose input {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 19.5px;
  outline: none;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
#popup .chat-compose .send {
  background: var(--red);
  color: #fff;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  align-self: flex-end;
  transition: opacity .14s;
}
#popup .chat-compose .send:hover { opacity: .88; }

/* ── Step 4: Results ── */
#popup .results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: 100%; box-sizing: border-box; min-width: 0; }
#popup .model-card {
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: box-shadow .16s;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}
#popup .model-card:hover { box-shadow: var(--shadow-sm); }
#popup .model-card.best { border-color: var(--red); box-shadow: 0 0 0 3px rgba(253,49,46,.08); }
#popup .model-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
#popup .best-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--red); color: #fff;
  font-size: 17px; font-weight: 800;
  padding: 3px 9px; border-radius: 999px;
  letter-spacing: .04em;
}
#popup .model-thumb {
  aspect-ratio: 9 / 6;
  width: 100%;
  border-radius: 0;
  background: linear-gradient(135deg, #0b1220, #1a2e58);
  position: relative;
  overflow: hidden;
}
#popup .model-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 2px, transparent 2px 9px),
    radial-gradient(circle at 75% 25%, rgba(253,80,80,.3) 0, transparent 45%);
}
#popup .model-thumb[style*="background-image"]::after {
  display: none;
}
#popup .model-thumb[style*="background-image"] {
  background-color: #f7f8fa !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}
#popup .model-name { font-size: 20px; font-weight: 600; line-height: 1.3; }
#popup .model-specs { display: flex; flex-wrap: wrap; gap: 5px; }
#popup .model-specs span { font-size: 14.5px; background: #f4f5f7; border: 1px solid #e2e4e8; border-radius: 4px; padding: 4px 8px; color: #2a2e38; font-weight: 500; }
#popup .model-reason { font-size: 18px; color: var(--muted); line-height: 1.5; padding-top: 8px; border-top: 1px dashed var(--line); }
#popup .model-solutions { padding-top: 8px; border-top: 1px dashed var(--line); }
#popup .model-solutions-label { font-size: 17px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
#popup .model-solutions-tags { display: flex; flex-wrap: wrap; gap: 5px; }
#popup .model-solutions-tags span { font-size: 17.5px; background: transparent; border: none; border-radius: 0; padding: 0; color: var(--muted); font-weight: 400; }
#popup .model-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
#popup .model-actions a {
  flex: 1;
  min-width: 80px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .14s;
  white-space: nowrap;
}
#popup .model-actions .detail-btn {
  background: #fff;
  border: 1.5px solid #000;
  color: var(--ink);
  font-weight: 400;
}
#popup .model-actions .detail-btn:hover {
  border-color: #000;
  background: #fafbfc;
}
#popup .model-actions .contact-btn {
  background: var(--red);
  border: 1.5px solid var(--red);
  color: #fff;
  font-weight: 400;
}
#popup .model-actions .contact-btn:hover { opacity: .9; }
#popup .result-summary { display: flex; align-items: flex-start; gap: 10px; background: var(--bg); border-radius: 10px; padding: 18px 22px; margin-bottom: 22px; font-size: 17.5px; color: var(--muted); line-height: 1.6; }
#popup .result-summary b { color: var(--ink); font-weight: 500; }

/* ── Step 5: Quote ── */
#popup .quote-summary { background: #f7f8fa; border: 1.5px solid var(--line); border-radius: 6px; padding: 20px; margin-bottom: 24px; }
#popup .quote-summary h4 { font-size: 19.5px; font-weight: 700; margin-bottom: 6px; }
#popup .quote-summary p { font-size: 19px; color: var(--muted); }
#popup .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#popup .form-grid .full { grid-column: 1/-1; }
#popup .form-field label { display: block; font-size: 18.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
#popup .form-field input,
#popup .form-field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: 12px 15px;
  font: inherit;
  font-size: 19.5px;
  background: #fff;
  outline: none;
  transition: border-color .15s;
}
#popup .form-field input:focus,
#popup .form-field textarea:focus { border-color: var(--red); }
#popup .consent { display: flex; align-items: flex-start; gap: 10px; font-size: 19px; color: var(--muted); }
#popup .consent input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--red); cursor: pointer; }

/* ── Modal Footer ── */
#popup .modal-foot {
  padding: 16px 0;
  margin: 0 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  background: #fff;
}
#popup .btn-ghost {
  background: #fff;
  border: 1px solid #9a9a9a;
  color: #767676;
  padding: 8px 22px;
  border-radius: 25px;
  font-size: 17px;
  font-weight: 400;
  transition: all .14s;
}
#popup .btn-ghost:hover { background: rgba(0,0,0,.05); border-color: #7a7a7a; color: #5a5a5a; }
#popup .btn-ghost:disabled { opacity: .35; cursor: not-allowed; background:#fff; }
#popup .btn-next {
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  padding: 9px 30px;
  border-radius: 28px;
  font-size: 17px;
  font-weight: 500;
  transition: opacity .14s;
}
#popup .btn-next:hover:not(:disabled) { opacity: .88; }
#popup .btn-next:disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }


#popup .btn-restart {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: #4a4f58;
  font-size: 19px;
  font-weight: 600;
  padding: 6px 4px;
  cursor: pointer;
  transition: color .14s;
}
#popup .btn-restart svg { width: 13px; height: 13px; flex-shrink: 0; }
#popup .btn-restart:hover { color: var(--ink); }

/* ══════════════════════════════════════
   RESPONSIVE — Modal & Popup contents
══════════════════════════════════════ */

/* ── 680px 이하: 사이드바 숨기고 상단 스텝 바로 전환 ── */
@media (max-width: 720px) {
  .df-site .gnb-nav { display: none; }
  .df-site .block-wrap { padding: 30px 20px 0; }
  #popup .modal {
    width: 100%;
    border-radius: 15px 15px 0 0;
    height: 92vh;
    height: 92dvh;
    max-height: none;
    min-height: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    animation: modalUp .28s cubic-bezier(.34,1.2,.64,1);
  }
  @keyframes modalUp {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }
  #popup.overlay { align-items: flex-end; padding: 0; }


  /* 모달 바디 */
  #popup .modal-content { flex-direction: column; }
  #popup .modal-body { padding: 16px 16px 14px; }

  /* 상단 안내 */
  #popup .modal-head-info strong { font-size: 17px; }
  #popup .modal-head-info span { font-size: 14px; }

  /* Step 1: 4열 → 2열 */
  #popup .industry-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  #popup .industry-btn .name { font-size: 14px; }

  /* Step 2 chips wrap 잘 되게 — 좌우 패딩을 넉넉히 유지해 원형이 아닌 라운드 버튼 형태 유지 */
  #popup .chips { gap: 6px; }
  #popup .chip { padding: 7px 16px; font-size: 14px; }
  #popup .chips.seg .chip { padding: 6px 14px; }
  #popup .env-field label { font-size: 14px; margin-bottom: 12px; }
  #popup .size-group-label { font-size: 14px; width: 34px; }
  #popup .size-opt { padding: 6px 14px; font-size: 14px; }
  #popup .size-sep { font-size: 15px; }
  #popup .size-unit { font-size: 14px; }
  #popup .stepper button { font-size: 16px; }
  #popup .stepper span,
  #popup .stepper-input { font-size: 14px; }

  /* AI 요약 챗 영역 */
  #popup .chat-header-name { font-size: 15px; }
  #popup .bubble,
  #popup .bubble.me { font-size: 15px; }
  #popup .bubble-meta { font-size: 13px; }
  #popup .quick-chips button { padding: 8px 16px; font-size: 14px; }
  #popup .chat-compose input { font-size: 14px; }

  /* Step 3 results: 3열 → 1열 */
  #popup .results-grid { grid-template-columns: 1fr; }
  #popup .model-name { font-size: 16px; }
  #popup .model-specs span { font-size: 12.5px; }
  #popup .model-reason { font-size: 14px; }
  #popup .model-solutions-label { font-size: 13px; }
  #popup .model-solutions-tags span { font-size: 14px; }
  #popup .model-actions a { padding: 8px 14px; font-size: 13px; }
  #popup .result-summary { font-size: 14px; padding: 14px 16px; }

  /* 견적/폼 */
  #popup .quote-summary h4 { font-size: 16px; }
  #popup .quote-summary p { font-size: 14px; }
  #popup .form-field label { font-size: 14px; }
  #popup .form-field input,
  #popup .form-field textarea { font-size: 14px; padding: 10px 13px; }
  #popup .consent { font-size: 14px; }

  /* view title 축소 */
  #popup .view-title { font-size: 20px; }
  #popup .view-sub { font-size: 14px; margin-bottom: 16px; }

  /* footer */
  #popup .modal-foot { padding: 10px 0; margin: 0 16px; }
  #popup .btn-ghost { padding: 9px 20px; font-size: 14px; }
  #popup .btn-next { padding: 10px 26px; font-size: 14px; }
}

/* ── 480px 이하: 더 작은 폰 ── */
@media (max-width: 480px) {
  #popup .industry-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  #popup .industry-btn .name { font-size: 13px; }

  #popup .results-grid { grid-template-columns: 1fr; }
  #popup .model-card { padding: 12px; }

  #popup .size-row { flex-wrap: wrap; }
  #popup .form-grid { grid-template-columns: 1fr; }

  #popup .chips { gap: 5px; }
  #popup .chip { padding: 6px 14px; font-size: 13px; }
  #popup .chips.seg .chip { padding: 5px 12px; }
  #popup .size-opt { padding: 5px 12px; font-size: 13px; }

  #popup .model-actions { flex-direction: column; gap: 8px; }
  #popup .model-actions a { flex: none; width: 100%; }
}
