/* ==========================================================================
 * 마케팅 사이트 보강 레이어 (2026-10 개선안)
 * 색·라운드·그림자는 tokens.css 예약어(var)만 쓴다. 새 색 없음.
 * 이후 tokens.css 하단 '마케팅 사이트 전용 레이어'로 합쳐도 된다.
 * ========================================================================== */

/* 한글 줄바꿈 — 어절 단위로 끊고 마지막 줄 한 글자 남김을 줄인다 */
body { word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3, blockquote { text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }

/* 틴트 — OMS 웜 뉴트럴 위에서 만든다(primary 를 background 에 섞음) */
:root {
  --site-tint:      color-mix(in srgb, var(--primary) 7%, var(--background));
  --site-tint-soft: color-mix(in srgb, var(--primary) 3.5%, var(--background));
}

/* 유틸 */
.site-nowrap { white-space: nowrap; }
.site-truncate { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 히어로 플레이트 — 아래로 페이드, 회색 면은 옅게 */
.site-hero__media { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.site-hero__plate { opacity: .55; }

/* 데모 목업 — OMS 원본 그대로, 사이트 타이포 규칙을 들이지 않는다 */
.site-mock { word-break: normal; }
.site-mock p, .site-mock li { text-wrap: wrap; }
.site-mock .rounded-full, .site-mock .pill, .site-mock .chip { white-space: nowrap; }
.site-mock, .site-mock *, .overflow-x-auto { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.site-mock__bar > span:not(.site-mock__dot) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 화면 폭(900)은 바깥 .site-mock__fit 이 지킨다. 안쪽 내용까지 900을 고집하면 세로 스크롤바 폭(약 12px)만큼 넘쳐 가로 스크롤바가 하나 더 생긴다 */
#view .min-w-tbl { min-width: 0; }

/* 로고 · 실적 자리표시 */
image-slot.site-logo-slot { display: block; width: 100%; height: 64px; }
.site-voice-logo { display: inline-block; flex: none; width: 48px; height: 48px; }
image-slot.site-voice-logo { width: 100%; height: 100%; }
.site-slotnum { color: var(--text-faint, var(--text-muted)); }

/* 활용사례 사진 칸 */

/* 상담 폼 */
.site-field { border-color: #8d8f98; transition: border-color .15s, box-shadow .15s; } /* 입력칸 테두리 3:1 이상(접근성) */
.site-field::placeholder { color: var(--text-muted); }
.site-field:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }
.site-field.is-error { border-color: var(--danger); }
textarea.site-field { resize: vertical; }
.site-chip { cursor: pointer; transition: border-color .15s, color .15s; }
.site-chip:has(input:checked) { border-color: var(--primary); color: var(--text-strong, var(--primary)); }
.site-link { text-decoration: underline; text-underline-offset: 3px; }

/* 푸터 사업자 정보 — 좁은 폭에서 값이 꺾여 겹치지 않게 */
.site-bizinfo p { line-height: 1.7; }
.site-bizinfo span, .site-bizinfo b { white-space: nowrap; }
/* 좁은 화면 — 주소처럼 긴 값은 줄바꿈 허용(nowrap 이면 390px 폭에서 가로로 넘친다) */
@media (max-width: 640px) { .site-bizinfo b { white-space: normal; } }

/* ── 주문 데모 · 모바일 앱 화면(index #order-flow) ─────────────────────────────
   보기 전환 탭(.mo-switch) · 폰 틀(.mo-phone) · 앱 화면(.mo-screen …, demo.js 가 그린다).
   점주 앱 화면 구성을 따르되 색은 올차 토큰(tokens.css)을 쓴다 */
.mo-switch { display: inline-flex; gap: 4px; margin-bottom: 16px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-light); }
.mo-switch button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--text-secondary); transition: background .2s, color .2s; }
.mo-switch button:hover { color: var(--primary); }
.mo-switch button[aria-selected="true"] { background: var(--primary); color: var(--on-primary); }
.mo-switch button:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }

.mo-device { display: flex; justify-content: center; }
.mo-device[hidden] { display: none; }
/* 바깥 = 티타늄 테두리(.mo-phone), 안 = 화면 유리(.mo-glass). 측면 버튼은 테두리의 ::before(왼쪽 동작·음량) · ::after(오른쪽 측면) */
.mo-phone { position: relative; width: 100%; max-width: 336px; height: 700px; padding: 11px; border-radius: 56px;
  background: linear-gradient(145deg, #5b5d63, #2c2e33 38%, #44464c 70%, #222428);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18), inset 0 0 0 4px #111216, 0 30px 60px -28px rgba(31,39,64,.55), 0 4px 10px rgba(31,39,64,.12); }
.mo-phone::before, .mo-phone::after { content: ""; position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #2a2c31, #55575d); }
.mo-phone::before { left: -3px; top: 118px; height: 120px; box-shadow: none;
  background: linear-gradient(#45474d, #45474d) 0 0 / 4px 26px no-repeat, linear-gradient(#45474d, #45474d) 0 48px / 4px 36px no-repeat, linear-gradient(#45474d, #45474d) 0 94px / 4px 36px no-repeat; }
.mo-phone::after { right: -3px; top: 170px; height: 64px; background: #45474d; }
.mo-glass { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 45px; background: var(--surface); overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', var(--font-sans); -webkit-font-smoothing: antialiased; }
/* 상태줄 — 시각(왼쪽) · 다이내믹 아일랜드(가운데) · 신호·와이파이·배터리(오른쪽) */
.mo-status { position: relative; flex: none; display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 6px 28px 0 34px; font-size: 15px; font-weight: 600; letter-spacing: -.2px; color: #000; }
.mo-status__isle { position: absolute; left: 50%; top: 11px; width: 100px; height: 29px; margin-left: -50px; border-radius: 20px; background: #000; }
.mo-status__ico { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.mo-status__bat { position: relative; width: 24px; height: 12px; padding: 1.5px; border: 1px solid rgba(0,0,0,.4); border-radius: 4px; }
.mo-status__bat::before { content: ""; display: block; width: 80%; height: 100%; border-radius: 2px; background: #000; }
.mo-status__bat::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(0,0,0,.4); }
.mo-view { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* 홈 인디케이터 — 자동 진행 막대가 여기로 옮겨 와 인디케이터 역할을 겸한다. 화면 위에 떠 있다 */
.mo-home { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: center; height: 22px; padding-top: 9px; pointer-events: none; }
.mo-home .b-autoplay { margin: 0; width: 124px; height: 5px; background: rgba(0,0,0,.16); }
.mo-home .b-autoplay i { background: #111; }
#mMockModal { border-radius: 45px; }
/* 폰 안 문의 팝업 — 버튼 두 개가 가로로는 폰 폭을 넘친다. iOS 알림처럼 세로로 쌓고 주요 버튼을 위로 */
#mMockModal .btn { flex: none; min-width: 0; width: 100%; height: 46px; padding: 0 12px; }
#mMockModal .flex.gap-2 { flex-direction: column-reverse; }
#mMockModal h4 { font-size: 18px; }

.mo-screen { flex: 1; min-height: 0; display: flex; flex-direction: column; font-size: 13px; line-height: 1.5; color: #000; word-break: keep-all; background: var(--surface); }
.mo-screen button { cursor: pointer; }
.mo-top { position: relative; flex: none; display: flex; align-items: center; justify-content: center; height: 44px; background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 .5px 0 rgba(60,60,67,.29); }
.mo-top__back { position: absolute; left: 6px; top: 4px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 17px; color: #000; }
.mo-top__back:hover { background: rgba(120,120,128,.12); }
.mo-top__cart { position: absolute; right: 8px; top: 4px; display: grid; place-items: center; width: 36px; height: 36px; font-size: 18px; color: var(--info); }
.mo-top__cart b { position: absolute; top: 1px; right: -1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--notify-dot); color: var(--on-primary); font-size: 10.5px; font-weight: 700; line-height: 17px; }
.mo-top__title { font-size: 16px; font-weight: 600; letter-spacing: -.3px; }
.mo-top__logo { height: 17px; width: auto; }
.mo-body { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }   /* 폰처럼 스크롤 막대는 숨긴다 */
.mo-body::-webkit-scrollbar { display: none; }
/* 아랫줄 — 홈 인디케이터 자리(약 24px)를 비워 둔다. 아랫줄이 없는 화면은 본문 끝을 비운다 */
.mo-foot { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 14px 28px; background: rgba(255,255,255,.94); box-shadow: 0 -.5px 0 rgba(60,60,67,.29); }
.mo-screen > .mo-body:last-child { padding-bottom: 28px; }
.mo-foot__sum { display: flex; flex-direction: column; line-height: 1.3; font-size: 11.5px; color: var(--text-secondary); }
.mo-foot__sum b { font-size: 15px; color: var(--text); }
.mo-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 14px; font-size: 16px; font-weight: 600; }
.mo-btn i { font-size: 11px; }
.mo-btn--dark { background: var(--primary); color: var(--on-primary); }
.mo-btn--gray { flex: .8; background: rgba(120,120,128,.16); color: var(--info); }
.mo-tag { display: inline-block; margin: 0 4px 2px 0; padding: 0 5px; border-radius: 4px; font-size: 10px; font-weight: 700; line-height: 17px; vertical-align: middle; background: var(--fill); color: var(--text-secondary); }
.mo-tag--new { background: var(--svc-order-bg); color: var(--info); }
.mo-tag--off { background: var(--svc-edu-bg); color: var(--danger); }
.mo-tag--set { background: var(--primary); color: var(--on-primary); }
.mo-empty { padding: 48px 0; text-align: center; color: var(--text-muted); }
.mo-blue { color: var(--info); }

/* 1 · 주문구분 */
.mo-pad { min-height: 100%; padding: 12px; background: var(--site-tint-soft); }   /* iOS 묶음 목록 바탕 */
.mo-total-card { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 14px; border-radius: 12px; background: var(--surface); text-align: left; }
.mo-total-card b { font-size: 19px; font-weight: 800; }
.mo-total-card span { font-size: 14px; font-weight: 700; }
.mo-total-card i, .mo-card__go i { font-size: 10px; }
.mo-sec { margin: 16px 2px 8px; font-size: 11.5px; font-weight: 800; color: var(--text-muted); }
.mo-card { margin-bottom: 10px; border-radius: 12px; background: var(--surface); overflow: hidden; }
.mo-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border-light); }
.mo-card__head b { font-size: 19px; font-weight: 800; }
.mo-card__head .mo-tag { margin-left: 6px; }
.mo-card__go { flex: none; font-size: 14px; font-weight: 600; color: var(--text); }
.mo-card__info { padding: 10px 14px; color: var(--text-strong); }
.mo-card__info em { font-style: normal; font-weight: 700; color: var(--danger); }
.mo-card__subs { padding: 4px 14px; border-top: 1px solid var(--border-light); background: var(--surface-sunken); }
.mo-card__subs p { display: flex; justify-content: space-between; padding: 4px 0; font-size: 12.5px; color: var(--text-secondary); }
.mo-card__foot { display: flex; justify-content: space-between; padding: 11px 14px; background: var(--fill); font-size: 14px; }
.mo-card__foot b { font-weight: 800; }

/* 2 · 배송일 */
.mo-cal { padding: 14px 4px 4px; }
.mo-cal__month { margin-bottom: 10px; text-align: center; font-size: 16px; font-weight: 800; }
.mo-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.mo-cal__dow { padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--border-light); text-align: center; font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.mo-cal__dow.is-sun { color: var(--danger); }
.mo-cal__dow.is-sat { color: var(--cal-sat); }
.mo-cal__d { display: grid; place-items: center; height: 40px; cursor: default; }
.mo-cal__d span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 15px; color: var(--text-disabled); font-variant-numeric: tabular-nums; }
.mo-cal__d.is-ok { cursor: pointer; }
.mo-cal__d.is-ok span { font-weight: 700; color: var(--text); }
.mo-cal__d.is-ok.is-hol span { color: var(--danger); }
.mo-cal__d.is-sel span { background: var(--primary); color: var(--on-primary); }
.mo-cal__nav { display: flex; justify-content: space-between; padding: 2px 6px 8px; }
.mo-cal__nav button { display: grid; place-items: center; width: 36px; height: 36px; font-size: 17px; color: var(--text); }
.mo-gap { height: 8px; background: var(--fill); }
.mo-msg { padding: 18px 16px; text-align: center; line-height: 1.8; color: var(--text-strong); }

/* 3 · 품목 담기 */
.mo-tools { flex: none; display: grid; grid-template-columns: 40px repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.mo-tools button { display: flex; align-items: center; justify-content: center; gap: 5px; height: 42px; border-left: 1px solid var(--border-light); font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.mo-tools button:first-child { border-left: 0; }
.mo-tools button.is-on { font-weight: 700; color: var(--text); }
.mo-tools button.is-on i { color: var(--favorite); }
.mo-item { position: relative; padding: 12px 12px 0; border-bottom: 1px solid var(--border); }
.mo-item.is-on { box-shadow: inset 0 0 0 2px var(--primary); }
.mo-item__flag { position: absolute; left: 0; top: 0; width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary) 50%, transparent 50%); color: var(--on-primary); }
.mo-item__flag i { position: absolute; left: 4px; top: 4px; font-size: 11px; }
.mo-item__main { display: grid; grid-template-columns: 26px 60px 1fr; gap: 8px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--border-light); }
.mo-item__fav { font-size: 18px; color: var(--text); }
.mo-item__fav.is-on { color: var(--favorite-heart); }
.mo-item__pic { width: 60px; height: 60px; object-fit: cover; border: 1px solid var(--border-light); border-radius: 4px; }
.mo-item__info { min-width: 0; }
.mo-item__name { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.35; word-break: break-all; }
.mo-item__row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: 3px; font-size: 11.5px; color: var(--text-muted); }
.mo-item__row b { font-size: 14px; font-weight: 800; color: var(--text); white-space: nowrap; }
.mo-item__foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 10px; font-size: 14px; font-weight: 700; }
.mo-qty { display: flex; align-items: center; gap: 10px; }
.mo-qty button { display: grid; place-items: center; width: 32px; height: 32px; border: 1.5px solid var(--text); border-radius: 50%; font-size: 12px; color: var(--text); }
.mo-qty b { min-width: 22px; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.mo-off { font-size: 13px; font-weight: 800; color: var(--danger); }
.mo-item.is-off .mo-item__pic, .mo-item.is-off .mo-item__name { opacity: .5; }

/* 4 · 주문 확정서 */
.mo-date { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border-light); font-size: 16px; font-weight: 800; }
.mo-date span { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.mo-sumrows { padding: 8px 14px; }
.mo-sumrows p { display: flex; justify-content: space-between; gap: 12px; line-height: 1.9; color: var(--text-secondary); }
.mo-sumrows b { color: var(--text-strong); font-variant-numeric: tabular-nums; }
.mo-total { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-top: 1px solid var(--border-light); border-bottom: 3px solid var(--text); font-size: 15px; font-weight: 800; }
.mo-total b { font-size: 18px; font-variant-numeric: tabular-nums; }
.mo-warn { display: flex; gap: 8px; margin: 12px 12px 0; padding: 9px 11px; border-radius: 8px; background: var(--svc-commute-bg); font-size: 12px; color: var(--warning); }
.mo-warn i { margin-top: 3px; }
.mo-addr { display: grid; gap: 6px; margin: 12px 12px 0; padding: 12px; border: 1px solid var(--border-light); border-radius: 10px; background: var(--surface-sunken); }
.mo-addr__label { font-size: 12px; font-weight: 800; color: var(--text-secondary); }
.mo-addr__label .mo-tag { margin: 0 0 1px 6px; }
.mo-addr__zip { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.mo-field { display: flex; align-items: center; width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--fill); font-size: 13px; color: var(--text-secondary); }
.mo-field--btn { justify-content: center; background: var(--surface); font-weight: 700; white-space: nowrap; }
.mo-field--in { background: var(--surface); color: var(--text); outline: none; }
.mo-field--in:focus { border-color: var(--primary); }
.mo-field--in::placeholder { color: var(--text-muted); }
.mo-lines { padding: 12px 10px 4px; }
.mo-line { margin-bottom: 8px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mo-line__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 12px; font-size: 13.5px; }
.mo-line__head span { flex: none; font-size: 12px; font-weight: 700; }
.mo-line__grid { display: grid; grid-template-columns: .8fr 1.1fr 1fr 1.1fr; text-align: center; font-size: 12px; }
.mo-line__grid span { padding: 6px 0; background: var(--fill); color: var(--text-secondary); }
.mo-line__grid b { padding: 9px 0; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.mo-line__grid span + span, .mo-line__grid b + b { border-left: 1px solid var(--border-light); }
.mo-line__grid b.is-tot { color: var(--text); font-weight: 800; }
.mo-note { padding: 6px 14px 16px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--danger); }

/* 5 · 주문 완료 */
.mo-done { display: grid; justify-items: center; gap: 6px; padding: 22px 16px 18px; background: var(--primary); color: var(--on-primary); text-align: center; }
.mo-done i { font-size: 32px; color: var(--success); }
.mo-done b { font-size: 17px; }
.mo-done p { font-size: 12px; color: var(--on-primary-sub); }
.mo-edit { display: grid; gap: 2px; margin: 12px 12px 0; padding: 10px 12px; border-radius: 10px; background: var(--fill); font-size: 12px; color: var(--text-secondary); }
.mo-edit b { font-size: 14px; color: var(--text); }
.mo-edit em { font-style: normal; font-weight: 700; color: var(--danger); }
.mo-done__line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--border-light); font-size: 12.5px; }
.mo-done__line b { flex: none; font-variant-numeric: tabular-nums; }

/* 좁은 화면 — 폰 테두리를 얇게 */
@media (max-width: 480px) {
  .mo-phone { height: 640px; padding: 8px; border-radius: 48px; }
  .mo-glass, #mMockModal { border-radius: 40px; }
}
