/**
 * host-center.css — 호스트 되기 착지 (/host-center)
 * SSOT: wooseok.md · craft.md · travel.md §1
 * 레퍼런스: trust-certified.css · host-cert.css · point-guide.css
 * 플랫 · Logo Violet CTA 1 · left stripe/glow 금지
 */
@import url('../wh-tokens.css');

#wehome-no-history-logo {
  display: none !important;
}

#body footer {
  display: none !important;
}

.nav.clean {
  display: none !important;
}

#content.hcenter-page {
  font-family: var(--wh-ff, 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
  background: var(--wh-bg, #f2f4f6) !important;
  padding: 0 !important;
  padding-bottom: calc(var(--bar-h, 66px) + env(safe-area-inset-bottom) + 88px) !important;
  min-height: 100vh;
}

#content.hcenter-page a,
#content.hcenter-page a:hover,
#content.hcenter-page a:focus,
#content.hcenter-page a:active {
  text-decoration: none !important;
}

/* ── Hero ── */
.hcenter-hero-band {
  display: block;
}

.hcenter-hero {
  padding: 76px 20px 8px;
}

.hcenter-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(104, 29, 199, 0.08);
  border-radius: 980px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--wh-brand, #681DC7);
  letter-spacing: -0.2px;
  margin-bottom: 14px;
}

.hcenter-hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wh-brand, #681DC7);
}

.hcenter-hero-title {
  font-family: var(--wh-ff-display, 'SUIT', 'Pretendard', sans-serif);
  font-size: 28px;
  font-weight: 800;
  color: var(--wh-tx, #191f28);
  letter-spacing: -0.6px;
  line-height: 1.28;
  margin: 0 0 12px;
  word-break: keep-all;
}

.hcenter-hero-title .em {
  color: var(--wh-brand, #681DC7);
}

.hcenter-hero-body {
  font-size: 15px;
  color: var(--wh-tx2, #4e5968);
  line-height: 1.65;
  letter-spacing: -0.2px;
  margin: 0;
  word-break: keep-all;
}

.hcenter-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

/* ── Buttons ── */
.hcenter-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  background: var(--wh-brand, #681DC7);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--wh-radius-btn, 18px);
  border: 0;
  cursor: pointer;
  transition:
    transform var(--wh-motion-state, 180ms) var(--wh-ease-spring, cubic-bezier(0.34, 1.28, 0.64, 1)),
    background var(--wh-motion-fast, 180ms) var(--wh-ease-out-smooth, cubic-bezier(0.16, 1, 0.3, 1));
}

@media (hover: hover) and (pointer: fine) {
  .hcenter-btn-primary:hover {
    background: var(--wh-brand-hover, #5416A3);
    color: #fff !important;
  }
}

.hcenter-btn-primary:active {
  transform: scale(var(--wh-scale-press, 0.96));
}

.hcenter-btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  background: #fff;
  color: var(--wh-brand, #681DC7) !important;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--wh-radius-btn, 18px);
  border: 1px solid rgba(104, 29, 199, 0.18);
  transition: transform var(--wh-motion-state, 180ms) var(--wh-ease-spring, cubic-bezier(0.34, 1.28, 0.64, 1));
}

.hcenter-btn-ghost:active {
  transform: scale(var(--wh-scale-press, 0.96));
}

/* ── KPI ── */
.hcenter-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px 20px 8px;
}

.hcenter-kpi {
  background: #fff;
  border-radius: var(--wh-radius-md, 20px);
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--wh-shadow-card, 0 1px 4px rgba(0, 0, 0, 0.06));
}

.hcenter-kpi.is-brand {
  background: var(--wh-brand-tint, #F3EEFA);
  box-shadow: none;
}

.hcenter-kpi-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--wh-tx, #191f28);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.hcenter-kpi.is-brand .hcenter-kpi-val {
  color: var(--wh-brand, #681DC7);
}

.hcenter-kpi-lbl {
  font-size: 11px;
  color: var(--wh-tx2, #4e5968);
  line-height: 1.35;
  word-break: keep-all;
}

/* ── Sections ── */
.hcenter-section {
  padding: 28px 20px 4px;
}

.hcenter-section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--wh-brand, #681DC7);
  letter-spacing: -0.2px;
  margin: 0 0 8px;
}

.hcenter-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--wh-tx, #191f28);
  letter-spacing: -0.4px;
  margin: 0 0 16px;
  word-break: keep-all;
}

/* ── Path cards ── */
.hcenter-path-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hcenter-path-card {
  display: block;
  background: #fff;
  border-radius: var(--wh-radius-md, 20px);
  padding: 18px 18px 16px;
  box-shadow: var(--wh-shadow-card, 0 1px 4px rgba(0, 0, 0, 0.06));
  color: inherit;
  border: 1px solid transparent;
  transition: transform var(--wh-motion-state, 180ms) var(--wh-ease-press, cubic-bezier(0.4, 0, 0.2, 1));
}

.hcenter-path-card.is-primary {
  border-color: rgba(104, 29, 199, 0.2);
  background: rgba(104, 29, 199, 0.03);
}

.hcenter-path-card:active {
  transform: scale(var(--wh-scale-press, 0.96));
}

.hcenter-path-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--wh-brand-tint, #F3EEFA);
  color: var(--wh-brand, #681DC7);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.hcenter-path-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--wh-tx, #191f28);
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.hcenter-path-card p {
  font-size: 13px;
  color: var(--wh-tx2, #4e5968);
  line-height: 1.55;
  margin: 0 0 12px;
  word-break: keep-all;
}

.hcenter-path-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--wh-brand, #681DC7);
}

/* ── Benefits ── */
.hcenter-benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hcenter-benefit {
  background: #fff;
  border-radius: var(--wh-radius-md, 20px);
  padding: 16px;
  box-shadow: var(--wh-shadow-card, 0 1px 4px rgba(0, 0, 0, 0.06));
}

.hcenter-benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--wh-brand-tint, #F3EEFA);
  color: var(--wh-brand, #681DC7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.hcenter-benefit h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--wh-tx, #191f28);
  margin: 0 0 6px;
}

.hcenter-benefit p {
  font-size: 12px;
  color: var(--wh-tx2, #4e5968);
  line-height: 1.5;
  margin: 0;
  word-break: keep-all;
}

/* ── Tools hub ── */
.hcenter-tools-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hcenter-tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: var(--wh-radius-md, 20px);
  padding: 14px 16px;
  box-shadow: var(--wh-shadow-card, 0 1px 4px rgba(0, 0, 0, 0.06));
  color: inherit;
}

.hcenter-tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--wh-brand-tint, #F3EEFA);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hcenter-tool-icon .material-symbols-rounded {
  font-size: 20px;
  color: var(--wh-brand, #681DC7);
  font-variation-settings: 'FILL' 1;
}

.hcenter-tool-text {
  flex: 1;
  min-width: 0;
}

.hcenter-tool-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--wh-tx, #191f28);
  letter-spacing: -0.3px;
}

.hcenter-tool-desc {
  font-size: 12px;
  color: var(--wh-tx2, #4e5968);
  margin-top: 2px;
  line-height: 1.4;
}

.hcenter-tool-arrow {
  font-size: 20px;
  color: #b0b8c1;
  flex-shrink: 0;
}

/* ── Ops / CS ── */
.hcenter-ops-card,
.hcenter-cs-card {
  background: #fff;
  border-radius: var(--wh-radius-md, 20px);
  overflow: hidden;
  box-shadow: var(--wh-shadow-card, 0 1px 4px rgba(0, 0, 0, 0.06));
}

.hcenter-ops-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--wh-bg, #f2f4f6);
}

.hcenter-ops-row:last-child {
  border-bottom: none;
}

.hcenter-ops-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--wh-brand-tint, #F3EEFA);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hcenter-ops-icon .material-symbols-rounded {
  font-size: 18px;
  color: var(--wh-brand, #681DC7);
  font-variation-settings: 'FILL' 1;
}

.hcenter-ops-text {
  font-size: 13px;
  color: var(--wh-tx2, #4e5968);
  line-height: 1.6;
  padding-top: 6px;
  word-break: keep-all;
}

.hcenter-cs-card {
  padding-bottom: 12px;
}

/* host-center: solid CTA 페어 = brand bg + #fff text (뷰 인라인 <style>과 동기화 필수 — wooseok.md onEmphasis) */
.hcenter-chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: calc(100% - 32px);
  margin: 4px 16px 4px;
  height: 48px;
  background: var(--wh-brand, #681DC7);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: var(--wh-radius-btn, 18px);
  cursor: pointer;
}

.hcenter-chat-btn .material-symbols-rounded {
  font-size: 20px;
  color: #fff;
}

/* ── FAQ ── */
.hcenter-faq-list {
  background: #fff;
  border-radius: var(--wh-radius-md, 20px);
  overflow: hidden;
  box-shadow: var(--wh-shadow-card, 0 1px 4px rgba(0, 0, 0, 0.06));
}

.hcenter-faq-item {
  border-bottom: 1px solid var(--wh-bg, #f2f4f6);
}

.hcenter-faq-item:last-child {
  border-bottom: none;
}

.hcenter-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.hcenter-faq-q-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--wh-tx, #191f28);
  letter-spacing: -0.2px;
  word-break: keep-all;
}

.hcenter-faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #b0b8c1;
  transition: transform 160ms ease;
}

.hcenter-faq-item.is-open .hcenter-faq-chevron {
  transform: rotate(180deg);
}

.hcenter-faq-a {
  display: none;
  padding: 0 16px 16px;
}

.hcenter-faq-item.is-open .hcenter-faq-a {
  display: block;
}

.hcenter-faq-a p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--wh-tx2, #4e5968);
  word-break: keep-all;
}

.hcenter-faq-a a {
  color: #0071e3 !important;
  font-weight: 700;
}

/* ── CTA band ── */
.hcenter-cta-band {
  padding: 28px 20px 8px;
}

.hcenter-cta-inner {
  background: var(--wh-brand-tint, #F3EEFA);
  border-radius: var(--wh-radius-lg, 24px);
  padding: 24px 20px;
  text-align: center;
}

.hcenter-cta-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--wh-tx, #191f28);
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}

.hcenter-cta-desc {
  font-size: 14px;
  color: var(--wh-tx2, #4e5968);
  line-height: 1.55;
  margin: 0 0 18px;
}

.hcenter-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Sticky CTA (mobile) ── */
.hcenter-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--bar-h, 66px) + env(safe-area-inset-bottom));
  z-index: 40;
  padding: 10px 16px 12px;
  background: linear-gradient(to top, rgba(242, 244, 246, 0.98) 60%, rgba(242, 244, 246, 0));
  pointer-events: none;
}

.hcenter-sticky-cta .hcenter-btn-primary {
  pointer-events: auto;
  box-shadow: 0 4px 16px rgba(104, 29, 199, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .hcenter-btn-primary,
  .hcenter-btn-ghost,
  .hcenter-faq-chevron,
  .hcenter-path-card {
    transition: none !important;
  }
}

/* ── PC ── */
@media (min-width: 1024px) {
  html.sp-force-desktop-ui #content.hcenter-page {
    max-width: min(1120px, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-bottom: 64px !important;
  }

  html.sp-force-desktop-ui .hcenter-sticky-cta {
    display: none !important;
  }

  html.sp-force-desktop-ui .hcenter-hero-band {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 40px;
    align-items: center;
    padding: 8px 0 16px;
  }

  html.sp-force-desktop-ui .hcenter-hero {
    padding: 0 !important;
  }

  html.sp-force-desktop-ui .hcenter-hero-title {
    font-size: 40px !important;
    letter-spacing: -1.2px !important;
    line-height: 1.2 !important;
  }

  html.sp-force-desktop-ui .hcenter-hero-body {
    font-size: 17px !important;
    max-width: 520px;
  }

  html.sp-force-desktop-ui .hcenter-hero-actions {
    flex-direction: row;
    align-items: center;
    margin-top: 24px;
  }

  html.sp-force-desktop-ui .hcenter-hero-actions .hcenter-btn-primary,
  html.sp-force-desktop-ui .hcenter-hero-actions .hcenter-btn-ghost {
    width: auto;
    min-width: 168px;
  }

  html.sp-force-desktop-ui .hcenter-kpi-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: #fff;
    border-radius: var(--wh-radius-lg, 24px);
    box-shadow: var(--wh-shadow-card, 0 1px 4px rgba(0, 0, 0, 0.06));
  }

  html.sp-force-desktop-ui .hcenter-kpi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    padding: 14px 16px;
    background: var(--wh-bg, #f2f4f6);
    box-shadow: none;
  }

  html.sp-force-desktop-ui .hcenter-kpi.is-brand {
    background: var(--wh-brand-tint, #F3EEFA);
  }

  html.sp-force-desktop-ui .hcenter-kpi-val {
    order: 2;
    margin: 0;
    font-size: 16px;
  }

  html.sp-force-desktop-ui .hcenter-kpi-lbl {
    order: 1;
    flex: 1;
    font-size: 14px;
    margin: 0;
  }

  html.sp-force-desktop-ui .hcenter-section {
    padding: 56px 0 8px;
  }

  html.sp-force-desktop-ui .hcenter-section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  html.sp-force-desktop-ui .hcenter-path-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  html.sp-force-desktop-ui .hcenter-path-card {
    height: 100%;
    padding: 24px;
  }

  html.sp-force-desktop-ui .hcenter-benefit-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  html.sp-force-desktop-ui .hcenter-benefit {
    padding: 22px 18px;
  }

  html.sp-force-desktop-ui .hcenter-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  @media (hover: hover) and (pointer: fine) {
    html.sp-force-desktop-ui .hcenter-tool-card:hover {
      background: #fafafa;
    }
  }

  html.sp-force-desktop-ui .hcenter-cta-band {
    padding: 56px 0 8px;
    margin-left: -24px;
    margin-right: -24px;
  }

  html.sp-force-desktop-ui .hcenter-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    text-align: left;
    border-radius: 0;
    padding: 40px 48px;
  }

  html.sp-force-desktop-ui .hcenter-cta-desc {
    margin-bottom: 0;
  }

  html.sp-force-desktop-ui .hcenter-cta-actions {
    flex-direction: row;
    flex-shrink: 0;
    gap: 12px;
  }

  html.sp-force-desktop-ui .hcenter-cta-actions .hcenter-btn-primary,
  html.sp-force-desktop-ui .hcenter-cta-actions .hcenter-btn-ghost {
    width: auto;
    min-width: 160px;
  }

  html.sp-force-desktop-ui .hcenter-cta-actions .hcenter-btn-ghost {
    background: #fff;
  }
}
