/**
 * about-short.css — 간명 위홈 소개 (/about)
 * 히어로 크로스페이드 슬라이드 + 소개/미디어/문의 내비(PC) + 4가지 이유 카드
 * SSOT: docs/design-md/wooseok.md · craft.md · a11y.md · motion.md
 * 상세: /about_detail (trust-certified.css)
 * left stripe / glow / pill CTA / hover 밑줄 금지 · CTA Logo Violet 1
 */
@import url('../wh-tokens.css');

#wehome-no-history-logo { display: none !important; }
#body footer { display: none !important; }
.nav.clean { display: none !important; }

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

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

.as-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 0 0 var(--wh-radius-lg, 24px) var(--wh-radius-lg, 24px);
  margin: 0 0 12px;
}

.as-hero-slides {
  position: absolute;
  inset: 0;
}

.as-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity var(--wh-motion-hero, 900ms) var(--wh-ease-in-out-smooth, ease),
    transform calc(var(--wh-motion-hero, 900ms) * 1.15) var(--wh-ease-out-smooth, ease);
}

.as-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

html.wh-reduce-motion .as-hero-slide {
  transition: none !important;
}

.as-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(25, 31, 40, 0.12) 0%,
    rgba(25, 31, 40, 0.38) 48%,
    rgba(25, 31, 40, 0.78) 100%
  );
  pointer-events: none;
}

.as-hero-nav {
  display: none;
}

.as-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 72px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
}

.as-hero-logo {
  display: block;
  height: 48px;
  width: auto;
  margin: 0 0 10px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.as-hero-tagline {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.as-title {
  margin: 0 0 10px;
  font-family: var(--wh-ff-display, 'SUIT', 'Pretendard', sans-serif);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  overflow-wrap: break-word;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.as-title--script {
  font-family: 'Nanum Pen Script', var(--wh-ff-display, 'SUIT', 'Pretendard', sans-serif);
  font-weight: 400;
  font-size: 84px;
  line-height: 0.95;
  letter-spacing: 0;
}

.as-main-message {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  max-width: 28em;
  overflow-wrap: break-word;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

html:lang(ko) .as-title,
html:lang(ko) .as-main-message {
  word-break: keep-all;
}

.as-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.as-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--wh-touch-cta, 48px);
  padding: 0 22px;
  border-radius: var(--wh-radius-btn, 18px);
  background: var(--wh-brand, #681DC7);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  border: none;
}

.as-cta-primary:hover,
.as-cta-primary:focus {
  background: var(--wh-brand-hover, #5416A3);
  color: #fff !important;
}

.as-cta-primary:focus-visible {
  outline: 2px solid var(--wh-focus-ring, #681DC7);
  outline-offset: 2px;
}

.as-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--wh-touch-cta, 48px);
  padding: 0 20px;
  border-radius: var(--wh-radius-btn, 18px);
  background: rgba(255, 255, 255, 0.16);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.as-cta-secondary:hover,
.as-cta-secondary:focus {
  background: rgba(255, 255, 255, 0.24);
  color: #fff !important;
}

.as-cta-secondary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.as-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 20px 32px;
  max-width: 640px;
  margin: 0 auto;
}

.as-value-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 24px;
  border-top: 1px solid var(--wh-bd, rgba(0, 0, 0, 0.08));
  transition-delay: calc(var(--i, 0) * 60ms);
}

.as-value-card:first-child {
  padding-top: 0;
  border-top: none;
}

.as-value-thumb {
  height: 92px;
  margin: 0 0 10px;
  border-radius: var(--wh-radius-sharp, 10px);
  background-size: cover;
  background-position: center;
  filter: sepia(0.18) saturate(1.1) brightness(0.98);
}

.as-value-num {
  display: block;
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--wh-tx3, #66707d);
}

.as-value-kw {
  margin-left: 6px;
  font-weight: 800;
  color: var(--wh-brand, #681DC7);
}

.as-value-card h2 {
  margin: 0 0 4px;
  font-family: var(--wh-ff-display, 'SUIT', 'Pretendard', sans-serif);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--wh-tx, #191f28);
  overflow-wrap: break-word;
}

.as-value-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--wh-tx2, #4e5968);
  overflow-wrap: break-word;
}

/* word-break:keep-all은 띄어쓰기 있는 한국어 전용 — 일본어·중국어(띄어쓰기 없음)에 걸리면
   문장 전체가 줄바꿈 안 되는 한 단어 취급돼 그리드 카드가 폭주함(min-width:auto) */
html:lang(ko) .as-value-card h2,
html:lang(ko) .as-value-card p {
  word-break: keep-all;
}

.as-value-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  min-height: var(--wh-touch-min, 44px);
  font-size: 14px;
  font-weight: 700;
  color: var(--wh-brand, #681DC7) !important;
}

.as-value-cta:hover,
.as-value-cta:focus {
  color: var(--wh-brand-hover, #5416A3) !important;
}

.as-value-cta .material-symbols-outlined {
  font-size: var(--wh-icon-sm, 20px);
}

@media (min-width: 1024px) {
  html.sp-force-desktop-ui #content.as-page {
    padding-top: var(--sp-dt-header-h, 108px) !important;
    padding-bottom: 20px !important;
  }

  /* static-pages-desktop-upgrade.css가 #content에 max-width(1120px)+margin:auto를
     강제하므로, 히어로만 그 제약을 뚫고 뷰포트 전체 폭으로 풀블리드 */
  html.sp-force-desktop-ui .as-hero {
    min-height: 380px;
    width: auto;
    margin: 0 calc(50% - 50vw);
    border-radius: 0;
  }

  html.sp-force-desktop-ui .as-hero-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 26px 44px;
  }

  html.sp-force-desktop-ui .as-hero-brand {
    color: #fff;
    font-family: var(--wh-ff-display, 'SUIT', 'Pretendard', sans-serif);
    font-weight: 800;
    font-size: 16px;
  }

  html.sp-force-desktop-ui .as-hero-crumb {
    margin-left: 10px;
    font-family: var(--wh-ff, 'Pretendard', sans-serif);
    font-weight: 500;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.68);
  }

  html.sp-force-desktop-ui .as-hero-crumb::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 12px;
    margin-right: 10px;
    vertical-align: -1px;
    background: rgba(255, 255, 255, 0.4);
  }

  /* 사이트 전역 nav{} 규칙(모바일 하단 탭바: position:fixed;bottom:0;background:#fff)이
     태그 셀렉터라 이 <nav>에도 걸린다 — 명시적으로 무력화 */
  html.sp-force-desktop-ui .as-hero-links {
    display: flex;
    gap: 32px;
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    min-height: 0;
    max-width: none;
    margin: 0;
    background: transparent;
    border: 0;
    padding-bottom: 0;
    z-index: auto;
  }

  html.sp-force-desktop-ui .as-hero-links a {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.75);
  }

  html.sp-force-desktop-ui .as-hero-links a:hover,
  html.sp-force-desktop-ui .as-hero-links a:focus,
  html.sp-force-desktop-ui .as-hero-links a.is-active {
    color: #fff;
  }

  html.sp-force-desktop-ui .as-hero-links a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
  }

  html.sp-force-desktop-ui .as-hero-inner {
    padding: 44px 40px 20px;
  }

  html.sp-force-desktop-ui .as-hero-logo {
    height: 68px;
    margin: 0 0 8px;
  }

  html.sp-force-desktop-ui .as-hero-tagline {
    font-size: 12px;
    margin-bottom: 2px;
  }

  html.sp-force-desktop-ui .as-title {
    font-size: 48px;
  }

  html.sp-force-desktop-ui .as-title--script {
    font-size: 112px;
    margin-bottom: 4px;
  }

  html.sp-force-desktop-ui .as-main-message {
    font-size: 16px;
    margin-bottom: 0;
  }

  html.sp-force-desktop-ui .as-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: min(1120px, calc(100vw - 80px));
    padding: 24px 0 28px;
  }

  html.sp-force-desktop-ui .as-value-card {
    padding: 0 28px;
    border-top: none;
    border-left: 1px solid var(--wh-bd, rgba(0, 0, 0, 0.08));
  }

  html.sp-force-desktop-ui .as-value-card:first-child {
    padding-left: 0;
    border-left: none;
  }
}
