/* ==========================================================================
   태재 기업통신 랜딩페이지 스타일시트
   ========================================================================== */

/* Fonts: Paperlogy (300 ~ 800) */
@font-face {
  font-family: 'Paperlogy';
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/paperlogy-300.woff') format('woff');
}

@font-face {
  font-family: 'Paperlogy';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/paperlogy-400.woff') format('woff');
}

@font-face {
  font-family: 'Paperlogy';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/paperlogy-500.woff') format('woff');
}

@font-face {
  font-family: 'Paperlogy';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/paperlogy-600.woff') format('woff');
}

@font-face {
  font-family: 'Paperlogy';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/paperlogy-700.woff') format('woff');
}

@font-face {
  font-family: 'Paperlogy';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/paperlogy-800.woff') format('woff');
}

/* Design Tokens */
:root {
  --color-brand: #EA002C;
  --color-brand-dark: #C40026;
  --color-brand-darker: #9C001E;
  --color-kakao: #FFE97A;
  --color-kakao-hover: #F5DC5F;

  --color-text: #26334D;
  --color-text-muted: #4E5D78;
  --color-text-slate: #3A4560;
  --color-text-orange: #A84800;
  --color-arrow-orange: #D45D00;

  --color-bg-page: #F7F7F9;
  --color-bg-white: #FFFFFF;
  --color-bg-footer: #F0F1F4;
  --color-border: #E3E5EA;

  --color-tint-pink-light: #FFF0F2;
  --color-tint-pink: #FDE3E8;
  --color-border-pink: #F5B8C4;

  --color-tint-orange: #FFEBD9;
  --color-border-orange: #FFCFA3;

  --color-tint-slate: #EEF0F4;
  --color-border-slate: #D3D8E2;

  --font-base: 'Paperlogy', 'Noto Sans KR', system-ui, sans-serif;
  --container-max: 1120px;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg-page);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}

p,
.section-desc,
.hero__desc,
.service-summary-card__desc,
.flow-card__desc,
.service-callout,
.step-card__desc,
.target-card__desc,
.tj-faq__answer,
.contact__desc,
.footer__text {
  text-wrap: pretty;
}

a {
  color: var(--color-brand-dark);
}

a:hover {
  color: var(--color-brand-darker);
}

.page {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: 24px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}

.section-title {
  margin: 0;
  font-size: 40px;
  line-height: 1.3;
  font-weight: 800;
  text-wrap: balance;
}

.section-desc {
  margin: 0;
  font-size: 17px;
  color: var(--color-text-muted);
}

.icon {
  flex-shrink: 0;
  opacity: 0.5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn--sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.btn--primary {
  background: var(--color-brand);
  color: var(--color-bg-white);
}

.btn--primary:hover {
  background: var(--color-brand-dark);
  color: var(--color-bg-white);
}

.btn--kakao {
  background: var(--color-kakao);
  color: var(--color-text);
}

.btn--kakao:hover {
  background: var(--color-kakao-hover);
  color: var(--color-text);
}

.btn--outline {
  background: var(--color-bg-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  cursor: pointer;
  font-family: inherit;
}

.btn--outline:hover {
  background: var(--color-bg-page);
  color: var(--color-text);
}

/* Top Bar */
.topbar {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
}

.topbar__inner {
  padding-block: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Hero */
.hero {
  background: var(--color-tint-pink-light);
}

.hero__inner {
  padding-top: 56px;
  padding-bottom: 72px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.hero__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__company {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero__headline {
  margin: 0;
  font-size: clamp(40px, 8.6vw, 96px);
  line-height: 1.15;
  font-weight: 800;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.28em;
}

.hero__word {
  white-space: nowrap;
  color: var(--color-text);
}

.hero__word--brand {
  color: var(--color-brand);
  flex-basis: 100%;
}

@keyframes tj-in {
  from {
    opacity: 0;
    transform: translateY(0.25em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tj-ch {
  display: inline-block;
  animation: tj-in 0.45s ease-out backwards;
}

.hero__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.hero__copy {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero__kicker {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-brand-dark);
}

.hero__subheadline {
  margin: 0;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 800;
  text-wrap: balance;
}

.hero__desc {
  margin: 0;
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.hero__region {
  font-size: 14px;
  color: var(--color-text-muted);
}

.hero__cards {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-summary-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-summary-card__title {
  font-weight: 800;
  font-size: 26px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-summary-card__title .icon {
  opacity: 0.68;
}

.service-summary-card__desc {
  font-size: 17px;
  color: var(--color-text-muted);
  word-break: keep-all;
}

/* Services Section */
.section {
  background: var(--color-bg-page);
}

.section--white {
  background: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section__inner {
  padding-block: 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section__inner--faq {
  gap: 28px;
}

.flow-card {
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.flow-card--pink {
  background: var(--color-tint-pink);
}

.flow-card--orange {
  background: var(--color-tint-orange);
}

.flow-card--slate {
  background: var(--color-tint-slate);
}

.flow-card__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flow-card__title {
  font-weight: 800;
  font-size: 26px;
}

.flow-card__desc {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 760px;
}

.flow-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.flow-node {
  background: var(--color-bg-white);
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 17px;
  word-break: keep-all;
}

.flow-card--pink .flow-node {
  border: 1px solid var(--color-border-pink);
}

.flow-card--orange .flow-node {
  border: 1px solid var(--color-border-orange);
}

.flow-card--slate .flow-node {
  border: 1px solid var(--color-border-slate);
}

.flow-arrow {
  font-size: 22px;
  font-weight: 700;
}

.flow-card--pink .flow-arrow {
  color: var(--color-brand);
}

.flow-card--orange .flow-arrow {
  color: var(--color-arrow-orange);
}

.flow-card--slate .flow-arrow {
  color: var(--color-text-muted);
}

.checkpoints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.checkpoints__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 4px;
  font-size: 16px;
  font-weight: 800;
}

.checkpoints__icon {
  flex-shrink: 0;
}

.flow-card--pink .checkpoints__label {
  color: var(--color-brand-dark);
}

.flow-card--orange .checkpoints__label {
  color: var(--color-text-orange);
}

.flow-card--slate .checkpoints__label {
  color: var(--color-text-slate);
}

.chip {
  background: var(--color-bg-page);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip--white {
  background: var(--color-bg-white);
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 600;
  gap: 8px;
}

.service-callout {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px 24px;
  font-size: 16px;
}

.service-callout strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

/* Promise Cards */
.promise-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.promise-card {
  position: relative;
  overflow: hidden;
  flex: 1 1 300px;
  min-width: 0;
  border-radius: 18px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.promise-card__bg {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 225px;
  height: 225px;
  object-fit: contain;
  opacity: 0.2;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.promise-card--pink {
  background: var(--color-tint-pink-light);
}

.promise-card--orange {
  background: var(--color-tint-orange);
}

.promise-card--slate {
  background: var(--color-tint-slate);
}

.promise-card__title {
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
  font-weight: 800;
  font-size: 25px;
  line-height: 1.3;
}

.promise-card__item {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-text-slate);
}

/* Process Steps */
.steps-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.step-card {
  flex: 1 1 190px;
  min-width: 0;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-card__badge {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.step-card__badge--pink {
  background: var(--color-tint-pink);
  color: var(--color-brand-dark);
}

.step-card__badge--orange {
  background: var(--color-tint-orange);
  color: var(--color-text-orange);
}

.step-card__badge--slate {
  background: var(--color-tint-slate);
  color: var(--color-text-slate);
}

.step-card__title {
  font-weight: 800;
  font-size: 21px;
  word-break: keep-all;
}

.step-card__desc {
  font-size: 15px;
  color: var(--color-text-muted);
}

/* Target Companies */
.target-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.target-card {
  flex: 1 1 240px;
  min-width: 0;
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.target-card--pink {
  background: var(--color-tint-pink-light);
}

.target-card--orange {
  background: var(--color-tint-orange);
}

.target-card--slate {
  background: var(--color-tint-slate);
}

.target-card__title {
  font-weight: 800;
  font-size: 21px;
  line-height: 1.35;
  text-wrap: balance;
}

.target-card__desc {
  font-size: 15px;
  color: var(--color-text-muted);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
}

details.tj-faq {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 0 24px;
}

details.tj-faq > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 0;
  font-weight: 700;
  font-size: 20px;
}

details.tj-faq > summary::-webkit-details-marker {
  display: none;
}

details.tj-faq > summary:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
  border-radius: 8px;
}

.tj-tri {
  flex-shrink: 0;
  color: var(--color-brand);
  transition: transform 0.2s ease;
}

details.tj-faq[open] .tj-tri {
  transform: rotate(180deg);
}

.tj-faq__answer {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--color-text-muted);
}

/* Contact */
.contact {
  background: var(--color-tint-slate);
}

.contact__inner {
  padding-block: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.contact__info {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__desc {
  margin: 0;
  font-size: 17px;
  color: var(--color-text);
}

.contact__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact__card {
  flex: 1 1 320px;
  min-width: 0;
  background: var(--color-bg-white);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__card-phone {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.contact__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  aspect-ratio: 1 / 1.15;
  min-height: 184px;
  padding: 24px 14px;
  border-radius: 16px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.contact__tile:hover {
  transform: translateY(-2px);
}

.contact__tile--phone {
  background: var(--color-brand);
  color: var(--color-bg-white);
}

.contact__tile--phone:hover {
  background: var(--color-brand-dark);
  color: var(--color-bg-white);
}

.contact__tile--kakao {
  background: #FEE500;
  color: #3C1E1E;
}

.contact__tile--kakao:hover {
  background: #F5DC00;
  color: #3C1E1E;
}

.contact__tile-icon {
  flex-shrink: 0;
}

.contact__tile-label {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.contact__card-fax {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Footer */
.footer {
  background: var(--color-bg-footer);
}

.footer__inner {
  padding-block: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__company {
  font-weight: 700;
  font-size: 18px;
}

.footer__text {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Phone Modal */
.phone-modal {
  padding: 0;
  border: none;
  border-radius: 24px;
  background: transparent;
  max-width: min(420px, calc(100vw - 32px));
  width: 100%;
  box-shadow: 0 24px 60px rgba(38, 51, 77, 0.22);
  overflow: visible;
}

.phone-modal::backdrop {
  background: rgba(20, 28, 46, 0.52);
  backdrop-filter: blur(3px);
}

.phone-modal[open] {
  animation: modal-in 0.18s ease-out;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.phone-modal__box {
  position: relative;
  background: var(--color-bg-white);
  border-radius: 24px;
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.phone-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.phone-modal__close:hover {
  background: var(--color-bg-page);
  color: var(--color-text);
}

.phone-modal__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--color-tint-pink-light);
  color: var(--color-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.phone-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-muted);
}

.phone-modal__number {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.phone-modal__desc {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--color-text-muted);
}

.phone-modal__actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.phone-modal__feedback {
  min-height: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand-dark);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tj-tri {
    transition: none;
  }

  .tj-ch {
    animation: none;
  }

  .phone-modal[open] {
    animation: none;
  }
}
