/* ==========================================================================
   erpapi-homepage 공통 스타일
   색은 :root 변수로 모았습니다. 차트 막대 길이처럼 예시 숫자에 따라 달라지는
   값(width, height, flex-grow)만 HTML의 style 속성에 남겨 두었습니다.
   ========================================================================== */

:root {
  --ink: #0F172A;        /* 본문 진한 글자, 어두운 배경 */
  --ink-2: #1E293B;      /* 어두운 배경 위 말풍선 */
  --text: #344054;       /* 보조 본문 */
  --muted: #475467;      /* 작은 설명 글자 */
  --border: #D0D5DD;     /* 입력칸 테두리, 어두운 배경 위 글자 */
  --line: #EAECF0;       /* 구분선 */
  --surface: #F3F5F9;    /* 연회색 면 */
  --white: #FFFFFF;
  --green: #12B76A;
  --green-50: #D1FADF;
  --green-100: #A6F4C5;
  --green-700: #067647;
  --green-900: #054F31;
  --warn-50: #FEF0E7;
  --warn-700: #93370D;
  --amber: #FEC84B;
  --orange: #F79009;
  --red: #C4320A;
  --red-900: #7A271A;
  --error: #B42318;
}

/* ---------- 기본 ---------- */
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: var(--green-700); }
a:where(:hover) { color: var(--green-900); }
summary { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.page { background: var(--white); color: var(--ink); font-family: 'Noto Sans KR', system-ui, sans-serif; }
.text-center { text-align: center; }
.muted-xs { font-size: 12px; color: var(--muted); }

/* 회색·어두운 둥근 띠 섹션 */
.band { background: var(--surface); border-radius: 32px; margin: 0 16px; }
.band--dark { background: var(--ink); color: var(--white); }

/* 섹션 제목 */
.section-title { margin: 0; font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 900; letter-spacing: -1px; }
.section-lead { margin: 0; font-size: 17px; color: var(--text); }

/* 알약 꼬리표 */
.pill { padding: 8px 14px; border-radius: 999px; background: var(--green-50); color: var(--green-900); font-size: 14px; font-weight: 700; }

/* 버튼 */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 54px; padding: 0 28px; border-radius: 999px; text-decoration: none; font-size: 17px; font-weight: 700; }
.btn--primary { background: var(--green); color: var(--ink); }
.btn--outline { background: var(--white); border: 1px solid var(--border); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--wide { padding: 0 32px; }

/* 상태 꼬리표 */
.badge { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge--warn { background: var(--warn-50); color: var(--warn-700); }
.badge--ok { background: var(--green-50); color: var(--green-900); }

/* 카드 공통 글자 */
.card-title { margin: 0; font-size: 22px; font-weight: 900; }
.card-title--lg { font-size: 24px; }
.card-text { margin: 6px 0 0; font-size: 16px; line-height: 1.6; color: var(--text); }

/* 그래프 색 */
.c-ok { background: var(--green-100); }
.c-green { background: var(--green); }
.c-amber { background: var(--amber); }
.c-orange { background: var(--orange); }
.c-red { background: var(--red); }
.c-red-900 { background: var(--red-900); }

/* ---------- 머리글 ---------- */
.site-header__inner { max-width: 1160px; margin: 0 auto; padding: 16px 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 900; color: var(--ink); text-decoration: none; }
a.brand { min-height: 44px; }
.brand__mark { width: 28px; height: 28px; border-radius: 8px; background: var(--green); display: inline-block; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; font-size: 15px; font-weight: 500; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--green-700); font-weight: 700; }
.nav .nav-cta { padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 700; }

/* ---------- 바닥글 ---------- */
.site-footer--rule { border-top: 1px solid var(--line); }
.site-footer__inner { max-width: 1160px; margin: 0 auto; padding: 36px 24px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 14px; line-height: 1.7; color: var(--muted); }
.site-footer strong { color: var(--ink); }
.site-footer a { color: var(--muted); }

/* ==========================================================================
   메인 (index.html)
   ========================================================================== */

/* 첫 화면 */
.hero__inner { max-width: 1160px; margin: 0 auto; padding: 72px 24px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero__title { margin: 0; font-size: clamp(2.3rem, 5vw, 3.75rem); line-height: 1.18; font-weight: 900; letter-spacing: -2px; }
.hero__mark { background: var(--green-100); padding: 0 8px; border-radius: 10px; }
.hero__lead { margin: 0; font-size: 19px; line-height: 1.65; color: var(--text); }
.hero__points { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 500; color: var(--text); }

/* 첫 화면 오른쪽 예시 화면 */
.hero__visual { flex: 1 1 460px; min-width: 0; position: relative; padding: 20px 0 36px 20px; }
.mock { background: var(--white); border-radius: 20px; padding: 22px; box-shadow: 0 24px 48px rgba(15,23,42,0.12); display: flex; flex-direction: column; gap: 14px; }
.mock__head { display: flex; justify-content: space-between; align-items: center; }
.mock__head strong { font-size: 16px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--surface); border-radius: 12px; padding: 12px; }
.kpi__label { font-size: 12px; color: var(--muted); }
.kpi__value { font-size: 24px; font-weight: 900; }
.kpi--warn { background: var(--warn-50); }
.kpi--warn .kpi__label, .kpi--warn .kpi__value { color: var(--warn-700); }
.kpi--good { background: var(--green-50); }
.kpi--good .kpi__label, .kpi--good .kpi__value { color: var(--green-900); }
.aging { display: flex; height: 18px; border-radius: 9px; overflow: hidden; }
.aging > div { flex: 1 1 0; }
.mock__row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 6px 0; border-top: 1px solid var(--line); }
.float-tag { position: absolute; left: 0; top: 0; background: var(--ink); color: var(--white); border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 700; box-shadow: 0 12px 24px rgba(15,23,42,0.2); }
.float-tag s { opacity: 0.7; font-weight: 400; }
.float-alert { position: absolute; right: -4px; bottom: 0; background: var(--white); border-radius: 14px; padding: 12px 16px; font-size: 13px; line-height: 1.5; box-shadow: 0 16px 32px rgba(15,23,42,0.16); }
.float-alert strong { color: var(--warn-700); }

/* 도입 전후 비교 */
.compare__inner { max-width: 1160px; margin: 0 auto; padding: 88px 24px 40px; display: flex; flex-direction: column; gap: 32px; align-items: center; }
.compare { width: 100%; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; }
.compare__card { flex: 1 1 320px; min-width: 0; border-radius: 24px; padding: 28px; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; }
.compare__card--before { background: var(--warn-50); }
.compare__card--after { background: var(--green-50); }
.compare__label { font-size: 14px; font-weight: 700; }
.compare__card--before .compare__label { color: var(--warn-700); }
.compare__card--after .compare__label { color: var(--green-900); }
.compare__caption { font-size: 15px; font-weight: 700; margin-top: 6px; }
.compare__arrow { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; }
.file-chip { background: var(--white); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.file-chip--1 { transform: rotate(-2deg); }
.file-chip--2 { transform: rotate(1.5deg); margin-left: 28px; }
.file-chip--3 { transform: rotate(-1deg); margin-left: 8px; }
.mini-chart { background: var(--white); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.mini-chart__head { display: flex; justify-content: space-between; font-size: 14px; }
.mini-chart__head span { color: var(--muted); }
.mini-chart__bar { height: 10px; border-radius: 5px; }

/* 도입 장점 (크기가 다른 카드 묶음) */
.benefits__inner { max-width: 1160px; margin: 0 auto; padding: 64px 24px 88px; display: flex; flex-direction: column; gap: 28px; }
.tiles { display: flex; flex-wrap: wrap; gap: 20px; }
.tile { flex: 1 1 300px; min-width: 0; background: var(--surface); border-radius: 24px; padding: 28px; box-sizing: border-box; display: flex; flex-direction: column; gap: 18px; }
.tile--wide { flex: 3 1 420px; }
.tile--mid { flex: 2 1 300px; }
.tile--dark { background: var(--ink); color: var(--white); }
.tile--dark .card-text { color: var(--border); }
.tile--green { background: var(--green-50); }
.tile--green .card-text { color: var(--green-900); }

.status-list { background: var(--white); border-radius: 14px; padding: 6px 16px; font-size: 14px; }
.status-list > div { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.status-list > div:last-child { border-bottom: 0; }

.chat { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.chat__me { align-self: flex-end; background: var(--green); color: var(--ink); border-radius: 14px 14px 2px 14px; padding: 10px 14px; font-weight: 500; }
.chat__bot { align-self: flex-start; background: var(--ink-2); border-radius: 14px 14px 14px 2px; padding: 10px 14px; line-height: 1.7; }

.alloc { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.alloc__row { display: flex; align-items: center; gap: 10px; }
.alloc__date { width: 44px; }
.alloc__track { flex: 1; height: 14px; border-radius: 7px; }
.alloc__fill { height: 14px; border-radius: 7px; background: var(--green); }

.sync { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.sync__box { flex: 1; background: var(--white); border-radius: 12px; padding: 14px 8px; text-align: center; }
.sync__box--green { background: var(--green); }
.sync__arrow { font-size: 12px; color: var(--green-900); text-align: center; line-height: 1.3; }

.mail { background: var(--white); border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.6; }

/* 도입 절차 */
.steps__inner { max-width: 1160px; margin: 0 auto; padding: 80px 24px; display: flex; flex-direction: column; gap: 32px; }
.steps { display: flex; flex-wrap: wrap; gap: 20px; }
.step { flex: 1 1 280px; background: var(--white); border-radius: 24px; padding: 28px; }
.step__num { font-size: 56px; font-weight: 900; line-height: 1; color: var(--green); }
.step__title { margin: 14px 0 0; font-size: 22px; font-weight: 900; }

/* 자주 묻는 질문 */
.faq__inner { max-width: 820px; margin: 0 auto; padding: 88px 24px; display: flex; flex-direction: column; gap: 12px; }
.faq__title { margin: 0 0 12px; }
.faq details { background: var(--surface); border-radius: 16px; padding: 6px 22px; }
.faq summary { min-height: 48px; display: flex; align-items: center; font-size: 17px; font-weight: 700; }
.faq details p { margin: 0 0 16px; font-size: 16px; line-height: 1.65; color: var(--text); }

/* 상담 신청 */
.contact__inner { max-width: 1160px; margin: 0 auto; padding: 80px 24px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.contact__copy { flex: 1 1 320px; min-width: 0; }
.contact__title { margin: 0; font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 900; line-height: 1.25; letter-spacing: -1px; }
.contact__lead { margin: 16px 0 0; font-size: 17px; line-height: 1.65; color: var(--border); }
.contact__info { margin: 20px 0 0; font-size: 17px; font-weight: 700; line-height: 1.7; }

.contact-form { flex: 1 1 360px; min-width: 0; background: var(--white); color: var(--ink); border-radius: 24px; padding: 28px; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field input { min-height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; font: inherit; font-size: 16px; }
.contact-form input[aria-invalid="true"] { border-color: var(--error); outline: 2px solid #FDA29B; }
.consent-notice { background: var(--surface); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--text); line-height: 1.6; }
.consent-notice strong { color: var(--ink); }
.consent-check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; }
.consent-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
.btn-submit { min-height: 54px; border: 0; border-radius: 999px; background: var(--green); color: var(--ink); font: inherit; font-size: 17px; font-weight: 700; }
.btn-submit:disabled { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; font-size: 14px; line-height: 1.5; min-height: 1.5em; }
.form-status.is-ok { color: var(--green-700); }
.form-status.is-error { color: var(--error); }
/* 스팸 봇용 숨은 칸 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   요금 (pricing.html)
   ========================================================================== */
.page-hero__inner { max-width: 1160px; margin: 0 auto; padding: 56px 24px 40px; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.page-hero__title { margin: 0; font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 900; letter-spacing: -2px; line-height: 1.2; }

.plans { max-width: 1160px; margin: 0 auto; padding: 0 24px 72px; display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.plan { flex: 1 1 320px; min-width: 0; background: var(--surface); border-radius: 28px; padding: 32px; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; }
.plan--green { background: var(--green-50); }
.plan--dark { background: var(--ink); color: var(--white); }
.plan__eyebrow { font-size: 14px; font-weight: 700; color: var(--text); }
.plan--green .plan__eyebrow { color: var(--green-900); }
.plan--dark .plan__eyebrow { color: var(--green-100); }
.plan__name { margin: 0; font-size: 24px; font-weight: 900; }
.plan__price { font-size: 52px; font-weight: 900; line-height: 1.1; letter-spacing: -2px; }
.plan__price span { font-size: 22px; letter-spacing: 0; }
.plan__list { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.85; }
.plan__cta { margin-top: auto; justify-content: center; padding: 0; }
.plan__note { margin-top: auto; font-size: 15px; color: var(--border); }

.ext__inner { max-width: 1160px; margin: 0 auto; padding: 72px 24px; display: flex; flex-direction: column; gap: 28px; }
.ext__head .section-lead { margin-top: 8px; }
.ext-list { display: flex; flex-wrap: wrap; gap: 20px; }
.ext { flex: 1 1 380px; min-width: 0; background: var(--white); border-radius: 24px; padding: 28px; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.ext__body { flex: 1 1 180px; min-width: 0; }
.ext__price { margin-top: 12px; font-size: 20px; font-weight: 900; }
.ext__meta { font-size: 14px; color: var(--muted); line-height: 1.6; }
.ext__note { font-size: 15px; line-height: 1.8; color: var(--text); }

.phone { flex: none; width: 150px; background: var(--ink); border-radius: 22px; padding: 10px; }
.phone__screen { background: var(--white); border-radius: 14px; padding: 12px; font-size: 12px; line-height: 1.6; }
.phone__screen strong { font-size: 13px; }
.phone__overdue { color: var(--warn-700); font-weight: 700; }
.phone__promise { margin-top: 8px; padding: 6px 8px; border-radius: 8px; background: var(--green-50); color: var(--green-900); font-weight: 700; }
.phone__btn { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: var(--green); text-align: center; font-weight: 700; }

.forecast { flex: none; width: 150px; height: 150px; background: var(--surface); border-radius: 18px; padding: 14px; box-sizing: border-box; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; align-items: end; }
.forecast > div { border-radius: 4px; background: var(--green); }
.forecast > .is-low { background: var(--red); }

.cta__inner { max-width: 1160px; margin: 0 auto; padding: 72px 24px; display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }

/* ==========================================================================
   개인정보처리방침 (privacy.html)
   ========================================================================== */
.policy { max-width: 760px; margin: 0 auto; padding: 48px 24px 88px; font-size: 16px; line-height: 1.75; color: var(--text); }
.policy h1 { margin: 0 0 8px; font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 900; letter-spacing: -1px; color: var(--ink); }
.policy h2 { margin: 36px 0 8px; font-size: 20px; font-weight: 900; color: var(--ink); }
.policy p, .policy ul { margin: 0; }
.policy ul { padding-left: 22px; }
.policy .policy__intro { margin: 0 0 32px; }
