/* ========================================================================
   cash-mobile153 — 모바일캐시 브랜드 신규 배치 전용 디자인 시스템
   레이아웃: 균등 3열 아이콘 타일 그리드 (Uniform Icon Tile Grid)
   컬러: 울트라바이올렛 인디고 · 시트린 옐로우
   컴포넌트: Equal-Size Tile Card (정사각 이미지 + 번호배지 + 제목 + 설명 + 화살표 링크)
   인터랙션: Fade-Rise Reveal (아래로 16px 이동 + opacity 상태에서 제자리로 떠오름)
   플로팅 상담: 우측 하단 "지금 상담 가능" 익스팬드 인포 카드 (탭하면 카드가 위로
   확장되며 전화/문자/구매 3버튼이 카드 안에서 세로로 나타남)
   헤더: 로고 좌측 + 상시노출 원형 아이콘 버튼 3개(전화/문자/구매) 우측 + 햄버거 버튼 →
   풀스크린 오버레이 드로어(안내문서 9개 세로 리스트)
   히어로: 스플릿 카드 히어로 (좌측 텍스트/배지칩/버튼 · 우측 라운드 프레임 4:3 이미지,
   배경 블롭 장식)
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.css');

:root {
  --font-sans: 'Inter', 'Pretendard', 'Noto Sans KR', system-ui, -apple-system, sans-serif;

  --fs-body: 16px;
  --fs-sm: 13px;
  --fs-md: 18px;
  --fs-lg: 22px;
  --fs-xl: 28px;
  --fs-2xl: 36px;

  /* 울트라바이올렛 인디고 · 시트린 옐로우 컬러 시스템 */
  --primary: #2a2659;
  --primary-dark: #1b183e;
  --accent: #e6d733;
  --accent-dark: #bfb112;
  --accent-light: #f2f0d4;
  --success: #2f8f6a;
  --warning: #c98a1f;
  --error: #c23b3b;

  --ink: #212032;
  --ink-soft: #5c5a72;
  --muted: #878698;
  --line: #dbdae7;
  --bg: #f9f9fb;
  --bg-soft: #f0f0f5;
  --bg-tint: #f0eedb;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.10);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.16);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 200; transition: width 0.1s linear;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- container ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 24px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: var(--radius-md);
  overflow: hidden; flex-shrink: 0; box-shadow: var(--shadow-sm);
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.logo-text { font-weight: 800; font-size: var(--fs-md); color: var(--primary); }
.logo-text .sub { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); }

.header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--primary);
  border: 1px solid var(--line); transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.icon-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.icon-btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.icon-btn--accent:hover { background: var(--accent-dark); }
.hamburger {
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--primary); border: none;
}
.hamburger span { width: 18px; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- nav drawer (fullscreen overlay) ---------- */
.nav-drawer {
  position: fixed; inset: 0; z-index: 300;
  background: var(--primary);
  opacity: 0; visibility: hidden; transform: scale(1.02);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  display: flex; flex-direction: column;
}
.nav-drawer.is-open { opacity: 1; visibility: visible; transform: scale(1); }
.nav-drawer__top { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; }
.nav-drawer__brand { color: #fff; font-weight: 800; font-size: var(--fs-md); }
.nav-drawer__close {
  width: 40px; height: 40px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.4);
  background: transparent; color: #fff; font-size: 20px; display: inline-flex; align-items: center; justify-content: center;
}
.nav-drawer__list { flex: 1; overflow-y: auto; padding: 12px 24px 40px; max-width: 640px; margin: 0 auto; width: 100%; }
.nav-drawer__item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,0.16);
  color: #fff; font-size: var(--fs-md); font-weight: 700;
}
.nav-drawer__item .num { color: var(--accent); font-weight: 800; font-size: var(--fs-sm); margin-right: 10px; }
.nav-drawer__item:hover { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: var(--fs-sm); border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--lg { padding: 15px 26px; font-size: var(--fs-body); }
.btn--solid { background: var(--primary); color: #fff; }
.btn--solid:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: #fff; color: var(--primary); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero__blob {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-light), transparent 70%);
  top: -220px; right: -180px; z-index: 0; opacity: 0.9;
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center;
  position: relative; z-index: 1;
}
.hero__eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--bg-tint); color: var(--primary-dark); font-weight: 800; font-size: var(--fs-sm);
  margin-bottom: 16px;
}
.hero__title { font-size: var(--fs-2xl); color: var(--ink); margin-bottom: 16px; }
.hero__title--doc { font-size: var(--fs-xl); }
.hero__desc { font-size: var(--fs-md); color: var(--ink-soft); margin-bottom: 20px; max-width: 46ch; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hero__chip {
  padding: 7px 14px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--line);
  font-size: var(--fs-sm); font-weight: 700; color: var(--primary-dark);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__photo {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3; background: var(--bg-tint);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--doc { aspect-ratio: 4 / 3; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__blob { width: 360px; height: 360px; top: -140px; right: -140px; }
}

/* ---------- section ---------- */
.section { padding: 52px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.section-head__eyebrow { color: var(--accent-dark); font-weight: 800; font-size: var(--fs-sm); letter-spacing: 0.06em; margin-bottom: 8px; }
.section-head__title { font-size: var(--fs-xl); margin-bottom: 10px; }
.section-head__desc { color: var(--ink-soft); font-size: var(--fs-md); }

/* ---------- tile grid (guide docs) ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.tile__media { position: relative; aspect-ratio: 1 / 1; background: var(--bg-tint); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__num {
  position: absolute; top: 12px; left: 12px; width: 32px; height: 32px; border-radius: var(--radius-pill);
  background: var(--primary); color: #fff; font-weight: 800; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}
.tile__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile__title { font-size: var(--fs-md); font-weight: 800; color: var(--ink); }
.tile__desc { font-size: var(--fs-sm); color: var(--ink-soft); flex: 1; }
.tile__cta { font-size: var(--fs-sm); font-weight: 800; color: var(--accent-dark); margin-top: 4px; }

@media (max-width: 880px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: 1fr; } }

/* ---------- article ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 8px 0 0; }
.article h2 { font-size: var(--fs-lg); margin: 34px 0 12px; color: var(--primary-dark); }
.article p { color: var(--ink-soft); margin-bottom: 10px; }
.checklist { margin: 14px 0; padding: 0; }
.checklist li {
  padding: 10px 14px 10px 38px; position: relative; background: var(--bg-soft);
  border-radius: var(--radius-sm); margin-bottom: 8px; color: var(--ink);
}
.checklist li::before { content: "✓"; position: absolute; left: 14px; color: var(--accent-dark); font-weight: 800; }
.data-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: var(--fs-sm); }
.data-table th, .data-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.data-table th { background: var(--bg-soft); color: var(--primary-dark); }
.breadcrumb { max-width: 760px; margin: 18px auto 0; padding: 0 24px; color: var(--muted); font-size: var(--fs-sm); }
.breadcrumb a { color: var(--primary-dark); font-weight: 700; }

/* ---------- faq ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-row { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.faq-row__toggle { display: none; }
.faq-row__q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; cursor: pointer; font-weight: 700; color: var(--ink);
}
.faq-row__icon {
  width: 26px; height: 26px; border-radius: var(--radius-pill); background: var(--bg-tint);
  color: var(--primary-dark); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.faq-row__a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-row__a p { padding: 0 20px 18px; color: var(--ink-soft); }
.faq-row__toggle:checked ~ .faq-row__a { max-height: 240px; }
.faq-row__toggle:checked ~ .faq-row__q .faq-row__icon { transform: rotate(45deg); background: var(--accent); color: #fff; }

/* ---------- related ---------- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.related-card__media { display: block; aspect-ratio: 4 / 3; background: var(--bg-tint); position: relative; }
.related-card__media img { width: 100%; height: 100%; object-fit: cover; }
.related-card__body { padding: 16px; }
.related-card__title { font-size: var(--fs-body); font-weight: 800; margin-bottom: 6px; }
.related-card__desc { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: 8px; }
.related-card__cta { font-size: var(--fs-sm); font-weight: 800; color: var(--accent-dark); }
@media (max-width: 880px) { .related-grid { grid-template-columns: 1fr; } }

/* ---------- contact box ---------- */
.contact-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: var(--radius-lg); padding: 40px 32px; text-align: center;
}
.contact-box__title { font-size: var(--fs-xl); margin-bottom: 10px; }
.contact-box__desc { color: rgba(255,255,255,0.85); max-width: 52ch; margin: 0 auto 14px; }
.contact-box__phone { font-size: var(--fs-xl); font-weight: 800; color: var(--accent); margin-bottom: 18px; }
.contact-box__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.contact-box .btn--ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.3); }

/* ---------- widget card (floating) ---------- */
.widget-card {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden; width: 200px;
  transition: width 0.25s ease, height 0.25s ease;
}
.widget-card__head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer;
  background: var(--primary); color: #fff;
}
.widget-card__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.widget-card__label { font-weight: 800; font-size: var(--fs-sm); }
.widget-card__body { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.widget-card.is-open .widget-card__body { max-height: 220px; }
.widget-card__option {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-weight: 700;
  font-size: var(--fs-sm); color: var(--ink); border-top: 1px solid var(--line);
}
.widget-card__option:hover { background: var(--bg-soft); }
.widget-card__option .ic { color: var(--accent-dark); }

@media (max-width: 560px) {
  .widget-card { right: 14px; bottom: 14px; width: 180px; }
}

/* ---------- sms modal (재사용 컴포넌트, 새 팔레트로 리스킨) ---------- */
.sms-modal-overlay {
  position: fixed; inset: 0; background: rgba(20,16,10,0.55); z-index: 400;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease;
}
.sms-modal-overlay.is-open { opacity: 1; visibility: visible; }
.sms-modal {
  background: #fff; border-radius: var(--radius-lg); padding: 32px; max-width: 380px; width: 100%;
  position: relative; box-shadow: var(--shadow-lg); text-align: center;
}
.sms-modal__close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--bg-soft); font-size: 18px; color: var(--ink-soft);
}
.sms-modal__title { font-size: var(--fs-lg); margin-bottom: 6px; }
.sms-modal__subtitle { color: var(--ink-soft); font-size: var(--fs-sm); margin-bottom: 18px; }
.sms-modal__box { background: var(--bg-soft); border-radius: var(--radius-md); padding: 16px; margin-bottom: 18px; }
.sms-modal__label { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: 4px; }
.sms-modal__phone { font-size: var(--fs-xl); font-weight: 800; color: var(--primary); }
.sms-modal__actions { display: flex; gap: 10px; }
.sms-modal__btn { flex: 1; padding: 13px; border-radius: var(--radius-pill); font-weight: 800; font-size: var(--fs-sm); }
.sms-modal__btn--call { background: var(--primary); color: #fff; }
.sms-modal__btn--call:hover { background: var(--primary-dark); }
.sms-modal__btn--sms { background: var(--accent); color: #fff; }
.sms-modal__btn--sms:hover { background: var(--accent-dark); }

/* ---------- to-top ---------- */
.to-top {
  position: fixed; left: 20px; bottom: 20px; z-index: 150;
  width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  color: var(--primary); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- footer ---------- */
.site-footer { padding: 30px 0 50px; text-align: center; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- responsive header actions ---------- */
@media (max-width: 640px) {
  .header__actions .icon-btn-label { display: none; }
  .hero { padding: 40px 0 28px; }
  .contact-box { padding: 30px 20px; }
}
