/* ============================================================
   찬다 홈페이지 (매장 사장님 대상 소개 페이지)
   색·글꼴 토큰은 brand/brand.css 와 같은 값. 화면에서는 var(--...) 만 쓴다.
   ============================================================ */

:root {
  /* 브랜드 (brand/brand.css 와 같은 값) */
  --color-primary:       #E8652B;
  --color-primary-dark:  #C44D1A;
  --color-primary-light: #FF8C5A;
  --color-primary-bg:    #FFF3EE;
  --color-accent:        #2B8C5E;
  --color-gold:          #F5A623;
  --color-ink:           #2B1810;
  --color-seal:          #C8392C;
  --color-hanji:         #F7F1E3;
  --color-hanji-light:   #FBF5E8;
  --color-hanji-dark:    #F4EDDC;
  --color-text:          #2B1810;
  --color-text-sub:      #8B7355;
  --color-text-light:    #B0B0A8;
  --color-bg:            #FAF6EA;
  --color-card:          #FFFFFF;
  --color-border:        #EAE2CE;

  /* 홈페이지 전용 */
  --color-text-body:     #5A4636;                  /* 본문 — 한지 배경에서 읽기 쉬운 진한 갈색 */
  --color-on-dark:       #F7F1E3;                  /* 먹 배경 위 글자 (= 한지) */
  --color-on-dark-sub:   rgba(247, 241, 227, 0.7);
  --color-on-dark-line:  rgba(247, 241, 227, 0.14);
  --color-on-dark-card:  rgba(247, 241, 227, 0.05);
  --color-phone:         #1C1410;                  /* 휴대폰 테두리 */
  --color-ink-warm:      #4A2E1F;                  /* 알림 예시 잠금화면 위쪽 (먹보다 밝은 갈색) */
  --color-dot:           #EADFC6;                  /* 한지 점 무늬 */
  --color-kakao:         #FEE500;                  /* 카카오 버튼 가이드 색 */
  --color-kakao-text:    #191919;

  --font-main:  'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-serif: 'Noto Serif KR', 'Nanum Myeongjo', 'Gowun Batang', serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-pill: 9999px;

  --shadow-1: 0 1px 2px rgba(43, 24, 16, 0.05);
  --shadow-2: 0 6px 18px rgba(43, 24, 16, 0.07);
  --shadow-3: 0 14px 36px rgba(43, 24, 16, 0.12);
  --shadow-phone: 0 40px 70px -24px rgba(43, 24, 16, 0.5);

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --header-h: 64px;
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-main); font-size: 16px; line-height: 1.65; letter-spacing: -0.3px;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 로고 (brand.css 로고 유틸과 같음) ---------- */
.chanda-logo {
  display: inline-flex; align-items: center; gap: 0.2em; line-height: 1;
  font-family: var(--font-serif); font-weight: 900; letter-spacing: -0.02em; color: var(--color-ink);
}
.chanda-logo .chanda-accent { color: var(--color-seal); }
.chanda-logo-deco { display: inline-flex; flex-direction: column; align-items: center; gap: 0.04em; margin: 0 0.05em; }
.chanda-logo-deco i { display: block; width: 0; height: 0; border-left: 0.14em solid transparent; border-right: 0.14em solid transparent; }
.chanda-logo-deco i:first-child { border-top: 0.19em solid var(--color-seal); }
.chanda-logo-deco i:last-child  { border-bottom: 0.19em solid var(--color-seal); }
.chanda-logo.on-dark { color: var(--color-hanji); }
.chanda-logo.on-dark .chanda-accent { color: var(--color-primary); }
.chanda-logo.on-dark .chanda-logo-deco i:first-child { border-top-color: var(--color-primary); }
.chanda-logo.on-dark .chanda-logo-deco i:last-child  { border-bottom-color: var(--color-primary); }
.chanda-logo.on-brand { color: var(--color-card); }
.chanda-logo.on-brand .chanda-accent { color: var(--color-primary-bg); }
.chanda-logo.on-brand .chanda-logo-deco i:first-child { border-top-color: var(--color-primary-bg); }
.chanda-logo.on-brand .chanda-logo-deco i:last-child  { border-bottom-color: var(--color-primary-bg); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-pill); border: 0;
  font: inherit; font-size: 16px; font-weight: 800; letter-spacing: -0.4px; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform 0.15s var(--ease-out), background-color 0.15s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 17px; }
.btn--primary { background: var(--color-primary); color: var(--color-card); box-shadow: 0 8px 20px -8px rgba(232, 101, 43, 0.7); }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--kakao { background: var(--color-kakao); color: var(--color-kakao-text); }
.btn--kakao:hover { filter: brightness(0.96); }
.btn--ink { background: var(--color-ink); color: var(--color-on-dark); }
.btn--ink:hover { background: var(--color-text-body); }
.btn--light { background: var(--color-card); color: var(--color-ink); }
.btn--light:hover { background: var(--color-hanji-light); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row--center { justify-content: center; }

/* ---------- 공통 글자 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-size: 15px; font-weight: 800; color: var(--color-primary-dark); letter-spacing: -0.2px;
}
.eyebrow::before {   /* 로고의 ▽△ 모래시계 */
  content: ''; width: 10px; height: 14px; background: var(--color-seal);
  clip-path: polygon(0 0, 100% 0, 50% 50%, 100% 100%, 0 100%, 50% 50%);
}
.eyebrow--on-dark { color: var(--color-primary-light); }
.eyebrow--on-dark::before { background: var(--color-primary); }

h1, h2 { font-family: var(--font-serif); font-weight: 900; letter-spacing: -0.02em; color: var(--color-ink); }
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.2; }
h1 em { font-style: normal; color: var(--color-seal); }
h2 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.28; }
h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.4; }
.lead { margin-top: 20px; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.75; color: var(--color-text-body); max-width: 40em; }
.lead strong { color: var(--color-primary-dark); font-weight: 800; }
.fine { font-size: 14px; color: var(--color-text-sub); }

/* ---------- 머리글 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(250, 246, 234, 0.88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--color-border); box-shadow: var(--shadow-1); }
.header-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { text-decoration: none; font-size: 28px; display: inline-flex; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  padding: 8px 12px; border-radius: var(--radius-pill); text-decoration: none;
  font-size: 15px; font-weight: 700; color: var(--color-text-body); transition: background-color 0.15s, color 0.15s;
}
.nav a:hover { background: var(--color-primary-bg); color: var(--color-primary-dark); }

/* ---------- 첫 화면 ---------- */
.hero {
  position: relative; overflow: hidden; padding: 56px 0 72px;
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(245, 166, 35, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(232, 101, 43, 0.10), transparent 70%),
    linear-gradient(180deg, var(--color-hanji-light) 0%, var(--color-hanji) 55%, var(--color-hanji-dark) 100%);
}
.hero::before {   /* 한지 점 무늬 */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.8;
  background-image: radial-gradient(var(--color-dot) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%); mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
/* 첫 화면 제목 — 세 줄이 차례로 떠오르고 '내 매장 전용'에 형광펜, 부제목의 '바로'가 한 번 튄다 */
.ht-line { display: block; animation: ht-rise 0.7s var(--ease-out) both; }
.ht-line:nth-child(2) { animation-delay: 0.15s; }
.ht-line:nth-child(3) { animation-delay: 0.3s; }
.ht-mark { position: relative; z-index: 0; display: inline-block; }
.ht-mark::after {
  content: ''; position: absolute; z-index: -1; left: -0.06em; right: -0.06em; bottom: 0.06em; height: 0.34em;
  border-radius: 0.1em; background: rgba(245, 166, 35, 0.38); transform-origin: left center;
  animation: ht-mark 0.6s var(--ease-out) 0.75s both;
}
.hero-sub {
  margin-top: 18px; font-family: var(--font-serif); font-size: clamp(20px, 2.2vw, 26px); font-weight: 700;
  line-height: 1.4; letter-spacing: -0.02em; color: var(--color-ink-warm);
  animation: ht-rise 0.6s var(--ease-out) 0.55s both;
}
.hero-sub em { display: inline-block; font-style: normal; font-weight: 900; color: var(--color-seal); animation: ht-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.15s both; }
@keyframes ht-rise { from { opacity: 0; transform: translateY(0.5em); } to { opacity: 1; transform: none; } }
@keyframes ht-mark { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ht-pop { 0% { transform: none; } 45% { transform: translateY(-0.18em) scale(1.25); } 100% { transform: none; } }
.hero-copy .lead { max-width: 30em; margin-top: 14px; }
.hero-checks { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.hero-checks li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--color-text-body); }
.hero-checks li.is-key { font-weight: 800; color: var(--color-primary-dark); }
.hero-checks li::before {
  content: ''; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* 휴대폰 틀 */
.phone {
  position: relative; background: var(--color-phone); padding: 9px; border-radius: 38px;
  box-shadow: var(--shadow-phone), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.phone img { width: 100%; height: auto; aspect-ratio: 1080 / 2340; object-fit: cover; object-position: top; border-radius: 30px; background: var(--color-hanji); }
.phone img.is-contain { object-fit: contain; background: var(--color-bg); }   /* 세로가 더 긴 PC 캡처 — 잘리지 않게, 빈자리는 고객 앱 배경색 */

/* 첫 화면 그림: 휴대폰 → POS 주문서 */
.hero-visual { position: relative; width: 100%; max-width: 500px; margin: 0 auto; padding-bottom: 8px; }
.phone--hero { width: 56%; transform: rotate(-3deg); }
.speed-chip {
  position: absolute; top: 14%; right: 4%; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: var(--radius-pill);
  background: var(--color-ink); color: var(--color-on-dark); font-size: 15px; font-weight: 700; box-shadow: var(--shadow-3);
}
.speed-chip b { color: var(--color-primary-light); font-weight: 900; }
.speed-chip .i { color: var(--color-gold); fill: var(--color-gold); stroke: none; }
.pos { position: absolute; top: 27%; right: 0; width: 52%; z-index: 2; filter: drop-shadow(0 22px 30px rgba(43, 24, 16, 0.22)); }
.pos-slot {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  background: var(--color-ink); color: var(--color-on-dark); border-radius: 14px;
  font-size: 13px; font-weight: 800; letter-spacing: -0.2px;
}
.pos-state { margin-left: auto; font-weight: 600; color: var(--color-on-dark-sub); }
.pos-led { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 0 rgba(43, 140, 94, 0.6); animation: led 1.8s ease-out infinite; }
@keyframes led { 0% { box-shadow: 0 0 0 0 rgba(43, 140, 94, 0.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(43, 140, 94, 0); } }
.ticket {
  margin: -6px 10px 0; padding: 20px 16px 26px; background: var(--color-card);
  font-size: clamp(12px, 1.25vw, 14px); font-variant-numeric: tabular-nums; color: var(--color-ink);
  -webkit-mask: radial-gradient(circle at 7px 100%, transparent 5px, #000 5.5px) 0 0 / 14px 100% repeat-x;
          mask: radial-gradient(circle at 7px 100%, transparent 5px, #000 5.5px) 0 0 / 14px 100% repeat-x;
  animation: print 1.1s 0.5s var(--ease-out) both;
}
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-24px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.t-row { display: flex; justify-content: space-between; gap: 8px; line-height: 1.9; }
.t-head { align-items: center; font-size: 1.08em; }
.t-new { padding: 1px 8px; border-radius: var(--radius-pill); background: var(--color-primary); color: var(--color-card); font-size: 0.8em; font-weight: 800; line-height: 1.7; white-space: nowrap; }
.t-meta { color: var(--color-text-sub); font-weight: 600; }
.t-rule { margin: 8px 0; border-top: 1.5px dashed var(--color-border); }
.t-total { font-weight: 700; }
.t-total b { color: var(--color-primary-dark); font-weight: 900; }

/* 첫 화면 아래 숫자 줄 */
.proof {
  position: relative; margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-xl); box-shadow: var(--shadow-2);
}
.proof-item { padding: 22px 24px; }
.proof-item + .proof-item { border-left: 1px solid var(--color-border); }
.proof dt { font-size: clamp(22px, 2.4vw, 28px); font-weight: 900; letter-spacing: -0.8px; color: var(--color-primary-dark); line-height: 1.3; }
.proof dd { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--color-text-body); line-height: 1.5; }

/* ---------- 구역 공통 ---------- */
.sec { padding: 104px 0; }
.sec--card { background: var(--color-card); }
.sec--hanji { background: var(--color-hanji); }
.sec-head { margin-bottom: 48px; }
.sec-head--center { text-align: center; }
.sec-head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- POS 연동 (먹 배경) ---------- */
.sec--dark { background: var(--color-ink); color: var(--color-on-dark); position: relative; overflow: hidden; }
.sec--dark::before {
  content: ''; position: absolute; width: 640px; height: 640px; right: -200px; top: -260px; pointer-events: none;
  background: radial-gradient(circle, rgba(232, 101, 43, 0.22), transparent 65%);
}
.sec--dark h2 { color: var(--color-on-dark); }
.sec--dark .lead { color: var(--color-on-dark-sub); }

.flow { position: relative; display: grid; grid-template-columns: 1fr 120px 1fr 120px 1fr; align-items: center; }
.flow-node {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 16px;
  background: var(--color-on-dark-card); border: 1px solid var(--color-on-dark-line); border-radius: var(--radius-xl);
}
.flow-node b { font-size: 19px; font-weight: 800; letter-spacing: -0.5px; }
.flow-node > span:last-child { font-size: 14px; color: var(--color-on-dark-sub); line-height: 1.6; }
.flow-ic {
  width: 56px; height: 56px; margin-bottom: 6px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(247, 241, 227, 0.08); color: var(--color-on-dark); font-size: 24px;
}
.flow-node--hot { background: var(--color-primary); border-color: var(--color-primary); box-shadow: 0 18px 40px -12px rgba(232, 101, 43, 0.6); }
.flow-node--hot > span:last-child { color: var(--color-primary-bg); }
.flow-node--hot .flow-ic { background: rgba(255, 255, 255, 0.18); }
.flow-link { position: relative; height: 2px; margin: 0 10px; background: repeating-linear-gradient(90deg, var(--color-on-dark-line) 0 6px, transparent 6px 12px); }
.flow-label {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); white-space: nowrap;
  font-size: 14px; font-weight: 800; color: var(--color-gold);
}
.flow-dot {
  position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: var(--color-primary-light); box-shadow: 0 0 12px var(--color-primary);
  animation: travel 1.6s ease-in-out infinite;
}
.flow-link + .flow-node + .flow-link .flow-dot { animation-delay: 0.8s; }
@keyframes travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
@keyframes travel-v { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }
.flow-note { margin-top: 24px; text-align: center; font-size: 15px; color: var(--color-on-dark-sub); }

.dark-cards { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dark-card { padding: 26px 22px; border-radius: var(--radius-lg); border: 1px solid var(--color-on-dark-line); background: var(--color-on-dark-card); }
.dark-card > .i { font-size: 26px; color: var(--color-primary-light); }
.dark-card h3 { margin-top: 16px; color: var(--color-on-dark); }
.dark-card p { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--color-on-dark-sub); }

/* ---------- 수수료 (배달 플랫폼과 비교) ---------- */
.sec h2 em { font-style: normal; color: var(--color-seal); }
.fee { display: grid; grid-template-columns: 1.5fr auto 1fr; gap: 24px; align-items: stretch; max-width: 1060px; margin: 0 auto; }
.fee-col { padding: 36px 34px; border-radius: var(--radius-2xl); }
.fee-col--other { background: var(--color-bg); border: 1px solid var(--color-border); }
.fee-col--chanda {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); color: var(--color-card);
  box-shadow: 0 24px 50px -20px rgba(232, 101, 43, 0.7);
}
.fee-name { font-size: 15px; font-weight: 800; color: var(--color-text-sub); }
.fee-col--chanda .fee-name { color: var(--color-primary-bg); }
.fee-head { margin-top: 12px; font-family: var(--font-serif); font-size: clamp(26px, 3vw, 34px); font-weight: 900; line-height: 1.3; color: var(--color-text-body); }
.fee-formula {
  display: inline-block; margin-top: 14px; padding: 6px 14px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18); font-size: 16px; font-weight: 800; color: var(--color-card);
}
.fee-num { margin-top: 4px; font-size: clamp(60px, 7.5vw, 84px); font-weight: 900; letter-spacing: -2px; line-height: 1.05; }
.fee-sub { margin-top: 6px; font-size: 16px; font-weight: 700; color: var(--color-primary-bg); }
.fee-list { margin-top: 26px; display: grid; gap: 12px; }
.fee-list li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 700; color: var(--color-text-body); }
.fee-list li::before {
  content: ''; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: var(--color-text-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M8 8l8 8M16 8l-8 8'/%3E%3C/svg%3E") center/11px no-repeat;
}
.fee-col--chanda .fee-list li { color: var(--color-card); }
.fee-col--chanda .fee-list li::before {
  background: rgba(255, 255, 255, 0.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat;
}
.fee-vs {
  align-self: center; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-ink); color: var(--color-on-dark); font-size: 15px; font-weight: 900; letter-spacing: 0;
}
/* 찬다 칸 강조 — 구역이 보이면(.fee.is-in) 튀어 오르고, 그 뒤로는 은은하게 빛나고 가끔 반짝인다 */
.fee-col--chanda { position: relative; overflow: hidden; }
.fee-col--chanda::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.32) 50%, transparent 65%);
}
.fee.is-in .fee-col--chanda {
  animation: fee-pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both, fee-glow 3s ease-in-out 1.4s infinite;
}
.fee.is-in .fee-col--chanda::after { animation: fee-shine 4.5s ease-in-out 1.6s infinite; }
.fee.is-in .fee-formula { animation: fee-rise 0.5s var(--ease-out) 0.55s both; }
.fee.is-in .fee-num { transform-origin: left center; animation: fee-num-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s both; }
.fee.is-in .fee-sub { animation: fee-rise 0.5s var(--ease-out) 0.95s both; }
.fee.is-in .fee-col--chanda .fee-list li { animation: fee-rise 0.5s var(--ease-out) 1.1s both; }
.fee.is-in .fee-col--chanda .fee-list li + li { animation-delay: 1.25s; }
.fee.is-in .fee-vs { animation: fee-vs-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both; }
@keyframes fee-pop { from { opacity: 0; transform: translateY(24px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes fee-glow {
  0%, 100% { box-shadow: 0 24px 50px -20px rgba(232, 101, 43, 0.7); }
  50% { box-shadow: 0 28px 70px -12px rgba(232, 101, 43, 0.95); }
}
@keyframes fee-shine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
@keyframes fee-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fee-num-pop { 0% { opacity: 0; transform: scale(0.6); } 60% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes fee-vs-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
.fee-table { margin-top: 22px; width: 100%; border-collapse: collapse; font-size: 15px; }
.fee-table th, .fee-table td { padding: 13px 6px; border-bottom: 1px solid var(--color-border); text-align: center; vertical-align: middle; }
.fee-table thead th { padding-top: 0; font-size: 14px; font-weight: 800; color: var(--color-text-sub); }
.fee-table tbody th { text-align: left; font-weight: 700; color: var(--color-text-body); white-space: nowrap; }
.fee-table tbody th small { display: block; font-size: 12px; font-weight: 600; color: var(--color-text-sub); }
.fee-table td { font-weight: 800; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.fee-table tbody tr:last-child th, .fee-table tbody tr:last-child td { border-bottom: 0; }
.fee-note { max-width: 760px; margin: 24px auto 0; text-align: center; font-size: 13.5px; line-height: 1.7; color: var(--color-text-sub); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- 손님 주문 ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.steps li {
  counter-increment: step; position: relative; padding: 18px 14px 16px; text-align: center;
  background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
}
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; margin: 0 auto 10px;
  border-radius: 50%; background: var(--color-primary-bg); color: var(--color-primary-dark); font-size: 14px; font-weight: 900;
}
.steps li:nth-child(5) { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-card); }
.steps li:nth-child(5)::before { background: rgba(255, 255, 255, 0.22); color: var(--color-card); }
.steps li:nth-child(5) span { color: var(--color-primary-bg); }
.steps b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.4px; }
.steps span { display: block; margin-top: 2px; font-size: 13px; color: var(--color-text-sub); line-height: 1.5; }

.shots { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; justify-items: center; }
.shot { max-width: 270px; }
.shot figcaption { margin-top: 24px; font-size: 15px; line-height: 1.65; color: var(--color-text-body); text-align: center; }
.shot figcaption b { display: block; margin-bottom: 4px; font-size: 18px; font-weight: 800; color: var(--color-ink); }

/* ---------- 단골 기능 ---------- */
.push {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px;
  background: var(--color-hanji); border-radius: var(--radius-2xl); position: relative; overflow: hidden;
}
.push h3 { font-family: var(--font-serif); font-size: clamp(22px, 2.4vw, 28px); font-weight: 900; letter-spacing: -0.02em; }
.push-copy > p:not(.fine) { margin-top: 14px; color: var(--color-text-body); line-height: 1.75; }
.quick { margin: 24px 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 380px; }
.quick span {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius-md);
  background: var(--color-card); border: 1px solid var(--color-border); font-weight: 800; font-size: 15px; box-shadow: var(--shadow-1);
}
.quick .i { color: var(--color-primary); font-size: 20px; }
.lock {
  position: relative; padding: 26px 18px 18px; border-radius: 30px;
  background: linear-gradient(160deg, var(--color-ink-warm) 0%, var(--color-ink) 60%, var(--color-phone) 100%);
  box-shadow: var(--shadow-3); max-width: 400px; width: 100%; justify-self: center;
}
.lock-time { text-align: center; font-size: 44px; font-weight: 300; color: var(--color-on-dark); letter-spacing: -1px; line-height: 1; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.noti {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 18px;
  background: rgba(251, 245, 232, 0.94); color: var(--color-ink);
}
.noti + .noti { margin-top: 8px; }
.noti:nth-of-type(2) { opacity: 0.9; }
.noti:nth-of-type(3) { opacity: 0.78; }
.noti img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.noti-app { font-size: 12px; font-weight: 600; color: var(--color-text-sub); display: flex; justify-content: space-between; gap: 8px; }
.noti-t { margin-top: 1px; font-size: 15px; font-weight: 800; letter-spacing: -0.4px; }
.noti-b { font-size: 14px; color: var(--color-text-body); line-height: 1.5; }
.lock figcaption { margin-top: 12px; text-align: center; font-size: 12px; color: var(--color-on-dark-sub); }

.features { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.features li { padding: 24px 22px; border-radius: var(--radius-lg); background: var(--color-bg); border: 1px solid var(--color-border); }
.features h3 { margin-top: 16px; font-size: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.features p { margin-top: 6px; font-size: 14.5px; line-height: 1.65; color: var(--color-text-body); }
.f-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--color-primary-bg); color: var(--color-primary); font-size: 22px; }
.tag { font-style: normal; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-on-dark); font-size: 11.5px; font-weight: 800; letter-spacing: -0.2px; }

/* ---------- 사장님 앱 ---------- */
.app-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.app-shots { position: relative; height: 600px; max-width: 460px; width: 100%; margin: 0 auto; }
.app-shots .phone { position: absolute; width: 58%; }
.phone--back { left: 0; top: 0; transform: rotate(-4deg); }
.phone--front { right: 0; bottom: 0; transform: rotate(3deg); }
.app-copy .sec-head { margin-bottom: 28px; }
.app-list li { position: relative; padding: 16px 0 16px 28px; border-top: 1px solid var(--color-border); color: var(--color-text-body); font-size: 15.5px; line-height: 1.7; }
.app-list li:last-child { border-bottom: 1px solid var(--color-border); }
.app-list li::before { content: ''; position: absolute; left: 4px; top: 25px; width: 10px; height: 10px; border-radius: 3px; background: var(--color-primary); transform: rotate(45deg); }
.app-list b { display: block; font-size: 17px; font-weight: 800; color: var(--color-ink); }
.app-get { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.app-get .i { fill: currentColor; stroke: none; font-size: 16px; }

/* ---------- 결제와 정산 ---------- */
.pay-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pay-card { padding: 32px 28px; background: var(--color-card); border-radius: var(--radius-xl); border: 1px solid var(--color-border); box-shadow: var(--shadow-1); }
.pay-card h3 { margin-top: 14px; font-size: 21px; }
.pay-card p { margin-top: 8px; color: var(--color-text-body); font-size: 15.5px; line-height: 1.7; }
.pay-card .pay-label { margin-top: 0; display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; color: var(--color-primary-dark); }
.pay-label .i { font-size: 18px; color: var(--color-primary); }

/* ---------- 도입 절차 ---------- */
.timeline { counter-reset: tl; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.timeline::before { content: ''; position: absolute; top: 23px; left: 10%; right: 10%; height: 2px; background: var(--color-border); }
.timeline li { counter-increment: tl; position: relative; text-align: center; padding: 0 10px; }
.timeline li::before {
  content: counter(tl); display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 16px;
  position: relative; border-radius: 50%; background: var(--color-card); border: 2px solid var(--color-primary);
  color: var(--color-primary-dark); font-size: 18px; font-weight: 900;
}
.timeline li:last-child::before { background: var(--color-primary); color: var(--color-card); }
.timeline b { display: block; font-size: 17px; font-weight: 800; }
.timeline span { display: block; margin-top: 4px; font-size: 14px; color: var(--color-text-body); line-height: 1.55; }

/* ---------- 자주 묻는 질문 ---------- */
.faq-wrap { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 48px; align-items: start; }
.faq details { border-bottom: 1px solid var(--color-border); }
.faq details:first-child { border-top: 1px solid var(--color-border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px; font-size: 17px; font-weight: 800; letter-spacing: -0.4px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 12px; height: 12px; margin-right: 6px;
  border-right: 2.5px solid var(--color-primary); border-bottom: 2.5px solid var(--color-primary);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.2s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 4px 22px; color: var(--color-text-body); font-size: 15.5px; line-height: 1.75; }

/* ---------- 도입 문의 ---------- */
.contact {
  padding: 96px 0; text-align: center; color: var(--color-card); position: relative; overflow: hidden;
  background: radial-gradient(ellipse 70% 80% at 50% 0%, var(--color-primary-light), transparent 70%), linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}
.contact-logo { font-size: 40px; margin-bottom: 24px; }
.contact h2 { color: var(--color-card); }
.contact p { margin: 16px 0 32px; font-size: 18px; color: var(--color-primary-bg); }

/* ---------- 바닥글 ---------- */
.site-footer { background: var(--color-ink); color: var(--color-on-dark-sub); padding: 56px 0 48px; font-size: 14px; }
.footer-in { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: start; }
.footer-logo { font-size: 30px; }
.footer-slogan { margin-top: 12px; font-family: var(--font-serif); font-weight: 700; color: var(--color-on-dark); }
.footer-info { line-height: 1.9; }
.footer-info span + span::before { content: ''; display: inline-block; width: 1px; height: 11px; margin: 0 10px; vertical-align: -1px; background: currentColor; opacity: 0.4; }
.footer-info br + span::before { content: none; }
.footer-info a { color: var(--color-on-dark); text-decoration: none; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--color-on-dark); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--color-primary-light); }
.copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--color-on-dark-line); }

/* ---------- 오른쪽 아래 떠 있는 문의 버튼 (큐브테크 홈페이지와 같은 방식) ---------- */
.fab {
  position: fixed; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  right: calc(24px + env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom));
  transition: opacity 0.25s, transform 0.25s;
}
.fab.is-away { opacity: 0; transform: translateY(12px); pointer-events: none; }   /* 문의 구역·바닥글이 보일 때 */
.fab-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: var(--radius-pill);
  font-size: 17px; font-weight: 800; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 24px -8px rgba(43, 24, 16, 0.4); transition: transform 0.2s, filter 0.2s, background-color 0.2s;
}
.fab-btn:hover { transform: translateY(-2px); }
.fab-btn:active { transform: scale(0.96); }
.fab-btn .i { font-size: 19px; }
.fab-btn--inquiry { background: var(--color-primary); color: var(--color-card); box-shadow: 0 10px 24px -8px rgba(232, 101, 43, 0.75); }
.fab-btn--inquiry:hover { background: var(--color-primary-dark); }
.fab-btn--kakao { background: var(--color-kakao); color: var(--color-kakao-text); }
.fab-btn--kakao:hover { filter: brightness(0.96); }
@media print { .fab { display: none; } }

/* ---------- 화면에 들어올 때 살짝 떠오르기 (스크립트가 켜진 경우만) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 1080px) {
  .nav a { padding: 8px 9px; font-size: 14px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .dark-cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 58px; }
  .nav { display: none; }
  .brand { font-size: 24px; }

  .hero { padding: 32px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 400px; }
  .proof { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .proof-item:nth-child(3) { border-left: 0; }
  .proof-item:nth-child(n+3) { border-top: 1px solid var(--color-border); }

  .sec { padding: 72px 0; }
  .sec-head { margin-bottom: 36px; }

  .flow { grid-template-columns: 1fr; gap: 0; max-width: 360px; margin: 0 auto; }
  .flow-link { width: 2px; height: 56px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--color-on-dark-line) 0 6px, transparent 6px 12px); }
  .flow-label { left: 16px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .flow-dot { left: 50%; top: 0; margin: 0 0 0 -5px; animation-name: travel-v; }

  .shots { grid-template-columns: repeat(2, minmax(0, 240px)); justify-content: center; justify-items: stretch; gap: 36px 20px; margin-top: 48px; }
  .shot { max-width: none; }

  .push { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; }
  .features { grid-template-columns: repeat(2, 1fr); }

  .app-grid { grid-template-columns: 1fr; gap: 40px; }
  .app-shots { height: auto; aspect-ratio: 460 / 600; max-width: 380px; order: 2; }

  .pay-cards { grid-template-columns: 1fr; }

  .fee { grid-template-columns: 1fr; gap: 0; max-width: 560px; }
  .fee-vs { justify-self: center; margin: -14px 0; position: relative; z-index: 1; }
  .fee-col { padding: 30px 26px; }

  .timeline { grid-template-columns: 1fr; gap: 0; max-width: 420px; margin: 0 auto; }
  .timeline::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; }
  .timeline li { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; text-align: left; padding: 0 0 24px; }
  .timeline li::before { margin: 0; grid-row: span 2; }
  .timeline b { align-self: end; }

  .faq-wrap { grid-template-columns: 1fr; gap: 0; }

  .footer-in { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .fab { right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); gap: 10px; }
  .fab-btn { padding: 13px 20px; font-size: 15.5px; }
  .fab-btn .i { font-size: 17px; }
  .hero-checks { flex-direction: column; gap: 8px; }
  .hero-sub { font-size: clamp(16px, 4.6vw, 18px); }
  .hero-visual { max-width: 360px; }
  .speed-chip { font-size: 13px; padding: 7px 12px; top: 10%; right: 0; }
  .pos-slot { padding: 10px 11px; font-size: 12px; }
  .pos-state { display: none; }
  .ticket { margin: -6px 6px 0; padding: 16px 12px 22px; }
  .proof-item { padding: 18px 16px; }
  .proof dd { font-size: 13px; }
  .dark-cards { grid-template-columns: 1fr; margin-top: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .shots { gap: 28px 12px; margin-top: 36px; }   /* 휴대폰은 2개씩 두 줄로 작게 — 옆으로 넘기지 않고 한눈에 */
  .shot .phone { padding: 6px; border-radius: 26px; }
  .shot .phone img { border-radius: 20px; }
  .shot figcaption { margin-top: 14px; font-size: 13px; line-height: 1.55; }
  .shot figcaption b { margin-bottom: 2px; font-size: 15px; }
  .features { grid-template-columns: 1fr; }
  .features li { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; padding: 20px 18px; }
  .features .f-ic { grid-row: span 2; }
  .features h3 { margin-top: 0; }
  .fee-col--other { padding: 28px 16px 20px; }
  .fee-table { font-size: 13.5px; }
  .fee-table th, .fee-table td { padding: 11px 3px; }
  .fee-table thead th { font-size: 12.5px; }
  .push { margin: 0 -16px; border-radius: 0; padding: 32px 16px; }
  .quick { max-width: none; }
  .contact { padding: 72px 0; }
  .contact .cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
