/* 페이지별 부분. 공통 틀은 site.css */

/* 공용 단추 */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; background: var(--yellow); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 17px; padding: 14px 28px; border-radius: 4px; border: 0; cursor: pointer; }
.btn-primary:hover { background: #f3c93a; color: var(--ink); }

/* ===== 메인 ===== */
.home-hero { position: relative; color: #ffffff; background: var(--ink) url(../assets/images/index-01-background_mobile.png) center bottom / cover no-repeat; }
.home-hero::before { content: ''; position: absolute; inset: 0; background: rgba(18, 19, 23, 0.72); }
.home-hero .wrap { position: relative; padding-top: 64px; padding-bottom: 72px; }
.home-hero__body { max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.home-hero__eyebrow { margin: 0; color: var(--yellow); font-weight: 700; }
.home-hero h1 { margin: 0; font-family: var(--font-title); font-weight: 400; font-size: clamp(40px, 6vw, 76px); line-height: 1.1; }
.home-hero__lead { margin: 0; color: #dddddd; line-height: 1.7; }
.home-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
.home-hero__link { color: #ffffff; font-weight: 700; display: inline-block; padding: 12px 0; }
.home-hero__link:hover { color: var(--yellow); }

.hero-char { display: inline-block; animation: hero-rise 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes hero-rise { from { opacity: 0; transform: translateY(0.45em); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-char { animation: none; } }

.home-story { padding: 72px 0; }
.home-story--soft { background: var(--soft); }
.home-story__row { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.home-story__row--reverse { flex-direction: row-reverse; }
.home-story__text { flex: 5 1 320px; }
.home-story__num { margin: 0; font-family: var(--font-title); font-size: 72px; line-height: 1; color: var(--yellow-deep); }
.home-story__lead { margin: 10px 0 0; font-size: 21px; font-weight: 700; color: var(--muted); }
.home-story h2 { margin: 2px 0 0; font-family: var(--font-title); font-weight: 400; font-size: clamp(44px, 5vw, 60px); }
.home-story ul { margin: 16px 0 0; padding-left: 18px; line-height: 1.75; }
.home-story__media { flex: 7 1 440px; display: flex; align-items: flex-end; gap: 16px; min-width: 0; }
.home-story__pc { flex: 1 1 auto; min-width: 0; width: 75%; }
.home-story__phone { flex: 0 0 auto; width: 22%; }

.home-features { padding: 72px 0; }
.home-features__row { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.home-features__head { flex: 1 1 240px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.home-features__head h2 { margin: 0; font-family: var(--font-title); font-weight: 400; font-size: 48px; }
.home-features__head p { margin: 0; color: var(--muted); }
.home-features__head a { font-weight: 700; display: inline-block; padding: 10px 0; }
.home-features ol { flex: 2 1 520px; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 2px solid var(--text); }
.home-features li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid #e0e0e0; }
.home-features__no { flex: none; min-width: 2.2ch; white-space: nowrap; font-family: var(--font-title); font-size: 22px; color: var(--link); line-height: 1.3; }
.home-features li strong { display: block; font-size: 18px; }
.home-features li strong + span { color: var(--muted); font-size: 14px; }

.home-apps .wrap { border-top: 1px solid #e0e0e0; }
.home-apps__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 32px; padding-top: 32px; padding-bottom: 64px; }
.home-apps h2 { margin: 0; font-family: var(--font-title); font-weight: 400; font-size: 30px; }
.home-apps a { font-weight: 700; display: inline-block; padding: 10px 0; }

.home-cta { background: var(--yellow); }
.home-cta__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 40px; padding-bottom: 40px; }
.home-cta__tel { margin: 0; font-family: var(--font-title); font-size: clamp(30px, 4vw, 40px); }
.home-cta__tel a { color: var(--ink); text-decoration: none; }
.home-cta__link { color: var(--ink); font-weight: 800; font-size: 17px; display: inline-block; padding: 10px 0; }
.home-cta__link:hover { color: var(--ink); }

/* ===== 소개, 지원 ===== */
.intro-block { padding: 64px 0; }
.intro-block--soft { background: var(--soft); }
.intro-wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.intro-qa { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.intro-qa img { flex: none; width: 48px; height: 48px; }
.intro-qa h2, .intro-qa p { margin: 0; font-size: clamp(22px, 3vw, 28px); font-weight: 800; line-height: 1.35; }
.intro-qa--a h2, .intro-qa--a p { color: #002a61; }
.intro-compare { margin: 28px 0 0; padding-left: 64px; }
.intro-compare h3 { margin: 0 0 6px; font-size: 19px; }
.intro-compare p { margin: 0; color: #444444; line-height: 1.75; font-size: 15px; }
.intro-comment { margin: 32px 0 0; padding: 18px 24px; background: var(--yellow); font-weight: 800; font-size: 18px; }
.intro-points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.intro-points h3 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 10px; font-size: 20px; color: #002a61; }
.intro-points h3 span { font-family: var(--font-title); font-weight: 400; font-size: 32px; color: var(--yellow-deep); }
.intro-points p { margin: 0; padding: 16px 24px; background: #ffffff; color: #313131; line-height: 1.75; font-size: 15px; }
.intro-points p + p { padding-top: 0; }

.support-title { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.support-title img { flex: none; width: 56px; height: 56px; object-fit: contain; }
.support-title h2 { margin: 0; font-size: clamp(24px, 3vw, 30px); font-weight: 800; }
.support-remark p { margin: 0 0 12px; line-height: 1.8; }
.support-note { color: var(--muted); }
.support-level { margin: 32px 0 14px; }
.support-level h3 { margin: 0; font-size: 20px; }
.support-level p { margin: 4px 0 0; color: var(--muted); }
.support-item { display: flex; align-items: center; gap: 0; margin-bottom: 12px; }
.support-item__title { flex: 0 0 104px; height: 104px; margin: 0; border-radius: 50%; background: var(--tone, #c3bed5); color: #ffffff; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 22px; font-weight: 800; padding: 0 14px; line-height: 1.2; position: relative; z-index: 1; }
.support-item__title + p { flex: 1; margin: 0 0 0 -24px; padding: 18px 20px 18px 44px; background: #ffffff; border-radius: 0 999px 999px 0; line-height: 1.6; font-size: 15px; min-width: 0; }

@media (max-width: 767px) {
  .intro-block { padding: 44px 0; }
  .intro-compare { padding-left: 0; }
  .intro-points p { padding: 14px 16px; }
  .support-item { flex-direction: column; align-items: stretch; }
  .support-item__title { flex: none; height: auto; border-radius: 6px 6px 0 0; padding: 10px 14px; font-size: 18px; justify-content: flex-start; }
  .support-item__title + p { margin: 0; padding: 14px 16px; border-radius: 0 0 6px 6px; }
}

/* ===== 상담 ===== */
.contact-fallback { padding: 16px; background: var(--soft); font-weight: 700; }
.contact-ready .contact-fallback { display: none; }
#contact-app[hidden] { display: none; }
.contact-accept { border: 1px solid var(--line); padding: 24px; background: #ffffff; }
.contact-accept h2 { margin: 0 0 8px; font-size: 20px; }
.contact-accept p, .contact-accept ol { margin: 0 0 8px; font-size: 15px; color: #444444; }
.contact-accept ol { padding-left: 20px; }
.contact-accept__note { font-size: 14px; color: var(--muted); }
.contact-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; font-weight: 800; cursor: pointer; }
.contact-check input { width: 22px; height: 22px; accent-color: var(--link); }
.contact-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 28px; }
.contact-field { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 12px; }
.contact-field label { font-weight: 800; }
.contact-field.is-required label::after { content: ' *'; color: #c0392b; }
.contact-field input, .contact-field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #cfcfcf; border-radius: 4px; font: inherit; background: #ffffff; }
.contact-field textarea { resize: vertical; }
.contact-field:last-child { align-items: start; }
.contact-field:last-child label { padding-top: 12px; }
.contact-submit { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; }
.contact-submit .btn-primary { min-width: 220px; }
.contact-submit .btn-primary:disabled { opacity: 0.6; cursor: wait; }
.contact-status { margin: 0; min-height: 1.6em; text-align: center; font-weight: 700; }
.contact-status.is-error { color: #b03a2e; }
.contact-status.is-done { color: #1f6b3a; }

@media (max-width: 767px) {
  .contact-accept { padding: 18px; }
  .contact-field { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .contact-field:last-child label { padding-top: 0; }
  .contact-submit .btn-primary { width: 100%; }
}

/* ===== 다운로드 ===== */
.download-head .wrap { padding-top: 48px; padding-bottom: 20px; }
.download-head h1 { margin: 0; font-family: var(--font-title); font-weight: 400; font-size: clamp(40px, 5vw, 58px); }
.download-head p { margin: 6px 0 0; color: var(--muted); }
.download-devices { display: inline-flex; border: 1px solid #cfcfcf; border-radius: 4px; overflow: hidden; margin: 8px 0 24px; }
.download-devices button { min-height: 44px; padding: 10px 20px; border: 0; background: #ffffff; color: var(--text); font: 700 15px var(--font-body); cursor: pointer; }
.download-devices button + button { border-left: 1px solid #cfcfcf; }
.download-devices button[aria-pressed="true"] { background: var(--text); color: #ffffff; font-weight: 800; }
#download-app { border-top: 0; }
#download-app .download-row:first-of-type { border-top: 2px solid var(--text); }
.download-row { display: flex; flex-wrap: wrap; gap: 20px 40px; padding: 32px 0; border-bottom: 1px solid #dedede; }
.download-row__info { flex: 5 1 340px; display: flex; gap: 18px; align-items: flex-start; }
.download-row__icon { flex: none; width: 64px; height: 64px; border-radius: 14px; }
.download-row__tag { margin: 0; font-size: 13px; font-weight: 800; color: #7a6200; }
.download-row h2 { margin: 2px 0 6px; font-family: var(--font-title); font-weight: 400; font-size: 34px; }
.download-row__info p { margin: 0 0 6px; color: #444444; line-height: 1.65; }
.download-row__info .download-row__req { color: var(--muted); font-size: 14px; }
.download-row__actions { flex: 4 1 300px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.download-row__main { justify-content: space-between; gap: 12px; width: 100%; }
.download-row__main small { font-size: 13px; font-weight: 700; }
.download-row__wait, .download-row__none { margin: 0; padding: 14px 16px; background: #f4f4f2; color: #444444; font-size: 14px; }
.download-row__others { margin: 0; display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 14px; }
.download-row__others a, .download-row__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.download-row__qrs { display: flex; flex-wrap: wrap; gap: 14px; }
.download-row__qrs figure { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: #444444; line-height: 1.45; }
.download-qr { width: 72px; height: 72px; border: 1px solid #dddddd; }
.download-row__note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.download-row__links { flex: 4 1 300px; margin: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
.download-static { border-top: 2px solid var(--text); }
.download-ready .download-static { display: none; }
.download-foot { margin: 20px 0 64px; color: var(--muted); font-size: 14px; }

@media (max-width: 767px) {
  .download-devices { display: flex; }
  .download-devices button { flex: 1; }
  .download-row h2 { font-size: 30px; }
  .download-row__icon { width: 52px; height: 52px; }
}

/* ===== 주요기능 ===== */
.features-promo { display: flex; justify-content: flex-end; padding-top: 16px; }
.features-promo a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 0; font-weight: 700; color: var(--text); }
.features-group { padding: 40px 0 56px; }
.features-group__title { display: flex; flex-direction: column; align-items: center; margin: 0 0 32px; text-align: center; font-weight: 800; font-size: 32px; letter-spacing: 0.08em; }
.features-group__title span { display: flex; align-items: center; gap: 20px; width: 100%; }
.features-group__title span::before, .features-group__title span::after { content: ''; flex: 1; height: 1px; background: #cccccc; }
.features-group__title small { font-size: 14px; letter-spacing: 0.2em; color: #c4c4c4; font-weight: 800; }
.features-group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.features-group li { --ring: #e2e2e2; position: relative; padding: 16px 0 16px 40px; border-bottom: 1px solid var(--line); }
.features-group li::before { content: ''; position: absolute; left: 0; top: 19px; width: 22px; height: 22px; border-radius: 50%; border: 5px solid var(--ring); }
.features-group h3 { margin: 0; font-size: 19px; font-weight: 800; }
.features-group p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.badge-cbt { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--ink); color: var(--yellow); font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; line-height: 1.5; }
.features-note { margin: 44px 0 0; text-align: center; color: var(--muted); font-size: 14px; }

/* 업무 흐름 */
.feature-flow { background: var(--ink); color: #ffffff; padding: 56px 0; }
.feature-flow h2 { margin: 0 0 28px; font-family: var(--font-title); font-weight: 400; font-size: clamp(30px, 4vw, 44px); }
.feature-flow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; counter-reset: none; }
.feature-flow li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; padding: 14px 0; border-top: 1px solid #3a3d44; }
.feature-flow li span { grid-row: span 2; font-family: var(--font-title); font-size: 24px; color: var(--yellow); line-height: 1.2; }
.feature-flow li h3 { margin: 0; font-size: 18px; }
.feature-flow li p { margin: 2px 0 0; color: #c8c8c8; font-size: 14px; }
.feature-flow__note { margin: 24px 0 0; color: #dddddd; font-weight: 700; }

/* 기능 단락 */
.feature-block { padding: 64px 0; }
.feature-block--soft { background: var(--soft); }
.feature-block__row { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-start; }
.feature-block--soft .feature-block__row { flex-direction: row-reverse; }
.feature-block__text { flex: 5 1 340px; min-width: 0; }
.feature-block__media { flex: 6 1 420px; min-width: 0; margin: 0; }
.feature-block__media > img, figure.feature-block__media img { display: block; width: 100%; height: auto; border: 1px solid #dddddd; background: #ffffff; }
.feature-block__no { margin: 0; font-family: var(--font-title); font-size: 48px; line-height: 1; color: var(--yellow-deep); }
.feature-block h2 { margin: 6px 0 6px; font-family: var(--font-title); font-weight: 400; font-size: clamp(34px, 4vw, 46px); }
.feature-block h3 { margin: 28px 0 10px; font-size: 18px; }
.feature-block__lead { margin: 0 0 18px; font-size: 19px; font-weight: 800; color: #002a61; }
.feature-block__sub { margin: 0 0 10px; color: #333333; line-height: 1.7; }
.feature-block__env { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.feature-block dl { margin: 0; display: grid; gap: 10px; }
.feature-block dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #e4e4e4; }
.feature-block dt { font-weight: 800; }
.feature-block dd { margin: 0; color: #444444; line-height: 1.6; }
.feature-steps { margin: 0 0 18px; padding-left: 22px; line-height: 1.7; }
.feature-steps li { margin-bottom: 6px; }
.feature-steps strong { margin-right: 6px; }
.feature-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tags li { padding: 6px 12px; background: #ffffff; border: 1px solid #d8d8d8; border-radius: 999px; font-size: 14px; font-weight: 700; }
.feature-block:not(.feature-block--soft) .feature-tags li { background: var(--soft); }
.feature-block__phones { display: flex; gap: 14px; align-items: flex-start; justify-content: center; }
.feature-block__phones img { flex: 1 1 0; min-width: 0; max-width: 240px; height: auto; border: 1px solid #d8d8d8; border-radius: 14px; }
.feature-block__phones .feature-block__device { max-width: 300px; align-self: center; border-radius: 6px; background: #000000; }
.feature-block__stack { display: flex; flex-direction: column; gap: 16px; }
.feature-block__stack img { display: block; width: 100%; height: auto; border: 1px solid #dddddd; }
.feature-block__cta { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; background: var(--yellow); color: var(--ink); text-decoration: none; font-weight: 800; border-radius: 4px; margin-top: 12px; }
.chat-sample { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #ffffff; border: 1px solid #dddddd; border-radius: 8px; }
.chat-sample p { margin: 0; max-width: 85%; padding: 10px 14px; border-radius: 14px; line-height: 1.55; }
.chat-sample__me { align-self: flex-end; background: var(--yellow); font-weight: 700; }
.chat-sample__ai { align-self: flex-start; background: #eef1f6; }

/* 사용 환경 */
.feature-env { padding: 64px 0 72px; }
.feature-env h2 { margin: 0 0 18px; font-family: var(--font-title); font-weight: 400; font-size: clamp(30px, 4vw, 40px); }
.feature-env__scroll { overflow-x: auto; }
.feature-env table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--text); font-size: 15px; }
.feature-env th, .feature-env td { padding: 12px 10px; border-bottom: 1px solid #e0e0e0; text-align: left; vertical-align: top; }
.feature-env thead th { background: var(--soft); }
.feature-env tbody th { width: 34%; white-space: nowrap; }
.feature-env__cta { margin: 20px 0 0; font-weight: 700; }
.feature-env__cta a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 768px) {
  .feature-flow ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (min-width: 1100px) {
  .feature-flow ol { grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 14px; }
  .feature-flow li { grid-template-columns: minmax(0, 1fr); border-top: 3px solid var(--yellow); padding-top: 12px; }
  .feature-flow li span { grid-row: auto; }
}
@media (max-width: 767px) {
  .feature-block { padding: 44px 0; }
  .feature-block dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .feature-env tbody th { white-space: normal; width: 40%; }
}

@media (min-width: 768px) {
  .features-group ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; justify-items: center; }
  .features-group li { width: 236px; aspect-ratio: 1; padding: 24px 22px; border: 9px solid var(--ring); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
  .features-group li::before { display: none; }
  .features-group h3 { width: 100%; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid #dddddd; font-size: 20px; letter-spacing: 0.12em; font-weight: 700; }
  .features-group p { margin: 0; font-size: 14px; line-height: 1.5; color: #333333; }
}
@media (min-width: 1100px) {
  .features-group ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
}

@media (min-width: 768px) {
  .home-hero { background-image: url(../assets/images/index-01-background.png); background-position: 60% center; }
  .home-hero::before { background: linear-gradient(90deg, rgba(18, 19, 23, 0.92) 0%, rgba(18, 19, 23, 0.75) 45%, rgba(18, 19, 23, 0.15) 100%); }
  .home-hero .wrap { padding-top: 104px; padding-bottom: 96px; }
}

@media (max-width: 767px) {
  .home-story { padding: 48px 0; }
  .home-story__num { font-size: 56px; }
  .home-features ol { grid-template-columns: minmax(0, 1fr); }
  .home-features__head h2 { font-size: 40px; }
}
