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

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

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

/* ① 히어로 + ② 수치 바 */
.rb-hero { padding: 72px 0 56px; }
.rb-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px; align-items: center; }
.rb-hero-text { display: flex; flex-direction: column; gap: 24px; }
.rb-chip-outline { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--rb-red); border: 1px solid var(--rb-red); padding: 6px 12px; border-radius: 999px; line-height: 1.3; }
.rb-h1 { margin: 0; font-size: clamp(34px, 6vw, 68px); line-height: 1.08; letter-spacing: -.04em; font-weight: 800; }
.rb-h1 em { color: var(--rb-red); font-style: normal; }
.rb-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--rb-body-2); max-width: 440px; }
.rb-hero-media { aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden; background: var(--rb-photo-bg); }
.rb-hero-media img { width: 100%; height: 100%; object-fit: cover; }  /* 히어로 사진은 배경까지 찬 정사각형(1254²) — 상자도 1:1 이라 잘림 없음 */
.rb-stats-sec { padding: 0 0 72px; }
.rb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1px; background: var(--rb-line-2); border: 1px solid var(--rb-line-2); border-radius: 20px; overflow: hidden; margin: 0; }
.rb-stat { background: #fff; padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 6px; }
.rb-stat dt { font-size: 14px; color: #666; font-weight: 600; }
.rb-stat dd { margin: 0; }
.rb-stat-num { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.rb-stat-note { font-size: 14px; color: var(--rb-muted); }

/* ③ 특징 카드 */
.rb-feat-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.rb-feat { background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.rb-feat-img { aspect-ratio: 4 / 3; background: var(--rb-photo-bg); }
.rb-feat-img img { width: 100%; height: 100%; object-fit: cover; }
.rb-feat-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.rb-feat-body h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.rb-feat-body p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--rb-body); }

/* ④ 왜 KT 서빙로봇 */
.rb-why-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.rb-why-head .rb-head { max-width: 640px; }
.rb-why-sub { margin: 0; font-size: 16px; line-height: 1.6; color: var(--rb-body); max-width: 380px; }
.rb-why-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 28px 24px; margin: 0; padding: 0; list-style: none; }
.rb-why-item { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--rb-ink); }
.rb-why-item .rb-num { font-weight: 700; }
.rb-why-item h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.rb-why-item p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--rb-body); }

/* ⑤ 라인업 */
.rb-lineup-h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.25; }
.rb-lineup-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.rb-robot { background: var(--rb-dark-card); border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.rb-robot-img { aspect-ratio: 3 / 4; background: var(--rb-chip); display: flex; align-items: center; justify-content: center; }
.rb-robot-img img { width: 100%; height: 100%; object-fit: contain; }
.rb-robot-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.rb-robot-tag { font-size: 13px; font-weight: 700; color: var(--rb-red-on-dark); }
.rb-robot-name { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.rb-specs { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.rb-specs li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.5; color: #E2E2E2; }
.rb-specs li::before { content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--rb-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.rb-robot-fit { margin-top: auto; padding-top: 12px; font-size: 14px; color: #9A9A9A; }

/* ⑥ 하이오더 연동 */
.rb-flow { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 0; padding: 0; list-style: none; }
.rb-step { background: var(--rb-bg-gray); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.rb-step h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.rb-step p { margin: 0; font-size: 14px; line-height: 1.5; color: #666; }
.rb-callbox { border: 1px solid var(--rb-line-2); border-radius: 20px; padding: 20px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; }
.rb-callbox p { margin: 0; font-size: 16px; color: var(--rb-body-2); }
.rb-callbox a { font-size: 15px; font-weight: 700; color: var(--rb-red); text-decoration: none; white-space: nowrap; }
.rb-callbox a:hover { color: var(--rb-red-hover); text-decoration: underline; text-underline-offset: 3px; }

/* ⑦ 무료 체험 CTA */
.rb-cta-sec { padding: 0 0 96px; }
.rb-cta { background: var(--rb-red); color: #fff; border-radius: 32px; padding: clamp(40px, 6vw, 72px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.rb-cta-text { display: flex; flex-direction: column; gap: 12px; }
.rb-cta-text p { margin: 0; font-size: 16px; opacity: .92; }
.rb-cta .rb-btn { min-height: 60px; padding: 16px 28px; font-size: 18px; border-radius: 14px; }

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

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

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

@media (max-width: 767.98px) {
  .rb-sec { padding: 64px 0; }
  .rb-wrap { padding: 0 20px; }
  .rb-hero { padding: 40px 0 40px; }
  .rb-hero-grid { gap: 32px; }
  .rb-lead { font-size: 17px; }
  .rb-btns .rb-btn { flex: 1 1 auto; }
  .rb-stats-sec { padding-bottom: 56px; }
  .rb-stat { padding: 22px 22px 20px; }
  .rb-stat-num { font-size: 36px; }
  .rb-robot-img { aspect-ratio: 4 / 3; }
  .rb-robot-body, .rb-feat-body { padding: 24px; }
  .rb-cta { border-radius: 24px; }
  .rb-cta .rb-btn { flex: 1 1 100%; }
  .rb-cta-sec { padding-bottom: 64px; }
}
/* 고정 상담 버튼: 1024px 미만(폰·태블릿)은 하단 바 — 하이오더·소상공인과 같은 기준(대표 승인 2026-10-06) */
@media (max-width: 1023.98px) {
  .rb-mbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 890; gap: 8px;
    background: #fff; border-top: 1px solid var(--rb-line); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .rb-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; }
  .rb-mbar-tel, .rb-mbar-tel:hover { background: #111; color: #fff; }
  .rb-mbar-tel span { font-size: 12px; opacity: .8; }
  .rb-mbar-tel strong { font-size: 16px; font-weight: 800; }
  .rb-mbar-consult, .rb-mbar-consult:hover { background: var(--rb-red); color: #fff; font-size: 17px; font-weight: 800; }
  .rb-mbar-spacer { display: block; height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .rb-btn { transition: none; }
}
