/* ===========================================================================
   POS 페이지 전용 (business/pos.html 만 싣는다) — 2026-10-06 리디자인
   - 공통 CSS(style.css · business.css · common-header.css)는 고치지 않고 여기서 덮는다.
   - 토큰·버튼·히어로·폼·고정 상담 버튼은 하이오더·소상공인 메인·서빙로봇·기가아이즈(highorder.css ·
     business-index.css · robot.css · cctv.css)와 같은 값을 **복사**했다. ⛔ 그 파일들을 불러오지 말 것 — 공통화는 docs/보류항목.md.
   - 본문은 전부 .ps 범위 안이다. 범위 밖에 쓰는 것은 아래 「페이지 전역」 블록뿐이다.
   - 빨강은 사이트 톤 #E60012. 글꼴은 이 페이지가 싣는 static 'Pretendard'.
   =========================================================================== */
.ps {
  --ps-red: #E60012;      --ps-red-hover: #C00010;   --ps-red-on-dark: #FF4D5A;
  --ps-red-tint: #FDE8E9; --ps-red-tint-2: #FFF6F6;
  --ps-ink: #111;         --ps-body: #555;           --ps-body-2: #444;
  --ps-muted: #888;
  --ps-bg-gray: #F6F6F6;  --ps-chip: #F4F4F4;        --ps-line: #EEE;  --ps-line-2: #E8E8E8;
  --ps-dark: #111;        --ps-dark-card: #1E1E1E;
  --ps-photo-bg: #F2F3F5;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
  color: var(--ps-ink);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
.ps [hidden] { display: none !important; }
.ps img { display: block; max-width: 100%; }
.ps h1, .ps h2 { text-wrap: balance; }
.ps p { text-wrap: pretty; }

/* ---- 공통 틀 ---- */
.ps-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ps-sec { padding: 96px 0; }
.ps-sec--gray { background: var(--ps-bg-gray); }
.ps-sec--dark { background: var(--ps-dark); color: #fff; }
.ps-stack { display: flex; flex-direction: column; gap: 48px; }
.ps-stack--40 { gap: 40px; }
.ps-head { display: flex; flex-direction: column; gap: 12px; }
.ps-head--center { align-items: center; text-align: center; }
.ps-eyebrow { font-size: 14px; font-weight: 700; color: var(--ps-red); }
.ps-sec--dark .ps-eyebrow { color: var(--ps-red-on-dark); }
.ps-h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.2; letter-spacing: -.03em; font-weight: 800; }
.ps-h2--sm { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.25; }
.ps-grid { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.ps-num { font-size: 13px; font-weight: 800; color: var(--ps-red); }
.ps-sec--dark .ps-num { color: var(--ps-red-on-dark); }

/* ---- 버튼 ---- */
.ps-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 28px; border-radius: 12px; border: 0;
  font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.3;
  cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s;
}
.ps-btn--red { background: var(--ps-red); color: #fff; }
.ps-btn--red:hover { background: var(--ps-red-hover); color: #fff; }
.ps-btn--gray { background: var(--ps-chip); color: var(--ps-ink); }
.ps-btn--gray:hover { background: #E9E9E9; color: var(--ps-ink); }
.ps-btn--white { background: #fff; color: var(--ps-red); font-weight: 800; }
.ps-btn--white:hover { background: #F6F6F6; color: var(--ps-red-hover); }
.ps-btn:focus-visible { outline: 3px solid var(--ps-ink); outline-offset: 2px; }
.ps-btn--white:focus-visible { outline-color: #fff; }
.ps-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ① 히어로 */
.ps-hero { padding: 72px 0 48px; }
.ps-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px; align-items: center; }
.ps-hero-text { display: flex; flex-direction: column; gap: 24px; }
.ps-chip-outline { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--ps-red); border: 1px solid var(--ps-red); padding: 6px 12px; border-radius: 999px; line-height: 1.3; }
.ps-h1 { margin: 0; font-size: clamp(34px, 6vw, 68px); line-height: 1.08; letter-spacing: -.04em; font-weight: 800; }
.ps-h1 em { color: var(--ps-red); font-style: normal; }
.ps-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ps-body-2); max-width: 460px; }
.ps-hero-media { aspect-ratio: 4 / 3.4; border-radius: 28px; overflow: hidden; background: var(--ps-photo-bg); }
.ps-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ② 메가텔레콤 단독 혜택 배너 */
.ps-promo-sec { padding: 0 0 96px; }
.ps-promo { background: var(--ps-red); color: #fff; border-radius: 24px; padding: 28px clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.ps-promo-text { display: flex; flex-direction: column; gap: 6px; }
.ps-promo-label { font-size: 14px; font-weight: 700; opacity: .9; }
.ps-promo-title { margin: 0; font-size: clamp(20px, 2.8vw, 28px); font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.ps-promo .ps-btn { min-height: 48px; padding: 14px 22px; font-size: 15px; }

/* ③ 핵심 기능 */
.ps-feat-sec { padding: 0 0 96px; }
.ps-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.ps-head-row .ps-head { max-width: 620px; }
.ps-head-sub { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ps-body); max-width: 380px; }
.ps-feat-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.ps-feat { background: #fff; border: 1px solid var(--ps-line-2); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.ps-feat h3, .ps-why h3, .ps-ind h3, .ps-dev h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.ps-feat p, .ps-ind p, .ps-dev-desc { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ps-body); }

/* ④ 장비 구성 — 카드는 js/pos.js 가 js/pos-devices.js 값으로 그린다 */
.ps-dev-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.ps-dev { background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.ps-dev-img { aspect-ratio: 1 / 1; background: var(--ps-photo-bg); }
.ps-dev-img img { width: 100%; height: 100%; object-fit: contain; }
.ps-dev-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ps-dev-tag { font-size: 13px; font-weight: 700; color: var(--ps-red); }
.ps-dev-price { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ps-line); display: flex; flex-direction: column; gap: 4px; }
.ps-dev-rent { font-size: 14px; color: var(--ps-body); }
.ps-dev-rent b { font-size: 20px; font-weight: 800; color: var(--ps-red); letter-spacing: -.02em; }
.ps-dev-buy { font-size: 13px; color: var(--ps-muted); }
.ps-note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ps-muted); }

/* ⑤ 주문 연동 — 다이어그램은 HTML/CSS (모바일에서도 3칸 유지) */
.ps-int-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px; align-items: center; }
.ps-int-text { display: flex; flex-direction: column; gap: 20px; }
.ps-int-text > p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ps-body); }
.ps-diagram { display: flex; flex-direction: column; gap: 12px; }
.ps-sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ps-source { background: var(--ps-bg-gray); border-radius: 16px; padding: 20px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.ps-source strong { font-size: 16px; font-weight: 800; line-height: 1.3; }
.ps-source span { font-size: 13px; color: #666; line-height: 1.4; }
.ps-arrow { display: flex; justify-content: center; color: var(--ps-red); }
.ps-arrow svg { width: 28px; height: 28px; }
.ps-hub { background: var(--ps-dark); color: #fff; border-radius: 20px; padding: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.ps-hub strong { font-size: 20px; font-weight: 800; }
.ps-hub span { font-size: 14px; color: #CFCFCF; }

/* ⑥ 메가텔레콤 POS의 강점 (어두운 배경) */
.ps-why-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.ps-why { background: var(--ps-dark-card); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.ps-why p { margin: 0; font-size: 15px; line-height: 1.55; color: #CFCFCF; }
.ps-why a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ps-why a:hover { color: var(--ps-red-on-dark); }

/* ⑦ 업종별 추천 */
.ps-ind-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 28px 24px; }
.ps-ind { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--ps-ink); }

/* ⑧ 상담 신청 — 마크업·name·전송 스크립트는 다른 소상공인 페이지와 같다, 겉모습만 */
.ps-consult { position: relative; }
.ps-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.ps-consult-inner { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.ps-consult-inner .ps-head p { margin: 0; font-size: 16px; color: var(--ps-body); }
/* 상담 신청서 — 공통 /css/biz-form.css 로 옮김(2026-10-09 · 8개 페이지 같은 규칙이었다) */
/* 연락 카드 3개 */
.ps-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.ps-contact-card { background: #fff; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 6px; color: var(--ps-ink); text-decoration: none; }
a.ps-contact-card:hover { color: var(--ps-ink); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.ps-contact-label { font-size: 14px; color: #666; font-weight: 600; }
.ps-contact-tel { font-size: 22px; font-weight: 800; color: var(--ps-red); }
.ps-contact-go { font-size: 20px; font-weight: 800; }
.ps-contact-addr { font-size: 15px; font-weight: 700; line-height: 1.5; }

/* ---- 고정 상담: 데스크톱 카드·접힌 버튼·플로팅 버튼 자리는 공통 css/biz-float.css(이 파일 뒤에 싣는다) · 여기는 1024px 미만 하단 바만 ---- */
.ps-mbar { display: none; }
.ps-mbar-spacer { display: none; }

/* ---- 페이지 전역 (이 파일은 이 페이지에만 실린다) ---- */
html { scroll-padding-top: 16px; }

@media (max-width: 767.98px) {
  .ps-sec { padding: 64px 0; }
  .ps-wrap { padding: 0 20px; }
  .ps-hero { padding: 40px 0 32px; }
  .ps-hero-grid { gap: 32px; }
  .ps-lead { font-size: 17px; }
  .ps-btns .ps-btn { flex: 1 1 auto; }
  .ps-promo-sec, .ps-feat-sec { padding-bottom: 64px; }
  .ps-promo .ps-btn { flex: 1 1 auto; }
  .ps-feat, .ps-why, .ps-dev-body { padding: 24px; }
  /* 다이어그램 3칸 유지 — 여백·글자만 줄인다 */
  .ps-sources { gap: 8px; }
  .ps-source { padding: 16px 6px; border-radius: 14px; }
  .ps-source strong { font-size: 15px; }
  .ps-source span { font-size: 12px; }
  .ps-hub { padding: 20px; }
  .ps-hub strong { font-size: 18px; }
}
/* 고정 상담 버튼: 1024px 미만(폰·태블릿)은 하단 바 — 하이오더 페이지와 같은 기준(대표 승인 2026-10-06) */
@media (max-width: 1023.98px) {
  .ps-mbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 890; gap: 8px;
    background: #fff; border-top: 1px solid var(--ps-line); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .ps-mbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; text-decoration: none; line-height: 1.25; }
  .ps-mbar-tel { background: #111; color: #fff; }
  .ps-mbar-tel:hover { color: #fff; }
  .ps-mbar-tel span { font-size: 12px; opacity: .8; }
  .ps-mbar-tel strong { font-size: 16px; font-weight: 800; }
  .ps-mbar-consult { background: var(--ps-red); color: #fff; font-size: 17px; font-weight: 800; }
  .ps-mbar-consult:hover { color: #fff; }
  .ps-mbar-spacer { display: block; height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-btn { transition: none; }
}
