/* 2026-10-28 애드성수 랜딩 디자인 개편
 * reference.html(첨부 디자인)의 인라인 스타일을 클래스로 옮긴 파일. 수치·색은 원본 그대로 두고
 * 모바일(320px) 가로 넘침만 보정한다: 고정 px minmax → min(px, 100%), flex 항목 min-width:0,
 * fieldset min-content 해제, 전화번호 입력 축소 허용, 비교표 고정 min-width 제거.
 * 후기 카드(.rv*)·점(.rv-dot) 클래스는 landing-reviews.js 가 그대로 사용하므로 이름을 바꾸지 않는다. */

/* ---------- base ---------- */
body {
  margin: 0;
  background: #0b0b0b;
  font-family: 'Noto Sans KR', system-ui, sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.ld-page {
  background: #0b0b0b;
  color: #f2efe8;
  font-family: 'Noto Sans KR', system-ui, sans-serif;
  letter-spacing: -0.01em;
  min-height: 100vh;
}

:where(.ld-page) :where(h1, h2, h3, p, li, span, label, div) {
  word-break: keep-all;
  overflow-wrap: break-word;
}

:where(.ld-page) :where(h1, h2, h3) {
  text-wrap: balance;
}

:where(.ld-page) :where(input, textarea)::placeholder {
  color: #6e6a62;
  opacity: 1;
}

:where(.ld-page) a {
  color: #c8a24a;
}

:where(.ld-page) a:where(:hover) {
  color: #e2c479;
}

:where(.ld-page) :where(a, button, input, textarea):focus-visible {
  outline: 2px solid #e2c479;
  outline-offset: 3px;
}

.ld-page [id] {
  scroll-margin-top: 76px;
}

.ld-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.ld-gold {
  color: #c8a24a;
}

.ld-muted {
  color: #6e6a62;
}

.ld-en {
  font-family: Archivo, sans-serif;
}

.ld-skip {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 30;
  padding: 10px 18px;
  border-radius: 999px;
  background: #c8a24a;
  color: #0b0b0b;
  font-weight: 700;
  text-decoration: none;
}

.ld-skip:focus {
  top: 12px;
}

.ld-label {
  margin: 0 0 20px;
  font-family: Archivo, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #c8a24a;
}

.ld-label--wide {
  margin-bottom: 24px;
}

.ld-pill {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.ld-pill--gold {
  background: #c8a24a;
  color: #0b0b0b;
}

.ld-pill--line {
  border: 1px solid #3a3a3a;
  color: #f2efe8;
  font-weight: 500;
}

.ld-pill--lg {
  height: 60px;
  padding: 0 32px;
  font-size: 17px;
}

/* ---------- header / nav ---------- */
.ld-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 11, 0.92);
  border-bottom: 1px solid #1e1e1e;
}

.ld-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ld-brand {
  display: flex;
  align-items: center;
}

.ld-brand img {
  display: block;
  height: 40px;
  width: auto;
}

.navlinks {
  display: flex;
  gap: 36px;
  font-size: 15px;
  font-weight: 500;
}

.navlinks a {
  color: #cfcac0;
  text-decoration: none;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
}

.ld-header__cta {
  flex: none;
}

/* ---------- hero ---------- */
.ld-hero {
  padding-top: 140px;
}

.ld-hero__kicker {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 48px;
  font-family: Archivo, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #8a857b;
}

.ld-hero__title {
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.ld-hero__en {
  display: block;
  font-family: Archivo, sans-serif;
  font-size: clamp(40px, 7vw, 104px);
  font-weight: 900;
  color: #f2efe8;
  letter-spacing: -0.03em;
}

.ld-hero__brand {
  display: block;
  margin-top: 0.12em;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(60px, 11vw, 168px);
  font-weight: 600;
  color: #c8a24a;
  letter-spacing: -0.01em;
  line-height: 0.9;
}

.ld-hero__rule {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid #222;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.ld-hero__claim {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.ld-hero__lead {
  margin: 32px 0 0;
  max-width: 720px;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.6;
  color: #f2efe8;
}

.ld-hero__sub {
  margin: 16px 0 0;
  max-width: 640px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  color: #9c978c;
}

.ld-hero__sub strong {
  color: #f2efe8;
  font-weight: 700;
}

.ld-hero__actions {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- statement ---------- */
.ld-statement {
  border-bottom: 1px solid #1e1e1e;
}

.ld-statement__inner {
  padding-top: 72px;
  padding-bottom: 120px;
}

.ld-statement__title {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
}

/* ---------- section head ---------- */
.ld-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 64px;
}

.ld-head__main {
  min-width: 0;
}

/* ---------- services ---------- */
.ld-services {
  padding-top: 140px;
}

.ld-services__title {
  margin: 0;
  font-family: Archivo, sans-serif;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.ld-services__tagline {
  margin: 0;
  font-size: 16px;
  color: #9c978c;
}

.ld-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1px;
  background: #262626;
  border: 1px solid #262626;
}

.ld-service {
  min-width: 0;
  background: #0b0b0b;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ld-service__num {
  font-family: Archivo, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #c8a24a;
}

.ld-service__name {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.ld-service__hook {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}

.ld-service__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #9c978c;
}

/* ---------- pricing ---------- */
.ld-pricing {
  padding-top: 20px;
  padding-bottom: 140px;
}

.ld-pricing__note {
  margin: 0 0 16px;
  font-size: 14px;
  color: #9c978c;
}

.ld-price-card {
  border: 1px solid #262626;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 56px);
}

.ld-price-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 40px 0;
}

.ld-price-row--first {
  padding: 0 0 40px;
}

.ld-price-row__main {
  flex: 1 1 360px;
  min-width: 0;
}

.ld-price-row__title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ld-price-row__title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.ld-best {
  font-family: Archivo, sans-serif;
  font-size: 0.6em;
  color: #c8a24a;
  letter-spacing: 0.06em;
}

.ld-badge {
  background: #c8a24a;
  color: #0b0b0b;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.ld-price-row__amount {
  margin-left: auto;
  text-align: right;
}

.ld-price {
  margin: 0;
  font-family: Archivo, sans-serif;
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 900;
  line-height: 1;
  color: #c8a24a;
}

.ld-price__unit {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #f2efe8;
}

.ld-price__sub {
  margin: 10px 0 0;
  font-size: 14px;
  color: #9c978c;
}

.ld-price__sub--dim {
  color: #8a857b;
}

.ld-price-card__dash {
  border-top: 1px dashed #3a3a3a;
}

.ld-price-card__includes {
  border-top: 1px solid #262626;
  padding-top: 36px;
}

.ld-price-card__includes-title {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 700;
  color: #f2efe8;
}

.ld-include-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px 32px;
  font-size: 15px;
  color: #cfcac0;
}

/* ---------- cases · interview carousel ---------- */
.ld-cases {
  padding-bottom: 140px;
}

.ld-head--cases {
  margin-bottom: 48px;
}

.ld-cases__title {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.ld-cases__nav {
  display: flex;
  gap: 10px;
}

.ld-round {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ld-round--line {
  background: transparent;
  border: 1px solid #3a3a3a;
}

.ld-round--gold {
  background: #c8a24a;
  border: 0;
}

.rv-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 100 / 34;
}

.rv {
  position: absolute;
  top: 50%;
  width: 58%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  color: #f2efe8;
  text-decoration: none;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  transition:
    left 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.7s ease;
}

.rv:hover {
  color: #f2efe8;
}

/* 스크립트가 위치(inline style)를 잡기 전·스크립트 실패 시: 원본 첫 화면(가운데 1번, 오른쪽 2번, 왼쪽 마지막)과 같은 배치 */
.rv:not([style]) {
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  visibility: hidden;
}

.rv:not([style]):first-child {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
  visibility: visible;
}

.rv:not([style]):nth-child(2) {
  left: 79%;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0.4;
  z-index: 2;
  pointer-events: auto;
  visibility: visible;
}

.rv:not([style]):last-child:nth-child(n + 3) {
  left: 21%;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0.4;
  z-index: 2;
  pointer-events: auto;
  visibility: visible;
}

.rv img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rv-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0) 45%, rgba(11, 11, 11, 0.92) 100%);
}

.rv-cap {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 7%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.rv-cap > div {
  min-width: 0;
}

.rv-meta {
  margin: 0 0 6px;
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 700;
  color: #c8a24a;
}

.rv-name {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 30px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.rv-play {
  flex: none;
  width: clamp(40px, 4.4vw, 60px);
  height: clamp(40px, 4.4vw, 60px);
  border-radius: 50%;
  background: #c8a24a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rv-dots {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.rv-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #3a3a3a;
  cursor: pointer;
  transition:
    width 0.4s ease,
    background 0.4s ease;
}

.rv-dot.on {
  width: 32px;
  background: #c8a24a;
}

/* landing-reviews.js 가 점 옆에 넣는 '채널 전체 보기' 링크 등 */
.ld-cases > #rv-dots ~ * {
  margin-top: 24px;
  margin-bottom: 0;
  text-align: center;
  font-size: 14px;
}

.ld-cases > #rv-dots ~ a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-weight: 700;
}

/* ---------- difference: comparison ---------- */
.ld-diff {
  background: #0f0f0f;
  border-top: 1px solid #1e1e1e;
}

.ld-diff__inner {
  padding-top: 140px;
}

.ld-diff__title {
  margin: 0 0 64px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.ld-compare {
  font-size: clamp(16px, 1.6vw, 20px);
}

.ld-compare__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #1e1e1e;
}

.ld-compare__row:first-child {
  border-bottom-color: #262626;
}

.ld-compare__row--last {
  border-bottom: 0;
}

.ld-compare__head {
  padding: 0 0 20px;
  font-size: 14px;
  color: #6e6a62;
}

.ld-compare__head--ours {
  padding-left: 32px;
  font-weight: 700;
  color: #c8a24a;
}

.ld-compare__them {
  padding: 28px 0;
  color: #6e6a62;
}

.ld-compare__ours {
  padding: 28px 0 28px 32px;
  font-weight: 700;
}

/* ---------- difference: process ---------- */
.ld-steps {
  background: #0f0f0f;
  border-bottom: 1px solid #1e1e1e;
}

.ld-steps__inner {
  padding-top: 96px;
  padding-bottom: 140px;
}

.ld-step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 40px 32px;
}

.ld-step {
  min-width: 0;
  border-top: 2px solid #333;
  padding-top: 28px;
}

.ld-step--active {
  border-top-color: #c8a24a;
}

.ld-step__num {
  margin: 0 0 16px;
  font-family: Archivo, sans-serif;
  font-size: 44px;
  font-weight: 900;
  color: #6e6a62;
}

.ld-step__en {
  margin: 0 0 10px;
  font-family: Archivo, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #8a857b;
}

.ld-step--active .ld-step__num,
.ld-step--active .ld-step__en {
  color: #c8a24a;
}

.ld-step__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.ld-step__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #9c978c;
}

/* ---------- contact ---------- */
.ld-contact {
  background: #0f0f0f;
  border-top: 1px solid #1e1e1e;
}

.ld-contact__inner {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
}

.ld-contact__info {
  flex: 1 1 360px;
  min-width: 0;
}

.ld-contact__label {
  margin: 0 0 24px;
  font-family: Archivo, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #c8a24a;
}

.ld-contact__title {
  margin: 0 0 56px;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.ld-contact__lines {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 18px;
}

.ld-contact__lines a {
  color: #c8a24a;
  text-decoration: none;
}

.ld-contact__lines span {
  color: #f2efe8;
}

.ld-kakao {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  height: 60px;
  padding: 0 28px;
  border-radius: 999px;
  background: #fee500;
  color: #191919;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.ld-kakao svg,
.ld-kakao-float svg {
  flex: none;
}

.ld-form {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 52px;
}

.ld-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #f2efe8;
}

.ld-field input,
.ld-field textarea {
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #8a857b;
  border-radius: 0;
  color: #f2efe8;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.ld-field textarea {
  height: auto;
  padding: 10px 0;
  resize: vertical;
}

.ld-field input:focus,
.ld-field textarea:focus {
  border-bottom-color: #c8a24a;
  box-shadow: 0 1px 0 #c8a24a;
}

.ld-field .is-invalid,
.ld-field [aria-invalid='true'] {
  border-bottom-color: #e2574c;
}

.ld-field--phone {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.ld-field--phone legend {
  padding: 0;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #f2efe8;
}

.ld-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8a857b;
}

.ld-phone input {
  flex: 0 1 72px;
  width: 72px;
  min-width: 0;
  text-align: center;
}

.ld-req {
  color: #e2574c;
}

.ld-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ld-consent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  font-size: 14px;
  color: #9c978c;
}

.ld-consent__check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}

.ld-consent input {
  width: 18px;
  height: 18px;
  accent-color: #c8a24a;
}

.ld-consent a {
  font-size: 13px;
}

/* '보기' 는 체크박스 label 밖으로 뺐다(체크박스 이름에 링크 문구가 섞이지 않게). 누르는 영역만 44px 로 키운다. */
.ld-consent .ld-consent__view {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: -4px;
  padding: 0 4px;
}

.ld-submit {
  height: 52px;
  padding: 0 40px;
  background: transparent;
  color: #f2efe8;
  border: 1px solid #f2efe8;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.ld-submit:hover {
  background: rgba(242, 239, 232, 0.08);
}

.ld-submit:disabled {
  opacity: 0.5;
  cursor: progress;
}

.ld-form__status {
  margin: -20px 0 0;
  min-height: 21px;
  font-size: 14px;
  line-height: 1.5;
  color: #cfcac0;
}

/* landing-contact.js 가 data-state(error|pending|info|success)를 붙인다 */
.ld-form__status[data-state='error'] {
  color: #e2574c;
}

.ld-form__status[data-state='success'] {
  color: #c8a24a;
}

/* ---------- kakao floating ---------- */
.ld-kakao-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: #fee500;
  color: #191919;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

:where(.ld-page) .ld-kakao:hover,
:where(.ld-page) .ld-kakao-float:hover {
  color: #191919;
}

/* ---------- footer ---------- */
.ld-footer {
  border-top: 1px solid #1e1e1e;
}

.ld-footer__inner {
  padding-top: 56px;
  /* 하단 고정 카카오 버튼(56px + 24px)이 마지막 줄을 가리지 않도록 원본 64px 에 여유를 더함 */
  padding-bottom: 104px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.ld-footer__logo {
  display: block;
  height: 36px;
  width: auto;
  opacity: 0.7;
}

.ld-footer__text {
  min-width: 0;
  max-width: 760px;
  font-size: 13px;
  line-height: 1.9;
  color: #8a857b;
}

.ld-footer__text p {
  margin: 0;
}

.ld-footer__company {
  color: #cfcac0;
  font-weight: 700;
}

.ld-footer__text .ld-footer__policy {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
}

.ld-footer__policy a {
  color: #cfcac0;
  text-decoration: none;
}

.ld-footer__policy a:hover {
  color: #f2efe8;
  text-decoration: underline;
}

.ld-footer__policy .ld-footer__privacy {
  color: #f2efe8;
  font-weight: 700;
}

.ld-footer__text .ld-footer__copy {
  margin-top: 16px;
}

/* ---------- policy popups (landing-policy.js) ----------
 * reference 팝업 ①(동의)·②(약관/정책)의 수치·색을 그대로 옮겼다. <dialog> 는 화면 전체를 덮는 투명 정렬 틀이고
 * 그 안의 .ld-modal__panel 이 실제 팝업이다. 패널 바깥 = <dialog> 자신이라 그 클릭을 backdrop 클릭으로 본다.
 * 닫힌 <dialog> 는 UA 기본(display:none)을 지키도록 display 는 [open] 일 때만 지정한다. */
html.ld-scroll-locked {
  overflow: hidden;
  scrollbar-gutter: stable;
}

html.ld-scroll-locked body {
  overflow: hidden;
}

.ld-modal {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
  color: #f2efe8;
  overflow: hidden;
  overscroll-behavior: contain;
}

.ld-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ld-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.ld-modal__panel {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  background: #141414;
  border: 1px solid #2e2e2e;
  border-radius: 20px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.ld-modal__panel--policy {
  max-width: 720px;
  height: 88vh;
  height: 88dvh;
  max-height: 780px;
}

.ld-modal__head {
  flex: none;
  padding: 28px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.ld-modal__head--rule {
  padding-bottom: 20px;
  border-bottom: 1px solid #262626;
}

.ld-modal__heading {
  min-width: 0;
}

.ld-modal__kicker {
  margin: 0 0 8px;
  font-family: Archivo, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #c8a24a;
}

.ld-modal__title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* 좁은 폰에서 '수집 / ·이용' 처럼 가운뎃점 앞에서 끊기지 않게 묶는다 */
.ld-nowrap {
  white-space: nowrap;
}

/* 열릴 때 스크린리더가 제목부터 읽도록 제목(tabindex=-1)에 포커스를 둔다. 제목 테두리 표시는 생략. */
.ld-modal__title:focus {
  outline: none;
}

.ld-modal__x {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #333;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ld-modal__x:hover {
  border-color: #6e6a62;
}

.ld-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 15px;
  line-height: 1.7;
  color: #cfcac0;
}

.ld-modal__intro {
  margin: 0 0 20px;
}

.ld-consent-table {
  border: 1px solid #262626;
  border-radius: 12px;
  overflow: hidden;
}

.ld-consent-table table {
  width: 100%;
  border-collapse: collapse;
}

.ld-consent-table tr + tr > * {
  border-top: 1px solid #262626;
}

/* reference 의 96px 열은 패딩 포함 폭이라 border-box 로 맞춘다. 항목명은 줄바꿈하지 않는다. */
.ld-consent-table th {
  box-sizing: border-box;
  width: 96px;
  padding: 14px;
  white-space: nowrap;
  background: #1a1a1a;
  color: #9c978c;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  vertical-align: top;
}

.ld-consent-table td {
  padding: 14px;
  vertical-align: top;
}

.ld-consent-table strong {
  color: #f2efe8;
  font-weight: 700;
}

.ld-modal__note {
  margin: 20px 0 0;
  font-size: 14px;
  color: #9c978c;
}

.ld-modal__note a {
  color: #c8a24a;
  text-decoration: underline;
}

.ld-modal__tabs {
  flex: none;
  margin-top: 16px;
  padding: 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  border-bottom: 1px solid #262626;
}

.ld-modal__tab {
  margin-bottom: -1px;
  padding: 14px 0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #8a857b;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.ld-modal__tab[aria-selected='true'] {
  border-bottom-color: #c8a24a;
  color: #f2efe8;
}

.ld-modal__body--policy {
  padding: 8px 28px 24px;
  line-height: 1.75;
}

.ld-policy-doc h3 {
  margin: 24px 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: #f2efe8;
}

.ld-policy-doc ul {
  margin: 0;
  padding-left: 20px;
}

.ld-policy-doc:focus-visible {
  outline: 2px solid #e2c479;
  outline-offset: 4px;
}

.ld-modal__contact {
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid #262626;
  font-size: 13px;
  color: #8a857b;
}

.ld-modal__foot {
  flex: none;
  padding: 20px 28px 28px;
  border-top: 1px solid #262626;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.ld-modal__btn {
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid #3a3a3a;
  background: transparent;
  color: #f2efe8;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.ld-modal__btn--line:hover {
  background: rgba(242, 239, 232, 0.08);
}

.ld-modal__btn--gold {
  padding: 0 28px;
  border: 0;
  background: #c8a24a;
  color: #0b0b0b;
}

.ld-modal__btn--gold:hover {
  background: #e2c479;
}

.ld-modal__btn--wide {
  padding: 0 36px;
}

/* ---------- responsive ---------- */
/* 원본은 760px 이하에서 메뉴를 숨기고, 761~830px 에서는 메뉴+CTA 가 화면 밖으로 밀린다.
 * 860px 이하에서 메뉴를 헤더 둘째 줄의 간결 메뉴로 내려 두 문제를 함께 해결한다. */
@media (max-width: 860px) {
  .ld-page [id] {
    scroll-margin-top: 108px;
  }

  .ld-header__inner {
    height: auto;
    flex-wrap: wrap;
    row-gap: 0;
    column-gap: 16px;
  }

  .ld-brand {
    height: 64px;
  }

  .ld-header__cta {
    height: 40px;
    padding: 0 18px;
    font-size: 14px;
  }

  .navlinks {
    order: 3;
    flex: 1 0 100%;
    min-width: 0;
    gap: 28px;
    padding: 0 0 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .navlinks::-webkit-scrollbar {
    display: none;
  }

  .navlinks a {
    flex: none;
    padding: 4px 0;
    font-size: 12px;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  /* ABOUT 은 로고(#top)로 이동 가능 */
  .navlinks .navlinks__about {
    display: none;
  }
}

@media (max-width: 760px) {
  .ld-hero {
    padding-top: 96px;
  }

  .ld-form {
    padding-top: 0;
  }
}

/* 좁은 폰: CONTACT 는 바로 옆 '상담 신청' 버튼과 같은 목적지라 숨기고 3개 메뉴를 한 줄에 맞춘다 */
@media (max-width: 480px) {
  .navlinks {
    justify-content: space-between;
    gap: 12px;
  }

  .navlinks .navlinks__contact {
    display: none;
  }
}

/* 360px 이하: 원본 수치(40px/60px)로는 'CHOOSE YOU,' 'AD SEONGSU' 가 줄바꿈되므로 한 줄 유지할 만큼만 축소 */
@media (max-width: 370px) {
  .ld-hero__en {
    font-size: min(40px, 11.6vw);
  }

  .ld-hero__brand {
    font-size: min(60px, 15.5vw);
  }
}

@media (max-width: 640px) {
  .ld-cases {
    overflow-x: hidden;
    overflow-x: clip;
  }

  .rv-stage {
    aspect-ratio: 100 / 54;
  }

  .rv {
    width: 84%;
    border-radius: 14px;
  }

  .rv-cap {
    gap: 10px;
  }

  .ld-compare__head--ours,
  .ld-compare__ours {
    padding-left: 16px;
  }

  .ld-compare__them {
    padding-right: 8px;
  }

  .ld-service {
    padding: 36px 28px;
  }
}

@media (max-width: 480px) {
  .ld-kakao {
    display: flex;
    justify-content: center;
    padding: 0 20px;
    font-size: 16px;
  }

  .ld-kakao-float {
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    height: 52px;
    padding: 0 18px 0 14px;
    font-size: 14px;
  }

  /* 320px 폰에서도 '닫기' + '동의하고 닫기' 가 한 줄에 들어가도록 팝업 좌우 여백만 줄인다 */
  .ld-modal__head {
    padding: 22px 20px 0;
  }

  .ld-modal__head--rule {
    padding-bottom: 16px;
  }

  .ld-modal__body {
    padding: 20px;
  }

  .ld-modal__tabs {
    padding: 0 20px;
  }

  .ld-modal__body--policy {
    padding: 8px 20px 20px;
  }

  .ld-modal__foot {
    padding: 16px 20px 20px;
  }

  .ld-consent-table th {
    width: 84px;
    padding: 14px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv,
  .rv-dot {
    transition: none;
  }
}

/* ---------- 2026-10-29: hover · focus interactions ----------
 * 색·테두리·그림자·transform 만 바꿔 레이아웃 이동이 없다. hover 효과는 마우스처럼 hover 가능한 고운 포인터에서만
 * (터치에서 눌린 채 남지 않음), 움직임(transition·transform)은 '동작 줄이기'를 켜지 않았을 때만 쓴다. 문구·폼은 그대로다. */

/* 후기 카드 음소거 미리보기(landing-reviews.js): 썸네일 위, 그림자·이름표 아래. 클릭은 iframe 을 통과해 카드 링크로 간다. */
.rv-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b0b0b;
  opacity: 0;
  pointer-events: none;
}

.rv-preview.is-ready {
  opacity: 1;
}

/* 01–04 진행 단계(landing-steps.js): 마우스를 올리거나 키보드로 포커스한 단계가 금색 강조를 받고,
 * 어느 단계에도 없을 때만 01(기본)이 강조된다. 스크립트가 없으면 원래대로 01 만 강조. */
.ld-step:focus-visible {
  outline: 2px solid #e2c479;
  outline-offset: 8px;
  border-radius: 2px;
}

.ld-step-list.is-engaged .ld-step--active:not(.is-current) {
  border-top-color: #333;
}

.ld-step-list.is-engaged .ld-step--active:not(.is-current) .ld-step__num {
  color: #6e6a62;
}

.ld-step-list.is-engaged .ld-step--active:not(.is-current) .ld-step__en {
  color: #8a857b;
}

.ld-step.is-current {
  border-top-color: #c8a24a;
}

.ld-step.is-current .ld-step__num,
.ld-step.is-current .ld-step__en {
  color: #c8a24a;
}

@media (hover: hover) and (pointer: fine) {
  .ld-pill--gold:hover,
  .ld-round--gold:hover {
    background: #d6b25e;
  }

  .ld-pill--line:hover,
  .ld-round--line:hover {
    border-color: #c8a24a;
  }

  .ld-service:hover {
    background: #121211;
  }

  .ld-price-card:hover {
    border-color: #3a3a3a;
  }

  .rv:hover .rv-play {
    background: #e2c479;
  }

  :where(.ld-page) .ld-kakao:hover,
  :where(.ld-page) .ld-kakao-float:hover {
    background: #ffea2e;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ld-pill,
  .ld-round,
  .ld-service,
  .ld-price-card,
  .rv-play,
  .ld-kakao,
  .ld-kakao-float,
  .ld-submit {
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease,
      color 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.2s ease;
  }

  .ld-step,
  .ld-step__num,
  .ld-step__en {
    transition:
      border-color 0.25s ease,
      color 0.25s ease;
  }

  .rv-preview {
    transition: opacity 0.35s ease;
  }

  @media (hover: hover) and (pointer: fine) {
    .rv:hover .rv-play {
      transform: scale(1.06);
    }

    .ld-kakao-float:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
    }
  }
}


/* Homepage popup below the navigation. */
body .ads-popup-overlay {
  --popup-top: 104px;
  inset: auto;
  top: var(--popup-top);
  right: max(24px, calc((100vw - 1240px) / 2 + 24px));
  width: min(540px, calc(100vw - 48px), calc(100vh - var(--popup-top) - 62px));
  width: min(540px, calc(100vw - 48px), calc(100dvh - var(--popup-top) - 62px));
  max-height: calc(100vh - var(--popup-top) - 16px);
  max-height: calc(100dvh - var(--popup-top) - 16px);
  padding: 0;
  background: transparent;
  pointer-events: none;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: nowrap;
  flex-direction: column;
  gap: 12px;
  animation: none;
}
body .ads-popup {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 1px solid #706950;
  border-radius: 2px;
  background: #141311;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  animation: none;
}
body .ads-popup__media { background: #24211c; }
body .ads-popup__footer {
  box-sizing: border-box;
  min-height: 44px;
  padding: 6px 10px;
  gap: 8px;
  border-top: 1px solid #706950;
  background: #141311;
}
body .ads-popup__check {
  gap: 6px;
  color: #e3ded1;
  font-size: 12px;
  white-space: nowrap;
}
body .ads-popup__check input { margin: 0; accent-color: #c8a24a; }
body .ads-popup__close {
  flex-shrink: 0;
  min-height: 30px;
  padding: 4px 8px;
  border-color: #706950;
  border-radius: 2px;
  background: transparent;
  color: #e3ded1;
  font-size: 12px;
}
body .ads-popup__close:hover { background: #302b20; }
@media (max-width: 860px) {
  body .ads-popup-overlay {
    --popup-top: 116px;
    right: 16px;
    width: min(540px, calc(100vw - 32px), calc(100vh - var(--popup-top) - 62px));
    width: min(540px, calc(100vw - 32px), calc(100dvh - var(--popup-top) - 62px));
  }
}

/* 2026-11-26 휴대폰 첫 화면에서 히어로 버튼과 겹치지 않게 떠 있는 카카오 버튼을 잠시 접는다(landing-hero-motion.js 가 .is-tucked 토글) */
.ld-kakao-float { transition: opacity .25s ease, transform .25s ease, visibility 0s linear 0s; }
.ld-kakao-float.is-tucked { opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
@media (prefers-reduced-motion: reduce) { .ld-kakao-float, .ld-kakao-float.is-tucked { transition: none; } }

/* 2026-11-26 가격표 이름: 폰·태블릿에서 '· MONTHLY' 가 줄 맨 앞에 오던 것 → 영문은 다음 줄로 통째로, 가운뎃점은 숨김(PC 는 한 줄 그대로) */
.ld-price-row__title .ld-en-line { white-space: nowrap; }
@media (max-width: 900px) {
  .ld-price-row__title .ld-sep { display: none; }
  .ld-price-row__title .ld-en-line { display: block; }
  /* 2026-11-26 48회차: 큰 글꼴(휴대폰 글자 크기)에서 'ANNUAL (BEST VALUE)' 한 덩어리가 카드보다 넓어져 화면 전체가 옆으로 밀리고 첫 화면 팝업 '닫기'가 잘림 → 두 단어 사이만 줄바꿈 허용 */
  .ld-price-row__title .ld-en-line { white-space: normal; }
  .ld-price-row__title .ld-en, .ld-price-row__title .ld-best { white-space: nowrap; }
}
