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

   세로 좌표(아트보드)
     헤더             0 ~   64
     히어로          64 ~  608   (하단 1px #E8ECEF 구분선 609)
     주요 특징      610 ~ 1319   (#FAFBFC)
     기대 효과     1320 ~ 1827
     활용 사례     1828 ~ 2413   (#FAFBFC)
     시스템 구성도 2414 ~ 3477
     고객사        3478 ~ 3859   (#FAFBFC)
     관련 솔루션   3860 ~ 4494
     푸터          4495 ~                                            */

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

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

.tts-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);
}

.tts-hero__title {
  font-size: 60px; /* "TTS" 실측 잉크 111×44 */
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

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

/* 본문 1문단 2줄. 줄 잉크 358·388 → 줄간격 30 */
.tts-hero__desc {
  margin-top: 21px; /* 부제 박스 하단 331 → 본문 잉크 358 */
  max-width: 532px; /* 시안 최대 줄 폭 526 */
  word-break: keep-all; /* 시안은 모든 줄이 어절 경계에서 끊긴다 */
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.25px;
  line-height: 30px;
  color: var(--color-text-sub);
}

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

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

.tts-actions {
  margin-top: 48px; /* 본문 마지막 줄 박스 하단 412 → 버튼 460 */
  display: flex;
  gap: 16px;
}

.tts-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;
}

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

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

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

.tts-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);
}

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

/* ══ 주요 특징 ═══════════════════════════════════════════
   카드 564 ×2 + gap 24 = 1152 / 행 높이 202 (812·1038) */
.tts-feature {
  margin-top: 53px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

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

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

/* 카드 안쪽 폭 514 가 그대로 줄바꿈 기준이다 */
.tts-feature__desc {
  margin-top: 14px; /* 이름 박스 하단 928 → 본문 박스 942 (잉크 946) */
  word-break: keep-all; /* 시안은 모든 줄이 어절 경계에서 끊긴다 */
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.4px;
  line-height: 24px;
  color: var(--color-text-sub);
}

/* ══ 기대 효과 ═══════════════════════════════════════════
   2열 552 + gap 48 / 구분선 1634·1747 */
.tts-benefit {
  margin-top: 29px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
}

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

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

.tts-benefit__body {
  display: block;
}

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

.tts-benefit__desc {
  display: block;
  max-width: 420px; /* 시안 최대 줄 폭 408 */
  margin-top: 14px; /* 제목 박스 하단 1549 → 설명 박스 1563 (잉크 1567) */
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.3px;
  word-break: keep-all; /* 시안은 모든 줄이 어절 경계에서 끊긴다 */
  line-height: 24px;
  color: var(--color-text); /* 이 섹션만 본문색이 진하다 */
}

/* ══ 활용 사례 ═══════════════════════════════════════════
   1행은 368 ×3, 2행은 564 ×2. 6등분 그리드로 두 폭을 모두 만든다
   (172 ×2 + 24 = 368 / 172 ×3 + 24 ×2 = 564) */
.tts-case {
  margin-top: 53px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

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

.tts-case__item--wide {
  grid-column: span 3;
}

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

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

/* ══ 시스템 구성도 ═══════════════════════════════════════
   패널 1152×782 (2616~3397), 다이어그램 1150×780 */
.tts-arch {
  margin-top: 53px;
  border: 1px solid var(--color-card-line);
  border-radius: 12px;
  background: var(--color-bg);
}

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

/* ══ 고객사 ══════════════════════════════════════════════
   칩 높이 42 / gap 17 / 2행 중앙 정렬 (3680·3738) */
.tts-client {
  margin-top: 53px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 17px;
  row-gap: 16px;
}

.tts-client__item {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--color-card-line);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.3px;
  color: var(--color-text-sub);
}

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

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

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

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

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

/* 링크는 카드 아래에 붙는다 (본문 줄 수가 카드마다 달라도 잉크 4284 고정) */
.tts-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);
}

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

.tts-cta .section__inner {
  padding-bottom: 159px; /* 카드 하단 4335 → 푸터 4495 */
}

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

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

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

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

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

  .tts-cta .section__inner {
    padding-bottom: 100px;
  }

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

  /* 6등분 그리드는 좁아지면 의미가 없다. 2열로 흘린다 */
  .tts-case {
    margin-top: 40px;
    grid-template-columns: repeat(2, 1fr);
  }

  .tts-case__item,
  .tts-case__item--wide {
    grid-column: auto;
  }

  .tts-arch,
  .tts-client {
    margin-top: 40px;
  }

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

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

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

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

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

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

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

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

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

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

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

  .tts-cta .section__inner {
    padding-bottom: 64px;
  }

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

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

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

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

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

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

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

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

  .tts-client__item {
    height: 38px;
    padding: 0 18px;
    font-size: 15px;
  }
}
