/* 렌스토리 마케팅 사이트 공통 스타일 — 모바일 우선 반응형 */
:root {
  --brand: #1b6fe0; --brand-dark: #1558b8; --ink: #17181a; --ink-2: #55585e; --ink-3: #8b8f96;
  --bg: #f6f7f9; --card: #ffffff; --line: #edeff3; --ok: #0a8f4d; --accent-bg: #eef4fd;
  --kakao: #fee500;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 15.5px;
  font-feature-settings: "tnum";  /* 가격 숫자 고정폭 정렬 */
}

/* ── 타이포 하이어라키 (디자이너 피드백 반영) ──
   Display 26~34 (900) > H1 24~28 (800) > 섹션 H2 20~21 (800)
   > 카드 타이틀 17 (700) > 본문 15~15.5 (400) > 캡션 12~13 (500, ink-3) */
h1 { font-weight: 800; }
h2 { font-weight: 800; }
.hero h1 { font-size: clamp(26px, 5vw, 34px); font-weight: 900; letter-spacing: -0.8px; }
h1.pd-title { font-size: clamp(22px, 4vw, 27px); letter-spacing: -0.6px; }
.block h2 { letter-spacing: -0.5px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }

/* 헤더 */
header.site { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; gap: 18px; height: 56px; }
.logo { font-weight: 800; font-size: 18px; letter-spacing: -0.3px; flex: none; }
.logo span { color: var(--brand); }
.nav-links { display: flex; gap: 14px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); overflow-x: auto; }
.nav-links a { padding: 6px 2px; white-space: nowrap; }
.nav-links a:hover { color: var(--brand); }
.nav-cta { margin-left: auto; flex: none; background: var(--brand); color: #fff; font-weight: 700;
  font-size: 14px; padding: 9px 16px; border-radius: 10px; }
.nav-cta:hover { background: var(--brand-dark); }

/* 히어로 */
.hero { padding: 44px 0 36px; text-align: center; }
.hero h1 { font-size: clamp(24px, 4.5vw, 30px); font-weight: 900; letter-spacing: -0.7px; line-height: 1.3; }
.hero .sub { color: var(--ink-2); margin-top: 10px; font-size: 15.5px; max-width: 560px; margin-left: auto; margin-right: auto; }
.badge-fresh { display: inline-block; margin-top: 14px; background: var(--accent-bg); color: var(--brand);
  font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }

/* 카테고리 버튼 */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 26px 0; }
@media (min-width: 720px) { .cats { grid-template-columns: repeat(4, 1fr); } }
.cat-btn { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 12px;
  text-align: center; font-weight: 700; font-size: 15px; }
.cat-btn .emoji { font-size: 26px; display: block; margin-bottom: 6px; }
.cat-btn:hover { border-color: var(--brand); color: var(--brand); }
.cat-btn.soon { opacity: 0.45; pointer-events: none; }
.cat-btn .soon-tag { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 600; margin-top: 2px; }

/* 섹션 — 여백을 넉넉히 (덜어내기 원칙) */
section.block { padding: 34px 0; }
.block h2 { font-size: 21px; letter-spacing: -0.4px; margin-bottom: 6px; }
.block .desc { color: var(--ink-2); font-size: 14.5px; margin-bottom: 16px; }
.more-link { display: inline-block; margin-top: 14px; color: var(--brand); font-weight: 700; font-size: 14px; }

/* 제품 그리드/카드 */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 960px) { .grid.g4 { grid-template-columns: repeat(4, 1fr); } }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; }
.pcard:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(27,111,224,0.08); }
.pcard .pimg { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.pcard .pimg img { max-height: 100%; object-fit: contain; }
.pcard .pbrand { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.pcard .pname { font-size: 14.5px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.4; margin: 2px 0 6px; }
.pcard .ptags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.pcard .ptags span { font-size: 11px; background: var(--accent-bg); color: var(--brand); border-radius: 6px; padding: 2px 6px; font-weight: 600; }
.pcard .pprice { margin-top: auto; font-size: 13px; color: var(--ink-2); }
.pcard .pprice b { font-size: 16.5px; color: var(--ink); letter-spacing: -0.3px; }
.pcard .pprice small { color: var(--ink-3); font-size: 11.5px; display: block; }

/* 필터/정렬 바 */
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filterbar .fbtn { border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 7px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.filterbar .fbtn.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.filterbar select { margin-left: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
  font-size: 13.5px; background: var(--card); color: var(--ink); }

/* 카드(콘텐츠 박스) */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 14px; }
.card h2 { font-size: 17px; letter-spacing: -0.3px; margin-bottom: 10px; }
.card h3 { font-size: 15px; margin: 14px 0 6px; }

/* 제품 상세 */
.pd-top { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 780px) { .pd-top { grid-template-columns: 380px 1fr; } }
.pd-img { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  display: flex; align-items: center; justify-content: center; }
.pd-img img { max-height: 360px; object-fit: contain; }
.pd-lead { font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.pd-lead b { color: var(--ink); }
h1.pd-title { font-size: clamp(22px, 4vw, 27px); letter-spacing: -0.6px; line-height: 1.35; }
.pd-brand { font-size: 13px; font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.pd-code { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

/* 표 */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-3); font-size: 12.5px; font-weight: 700; }
td b { color: var(--brand); }
.tnote { font-size: 12px; color: var(--ink-3); margin-top: 8px; line-height: 1.6; }
.price-table td:not(:first-child), .price-table th:not(:first-child) { text-align: right; }

/* FAQ 아코디언 */
details { border-bottom: 1px solid var(--line); }
details:last-of-type { border-bottom: none; }
summary { list-style: none; cursor: pointer; padding: 13px 2px; font-size: 15px; font-weight: 700;
  letter-spacing: -0.3px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 18px; flex: none; }
details[open] summary::after { content: "\2212"; }
details .a { padding: 0 2px 14px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
details .a b { color: var(--ink); }

/* 버튼 */
.btn { display: block; width: 100%; text-align: center; border: none; cursor: pointer;
  border-radius: 12px; padding: 15px; font-size: 16px; font-weight: 800; letter-spacing: -0.2px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
/* 보조 CTA는 한 단계 낮춰 시선 분산 방지 (버튼 계층 분리) */
.btn-kakao { background: var(--card); color: var(--ink-2); border: 1px solid var(--line);
  margin-top: 10px; font-weight: 700; font-size: 14.5px; padding: 13px; }
.btn-kakao:hover { border-color: #e3ca00; background: #fffbe6; color: var(--ink); }
.btn-row { max-width: 480px; margin: 0 auto; }

/* 가이드 목록/본문 */
.guide-list .gitem { display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px; margin-bottom: 12px; }
.guide-list .gitem:hover { border-color: var(--brand); }
.guide-list .gt { font-weight: 700; font-size: 16px; letter-spacing: -0.3px; }
.guide-list .gd { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; }
article.guide { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 20px; }
article.guide h1 { font-size: 23px; letter-spacing: -0.5px; line-height: 1.4; margin-bottom: 6px; }
article.guide .meta { color: var(--ink-3); font-size: 13px; margin-bottom: 18px; }
article.guide h2 { font-size: 18px; margin: 22px 0 8px; letter-spacing: -0.3px; }
article.guide p, article.guide li { font-size: 15px; color: var(--ink-2); line-height: 1.75; }
article.guide p b, article.guide li b { color: var(--ink); }
article.guide ul, article.guide ol { padding-left: 20px; margin: 8px 0; }
article.guide .lead { font-size: 15.5px; background: var(--accent-bg); border-radius: 12px; padding: 14px 16px; color: var(--ink); }

/* 절차 타임라인 */
.step { display: flex; gap: 12px; padding: 10px 0; }
.step + .step { border-top: 1px dashed var(--line); }
.no { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-bg); color: var(--brand);
  font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.step .t { font-size: 15px; font-weight: 700; }
.step .d { font-size: 13.5px; color: var(--ink-2); }
.step .d b { color: var(--brand); }

/* 폼 */
form.consult label { display: block; font-size: 13.5px; font-weight: 700; margin: 14px 0 5px; }
form.consult input, form.consult select { width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 12px; font-size: 15px; background: var(--card); color: var(--ink); }
form.consult input:focus, form.consult select:focus { outline: 2px solid var(--brand); border-color: transparent; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-3); margin: 14px 0; }
.agree input { width: auto; margin-top: 2px; }
.done-box { text-align: center; padding: 40px 0; display: none; }
.done-box .check { font-size: 44px; }
.done-box h2 { margin: 10px 0 6px; }
.done-box p { color: var(--ink-2); font-size: 14.5px; }

/* 알림/도움 박스 */
.help { background: var(--accent-bg); border-radius: 10px; padding: 12px 14px; font-size: 13.5px;
  color: var(--ink-2); margin-top: 12px; line-height: 1.65; }
.help b { color: var(--brand); }
.shield { background: #e9f7ef; border-radius: 10px; padding: 12px 14px; font-size: 13.5px;
  color: var(--ink-2); margin-top: 12px; line-height: 1.65; }
.shield b { color: var(--ok); }

/* 빵부스러기 */
.crumb { font-size: 12.5px; color: var(--ink-3); padding: 14px 0 0; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }

/* 푸터 */
footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 40px;
  font-size: 12.5px; color: var(--ink-3); line-height: 1.8; }
footer.site .flinks { margin-bottom: 10px; font-weight: 600; }
footer.site .flinks a { margin-right: 14px; }
footer.site .flinks a:hover { color: var(--brand); }

/* 모바일 하단 탭바 (렌트리 패턴) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--card);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 -4px 14px rgba(0,0,0,0.06); padding-bottom: env(safe-area-inset-bottom); }
.tabbar.t5 { grid-template-columns: repeat(5, 1fr); }
.tabbar.t5 a { font-size: 10.5px; padding: 8px 2px 9px; }
.tabbar a { text-align: center; padding: 8px 4px 9px; font-size: 11px; font-weight: 700; color: var(--ink-2); }
.tabbar a .ico { display: block; font-size: 19px; line-height: 1.2; }
.tabbar a.primary { color: var(--brand); }
.tabbar a:active { background: var(--accent-bg); }
@media (min-width: 720px) { .tabbar { display: none; } }
body.has-sticky { padding-bottom: 64px; }
@media (min-width: 720px) { body.has-sticky { padding-bottom: 0; } }

/* 플로팅 상담 위젯 (접었다 폈다) */
.fab-wrap { position: fixed; right: 14px; bottom: 78px; z-index: 70; }
@media (min-width: 720px) { .fab-wrap { bottom: 24px; right: 24px; } }
.fab-btn { background: var(--brand); color: #fff; border: none; cursor: pointer; border-radius: 999px;
  padding: 13px 18px; font-size: 14.5px; font-weight: 800; letter-spacing: -0.2px;
  box-shadow: 0 6px 18px rgba(27,111,224,0.35); }
.fab-btn:hover { background: var(--brand-dark); }
.fab-panel { display: none; position: absolute; right: 0; bottom: 54px; width: min(330px, calc(100vw - 28px)); }
.fab-wrap.open .fab-panel { display: block; }
.fab-wrap.open .fab-btn .fo { display: none; }
.fab-wrap .fab-btn .fc { display: none; }
.fab-wrap.open .fab-btn .fc { display: inline; }

/* 퀵폼 (플로팅 패널 내부) */
.quickform { background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px; text-align: left; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.quickform .qtitle { font-size: 15px; font-weight: 800; margin-bottom: 10px; text-align: center; }
.quickform .qrow { display: grid; gap: 8px; }
.quickform input, .quickform select { border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 11px; font-size: 14.5px; width: 100%; background: var(--card); color: var(--ink); }
.quickform input:focus, .quickform select:focus { outline: 2px solid var(--brand); border-color: transparent; }
.quickform .btn { margin-top: 10px; padding: 13px; font-size: 15px; }
.quickform .qnote { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; text-align: center; line-height: 1.5; }

/* 신뢰 카드 3종 */
.trust { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust .tcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.trust .tcard .ico { font-size: 22px; }
.trust .tcard .tt { font-weight: 800; font-size: 14.5px; margin: 6px 0 4px; letter-spacing: -0.3px; }
.trust .tcard .td { font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* 절차 3스텝 가로형 (홈) */
.steps3 { display: grid; gap: 10px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 720px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }
.steps3 .s { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; position: relative; }
.steps3 .s .sn { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-bg); color: var(--brand);
  font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.steps3 .s .st { font-weight: 800; font-size: 14.5px; letter-spacing: -0.3px; }
.steps3 .s .sd { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.6; }
.steps3 .s .sd b { color: var(--brand); }

/* 카테고리 감성 카피 */
.cat-btn .copy { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 500; margin-top: 3px; letter-spacing: -0.2px; }
.cat-btn { position: relative; }
.cat-btn .hot { position: absolute; top: 8px; right: 10px; background: #ffe9e3; color: #e05a1b;
  font-size: 10.5px; font-weight: 800; border-radius: 6px; padding: 2px 6px; }

/* 상세: 약정 조합 카드 (렌트리 패턴 — 저렴한 순) */
.combo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 960px) { .combo-grid { grid-template-columns: repeat(3, 1fr); } }
.combo { border: 1px solid var(--line); border-radius: 12px; padding: 12px; position: relative; }
.combo .cc { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.combo .cy { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.combo .cp { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; margin-top: 7px; }
.combo.best { border-color: var(--brand); background: var(--accent-bg); }
.combo.best .cp { color: var(--brand); font-size: 20px; font-weight: 900; }  /* 최저가 = Display 숫자 */
.combo .best-tag { position: absolute; top: 10px; right: 10px; background: var(--brand); color: #fff;
  font-size: 10.5px; font-weight: 800; border-radius: 6px; padding: 2px 6px; }

/* 혜택 박스 (후킹 보완 — 노출 가능 혜택 체크리스트 + '?' 티저) */
.benefit-box { background: #fff8e8; border: 1px solid #f3e3b8; border-radius: 12px;
  padding: 14px 16px; margin-top: 12px; }
.benefit-box .bt { font-weight: 800; font-size: 14.5px; color: #5c4a12; letter-spacing: -0.3px; margin-bottom: 8px; }
.benefit-box ul { list-style: none; }
.benefit-box li { font-size: 13.5px; color: #6b5518; padding: 3px 0; line-height: 1.6; }
.benefit-box li b { color: #4a3b0d; }
.benefit-box li.q { border-top: 1px dashed #e8d9a8; margin-top: 7px; padding-top: 9px; font-weight: 700; }
