@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
  --bg: #f4f7fc;
  --ink: #16202e;
  --muted: #64707f;
  --soft: #eef3fc;
  --line: #d9e1ee;
  --white: #ffffff;
  --teal: #1261ee;       /* LG blue (primary) */
  --teal-deep: #0d47b8;
  --mint: #e5efff;
  --coral: #e85d42;
  --amber: #f1b44c;
  --shadow: 0 24px 60px rgba(15, 32, 60, 0.12);

  /* 메인 색상에서 파생되는 톤 — 상품별 테마에서 같이 갈아끼운다 */
  --accent-rgb: 18, 97, 238;                /* 그림자·포커스링(rgba로 사용) */
  --tint-soft: rgba(229, 239, 255, 0.85);   /* 좌측 패널 배경 */
  --tint-strong: rgba(18, 71, 184, 0.28);   /* 히어로 이미지 위 색보정 */
  --media-bg: #dbe8fb;                      /* 이미지 로딩 전 배경 */
}

/* 상품별 메인 색상 — body 클래스로 지정한다.
   예) 제습기 = <body class="theme-teal"> */
body.theme-teal {          /* 청록 */
  --teal: #0b7c88;
  --teal-deep: #085f68;
  --mint: #dcf0f2;
  --accent-rgb: 11, 124, 136;
  --tint-soft: rgba(220, 240, 242, 0.9);
  --tint-strong: rgba(8, 95, 104, 0.3);
  --media-bg: #cfe7ea;
}

body.theme-ochre {         /* 황토 */
  --teal: #a0682a;
  --teal-deep: #7d4f1e;
  --mint: #f7ecdc;
  --accent-rgb: 160, 104, 42;
  --tint-soft: rgba(247, 236, 220, 0.9);
  --tint-strong: rgba(125, 79, 30, 0.32);
  --media-bg: #ecd9bf;
}

body.theme-indigo {        /* 남보라 — 세탁건조기 */
  --teal: #4b4fb3;
  --teal-deep: #383b8c;
  --mint: #e6e7f7;
  --accent-rgb: 75, 79, 179;
  --tint-soft: rgba(230, 231, 247, 0.9);
  --tint-strong: rgba(56, 59, 140, 0.3);
  --media-bg: #d6d8f0;
}

body.theme-green {         /* 초록 — 김치냉장고 */
  --teal: #2e7d4f;
  --teal-deep: #22603c;
  --mint: #e0f1e6;
  --accent-rgb: 46, 125, 79;
  --tint-soft: rgba(224, 241, 230, 0.9);
  --tint-strong: rgba(34, 96, 60, 0.3);
  --media-bg: #cfe5d6;
}

body.theme-plum {          /* 자두 — 식기세척기 */
  --teal: #8a3f8f;
  --teal-deep: #6a2f6e;
  --mint: #f3e5f3;
  --accent-rgb: 138, 63, 143;
  --tint-soft: rgba(243, 229, 243, 0.9);
  --tint-strong: rgba(106, 47, 110, 0.3);
  --media-bg: #e6d2e7;
}

body.theme-aqua {          /* 물빛 — 가습기 */
  --teal: #0f7fa8;
  --teal-deep: #0b6283;
  --mint: #ddf0f7;
  --accent-rgb: 15, 127, 168;
  --tint-soft: rgba(221, 240, 247, 0.9);
  --tint-strong: rgba(11, 98, 131, 0.3);
  --media-bg: #cce6f0;
}

body.theme-slate {         /* 청회색 — 공기청정기 */
  --teal: #46607a;
  --teal-deep: #344a60;
  --mint: #e3e9f0;
  --accent-rgb: 70, 96, 122;
  --tint-soft: rgba(227, 233, 240, 0.9);
  --tint-strong: rgba(52, 74, 96, 0.3);
  --media-bg: #d3dce6;
}

body.theme-autumn {        /* 가을톤 주황~갈색 — 가을 배경 사진 쓰는 세탁건조기·김치냉장고·식기세척기·가습기·공기청정기 */
  --teal: #b5531a;
  --teal-deep: #8a3d12;
  --mint: #fbeadb;
  --accent-rgb: 181, 83, 26;
  --tint-soft: rgba(251, 234, 219, 0.9);
  --tint-strong: rgba(138, 61, 18, 0.28);
  --media-bg: #f1d9c2;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== 헤더(고정 로고 + 빠른상담) ===== */
.brand-logo {
  position: absolute;
  top: 16px;
  left: 22px;
  z-index: 60;
}

.brand-logo img {
  height: 30px;
  width: auto;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.25));
}

.quick-call {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.32);
}

/* ===== 레이아웃 ===== */
.page-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) 540px;
  background: linear-gradient(90deg, var(--tint-soft), rgba(244, 247, 252, 0)),
    var(--bg);
}

.hero-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--media-bg);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 24, 60, 0.02), rgba(6, 24, 60, 0.42)),
    linear-gradient(90deg, var(--tint-strong), rgba(6, 24, 60, 0.02));
}

.hero-content {
  position: absolute;
  inset: auto 6vw 7vh 6vw;
  display: flex;
  max-width: 760px;
  flex-direction: column;
  gap: 18px;
  color: var(--white);
}

.hero-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(28px, 2.9vw, 52px);
  font-weight: 800;
  line-height: 1.14;
  word-break: keep-all;
}

.hero-content p {
  max-width: 720px;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.94);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.lead-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 64px clamp(24px, 5vw, 52px) 42px;
}

.mobile-visual {
  display: none;
  position: relative;
}

.mobile-visual-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 36%, rgba(0, 0, 0, 0.42) 72%, rgba(0, 0, 0, 0.55));
}

.mobile-visual-content {
  position: absolute;
  inset: auto 18px 16px auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: var(--white);
  text-align: right;
}

.mobile-visual-content .hero-kicker {
  font-size: 11px;
}

.mobile-visual-content h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
  word-break: keep-all;
}

/* ===== 커버(혜택) ===== */
.cover-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cover-title {
  margin: 0;
  color: var(--teal);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.benefit-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(15, 32, 60, 0.05);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

@media (hover: hover) {
  .benefit-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(var(--accent-rgb), 0.12);
  }
}

.benefit-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--mint), #f0f6ff);
  font-size: 24px;
  line-height: 1;
}

.benefit-list strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.benefit-list li p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.cover-cta {
  margin-top: 4px;
}

/* ===== 진행바 ===== */
.progress-area {
  display: grid;
  gap: 10px;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-main {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 10px;
}

.inline-back-button {
  display: none;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.progress-label span:first-child {
  color: var(--teal);
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe3ef;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  transition: width 220ms ease;
}

/* ===== 폼 프레임 ===== */
.form-frame {
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 36px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.question-view,
.contact-view,
.done-view {
  display: flex;
  flex-direction: column;
}

.question-head {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.question-head h2,
.done-view h2 {
  margin: 0;
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 800;
  line-height: 1.26;
}

.choice-grid {
  display: grid;
  gap: 12px;
}

.choice-button {
  display: grid;
  min-height: 68px;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 18px rgba(15, 32, 60, 0.04);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease,
    background 150ms ease;
}

.choice-button:focus-visible,
.choice-button.is-selected {
  border-color: var(--teal);
  background: #f5f9ff;
  box-shadow: 0 16px 28px rgba(var(--accent-rgb), 0.12);
  transform: translateY(-1px);
}

@media (hover: hover) {
  .choice-button:hover {
    border-color: var(--teal);
    background: #f5f9ff;
    box-shadow: 0 16px 28px rgba(var(--accent-rgb), 0.12);
    transform: translateY(-1px);
  }
}

.choice-button span:last-child {
  min-width: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
}

.choice-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 900;
}

.choice-button.is-selected .choice-number {
  background: var(--teal);
  color: var(--white);
}

/* ===== 요약 ===== */
.summary-list {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
}

.summary-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafd;
}

.summary-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.summary-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}

/* ===== 연락처 폼 ===== */
.field-label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.field-label input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field-label input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

.agree-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.agree-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  cursor: pointer;
}

.agree-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.detail-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.detail-button:hover,
.detail-button:focus-visible {
  color: var(--teal-deep);
}

.error-text {
  margin: 0 0 12px;
  color: #bf341f;
  font-size: 13px;
  font-weight: 800;
}

.submit-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--teal);
  color: var(--white);
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(var(--accent-rgb), 0.24);
  transition: background 150ms ease, transform 150ms ease, opacity 150ms ease;
}

.submit-button:hover,
.ghost-button:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
}

.submit-button:disabled {
  opacity: 0.42;
  transform: none;
}

.back-button {
  position: absolute;
  left: clamp(24px, 5vw, 52px);
  top: 58px;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--teal-deep);
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(15, 32, 60, 0.08);
}

/* ===== 완료 뷰 ===== */
.done-view {
  justify-content: center;
  gap: 16px;
}

.done-mark {
  align-self: flex-start;
  margin: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #e7f0ff;
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 900;
}

.done-view > p:not(.done-mark) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}

.done-summary {
  margin: 6px 0 0;
}

.ghost-button {
  margin-top: 6px;
  background: var(--ink);
  box-shadow: none;
}

.ghost-button:hover {
  background: #000000;
}

/* ===== 모달 ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 18, 34, 0.58);
}

.modal-card {
  width: min(100%, 520px);
  max-height: min(760px, calc(100vh - 40px));
  overflow: hidden;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 20px 22px;
}

.modal-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.modal-close {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.privacy-card {
  display: flex;
  flex-direction: column;
}

.privacy-body {
  overflow-y: auto;
  padding: 20px 22px;
}

.privacy-copy {
  display: grid;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.privacy-copy section {
  display: grid;
  gap: 10px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.privacy-copy section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.privacy-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.privacy-copy p,
.privacy-copy dl {
  margin: 0;
}

.privacy-copy dl {
  display: grid;
  gap: 8px;
}

.privacy-copy dl > div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
}

.privacy-copy dt {
  color: var(--ink);
  font-weight: 900;
}

.privacy-copy dd {
  margin: 0;
}

.privacy-note {
  color: #7e8983;
  font-size: 12px;
}

.modal-primary,
.modal-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 900;
}

.modal-primary {
  width: calc(100% - 44px);
  margin: 0 22px 22px;
  border: 0;
  background: var(--teal);
  color: var(--white);
}

.modal-secondary {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.complete-card {
  padding: 28px;
  text-align: center;
}

.complete-card .success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
  color: var(--teal);
}

.complete-card h2 {
  margin: 14px 0 10px;
  color: var(--ink);
  font-size: 27px;
  font-weight: 900;
  line-height: 1.22;
}

.complete-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}

.complete-card .summary-list {
  margin-top: 18px;
  text-align: left;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 18px;
}

.modal-actions .modal-primary {
  width: auto;
  margin: 0;
}

/* ===== 회사 푸터 ===== */
.company-footer {
  background: #0f1b2e;
  color: #aeb8c6;
}

.company-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 36px;
}

.company-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 6px 24px;
  margin: 0;
}

.company-info div {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.7;
}

.company-info dt {
  color: #6f7d90;
  font-weight: 700;
  white-space: nowrap;
}

.company-info dd {
  margin: 0;
}

.company-info dd a {
  color: inherit;
  text-decoration: underline;
}

.company-copyright {
  margin: 18px 0 0;
  color: #6f7d90;
  font-size: 12px;
}

/* ===== 반응형 ===== */
@media (max-width: 980px) {
  html,
  body {
    height: 100%;
  }

  .page-shell {
    display: block;
    min-height: 100svh;
    background: var(--bg);
  }

  .hero-panel {
    display: none;
  }

  /* 모바일: 리드폼을 한 화면(뷰포트 높이)에 꽉 맞춤 — 내부 스크롤 없음 */
  .lead-panel {
    display: flex;
    flex-direction: column;
    height: 100svh;
    min-height: 100svh;
    justify-content: flex-start;
    gap: clamp(10px, 1.6vh, 16px);
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .quick-call {
    top: 10px;
    right: 12px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 12.5px;
  }

  .brand-logo {
    top: 12px;
    left: 14px;
  }

  .brand-logo img {
    height: 22px;
  }

  /* 이미지 높이는 기기 화면 높이에만 연동해 고정 (뷰가 바뀌어도 안 움직임).
     472px ≈ 커버의 카드4개+버튼 높이. 짧은 질문 화면은 아래에 여백이 생김. */
  .mobile-visual {
    display: block;
    flex: 0 0 auto;
    height: clamp(120px, calc(100svh - var(--mobile-cover, 456px)), 600px);
    margin: -12px -16px 0;
    overflow: hidden;
    background: var(--media-bg);
  }

  /* 질문 화면은 커버보다 길 수 있다. --mobile-question 을 지정한 페이지만
     상담 시작 후 사진을 더 줄인다(지정 안 하면 기존 높이 그대로). */
  body.is-running .mobile-visual {
    height: clamp(96px, calc(100svh - var(--mobile-question, var(--mobile-cover, 456px))), 600px);
  }

  /* --- 혜택을 흰 카드 없이 배경 위에 얹는 페이지 옵션 --- */

  /* 커버 화면에서는 사진을 화면 비율로 잡는다(질문 화면은 아래 is-running 규칙이 담당) */
  body.plain-benefits:not(.is-running) .mobile-visual {
    height: clamp(170px, 34svh, 320px);
  }

  /* PC처럼 '혜택 한눈에 보기' 문구를 모바일에서도 보여준다.
     margin-top:auto 로 사진에서 떨어뜨려, 제목이 혜택 목록에 붙어 다니게 한다
     (남는 공간은 제목 위와 버튼 위로 반씩 나뉜다). */
  body.plain-benefits .cover-title {
    display: block;
    margin-top: auto;
    padding-top: 8px;   /* 작은 화면에서도 사진과 최소한 떨어지게 */
    font-size: 20px;
  }

  /* 사진이 작아진 만큼 남는 공간은 버튼을 아래로 밀어 채운다 */
  body.plain-benefits .cover-view {
    flex: 1 1 auto;
  }

  body.plain-benefits .cover-cta {
    margin-top: auto;
  }

  body.plain-benefits .benefit-list {
    gap: 10px;
  }

  /* 아이콘 열을 고정해 제목·설명 줄이 세로로 맞고, 왼쪽에 여백을 둔다.
     배경은 흰색 네모 — 테두리·그림자는 없다. */
  body.plain-benefits .benefit-list li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 12px;
    background: var(--white);
    box-shadow: none;
    padding: 10px 14px;
    text-align: left;
  }

  body.plain-benefits .benefit-icon {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .mobile-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
  }

  .cover-title {
    display: none;
  }

  /* 커버·폼은 원래 크기 그대로 고정 */
  .cover-view {
    flex: 0 0 auto;
    gap: 16px;
  }

  .cover-cta {
    flex: 0 0 auto;
  }

  .progress-area {
    flex: 0 0 auto;
  }

  .inline-back-button {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--teal-deep);
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
  }

  .form-frame {
    flex: 0 0 auto;
    padding: 22px 18px;
  }

  .question-head {
    margin-bottom: 16px;
  }

  .question-head h2,
  .done-view h2 {
    font-size: 22px;
  }

  .choice-button {
    min-height: 64px;
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 12px 13px;
  }

  .choice-button span:last-child {
    font-size: 18px;
  }

  .choice-number {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .back-button {
    display: none;
  }

  .modal-card {
    max-height: calc(100svh - 24px);
  }

  .complete-card {
    padding: 24px 20px;
  }

  .complete-card h2 {
    font-size: 24px;
  }
}

@media (max-width: 420px) {
  .lead-panel {
    padding: 10px 12px 24px;
  }

  .mobile-visual {
    margin: -10px -12px 0;
  }

  .form-frame {
    padding: 20px 16px;
  }

  .summary-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .summary-list dd {
    text-align: left;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }

  .modal-actions .modal-primary {
    width: auto;
    margin: 0;
  }

  .privacy-copy dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== 사진 없는 히어로(그래픽) — /mycup 처럼 제품 사진이 아직 없을 때 =====
   .hero-panel(데스크톱) / .mobile-visual(모바일) 양쪽에 같이 붙인다.
   나중에 사진이 준비되면 <img>만 다시 넣으면 된다. */
.hero-art {
  background:
    radial-gradient(680px 420px at 22% 18%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 62%),
    linear-gradient(150deg, var(--teal) 0%, var(--teal-deep) 58%, #06213f 100%);
}

.hero-art .hero-tint,
.hero-art .mobile-visual-tint {
  background: linear-gradient(180deg, rgba(6, 24, 60, 0) 40%, rgba(6, 24, 60, 0.34));
}

.hero-art-mark {
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: min(58%, 460px);
  color: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.hero-art-mark svg {
  width: 100%;
  height: auto;
}

/* ===== 주관식 질문(선택 입력) ===== */
.text-answer {
  display: grid;
  gap: 12px;
}

.text-answer .field-label {
  margin-bottom: 0;
}

.text-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.text-answer-actions {
  display: grid;
  gap: 8px;
}

.text-skip {
  border: 0;
  background: none;
  padding: 4px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-skip:hover {
  color: var(--teal-deep);
}

@media (max-width: 900px) {
  /* 모바일은 문구가 우측 하단이라 마크를 좌측으로 비켜 놓는다 */
  .mobile-visual .hero-art-mark {
    right: auto;
    left: 6%;
    bottom: 8%;
    width: min(40%, 148px);
  }
}
