/* ══════════════════════════════════════════
   PHONE — 폰 세로(port)·가로(land) 캔버스 배치. 한 장이 스크롤 없이 한 화면에 들어간다
   캔버스: port 400 × 640~900, land 600~860 × 380 (brochure.js layout())
   .is-phone = port·land 공통, .is-tall = port 중 높이 760 이상(설명 문구를 더 보여줌)
   ══════════════════════════════════════════ */
.is-phone { --gs: calc(var(--s, 1) * 0.55); --gu: 36; }
[data-layout="port"] { --pad-x: 20px; }
[data-layout="land"] { --pad-x: 30px; }

/* ── 조작: 조작 바·페이지 표시 대신 위쪽 진행 막대 + 화면 탭 ── */
.is-phone .controls, .is-phone .progress, .is-phone .s-page, .is-phone .s-foot { display: none; }
.is-phone .slide.m-only { display: block; }
/* body overflow: hidden이면 모바일 Chrome의 '당겨서 새로고침'이 막힌다. 화면은 고정된 .viewport라 풀어도 밀리지 않음 */
.is-phone body { overflow: visible; }
.is-phone .slide { transform: translateX(18px); }
.is-phone .slide.is-active { transform: none; }
.is-phone .slide.is-leaving { transform: translateX(-18px); }

.is-phone .story {
  display: flex; gap: 4px; position: fixed; z-index: 30; pointer-events: none;
  top: calc(env(safe-area-inset-top) + 8px); left: 12px; right: 12px;
}
.story span { flex: 1; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(var(--a2), 0.22); }
.story i { display: block; height: 100%; width: 0; background: rgb(var(--a2)); }

.is-phone .tap-hint {
  display: flex; align-items: center; gap: 12px;
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 14px); transform: translateX(-50%); z-index: 31;
  padding: 9px 16px; border-radius: 100px; white-space: nowrap; pointer-events: none;
  background: var(--ctrl-bg); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  font-size: 12.5px; color: var(--fg-2); opacity: 0; transition: opacity .5s;
}
.tap-hint.on { opacity: 1; }
.tap-hint span { font-size: 11.5px; color: var(--faint); }

/* ── 공통 ── */
.is-phone .slide-inner { padding: 34px var(--pad-x) 20px; }
[data-layout="land"] .slide-inner { padding: 24px var(--pad-x) 16px; }
.is-phone .s-top { margin-bottom: 16px; }
.is-phone .brand .co-logo { height: 22px; }
[data-layout="land"] .s-top { margin-bottom: 10px; }
[data-layout="land"] .brand .co-logo { height: 18px; }
.is-phone .eyebrow { font-size: 12px; margin-bottom: 5px; }
.is-phone .s-head { margin-bottom: 14px; }
.is-phone .s-title { font-size: 28px; margin-bottom: 8px; }
.is-phone .s-title.kr { font-size: 25px; }
.is-phone .s-sub { font-size: 13.5px; line-height: 1.6; }
[data-layout="land"] .s-head { margin-bottom: 10px; }
[data-layout="land"] .s-title { font-size: 23px; margin-bottom: 0; }
[data-layout="land"] .s-title.kr { font-size: 21px; }
[data-layout="land"] .s-sub { display: none; }
.is-phone .card { border-radius: 14px; }
.is-phone .block-label { margin-bottom: 8px; }
.is-phone .block-label span { font-size: 13px; }
.is-phone .offer-label { font-size: 10.5px; padding: 4px 9px; margin-bottom: 6px; }

/* ── 01 · 표지 ── */
.is-phone .cover-hero { max-width: none; }
.is-phone .orbit { display: none; }
[data-layout="port"] .cover-title { margin-bottom: 22px; }
[data-layout="port"] .cover-title .co-logo { height: 54px; }
[data-layout="port"] .cover-sub { font-size: 15.5px; margin-bottom: 22px; }
[data-layout="port"] .cover-offer { align-self: stretch; gap: 14px; padding: 16px; }
[data-layout="port"] .co-title { font-size: 16px; }
[data-layout="port"] .co-desc { font-size: 12px; line-height: 1.5; }
[data-layout="port"] .co-price { padding-left: 14px; }
[data-layout="port"] .co-price s { font-size: 15px; }
[data-layout="port"] .co-price b { font-size: 34px; }
[data-layout="port"] .cover-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
[data-layout="port"] .cover-chips span { text-align: center; font-size: 12.5px; padding: 9px 8px; }

/* 가로: 왼쪽 글 + 오른쪽 궤도 그림(캔버스 폭에 맞춰 축소) */
[data-layout="land"] .cover-hero { max-width: 54%; }
[data-layout="land"] .cover-title { margin-bottom: 16px; }
[data-layout="land"] .cover-title .co-logo { height: 44px; }
[data-layout="land"] .cover-sub { font-size: 13.5px; margin-bottom: 16px; }
[data-layout="land"] .cover-offer { gap: 14px; padding: 12px 16px; }
[data-layout="land"] .co-title { font-size: 14.5px; }
[data-layout="land"] .co-desc { font-size: 11.5px; line-height: 1.5; }
[data-layout="land"] .co-price { padding-left: 14px; }
[data-layout="land"] .co-price s { font-size: 13px; }
[data-layout="land"] .co-price b { font-size: 28px; }
[data-layout="land"] .orbit {
  display: block; right: 3%;
  transform: translateY(-50%) scale(calc(var(--cw, 800) / 1600)); transform-origin: right center;
}

/* ── 02 · 멤버십 혜택: 혜택마다 가로 한 줄 카드 (번호 · 영문 제목+문구 · 아이콘), 행사 영상(video/benefits_tv.html)과 같은 형식 ── */
.is-phone .benefits-left .s-sub, .is-phone .benefits-left .offer { display: none; }
.is-phone .benefit {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; column-gap: 12px; align-content: center;
  padding: 10px 14px 10px 18px;
  background: linear-gradient(90deg, rgba(var(--c), 0.08) 0%, var(--surface-solid) 62%);
}
.is-phone .benefit::before { top: 0; bottom: 0; left: 0; right: auto; width: 4px; height: auto; background: rgb(var(--c)); }
.is-phone .benefit .top { display: contents; }
.is-phone .benefit .num { grid-column: 1; grid-row: 1 / span 3; align-self: center; font-size: 24px; }
.is-phone .benefit .icon { grid-column: 3; grid-row: 1 / span 3; align-self: center; width: 34px; height: 34px; border-radius: 10px; }
.is-phone .benefit .icon svg { width: 18px; height: 18px; }
.is-phone .benefit h3 { grid-column: 2; font-size: 12px; font-weight: 600; letter-spacing: 0; margin-bottom: 2px; }
.is-phone .benefit .div { display: none; }
.is-phone .benefit .lead { grid-column: 2; font-size: 15.5px; font-weight: 800; line-height: 1.4; letter-spacing: -0.03em; text-wrap: balance; }
.is-phone .benefit .lead em { white-space: nowrap; }
.is-phone .benefit .desc { display: none; }
.is-tall .benefit .desc { display: block; grid-column: 2; margin-top: 4px; padding-top: 0; font-size: 12px; line-height: 1.5; text-wrap: balance; }
.is-tall .benefit .lead { font-size: 16.5px; }
.is-tall .benefit .num { font-size: 26px; }

/* 세로: 박스는 내용 높이로 두고, 남는 높이는 위아래 여백으로 나눠 묶음 전체를 가운데에 (02·03·07 같은 방식) */
[data-layout="port"] .benefits-wrap { flex: none; margin: auto 0; display: flex; flex-direction: column; gap: 14px; }
[data-layout="port"] .headline { font-size: 27px; line-height: 1.24; margin-bottom: 0; }
[data-layout="port"] .benefit-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(4, auto) auto; gap: 8px; }
[data-layout="port"] .offer-m { display: block; padding: 12px 16px; border-radius: 14px; }
[data-layout="port"] .offer-m .offer-title { font-size: 15.5px; margin-bottom: 2px; }
[data-layout="port"] .offer-m .offer-desc { font-size: 11.5px; line-height: 1.5; }

[data-layout="land"] .benefits-wrap { grid-template-columns: 34% minmax(0, 1fr); gap: 16px; }
[data-layout="land"] .headline { font-size: 22px; margin-bottom: 10px; }
[data-layout="land"] .benefits-left .offer { display: block; padding: 12px 14px; border-radius: 14px; }
[data-layout="land"] .offer-title { font-size: 14px; margin-bottom: 2px; }
[data-layout="land"] .offer-desc { font-size: 11px; line-height: 1.5; }
[data-layout="land"] .benefit-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 7px; }
[data-layout="land"] .benefit { padding: 6px 14px 6px 18px; }
[data-layout="land"] .benefit .num { font-size: 20px; }
[data-layout="land"] .benefit h3 { font-size: 11px; margin-bottom: 0; }
[data-layout="land"] .benefit .lead { font-size: 14px; }
[data-layout="land"] .benefit .icon { width: 30px; height: 30px; }

/* ── 03 · 이상 징후 탐지: 인포그래픽(남는 높이) + 7가지 탐지 항목 ── */
.is-phone .open-full { right: 8px; bottom: 6px; font-size: 10.5px; padding: 3px 8px; }
.is-phone .threat-panel { display: flex; justify-content: flex-start; padding: 12px 16px; }
.is-phone .threat-panel .lab { font-size: 11px; margin-bottom: 2px; }
.is-phone .threat-panel h3 { font-size: 17px; margin-bottom: 2px; }
.is-phone .threat-panel .kr { font-size: 11.5px; margin-bottom: 6px; }
.is-phone .threat-list { margin-bottom: 0; }
.is-phone .threat-list li { font-size: 12.5px; padding: 4px 0; gap: 9px; }
.is-phone .threat-list .n { width: 18px; height: 18px; font-size: 10px; }
.is-phone .threat-note { display: none; }
.is-tall .threat-note { display: block; font-size: 10.5px; margin-top: 6px; }
[data-layout="port"] .slide:has(.threat-wrap) .s-head { margin-top: auto; }
[data-layout="port"] .threat-wrap { flex: 0 1 auto; min-height: 0; margin-bottom: auto; display: flex; flex-direction: column; gap: 10px; }
[data-layout="port"] .threat-visual { flex: 0 1 auto; min-height: 0; aspect-ratio: 1100 / 530; padding: 6px 4px; }
[data-layout="port"] .threat-panel { flex: none; }

[data-layout="land"] .threat-wrap { grid-template-columns: 290px minmax(0, 1fr); gap: 12px; }
[data-layout="land"] .threat-panel { order: -1; padding: 10px 14px; }
[data-layout="land"] .threat-panel h3 { font-size: 14.5px; }
[data-layout="land"] .threat-panel .kr { font-size: 11px; margin-bottom: 4px; }
[data-layout="land"] .threat-list li { font-size: 11.5px; padding: 2.5px 0; }
[data-layout="land"] .threat-list .n { width: 16px; height: 16px; }
[data-layout="land"] .threat-visual { padding: 6px; }

/* ── 04·05 · 대시보드·리포트: 큰 미리보기(자동 교체) + 제목 목록 + 현재 항목 설명 ── */
.is-phone .spot-dash .spot-shot img { object-fit: contain; }
.is-phone .spot-report .spot-shot { padding: 0 12px; }
.is-phone .spot-report .spot-shot img { margin: 12px auto; }
.is-phone .spot-tag { left: 8px; bottom: 8px; font-size: 10.5px; padding: 4px 9px; }
.is-phone .spot-zoom { right: 8px; bottom: 8px; font-size: 10.5px; padding: 4px 9px; }
.is-phone .spot-list { overflow: visible; gap: 6px; }
.is-phone .spot-item { grid-template-columns: minmax(0, 1fr); padding: 8px 10px; border-radius: 10px; }
.is-phone .spot-item .thumb, .is-phone .spot-item .kr, .is-phone .spot-item .detail { display: none; }
.is-phone .spot-item .lab { font-size: 10px; margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-phone .spot-item h3 { font-size: 12.5px; line-height: 1.25; }
.is-phone .m-hide { display: none; }
.is-phone .spot-note { display: block; flex-shrink: 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.is-phone .strip { margin-top: 8px; padding: 9px 12px; flex-direction: column; align-items: flex-start; gap: 2px; border-radius: 10px; }
.is-phone .strip-text { font-size: 12px; }
.is-phone .strip-meta { font-size: 10.5px; }

[data-layout="port"] .spot { display: flex; flex-direction: column; gap: 8px; }
[data-layout="port"] .spot-stage { flex: 1 1 0; min-height: 140px; }
/* 대시보드는 가로 이미지라 미리보기 칸을 이미지 비율에 맞추고, 남는 높이는 위아래로 나눈다 */
[data-layout="port"] .spot-dash { justify-content: center; }
[data-layout="port"] .spot-dash .spot-stage { flex: 0 1 auto; aspect-ratio: 1698 / 1052; }
[data-layout="port"] .spot-list { display: grid; grid-template-columns: 1fr 1fr; flex-shrink: 0; }
[data-layout="port"] .spot-note { min-height: 3.1em; }

[data-layout="land"] .spot { grid-template-columns: minmax(0, 1fr) 230px; grid-template-rows: auto minmax(0, 1fr); gap: 8px 12px; }
[data-layout="land"] .spot-stage { grid-row: 1 / -1; }
[data-layout="land"] .spot-note { display: none; }
[data-layout="land"] .strip { display: none; }

/* ── 06 · ISV: 로고판을 화면에 맞춤 (세로는 3분류씩 두 단, 가로는 통째로) ── */
.is-phone .slide:has(.isv-wrap) .s-sub { display: none; }
.is-phone .isv-wrap { display: flex; flex-direction: column; }
.is-phone .isv-col { flex: 1; min-height: 0; }
.is-phone .isv-scroll, .is-phone .isv-hint { display: none; }
.is-phone .isv-fit {
  display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0;
  padding: 10px; border-radius: 14px;
  background: #ffffff; border: 1px solid rgba(15, 23, 42, 0.08); box-shadow: 0 10px 34px rgba(var(--glow-a), 0.18);
}
.isv-part { display: none; flex-basis: 0; min-height: 0; container-type: size; }
[data-layout="port"] .isv-part.half, [data-layout="land"] .isv-part.whole { display: flex; align-items: center; justify-content: center; }
/* 칸 크기 안에서 로고 비율(--r)을 지키며 가장 크게: 폭 = min(칸 폭, (칸 높이 - 분류 줄) × 비율) */
.isv-crop { --lab-h: 34px; width: min(100cqw, (100cqh - var(--lab-h)) * var(--r)); }
[data-layout="land"] .isv-crop { --lab-h: 30px; }
.isv-labs { position: relative; height: var(--lab-h); }
.isv-labs div {
  position: absolute; bottom: 4px; transform: translateX(-50%); width: 33%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center;
  font-family: 'Outfit', 'Noto Sans KR', sans-serif; font-size: 11.5px; font-weight: 800; line-height: 1.15; color: #1c2030;
}
.isv-labs div::after { content: ''; width: 30px; height: 2px; margin-top: 4px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(var(--a2), 0.85), transparent); }
[data-layout="land"] .isv-labs div { width: 16%; font-size: 10.5px; }
.isv-win { aspect-ratio: var(--r); display: flex; }
.isv-slot { flex: 1; position: relative; overflow: hidden; }
.isv-slot img { position: absolute; top: 0; height: auto; max-width: none; }

/* ── 07 · 교육 (폰 전용 장) ── */
.is-phone .edu-slot { flex: 1; min-height: 0; display: flex; }
.is-phone .edu-col { flex: 1; display: flex; flex-direction: column; }
.is-phone .edu-col .block-label { display: none; }
.is-phone .edu-list { gap: 10px; }
.is-phone .edu { padding: 14px 16px; }
.is-phone .edu .num { font-size: 18px; }
.is-phone .edu .en { font-size: 11.5px; }
.is-phone .edu h3 { font-size: 16.5px; margin-bottom: 4px; }
.is-phone .edu p { font-size: 12.5px; line-height: 1.55; }
[data-layout="port"] .slide:has(.edu-slot) .s-head { margin-top: auto; }
[data-layout="port"] .edu-slot { flex: none; margin-bottom: auto; }
[data-layout="port"] .edu-list, [data-layout="port"] .edu { flex: none; }
[data-layout="land"] .edu-slot { align-items: center; }
[data-layout="land"] .edu-list { flex: none; flex-direction: row; }
[data-layout="land"] .edu { padding: 16px; }
[data-layout="land"] .edu h3 { font-size: 14.5px; }
[data-layout="land"] .edu p { font-size: 12px; }
.is-tall .edu h3 { font-size: 18px; }
.is-tall .edu p { font-size: 13.5px; }
.is-tall .edu .num { font-size: 22px; }
.is-tall .edu .en { font-size: 12.5px; }

/* ── 08 · 문의 ── */
.is-phone .closing-wrap { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
[data-layout="port"] .closing-title { font-size: 30px; margin-bottom: 12px; }
.is-phone .closing-sub { font-size: 13.5px; }
.is-phone .closing-sub br { display: none; }
.is-phone .contact { gap: 8px; }
.is-phone .contact .card { padding: 12px 14px; gap: 12px; }
.is-phone .contact .ci { width: 36px; height: 36px; border-radius: 10px; }
.is-phone .contact .ci svg { width: 18px; height: 18px; }
.is-phone .contact small { font-size: 10.5px; margin-bottom: 1px; }
.is-phone .contact b { font-size: 14px; word-break: break-all; }
[data-layout="land"] .closing-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: center; }
[data-layout="land"] .closing-title { font-size: 28px; margin-bottom: 10px; }
[data-layout="land"] .closing-sub { font-size: 12.5px; }
[data-layout="land"] .contact b { font-size: 13px; word-break: keep-all; white-space: nowrap; }
