/* 홈 v3 (pages/_home.php) — 2026-11-27 시안(main-final) 짜임: 가운데 제목 첫 화면 → 회색 판 STEP 3칸 → 장점 3칸 → 질문 → 진보라 마무리 띠.
   색은 3D 캐릭터 그림에서 잰 보라(진한 곳 #794AC4 · 263° · 채도 51%)에 맞춘 단계. 표는 DESIGN.md '홈 디자인 시스템'.
   home2.css 다음에 읽는다(.h2m 의 바깥 틀·휴대폰 promo 띠는 그대로 쓴다). */

/* ── 색 토큰(밝은 테마) ── P = 보라, N = 보랏빛이 살짝 도는 회색 */
:root:not([data-theme="dark"]) .h3m {
  --p700: #523286; --p600: #643da4; --p500: #774abf; --p300: #af92dd; --p100: #e1d6f5; --p50: #f3effb;
  --n900: #1f1b27; --n700: #4a4554; --n500: #777283; --n300: #cac7d1; --n200: #e4e2e9; --n100: #f5f4f8; --n0: #fff;
  --mint: #3db897; --coral: #de7376;
}
/* 다크 테마는 사이트 토큰을 빌린다 */
:root[data-theme="dark"] .h3m {
  --p700: var(--primary-ink); --p600: var(--primary-strong); --p500: var(--primary); --p100: var(--primary-line); --p50: var(--primary-bg);
  --n900: var(--ink-strong); --n700: var(--ink2); --n500: var(--ink3); --n300: var(--field); --n200: var(--line); --n100: var(--soft); --n0: var(--surface);
}
.h3m { color: var(--n900); letter-spacing: -.01em; }
.h3m :is(h1, h2, h3, p) { margin: 0; }
.h3m h1, .h3m h2, .h3m h3 { text-wrap: balance; }
.h3m p { text-wrap: pretty; word-break: keep-all; }   /* 마지막 줄에 한 단어만 남지 않게 */

/* ── 버튼: 높이 60 · 모서리 12 · 18px 700 ── */
.h3-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 60px; padding: 0 32px; border-radius: 12px; font-size: 18px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.h3-btn--p { background: var(--p500); color: #fff; }
.h3-btn--p:hover { background: var(--p600); }
.h3-btn--k { background: var(--n0); color: var(--n900); box-shadow: inset 0 0 0 1.5px var(--n200); }
.h3-btn--k:hover { box-shadow: inset 0 0 0 1.5px var(--n300); }
.h3-btn--w { background: #fff; color: var(--p600); }
.h3-btn--w:hover { background: var(--p50); }
.h3-btn:focus-visible { outline: 3px solid var(--p300); outline-offset: 3px; }

/* ── 첫 화면: 글 왼쪽 · 그림 오른쪽 ── */
.h3-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 40px; max-width: var(--w); margin: 0 auto; padding: 72px 24px 88px; }
.h3-hero h1 { font-size: 44px; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; color: var(--n900); }
.h3-hero-copy > p { margin: 20px 0 36px; font-size: 22px; font-weight: 500; line-height: 1.5; color: var(--n700); }
.h3-hero-acts { display: flex; gap: 12px; }
.h3-hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; }
.h3-hero-points li { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 500; color: var(--n700); }
.h3-hero-points svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--p500); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* 그림: 캡처 카드 두 장(1 = 진행표 오른쪽 위, 2 = 수량·기간 가운데 아래) 앞에 캐릭터가 왼쪽 아래에 선다 */
.h3-hero-art { position: relative; height: 500px; }
.h3-hero-shot { position: absolute; overflow: hidden; border: 1px solid var(--n200); border-radius: 16px; background: var(--n0); box-shadow: 0 1px 3px rgba(30, 20, 60, .06), 0 12px 32px rgba(30, 20, 60, .1); }
.h3-hero-shot-bar { display: flex; align-items: center; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--n200); font-size: 12px; font-weight: 700; color: var(--n700); }
.h3-hero-shot-view { display: block; overflow: hidden; }
.h3-hero-shot-view img { display: block; max-width: none; height: auto; }
.h3-hero-shot--1 { top: 0; right: 0; width: 86%; }
.h3-hero-shot--1 .h3-hero-shot-view { height: 196px; }
.h3-hero-shot--1 img { width: 160%; }   /* 진행표 왼쪽 열(주문번호·상태·매장명·키워드·상품) */
.h3-hero-shot--2 { top: 214px; right: 3%; width: 52%; }
.h3-hero-shot--2 .h3-hero-shot-view { height: 210px; }
.h3-hero-shot--2 img { width: 100%; }
.h3-hero-char { position: absolute; left: 0; bottom: -8px; width: 300px; height: auto; filter: drop-shadow(0 12px 18px rgba(60, 30, 110, .16)); }

/* ── 구역 공통 ── */
.h3-sec { max-width: var(--w); margin: 0 auto; padding: 112px 24px 0; }
.h3-title { font-size: 44px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; text-align: center; color: var(--n900); }
.h3-sec > .h3-title { margin-bottom: 56px; }

/* ── STEP: 회색 둥근 판(N100 · 모서리 24) ── */
.h3-steps { max-width: calc(var(--w) + 48px); margin: 0 auto; padding: 0 24px; }
.h3-steps-in { padding: 80px 72px; border-radius: 24px; background: var(--n100); }
.h3-lead { margin-top: 14px; font-size: 20px; font-weight: 500; line-height: 1.5; text-align: center; color: var(--n500); }
.h3-lead-act { margin: 12px 0 52px; text-align: center; }
.h3-lead-act :is(a, button) { display: inline-flex; align-items: center; gap: 4px; padding: 4px 2px; border: 0; background: none; color: var(--p600); font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.h3-lead-act :is(a, button):hover { color: var(--p700); text-decoration: underline; text-underline-offset: 4px; }
.h3-lead-act svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.h3-step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.h3-step-shot { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: var(--n0); box-shadow: 0 1px 3px rgba(30, 20, 60, .06), 0 8px 24px rgba(30, 20, 60, .06); }
.h3-step-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.h3-step-shot img[src*="share-4"] { width: 120%; max-width: none; margin-left: -7.5%; }   /* 캡처 양옆에 찍힌 화면 테두리 가리기 */
.h3-badge { display: inline-flex; align-items: center; height: 26px; margin-top: 20px; padding: 0 10px; border-radius: 8px; background: var(--p50); color: var(--p600); font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em; }
.h3-step h3 { margin: 12px 0 8px; font-size: 22px; font-weight: 700; line-height: 1.4; letter-spacing: -.015em; color: var(--n900); }
.h3-step p { font-size: 16px; line-height: 1.6; color: var(--n500); }

/* ── 장점 3칸 ── */
.h3-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.h3-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; }
.h3-card h3 { margin: 22px 0 10px; font-size: 22px; font-weight: 700; line-height: 1.4; letter-spacing: -.015em; color: var(--n900); }
.h3-card p { font-size: 16px; line-height: 1.6; color: var(--n500); }

/* ── 자주 묻는 질문: 흰 바탕 · 위아래 선 ── */
.h3-faq-list { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--n200); }
.h3-faq-list details { border-bottom: 1px solid var(--n200); }
.h3-faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 0 8px; font-size: 18px; font-weight: 700; color: var(--n900); }
.h3-faq-list summary::-webkit-details-marker { display: none; }
.h3-faq-list summary::before { content: 'Q'; color: var(--p500); }
.h3-faq-list summary::after { content: '+'; margin-left: auto; font-size: 26px; font-weight: 400; color: var(--n500); }
.h3-faq-list details[open] summary::after { content: '−'; }
.h3-faq-list p { padding: 0 8px 24px 34px; font-size: 16px; line-height: 1.6; color: var(--n700); }

/* ── 마무리 띠: P600 바탕 · 모서리 24 · 그림 왼쪽을 흐려 띠에 녹인다 ── */
.h3-cta { max-width: calc(var(--w) + 48px); margin: 0 auto; padding: 112px 24px 80px; }
.h3-cta-in { position: relative; display: flex; align-items: center; gap: 32px; min-height: 200px; padding: 0 72px; overflow: hidden; border-radius: 24px; background: var(--p600); color: #fff; }
.h3-cta h2 { flex: 1; font-size: 40px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; color: #fff; }
.h3-cta-in > img { width: 220px; height: 220px; margin: -10px 0 -30px; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(20, 8, 50, .25)); }   /* 캐릭터 누끼(hero_points.png) — 바탕 네모가 없다 */
:root[data-theme="dark"] .h3-cta-in { background: var(--primary-bg); }

/* ── 넓은 화면: 제목만 키운다 ── */
@media (min-width: 1280px) {
  .h3m:not(.h3m--m) .h3-hero h1 { font-size: 48px; }
}
@media (min-width: 1440px) {
  .h3m:not(.h3m--m) .h3-hero h1 { font-size: 52px; }
}
@media (min-width: 1920px) {
  .h3m:not(.h3m--m) .h3-hero h1 { font-size: 60px; }
}

/* ── 휴대폰(390): 손에 든 화면 한 장 기준 — 제목 26 · 구역 제목 20 · 카드 제목 16 · 본문 14 · 그림은 글 옆 104px ── */
@media (max-width: 860px) {
  .h3m--m .h3-hero { grid-template-columns: 1fr; gap: 20px; padding: 32px 16px 40px; }
  .h3m--m .h3-hero h1 { font-size: 26px; line-height: 1.3; }
  .h3m--m .h3-hero-copy > p { margin: 10px 0 20px; font-size: 16px; }
  .h3m--m .h3-hero-acts { gap: 8px; }
  .h3m--m .h3-hero-points { flex-direction: column; gap: 6px; margin-top: 16px; }
  .h3m--m .h3-hero-points li { font-size: 14px; }
  .h3m--m .h3-hero-points svg { width: 18px; height: 18px; }
  .h3m--m .h3-hero-art { height: 230px; }
  .h3m--m .h3-hero-shot-bar { height: 28px; padding: 0 10px; }
  .h3m--m .h3-hero-shot--1 { width: 84%; }
  .h3m--m .h3-hero-shot--1 .h3-hero-shot-view { height: 100px; }
  .h3m--m .h3-hero-shot--2 { top: 104px; right: 4%; width: 50%; }
  .h3m--m .h3-hero-shot--2 .h3-hero-shot-view { height: 96px; }
  .h3m--m .h3-hero-char { width: 150px; bottom: -4px; }
  .h3m--m .h3-btn { flex: 1; height: 52px; padding: 0 12px; font-size: 16px; }
  .h3m--m .h3-steps { padding: 0 16px; }
  .h3m--m .h3-steps-in { padding: 32px 16px; border-radius: 16px; }
  .h3m--m .h3-title { font-size: 20px; }
  .h3m--m .h3-sec { padding: 48px 16px 0; }
  .h3m--m .h3-sec > .h3-title { margin-bottom: 18px; }
  .h3m--m .h3-lead { margin-top: 6px; font-size: 14px; }
  .h3m--m .h3-lead-act { margin: 4px 0 20px; }
  .h3m--m .h3-lead-act :is(a, button) { font-size: 14px; }
  .h3m--m .h3-step-grid, .h3m--m .h3-card-grid { grid-template-columns: 1fr; gap: 16px; }
  .h3m--m .h3-step, .h3m--m .h3-card { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: start; }
  .h3m--m .h3-step-shot { width: 104px; height: 104px; aspect-ratio: auto; border-radius: 12px; }
  .h3m--m .h3-card img { width: 104px; height: 104px; aspect-ratio: auto; border-radius: 12px; }
  .h3m--m .h3-badge { height: 22px; margin-top: 0; padding: 0 8px; font-size: 12px; }
  .h3m--m .h3-step h3 { margin: 6px 0 4px; font-size: 16px; }
  .h3m--m .h3-card h3 { margin: 0 0 4px; font-size: 16px; }
  .h3m--m .h3-step p, .h3m--m .h3-card p { font-size: 14px; line-height: 1.55; }
  .h3m--m .h3-faq-list summary { min-height: 52px; padding: 0 4px; font-size: 14px; }
  .h3m--m .h3-faq-list p { padding: 0 4px 16px 24px; font-size: 14px; }
  .h3m--m .h3-cta { padding: 48px 16px 32px; }
  .h3m--m .h3-cta-in { flex-wrap: wrap; gap: 14px; min-height: 0; padding: 24px 20px; border-radius: 16px; }
  .h3m--m .h3-cta h2 { position: relative; z-index: 1; flex: 1 1 60%; font-size: 18px; }
  .h3m--m .h3-cta-in > img { position: absolute; right: 4px; bottom: -6px; width: 110px; height: 110px; margin: 0; }
  .h3m--m .h3-cta .h3-btn { flex: none; height: 44px; padding: 0 20px; font-size: 14px; position: relative; }
}

/* 홈 바탕은 흰색(회색 page 바탕 대신) — 회색은 STEP 판에만 */
body.home-page, body.home-page .iru-main.is-landing { background: var(--surface); }
