/* 020102.css — AI(인공지능) / ForCus AI
   수치는 design/020102_ForCusAI.svg 를 브라우저 렌더한 1920×5080 기준 픽셀 실측.
   단일 줄 텍스트는 line-height:1 로 두어 잉크 박스 ≈ 라인 박스가 되게 하고,
   요소 간 여백은 실측 delta 를 그대로 margin 으로 넣는다.

   세로 좌표(아트보드)
     헤더             0 ~   64
     히어로          64 ~  766   (하단 1px #E8ECEF 구분선 767)
     핵심 구성      768 ~ 1311   (#FAFBFC, 하단 1px #E8ECEF 구분선 1312)
     주요 특징     1313 ~ 2271
     기대 효과     2272 ~ 2868   (#FAFBFC)
     활용 사례     2869 ~ 3630
     구성도        3631 ~ 4324   (#FAFBFC)
     관련 솔루션   4325 ~ 4880
     푸터          4881 ~                                            */

/* ══ 히어로 ══════════════════════════════════════════════
   배지 160 / 일러스트 1016~1535 × 160~495 / 버튼 618~671 / 섹션 끝 766 */
.fca-hero {
  padding: 96px 0 95px; /* 헤더 64 + 96 = 배지 160 */
  border-bottom: 1px solid var(--color-card-line);
}

.fca-hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter-pc);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.fca-hero__badge {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 15px; /* 실측 폭 103 */
  margin-bottom: 22px;
  border: 1px solid var(--color-primary);
  border-radius: 16px;
  font-size: 14px;
  line-height: 1;
  color: var(--color-primary);
}

.fca-hero__title {
  font-size: 60px; /* "ForCus AI" 실측 잉크 h44 */
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

.fca-hero__subtitle {
  margin-top: 35px; /* 타이틀 박스 하단 274 → 부제 잉크 310 */
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.4px;
  color: var(--color-text);
}

/* 본문 2문단. 줄 잉크 358·388 / 426·456·486·516 → 줄간격 30, 문단 간 8.
   이 시안은 어절 중간에서도 끊으므로(플랫폼/으로, 하/나의) keep-all 을 주면 안 된다 */
.fca-hero__desc {
  margin-top: 21px; /* 부제 박스 하단 331 → 본문 잉크 358 */
  max-width: 580px; /* 시안 최대 줄 폭 578 — 588 로 두면 줄바꿈이 한 글자씩 밀린다 */
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.25px;
  line-height: 30px;
  color: var(--color-text-sub);
}

.fca-hero__desc + .fca-hero__desc {
  margin-top: 8px;
}

/* 본문 안 강조 : 파랑 + Bold (시안 실측 #1740C4) */
.fca-em {
  font-weight: 700;
  color: var(--color-primary);
}

/* 일러스트 : clipPath 프레임 520×336, 배치 1016~1535 × 160~495 */
.fca-hero__image {
  flex: none;
  margin: 0;
}

/* ── 버튼 : 선 173×54, radius 8, 텍스트 + 다운로드 아이콘 14, gap 9 ── */
/* PDF 소개서가 없는 동안 버튼을 감춘다.
   준비되면 마크업의 hidden 을 지우면 다시 보인다 */
.fca-actions[hidden] {
  display: none;
}

.fca-actions {
  margin-top: 78px; /* 본문 마지막 줄 박스 하단 540 → 버튼 618 */
  display: flex;
  gap: 16px;
}

.fca-btn {
  width: 173px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-bg);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--color-text);
  transition: background-color .2s ease, border-color .2s ease;
}

.fca-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-alt);
}

/* ══ 섹션 공통 ═══════════════════════════════════════════
   섹션 top → eyebrow 잉크 83 / eyebrow → 제목 잉크 19 / 제목 → 본문 블록 53 */
.fca-section--alt {
  background: var(--color-bg-alt);
}

/* 핵심 구성 섹션만 아래에 1px 구분선이 있다 (1312) */
.fca-section--line {
  border-bottom: 1px solid var(--color-card-line);
}

.fca-section .section__inner {
  padding-top: 82px;
  padding-bottom: 80px;
}

/* 주요 특징 섹션만 시안에서 eyebrow 가 1px 위에 있다(다른 섹션은 전부 83, 이 섹션만 82).
   여기서 1px 을 흘리면 아래 블록이 통째로 밀리므로 이 섹션에서 흡수한다 */
.fca-section--tight .section__inner {
  padding-top: 81px;
}

.fca-eyebrow {
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  color: var(--color-muted);
}

.fca-title {
  margin-top: 17px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  text-align: center;
  color: var(--color-text);
}

/* ══ 표 공통 ═════════════════════════════════════════════
   위·아래 테두리 #D0D7DE 1px, 행 구분선 #E8ECEF 1px.
   마지막 행 구분선과 표 아래 테두리가 시안에 둘 다 그려져 있으므로
   border-collapse 는 separate 로 둔다 (collapse 하면 한 줄이 사라진다) */
.fca-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  text-align: left;
}

/* 표 제목은 화면에서 감춘다 (시안에 없음) */
.fca-table__caption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.fca-table th,
.fca-table td {
  padding: 0 16px;
  border-bottom: 1px solid var(--color-card-line);
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
}

.fca-table thead th {
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.3px;
  color: var(--color-text-sub);
}

.fca-table tbody th {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.4px;
  color: var(--color-text);
}

.fca-table tbody td {
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.4px;
  color: var(--color-text-sub);
}

.fca-table tbody tr {
  height: 56px;
}

/* ── 핵심 구성 표 : 970~1231, 헤더 36, 컬럼 208 / 944 ── */
.fca-table--module {
  margin-top: 53px; /* 제목 박스 하단 917 → 표 위 테두리 970 */
}

.fca-table--module thead th {
  height: 36px;
}

.fca-table__col--label {
  width: 208px;
}

/* 회색 섹션 위에서는 홀수 행이 흰색이다 */
.fca-table--module tbody tr:nth-child(odd) {
  background: var(--color-bg);
}

/* ══ 주요 특징 ═══════════════════════════════════════════
   카드 368 ×3 + gap 24 = 1152 / 3행(1514·1740·1990)
   1행·3행은 202, 2행만 226 (시안 실측 — 2행 카드의 본문 박스가 한 줄 더 높다) */
.fca-feature {
  margin-top: 53px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 상 24 / 하 23. 시안 실측이 비대칭이다 */
.fca-feature__item {
  padding: 24px 24px 23px;
  border: 1px solid var(--color-card-line);
  border-radius: 12px;
  background: var(--color-bg);
}

.fca-feature__item--tall {
  min-height: 226px;
}

.fca-feature__icon {
  display: block;
  width: 48px;
  height: 48px;
}

.fca-feature__name {
  display: block;
  margin-top: 21px; /* 아이콘 하단 1587 → 이름 박스 1608 (잉크 1609) */
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

/* 카드 안쪽 폭 318 이 그대로 줄바꿈 기준이다.
   이 섹션은 시안이 어절 중간에서도 끊으므로(컨텍/스트) keep-all 을 주면 안 된다 */
.fca-feature__desc {
  margin-top: 14px; /* 이름 박스 하단 1630 → 본문 박스 1644 (잉크 1648) */
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.4px;
  line-height: 24px;
  color: var(--color-text-sub);
}

/* ══ 기대 효과 ═══════════════════════════════════════════
   2열 552 + gap 48 / 항목 112 + 구분선 1 = 113 (구분선 2562·2675·2788) */
.fca-benefit {
  margin-top: 29px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
}

.fca-benefit__item {
  display: flex;
  align-items: flex-start;
  padding: 29px 0 23px;
  border-bottom: 1px solid var(--color-card-line);
}

.fca-benefit__num {
  flex: none;
  width: 68px; /* 번호 잉크 x385 → 제목 x452 */
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: #d1d9f3;
}

.fca-benefit__body {
  display: block;
}

.fca-benefit__name {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

.fca-benefit__desc {
  display: block;
  max-width: 460px; /* 시안 최대 줄 폭 448 */
  margin-top: 14px; /* 제목 박스 하단 2501 → 설명 박스 2515 (잉크 2519) */
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.3px;
  word-break: keep-all;
  line-height: 24px;
  color: var(--color-text); /* 이 섹션만 본문색이 진하다 */
}

/* ══ 활용 사례 ═══════════════════════════════════════════
   카드 564 ×2 + gap 24 / 1·2행 152(본문 2줄), 3행 128(본문 1줄) */
.fca-case {
  margin-top: 53px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* 상 36 / 하 30. 시안 실측이 비대칭이다 */
.fca-case__item {
  padding: 36px 32px 30px;
  border: 1px solid var(--color-card-line);
  border-radius: 12px;
  background: var(--color-bg);
}

.fca-case__name {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

.fca-case__desc {
  margin-top: 14px; /* 제목 박스 하단 3131 → 본문 박스 3145 (잉크 3148) */
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.4px;
  line-height: 24px;
  color: var(--color-text-sub);
}

/* ══ ForCus AI 구성도 ════════════════════════════════════
   패널 1152×412 (3833~4244), 다이어그램 1150×410 */
.fca-arch {
  margin-top: 53px;
  border: 1px solid var(--color-card-line);
  border-radius: 12px;
  background: var(--color-bg);
}

.fca-arch__image {
  display: block;
  width: 100%;
  height: auto;
}

/* ══ 관련 솔루션 ═════════════════════════════════════════
   카드 368 ×3 + gap 24 / 카드 높이 274 (4527~4800) */
.fca-solution {
  margin-top: 53px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fca-solution__item {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--color-card-line);
  border-radius: 12px;
  background: var(--color-bg);
}

.fca-solution__icon {
  display: block;
  width: 48px;
  height: 48px;
}

.fca-solution__name {
  display: block;
  margin-top: 22px; /* 아이콘 하단 4608 → 제목 잉크 4632 */
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

.fca-solution__desc {
  margin-top: 13px; /* 제목 박스 하단 4654 → 본문 박스 4664 (잉크 4669) */
  word-break: keep-all; /* 시안은 모든 줄이 어절 경계에서 끊긴다 */
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 28px;
  color: var(--color-text-sub);
}

/* 링크는 카드 아래에 붙는다 (본문 줄 수가 카드마다 다르다 — 시안 잉크 3915 고정) */
.fca-solution__link {
  margin-top: auto;
  padding-top: 24px;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: var(--color-primary);
}

.fca-solution__link:hover {
  text-decoration: underline;
}

/* ══ 태블릿 ══════════════════════════════════════════════
   모바일 시안이 없으므로 1단 스택 + 좌우 여백 규칙을 따른다 */
@media (max-width: 1023px) {
  .fca-hero {
    padding: 64px 0;
  }

  /* 세로로 쌓으면 교차축이 가로가 된다. flex-start 로 두면 본문이
     제 폭(max-content)까지 늘어나 화면 밖으로 나간다 */
  .fca-hero__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 48px;
  }

  .fca-hero__image {
    width: 100%;
    max-width: 520px;
    height: auto;
  }

  .fca-hero__desc {
    max-width: none;
  }

  .fca-section .section__inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .fca-feature {
    margin-top: 40px;
    grid-template-columns: repeat(2, 1fr);
  }

  /* 2행 카드의 시안 높이(226)는 1440 폭에서만 의미가 있다 */
  .fca-feature__item--tall {
    min-height: 0;
  }

  .fca-case,
  .fca-solution {
    margin-top: 40px;
  }

  .fca-solution {
    grid-template-columns: repeat(2, 1fr);
  }

  .fca-arch {
    margin-top: 40px;
  }

  .fca-benefit__desc {
    max-width: none;
  }

  /* 폭이 달라지면 시안 줄바꿈 위치가 의미 없다 */
  .fca-feature__desc br {
    display: none;
  }

  /* 히어로 본문의 <br> 은 문장 경계라 좁은 폭에서도 살린다 */

  .fca-benefit {
    margin-top: 24px;
    grid-template-columns: 1fr;
  }

  /* 2열이 좁아지면 제목이 낱글자로 끊긴다. 어절 단위로만 넘긴다 */
  .fca-feature__name,
  .fca-case__name,
  .fca-benefit__name,
  .fca-solution__name {
    word-break: keep-all;
  }

  /* 표는 폭을 줄이면 글자가 깨진다. 최소 폭을 두고 가로로만 흐르게 한다 */
  .fca-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .fca-table--module {
    margin-top: 40px;
  }
}

/* ══ 모바일 ══════════════════════════════════════════════ */
@media (max-width: 767px) {
  .fca-hero {
    padding: 48px 0;
  }

  /* .section__inner 와 좌우 여백을 맞춘다 */
  .fca-hero__inner {
    padding: 0 var(--gutter-mo);
  }

  .fca-hero__title {
    font-size: 36px;
  }

  .fca-hero__subtitle {
    margin-top: 20px;
    font-size: 18px;
  }

  .fca-hero__desc {
    margin-top: 18px;
    font-size: 15px;
    line-height: 26px;
  }

  .fca-actions {
    margin-top: 32px;
  }

  .fca-title {
    margin-top: 14px;
    font-size: 24px;
  }

  .fca-section .section__inner {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .fca-feature,
  .fca-case,
  .fca-solution {
    grid-template-columns: 1fr;
  }

  .fca-feature__item,
  .fca-case__item,
  .fca-solution__item {
    padding: 20px;
  }

  .fca-feature__name,
  .fca-case__name,
  .fca-benefit__name,
  .fca-solution__name {
    font-size: 18px;
  }

  .fca-feature__desc,
  .fca-case__desc,
  .fca-benefit__desc,
  .fca-solution__desc {
    font-size: 15px;
    line-height: 24px;
  }

  /* 구성도는 가로로 긴 다이어그램이라 그대로 줄이면 글자가 안 보인다.
     최소 폭을 두고 패널 안에서만 가로로 흐르게 한다 */
  .fca-arch {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .fca-arch__image {
    width: 720px;
    max-width: none;
  }

  .fca-benefit__item {
    padding: 20px 0;
  }

  .fca-benefit__num {
    width: 52px;
    font-size: 32px;
  }
}
