/*
 * 홈 하단 푸터, 오른쪽 위 'Summet 소개' 아이콘, 소개 창.
 * 마크업: includes/home_footer.html · about_summet_modal.html · workspace_chatbot_workspace.html(아이콘).
 * 색은 사이트 변수(--text-color 등)만 쓴다 — 밝은 테마·어두운 테마가 함께 따라온다.
 */

/* ── 첫 화면 아래로 이어지는 푸터 ─────────────────────────────────────────
   첫 화면(idle)에서만 대화 칸 전체가 스크롤된다. 첫 화면은 예전 그대로 한 화면을 채우고(껍데기 height:100%),
   그 아래에 푸터가 이어진다. 대화가 시작되면 푸터는 숨고 칸은 다시 스크롤하지 않는다. */
.summet-chat-page--idle .summet-workspace-chat-pane {
  overflow-x: hidden;
  overflow-y: auto;
}

/* 껍데기는 안내 문구 한 줄(1.75rem)을 뺀 한 화면 — 대화 칸이 스크롤하지 않던 때와 같은 높이라 첫 화면 배치가 그대로다. */
.summet-chat-page--idle .summet-workspace-chat-pane > .summet-chat-shell {
  flex: 0 0 calc(100% - 1.75rem);
  box-sizing: border-box;
}

/* 안내 문구('답변은 틀릴 수 있습니다')는 첫 화면 맨 아래에 붙어 있다가 푸터가 올라오면 함께 올라간다. */
.summet-chat-page--idle .summet-workspace-chat-pane > .summet-chat-composer-disclaimer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  flex: 0 0 auto;
}

.summet-chat-page:not(.summet-chat-page--idle) .home-footer,
.summet-chat-page:not(.summet-chat-page--idle) .home-about-btn {
  display: none;
}

.home-footer {
  flex: 0 0 auto;
  width: 100%;
  margin-top: clamp(2.5rem, 8vh, 5rem);
  border-top: 1px solid var(--glass-border, rgba(0, 0, 0, 0.08));
  color: var(--text-muted, #6b7280);
  background: var(--bg-color, transparent);
  position: relative;
  z-index: 3;
}

.home-footer__inner {
  box-sizing: border-box;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 32px;
}

.home-footer__wordmark {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-color, #111827);
}

.home-footer__tagline {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.home-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px 40px;
  margin: 40px 0 36px;
}

.home-footer__col h3 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-color, #111827);
}

.home-footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-footer__col li + li {
  margin-top: 12px;
}

.home-footer__col a,
.home-footer__link {
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted, #6b7280);
  text-decoration: none;
  transition: color 0.15s ease;
}

.home-footer__link {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

.home-footer__col a:hover,
.home-footer__link:hover {
  color: var(--text-color, #111827);
}

.home-footer__col a:focus-visible,
.home-footer__link:focus-visible,
.home-about-btn:focus-visible {
  outline: 2px solid var(--primary-color, #0ea5e9);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 칸 너비는 더 긴 글자(Google Play)에 맞추고, 두 버튼이 그 칸을 같이 채운다. */
.home-footer__stores {
  display: inline-grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: max-content;
  max-width: 100%;
}

.home-footer__stores li,
.home-footer__stores li + li {
  margin: 0;
}

.home-footer .home-footer__store {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.14));
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color, #111827);
  white-space: nowrap;
}

.home-footer .home-footer__store:hover {
  border-color: var(--text-muted, #6b7280);
}

/* 사업자 정보 — 항목마다 한 줄. 넓은 화면은 두 칸으로 나눠 읽히게 한다.
   안쪽 상자는 칸을 만들지 않고(display:contents) 줄이 이 격자의 칸이 된다.
   그래야 언어 고르기를 오른쪽 칸, 고객센터 줄 바로 아래에 둘 수 있다. */
.home-footer__business {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border, rgba(0, 0, 0, 0.08));
  font-size: 13px;
  line-height: 1.55;
}

.home-footer__business .site-footer-business__inner {
  display: contents;
}

.home-footer__lang {
  grid-column: 2;
  justify-self: start;
  margin-top: 6px;
}

.home-footer__business .site-footer-business__line {
  display: block;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.home-footer__business .site-footer-business__line a {
  color: inherit;
  text-decoration: none;
}

.home-footer__business .site-footer-business__line a:hover {
  text-decoration: underline;
}

/* 오른쪽 아래에는 고객 문의 말풍선이 떠 있어 언어 고르기를 저작권 옆(왼쪽)에 둔다. 아래 여백은 말풍선이 줄을 가리지 않게. */
.home-footer__bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 24px;
  padding-bottom: 56px;
}

.home-footer__copy {
  margin: 0;
  font-size: 12px;
}

/* 푸터의 언어 고르기는 아래쪽이 아니라 위로 펼친다 — 화면 맨 아래라 아래로는 자리가 없다. */
.home-footer .lang-dd {
  position: relative;
}

.home-footer .lang-dd__panel {
  top: auto;
  bottom: calc(100% + 6px);
  left: 0;
  right: auto;
}

@media (max-width: 768px) {
  .home-footer__inner {
    padding: 32px 16px 24px;
  }

  .home-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    margin: 32px 0 28px;
  }

  .home-footer__business {
    grid-template-columns: 1fr;
  }

  .home-footer__lang {
    grid-column: 1;
  }

}

/* ── 오른쪽 위 작은 아이콘 ─────────────────────────────────────────────── */
.home-about-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted, #6b7280);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.home-about-btn:hover {
  color: var(--text-color, #111827);
  border-color: var(--glass-border, rgba(0, 0, 0, 0.1));
  background: color-mix(in srgb, var(--surface-color, #fff) 92%, transparent);
}

/* ── 소개 창 — 틀은 설정 창(.settings-popover) 그대로, 크기와 안쪽만 다르다 ── */
body.home-about-open {
  overflow: hidden;
}

.home-about .home-about__panel {
  width: min(760px, 100%);
  height: min(780px, 100%);
}

.home-about__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border, rgba(0, 0, 0, 0.08));
}

.home-about__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color, #111827);
}

.home-about__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted, #6b7280);
  cursor: pointer;
}

.home-about__close:hover {
  background: color-mix(in srgb, var(--text-color, #111827) 8%, transparent);
  color: var(--text-color, #111827);
}

.home-about__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 24px 28px;
  color: var(--text-color, #111827);
  font-size: 14px;
  line-height: 1.65;
}

.home-about__section {
  padding: 22px 0;
  border-bottom: 1px solid var(--glass-border, rgba(0, 0, 0, 0.08));
}

.home-about__section:last-child {
  border-bottom: 0;
}

.home-about__section h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.home-about__section h4 {
  margin: 0 0 6px;
  font-size: 14.5px;
  line-height: 1.45;
}

.home-about__section p {
  margin: 0;
}

.home-about__hero h3 {
  font-size: 21px;
}

.home-about__hero p,
.home-about__lead,
.home-about__note {
  color: var(--text-muted, #6b7280);
}

.home-about__lead {
  margin-bottom: 16px !important;
}

.home-about__note {
  margin-top: 12px !important;
  font-size: 12.5px;
}

.home-about__kicker {
  margin: 0 0 6px !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--primary-color, #0ea5e9);
}

.home-about__teams,
.home-about__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-about__teams li {
  padding: 6px 0;
  color: var(--text-muted, #6b7280);
}

.home-about__teams strong {
  color: var(--text-color, #111827);
}

.home-about__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.home-about__card {
  padding: 16px;
  border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.08));
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-color, #fff) 96%, var(--text-color, #111827) 4%);
}

.home-about__card p {
  font-size: 13px;
  color: var(--text-muted, #6b7280);
}

.home-about__card ul {
  margin: 10px 0 0;
  padding: 0 0 0 18px;
  font-size: 13px;
}

.home-about__pill {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: color-mix(in srgb, var(--primary-color, #0ea5e9) 14%, transparent);
  color: var(--primary-color, #0ea5e9);
}

.home-about__steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: about-step;
}

.home-about__steps li {
  position: relative;
  padding-left: 40px;
  counter-increment: about-step;
}

.home-about__steps li::before {
  content: counter(about-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color, #0ea5e9);
}

.home-about__steps p {
  font-size: 13px;
  color: var(--text-muted, #6b7280);
}

.home-about__table-title {
  margin-top: 4px !important;
}

.home-about__table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.home-about__table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 13px;
}

.home-about__table th,
.home-about__table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--glass-border, rgba(0, 0, 0, 0.08));
  text-align: center;
}

.home-about__table thead th {
  font-size: 12px;
  color: var(--text-muted, #6b7280);
}

.home-about__table tbody th {
  font-weight: 500;
  text-align: left;
}

.home-about__table-section td {
  padding-top: 14px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  color: var(--text-muted, #6b7280);
}

.home-about__mark {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.home-about__mark--yes {
  background: color-mix(in srgb, #16a34a 16%, transparent);
  color: #16a34a;
}

.home-about__mark--yes::before {
  content: "✓";
}

.home-about__mark--no {
  color: var(--text-muted, #9ca3af);
  opacity: 0.6;
}

.home-about__mark--no::before {
  content: "–";
}

.home-about__cta p {
  color: var(--text-muted, #6b7280);
}

.home-about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.home-about__btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.14));
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-color, #111827);
  text-decoration: none;
}

.home-about__btn:hover {
  border-color: var(--text-muted, #6b7280);
}

.home-about__btn--primary {
  border-color: transparent;
  background: var(--text-color, #111827);
  color: var(--surface-color, #fff);
}

.home-about__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.home-about__links a {
  font-size: 13px;
  color: var(--text-muted, #6b7280);
  text-decoration: none;
}

.home-about__links a:hover {
  color: var(--text-color, #111827);
  text-decoration: underline;
}

.home-about__business {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-muted, #6b7280);
}

.home-about__business .site-footer-business__inner {
  margin: 0;
  padding: 0;
  max-width: none;
  text-align: left;
}

.home-about__business .site-footer-business__line {
  display: inline;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.home-about__business .site-footer-business__line:not(:last-child)::after {
  content: " / ";
  opacity: 0.55;
}

.home-about__business a {
  color: inherit;
  text-decoration: none;
}

.home-about__copy {
  margin-top: 12px !important;
  font-size: 12px;
  color: var(--text-muted, #6b7280);
}

@media (max-width: 768px) {
  .home-about__body {
    padding: 4px 16px 24px;
  }
}
