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

/* ---- 공통 틀 ---- */
.tp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.tp-sec { padding: 96px 0; }
.tp-sec--gray { background: var(--tp-bg-gray); }
.tp-sec--dark { background: var(--tp-dark); color: #fff; }
.tp-stack { display: flex; flex-direction: column; gap: 48px; }
.tp-head { display: flex; flex-direction: column; gap: 12px; }
.tp-head--center { align-items: center; text-align: center; }
.tp-head p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--tp-body); max-width: 520px; }
.tp-sec--dark .tp-head p { color: #CFCFCF; }
.tp-eyebrow { font-size: 14px; font-weight: 700; color: var(--tp-red); }
.tp-sec--dark .tp-eyebrow { color: var(--tp-red-on-dark); }
.tp-h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.2; letter-spacing: -.03em; font-weight: 800; }
.tp-grid { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.tp-num { font-size: 13px; font-weight: 800; color: var(--tp-red); }
.tp-sec--dark .tp-num { color: var(--tp-red-on-dark); }
.tp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tp-chips li { font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--tp-ink); }
/* 아이콘 틀 — 선 아이콘(svg, currentColor) */
.tp-ic { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--tp-red-tint); color: var(--tp-red); flex: none; }
.tp-ic svg { width: 26px; height: 26px; }
.tp-sec--dark .tp-ic { background: #2A2A2A; color: var(--tp-red-on-dark); }

/* ---- 버튼 ---- */
.tp-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;
}
.tp-btn--red { background: var(--tp-red); color: #fff; }
.tp-btn--red:hover { background: var(--tp-red-hover); color: #fff; }
.tp-btn--gray { background: var(--tp-chip); color: var(--tp-ink); }
.tp-btn--gray:hover { background: #E9E9E9; color: var(--tp-ink); }
.tp-btn--white { background: #fff; color: var(--tp-red); font-weight: 800; }
.tp-btn--white:hover { background: #F6F6F6; color: var(--tp-red-hover); }
.tp-btn:focus-visible { outline: 3px solid var(--tp-ink); outline-offset: 2px; }
.tp-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ① 히어로 */
.tp-hero { padding: 72px 0 56px; }
.tp-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px; align-items: center; }
.tp-hero-text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.tp-chip-outline { align-self: flex-start; white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--tp-red); border: 1px solid var(--tp-red); padding: 6px 12px; border-radius: 999px; line-height: 1.3; }
.tp-h1 { margin: 0; font-size: clamp(34px, 6vw, 68px); line-height: 1.08; letter-spacing: -.04em; font-weight: 800; }
.tp-h1 em { color: var(--tp-red); font-style: normal; }
.tp-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--tp-body-2); max-width: 460px; }
/* 영상 틀(히어로·키오스크) — poster(재생 전 · 동작 줄이기)는 contain 으로 잘림 없이, 재생이 시작되면(.is-played) 히어로만 cover */
.tp-media { position: relative; border-radius: 28px; overflow: hidden; background: var(--tp-photo-bg); }
.tp-media--hero { aspect-ratio: 4 / 3.4; }
.tp-media--kiosk { aspect-ratio: 4 / 3; background: #fff; }
.tp-video { display: block; width: 100%; height: 100%; object-fit: contain; }
.tp-media--hero .tp-video.is-played { object-fit: cover; }

/* ② 메가텔레콤 단독 혜택 (POS 페이지 배너와 같은 값) */
.tp-promo-sec { padding: 0 0 96px; }
.tp-promo { background: var(--tp-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; }
.tp-promo-text { display: flex; flex-direction: column; gap: 6px; }
.tp-promo-label { font-size: 14px; font-weight: 700; opacity: .9; }
.tp-promo-title { margin: 0; font-size: clamp(20px, 2.8vw, 28px); font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.tp-promo-note { margin: 0; font-size: 13px; opacity: .85; }
.tp-promo .tp-btn { min-height: 48px; padding: 14px 22px; font-size: 15px; }

/* ③ 색상 — 이미지 카드(4/3) */
.tp-color-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.tp-color { display: flex; flex-direction: column; gap: 16px; }
.tp-color-img { aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--tp-photo-bg); }
.tp-color-img--black { background: #1E1E1E; }
.tp-color-img img { width: 100%; height: 100%; object-fit: cover; }
.tp-color-body { display: flex; flex-direction: column; gap: 4px; }
.tp-color h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.tp-color p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--tp-body); }

/* ④ 모든 결제 지원 */
.tp-pay-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.tp-pay { background: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.tp-pay-img { aspect-ratio: 232 / 280; background: var(--tp-photo-bg); }
.tp-pay-img img { width: 100%; height: 100%; object-fit: cover; }
.tp-pay-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.tp-pay-body h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.tp-pay-body p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--tp-body); }
/* 결제사 로고 띠(2026-10-11) — 시안 최대 폭 560 · 그림 한 장이라 줄바꿈 없음 */
.tp-logos { width: 100%; max-width: 560px; margin: 0 auto; }
.tp-logos img { display: block; width: 100%; height: auto; }
.tp-pay-notes { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.tp-pay-notes p { margin: 0; }
.tp-pay-local { font-size: 14px; color: #666; }
.tp-pay-face { font-size: 16px; font-weight: 700; }
.tp-pay-face em { font-style: normal; color: var(--tp-red); }

/* ⑤ 단말기 기능 · ⑦ 토스 포스 — 어두운 카드 */
/* 토스 포스 — 왼쪽 글 · 오른쪽 화면(16:10 · 라운드 24 · 시안) · 좁으면 위아래 */
.tp-pos-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: center; }
.tp-pos-img { aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: var(--tp-dark-card); }
.tp-pos-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tp-dark-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tp-dark-cards--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.tp-dcard { background: var(--tp-dark-card); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.tp-dcard h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; color: #fff; }
.tp-dark-cards--4 .tp-dcard h3 { font-size: 18px; }
.tp-dcard p { margin: 0; font-size: 15px; line-height: 1.55; color: #CFCFCF; }
.tp-dark-cards--4 .tp-dcard p { font-size: 14px; }

/* ⑥ 키오스크 모드 */
.tp-kiosk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 40px 56px; align-items: center; }
.tp-kiosk-text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.tp-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tp-cmp { background: #fff; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.tp-cmp-label { font-size: 13px; font-weight: 700; color: #666; }
.tp-cmp-old { font-size: 14px; color: var(--tp-faint); text-decoration: line-through; line-height: 1.45; }
.tp-cmp-new { font-size: 20px; font-weight: 800; color: var(--tp-red); letter-spacing: -.02em; line-height: 1.35; }

/* ⑧ 세트 구성 — 사진 없이 아이콘 + 글 */
.tp-set-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); grid-auto-rows: 1fr; }   /* 위아래로 쌓여도 두 카드 높이 같게(문구 길이 차) */
.tp-set { border: 2px solid var(--tp-line-2); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.tp-set--hl { border-color: var(--tp-red); }
.tp-set-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.tp-tag { font-size: 13px; font-weight: 800; color: #fff; background: var(--tp-red); padding: 5px 12px; border-radius: 999px; }
.tp-tag--gray { background: #444; }
.tp-set h3 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.tp-set p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--tp-body); }
/* 세트 그림 칸 — 두 카드 같은 크기(4:3)라 한 줄·위아래 어느 쪽이든 높이가 같다. 터미널 세트는 사진 대신 아이콘 */
.tp-set-img { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--tp-photo-bg); margin-bottom: 8px; }
.tp-set-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tp-set-img--icon { display: flex; align-items: center; justify-content: center; }
.tp-set-img--icon .tp-ic { width: 96px; height: 96px; border-radius: 28px; background: #fff; color: var(--tp-body-2); }
.tp-set-img--icon .tp-ic svg { width: 48px; height: 48px; }
.tp-set-items { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--tp-line); font-size: 14px; color: var(--tp-muted); }
.tp-options { background: var(--tp-bg-gray); border-radius: 24px; padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.tp-options-label { font-size: 15px; font-weight: 800; }

/* ⑨ 제품 제원 */
.tp-spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 48px; align-items: start; }
.tp-spec-left { display: flex; flex-direction: column; gap: 20px; }
.tp-dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.tp-dim { background: #fff; border-radius: 16px; padding: 18px 16px; display: flex; flex-direction: column; gap: 2px; }
.tp-dim dt { font-size: 13px; font-weight: 700; color: #666; }
.tp-dim dd { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.tp-dim dd small { font-size: 14px; font-weight: 600; color: var(--tp-muted); margin-left: 2px; }
.tp-free { background: #fff; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.tp-free-label { font-size: 14px; font-weight: 700; color: #666; }
.tp-free strong { font-size: 40px; font-weight: 800; color: var(--tp-red); letter-spacing: -.03em; line-height: 1.15; }
.tp-free span:last-child { font-size: 14px; color: var(--tp-body); }
.tp-spec-table { background: #fff; border-radius: 20px; padding: 8px 24px; margin: 0; }
.tp-spec-row { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--tp-line); }
.tp-spec-row:first-child { border-top: 0; }
.tp-spec-row dt { font-size: 14px; font-weight: 700; color: #666; }
.tp-spec-row dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--tp-ink); }
.tp-note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--tp-muted); }

/* ⑩ 상담 신청 — 흰 배경 섹션이라 폼·연락 카드를 회색으로 반전 */
.tp-consult { position: relative; }
.tp-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.tp-consult-inner { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
/* 상담 신청서 — 공통 /css/biz-form.css 로 옮김(2026-10-09 · 8개 페이지 같은 규칙이었다) */
.tp-consult .biz-form { background: var(--tp-bg-gray); }   /* 토스 프론트만 신청서 카드가 회색(섹션이 흰 바탕) */
.tp-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 0; }
.tp-contact > div { background: var(--tp-bg-gray); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.tp-contact dt { font-size: 13px; font-weight: 700; color: var(--tp-muted); }
.tp-contact dd { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.45; }
.tp-contact dd a { color: var(--tp-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #CCC; }
.tp-contact dd a:hover { color: var(--tp-red); }
.tp-contact dd small { font-size: 14px; font-weight: 600; color: var(--tp-body); }

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

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

@media (max-width: 767.98px) {
  .tp-sec { padding: 64px 0; }
  .tp-wrap { padding: 0 20px; }
  .tp-hero { padding: 40px 0 40px; }
  .tp-hero-grid { gap: 32px; }
  .tp-lead { font-size: 17px; }
  .tp-btns .tp-btn { flex: 1 1 auto; }
  .tp-promo-sec { padding-bottom: 64px; }
  .tp-promo .tp-btn { flex: 1 1 auto; }
  .tp-dcard, .tp-set { padding: 24px; }
  .tp-media { border-radius: 20px; }
  .tp-cmp { padding: 16px; }
  .tp-cmp-new { font-size: 17px; }
  .tp-dim { padding: 14px 12px; }
  .tp-dim dd { font-size: 20px; }
  .tp-spec-row { grid-template-columns: minmax(0, 92px) minmax(0, 1fr); gap: 12px; }
  .tp-spec-table { padding: 4px 18px; }
}
/* 고정 상담 버튼: 1024px 미만(폰·태블릿)은 하단 바 — 하이오더 페이지와 같은 기준(대표 승인 2026-10-06) */
@media (max-width: 1023.98px) {
  .tp-mbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 890; gap: 8px;
    background: #fff; border-top: 1px solid var(--tp-line); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .tp-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; }
  .tp-mbar-tel { background: #111; color: #fff; }
  .tp-mbar-tel:hover { color: #fff; }
  .tp-mbar-tel span { font-size: 12px; opacity: .8; }
  .tp-mbar-tel strong { font-size: 16px; font-weight: 800; }
  .tp-mbar-consult { background: var(--tp-red); color: #fff; font-size: 17px; font-weight: 800; }
  .tp-mbar-consult:hover { color: #fff; }
  .tp-mbar-spacer { display: block; height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-btn { transition: none; }
}
