/* =========================================================
   장스케어 공통 디자인 파일
   구성 참고: 달리아 에스테틱 (흰색/연회색 배경, 가운데 가는 제목, 구역 바로가기 탭)
   ★ 포인트 색을 바꾸고 싶으면 :root 의 --accent 값만 바꾸면 돼요.
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap");

:root {
  --bg: #ffffff;
  --bg-soft: #f7f6f5;      /* 연회색 배경 */
  --line: #e6e3e1;         /* 얇은 선 */
  --text: #2b2b2b;
  --text-sub: #77706d;
  --accent: #0b5cad;       /* 포인트 색: 파랑 */
  --accent-dark: #08447f;  /* 글씨용 진한 파랑 */
  --accent-soft: #eaf3fc;  /* 아주 연한 하늘색 */
  --kakao: #fee500;
  --radius: 10px;
  --max: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans KR", "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
section { padding: 96px 0; }
section.soft { background: var(--bg-soft); }
@media (max-width: 600px) { section { padding: 64px 0; } }

/* ---------- 글자 ---------- */
h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.35; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.4; font-weight: 300; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-size: 18px; font-weight: 700; line-height: 1.5; }
.lead { font-size: 16px; color: var(--text-sub); max-width: 620px; }
.accent { color: var(--accent); }
.center { text-align: center; }

/* 구역 제목: 작은 이름 + 가는 큰 제목 (가운데) */
.sec-title, .section-head, .simple-head { text-align: center; margin-bottom: 48px; }
.sec-title > p, .section-head .eyebrow { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.section-head h2, .sec-title h2 { margin-bottom: 0; }
.section-head .lead, .simple-head .lead { margin: 12px auto 0; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent-dark); margin-bottom: 8px; }
.section-head .tag { margin: 0; }

/* ---------- 버튼 (모서리 살짝 둥근 사각형) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 6px; font-weight: 500; font-size: 15px; transition: .2s; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-line { border-color: var(--line); color: var(--text); background: #fff; }
.btn-line:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-kakao { background: var(--kakao); color: #191919; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.center .btn-row, .cta-band .btn-row { justify-content: center; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.more-link { font-size: 14px; color: var(--text-sub); white-space: nowrap; cursor: pointer; }
.more-link:hover { color: var(--accent-dark); }

/* ---------- 머리말(상단 메뉴) ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--text-sub); padding: 20px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active { border-bottom-color: var(--text); }
.nav .divider { width: 1px; height: 14px; background: var(--line); }
.nav .biz { color: var(--accent-dark); }
.menu-btn { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--text); }
@media (min-width: 901px) { .nav .nav-group { display: none; } }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 4px 20px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav .divider { display: none; }
  .nav .nav-group { font-size: 12px; color: var(--text-sub); padding: 18px 0 2px; }
}

/* ---------- 페이지 맨 위 회색 띠 ---------- */
.page-head { background: var(--bg-soft); padding: 72px 0 64px; }
.page-head.home { padding: 96px 0 88px; }
.page-head .lead { margin-top: 14px; }
.page-head .hero-inner { display: block; }
.ph-label, .page-head .eyebrow { font-size: 14px; font-weight: 500; color: var(--text-sub); margin-bottom: 10px; }
.breadcrumb { font-size: 13px; color: var(--text-sub); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--accent-dark); }

/* ---------- 구역 바로가기 탭 (스크롤해도 위에 붙어 있음) ---------- */
.toc { position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.toc .container { display: flex; overflow-x: auto; scrollbar-width: none; padding: 0; }
.toc a { flex: 1; min-width: 104px; text-align: center; white-space: nowrap; font-size: 14px; padding: 16px 12px; color: var(--text-sub); border-bottom: 2px solid transparent; border-right: 1px solid var(--line); }
.toc a:last-child { border-right: 0; }
.toc a:hover, .toc a.on { color: var(--accent-dark); border-bottom-color: var(--accent); }

/* ---------- 칸 나누기 ---------- */
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.grid.g2 > :only-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- 카드 ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: .2s; }
a.card:hover { border-color: var(--accent); }
.card p { color: var(--text-sub); font-size: 15px; }
.card .num { font-size: 13px; font-weight: 700; color: var(--accent-dark); margin-bottom: 8px; }
.card .more { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--accent-dark); }
.tag { display: inline-block; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 10px; }
.tag.lock { background: #f1efed; color: var(--text-sub); }

/* 영상 대신 글 카드 (루틴 아카데미 등) */
.vcard .video-caption { font-size: 17px; font-weight: 700; line-height: 1.5; }
.video-caption small { display: block; font-size: 14px; font-weight: 400; color: var(--text-sub); margin-top: 2px; }

/* ---------- 이런 분께 (번호 동그라미) ---------- */
.point { text-align: center; padding: 8px 12px; }
.point .num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 16px; }
.point h3 { margin-bottom: 6px; }
.point p { color: var(--text-sub); font-size: 15px; }

/* ---------- 코치 소개 상자 ---------- */
.coach-box { margin-top: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px 48px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 4px; }
.coach-box h3 { font-size: 20px; margin-bottom: 8px; }
.coach-box p { color: var(--text-sub); font-size: 15px; }
.coach-box .more-link { grid-column: 1 / -1; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.facts li { font-size: 13px; color: var(--text-sub); text-align: center; }
.facts b { display: block; font-size: 26px; font-weight: 700; color: var(--accent); }
@media (max-width: 800px) { .coach-box { grid-template-columns: 1fr; } }

/* ---------- 단계 상자 + 화살표 (진행 과정) ---------- */
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.flow-steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; text-align: center; }
.flow-steps li:first-child { border-color: var(--accent); }
.flow-steps li:not(:last-child)::after { content: "›"; position: absolute; right: -26px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--accent); }
.flow-steps span { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 4px; padding: 2px 8px; margin-bottom: 10px; }
.flow-steps b { display: block; font-size: 17px; }
.flow-steps small { display: block; font-size: 13px; color: var(--text-sub); margin-top: 4px; }
@media (max-width: 800px) {
  .flow-steps { grid-template-columns: 1fr; gap: 24px; }
  .flow-steps li:not(:last-child)::after { content: "⌄"; right: 50%; top: auto; bottom: -26px; transform: translateX(50%); }
}

/* 기존 단계 목록 (루틴 아카데미 · 비즈니스) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.steps li::before { counter-increment: step; content: counter(step) "단계"; display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 4px; padding: 2px 8px; margin-bottom: 10px; }
.steps li p { color: var(--text-sub); font-size: 14px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 추천 루틴 카드 (참고: 달리아 가격 카드) ---------- */
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; text-align: center; display: flex; flex-direction: column; box-shadow: 0 6px 20px rgba(11, 60, 120, .07); }
.plan .pill { align-self: center; font-size: 13px; font-weight: 500; color: #fff; background: var(--accent); border-radius: 999px; padding: 4px 14px; margin-bottom: 18px; }
.plan h3 { font-size: 21px; color: var(--accent-dark); margin-bottom: 18px; }
.plan ul { text-align: left; border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 24px; flex: 1; }
.plan li { position: relative; padding-left: 14px; font-size: 14px; color: var(--text-sub); margin-bottom: 6px; }
.plan li::before { content: "·"; position: absolute; left: 2px; font-weight: 700; }

/* ---------- 상담 신청서 (두 칸씩) ---------- */
.form-note { font-size: 14px; color: var(--text-sub); margin-bottom: 24px; text-align: center; }
.consult-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.consult-form .full { grid-column: 1 / -1; }
.consult-form .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.consult-form label { font-size: 14px; font-weight: 500; }
.consult-form label i { color: var(--accent); font-style: normal; }
.consult-form input[type=text], .consult-form input[type=tel], .consult-form select { width: 100%; min-width: 0; font-size: 15px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); }
.consult-form input:focus, .consult-form select:focus { outline: none; border-color: var(--accent); }
.consult-form .agree { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--text-sub); }
.consult-form .agree span { color: var(--accent-dark); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.form-msg { background: var(--accent-soft); color: var(--accent-dark); border-radius: 6px; padding: 12px 16px; font-size: 14px; text-align: center; }
@media (max-width: 600px) { .consult-form { grid-template-columns: 1fr; padding: 24px 18px; } }

/* ---------- 후기 · 질문 나란히 (참고: 달리아 Review / QnA) ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.duo > * { min-width: 0; }
.box-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 2px solid var(--text); }
.box-head h3 { font-size: 20px; }
.line-list li { display: flex; align-items: center; gap: 10px; padding: 16px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
.line-list li em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--text-sub); white-space: nowrap; }
.badge { flex: none; font-size: 12px; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--accent); color: var(--accent-dark); }
.badge.done { background: var(--accent); color: #fff; }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- 비즈니스 한 줄 안내 ---------- */
.biz-line { display: block; text-align: center; padding: 24px; margin: 8px 0 40px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-sub); font-size: 15px; }
.biz-line b { color: var(--text); font-weight: 500; }
.biz-line:hover { border-color: var(--accent); }

/* ---------- 탭 (주제별로 골라보기) ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.tabs button { font-size: 14px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text-sub); cursor: pointer; }
.tabs button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.pill-tabs button { white-space: nowrap; }
@media (max-width: 700px) { .pill-tabs { justify-content: flex-start; } }

/* 영상·제품·질문 연결 칩 */
.links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.links a { font-size: 12.5px; padding: 4px 10px; border-radius: 4px; border: 1px solid var(--line); color: var(--text-sub); background: #fff; }
.links a:hover { border-color: var(--accent); color: var(--accent-dark); }
.links a.v::before { content: "▶ "; }
.links a.p::before { content: "◇ "; }
.links a.q::before { content: "? "; }

/* ---------- 경력 · 체크 목록 · 인용 ---------- */
.career { border-top: 1px solid var(--line); margin-top: 20px; }
.career li { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.career li b { min-width: 76px; color: var(--accent-dark); font-weight: 500; }
.check li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15px; }
.check li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.warn li::before { content: "!"; color: var(--accent-dark); }
.quote { font-size: 19px; font-weight: 300; line-height: 1.7; padding-left: 18px; border-left: 2px solid var(--accent); margin: 24px 0; }
.coach { display: block; max-width: 820px; }

/* ---------- 안내 박스 ---------- */
.notice { background: var(--accent-soft); border-radius: var(--radius); padding: 18px 22px; font-size: 15px; }
.notice b { color: var(--accent-dark); margin-right: 6px; }
.member-lock { border: 1px dashed var(--line); background: var(--bg-soft); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--text-sub); }

/* ---------- 자주 묻는 질문 (펼치기) ---------- */
.faq { border-top: 2px solid var(--text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 2px; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 22px; font-weight: 300; color: var(--text-sub); }
.faq details[open] summary::after { content: "−"; }
.faq summary .q { color: var(--accent); font-weight: 700; margin-right: 10px; }
.faq .cat { font-size: 12px; color: var(--text-sub); margin-left: 8px; }
.faq .a { padding: 2px 2px 22px 26px; color: var(--text-sub); font-size: 15px; }
.search { width: 100%; padding: 14px 18px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; margin-bottom: 20px; }
.search:focus { outline: none; border-color: var(--accent); }

/* ---------- 게시판 ---------- */
.board { border-top: 2px solid var(--text); }
.board li { display: grid; grid-template-columns: 84px 1fr 80px; gap: 12px; padding: 16px 2px; border-bottom: 1px solid var(--line); font-size: 15px; align-items: center; }
.board li > * { min-width: 0; }
.board .state { font-size: 12px; padding: 3px 6px; border-radius: 4px; text-align: center; background: var(--accent); color: #fff; }
.board .state.wait { background: #fff; color: var(--accent-dark); border: 1px solid var(--accent); }
.board .date { color: var(--text-sub); font-size: 13px; text-align: right; }
@media (max-width: 600px) { .board li { grid-template-columns: 76px 1fr; } .board .date { display: none; } }

/* ---------- 후기 카드 ---------- */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.review p { font-size: 15px; }
.review .who { margin-top: 12px; font-size: 13px; color: var(--text-sub); }

/* ---------- 마지막 안내 칸 ---------- */
.cta-band { background: var(--bg-soft); border-radius: var(--radius); padding: 52px 28px; text-align: center; }
.cta-band .lead { margin: 10px auto 0; }

/* ---------- 바닥글 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 64px; font-size: 14px; color: var(--text-sub); background: #fff; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

/* ---------- 오른쪽에 떠 있는 동그란 버튼 (참고: 달리아) ---------- */
.float-btns { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.float-btns a { width: 56px; height: 56px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; line-height: 1.25; text-align: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.float-btns .f-consult { background: var(--accent); color: #fff; }
.float-btns .f-kakao { background: var(--kakao); color: #191919; }
.float-btns .f-top { background: #fff; color: var(--text-sub); border: 1px solid var(--line); font-size: 18px; }
.kakao-icon { width: 18px; height: 18px; }
@media (max-width: 600px) { .float-btns { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } .float-btns a { width: 50px; height: 50px; } }
@media (max-width: 600px) {
  .line-list li em { display: none; }  /* 휴대폰에서는 날짜 숨김 */
  .float-btns { gap: 8px; }
  .float-btns a { width: 46px; height: 46px; font-size: 10px; }
}

/* 첫 화면 간소화 + 메뉴 글자 굵게 */
.coach-box { margin-top: 0; border: 0; padding: 0; }
.nav { font-size: 16px; gap: 30px; }
.nav a { color: var(--text); font-weight: 700; }
.nav a:hover, .nav a.active { color: var(--accent-dark); }
.nav a.active { border-bottom-color: var(--accent); }
.nav .biz { color: var(--accent-dark); }
.logo { font-size: 21px; }
@media (max-width: 900px) { .nav a { font-size: 16px; } }

/* =========================================================
   예약하기 페이지
   ========================================================= */
.reserve-wrap { padding-top: 48px; }
.rv-steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.rv-steps li { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 6px; font-size: 14px; color: var(--text-sub); border-right: 1px solid var(--line); background: #fff; }
.rv-steps li:last-child { border-right: 0; }
.rv-steps li span { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--bg-soft); color: var(--text-sub); }
.rv-steps li.on { color: var(--text); font-weight: 700; background: var(--accent-soft); }
.rv-steps li.on span, .rv-steps li.done span { background: var(--accent); color: #fff; }
@media (max-width: 600px) { .rv-steps li { flex-direction: column; gap: 4px; font-size: 12px; } }

.rv-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.rv-layout > * { min-width: 0; }
@media (max-width: 900px) { .rv-layout { grid-template-columns: 1fr; } }
.rv-title { font-size: 22px; font-weight: 500; margin-bottom: 20px; }
.rv-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; }
.rv-error { margin-top: 14px; background: var(--accent-soft); color: var(--accent-dark); border-radius: 6px; padding: 12px 16px; font-size: 14px; }

/* 프로그램 선택 */
.rv-programs { display: grid; gap: 12px; }
.rv-program { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; cursor: pointer; background: #fff; }
.rv-program > div { min-width: 0; }
.rv-program input { accent-color: var(--accent); width: 18px; height: 18px; }
.rv-program b { font-size: 17px; }
.rv-program p { font-size: 14px; color: var(--text-sub); }
.rv-program small { font-size: 13px; color: var(--text-sub); }
.rv-program strong { font-size: 15px; color: var(--accent-dark); white-space: nowrap; }
.rv-program:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 600px) { .rv-program { grid-template-columns: auto 1fr; } .rv-program strong { grid-column: 2; } }

/* 날짜 · 시간 */
.rv-datetime { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rv-datetime > * { min-width: 0; }
@media (max-width: 700px) { .rv-datetime { grid-template-columns: 1fr; } }
.cal { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-head button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; font-size: 18px; color: var(--text); }
.cal-head button:disabled { opacity: .3; cursor: default; }
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-week span { font-size: 12px; color: var(--text-sub); padding: 4px 0; }
.cal-week span:first-child { color: var(--accent-dark); }
.cal-days button { aspect-ratio: 1; border: 0; border-radius: 50%; background: none; cursor: pointer; font-size: 14px; color: var(--text); }
.cal-days button:hover:not(:disabled) { background: var(--accent-soft); }
.cal-days button:disabled { color: #c9c4c1; cursor: default; }
.cal-days button.on { background: var(--accent); color: #fff; font-weight: 700; }
.cal-note { font-size: 12px; color: var(--text-sub); margin-top: 10px; }
.times-label { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.time-grid button { padding: 12px 4px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; font-size: 14px; color: var(--text); }
.time-grid button small { display: block; font-size: 11px; color: var(--text-sub); }
.time-grid button:disabled { background: var(--bg-soft); color: #b9b3b0; cursor: default; }
.time-grid button.on { border-color: var(--accent); background: var(--accent); color: #fff; }

/* 예약자 정보 · 결제 */
.rv-form { padding: 28px; }
.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pay-methods label { cursor: pointer; position: relative; }
.pay-methods input { position: absolute; opacity: 0; }
.pay-methods span { display: block; text-align: center; padding: 16px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 15px; }
.pay-methods input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.pay-methods input:focus-visible + span { outline: 2px solid var(--accent); }
.agree-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; font-size: 14px; color: var(--text-sub); }
.agree-line span { color: var(--accent-dark); }

/* 예약 요약 (PC에서는 오른쪽에 붙어 있음) */
.rv-summary { position: sticky; top: 90px; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.rv-summary h3 { font-size: 17px; padding-bottom: 12px; border-bottom: 2px solid var(--text); margin-bottom: 8px; }
.rv-summary dl, .done-box dl { display: grid; grid-template-columns: 76px 1fr; gap: 10px 8px; font-size: 14px; padding: 8px 0; }
.rv-summary dt, .done-box dt { color: var(--text-sub); }
.rv-summary dd, .done-box dd { min-width: 0; overflow-wrap: anywhere; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.sum-total b { font-size: 18px; color: var(--accent-dark); }
@media (max-width: 900px) { .rv-summary { position: static; } }

/* 완료 화면 */
.rv-done { text-align: center; padding: 20px 0; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.done-box { max-width: 420px; margin: 28px auto 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 24px; text-align: left; }

/* 상단 메뉴의 예약하기 버튼 */
.nav a.nav-cta { background: var(--accent); color: #fff; padding: 8px 18px; border-radius: 6px; border: 0; }
.nav a.nav-cta:hover, .nav a.nav-cta.active { background: var(--accent-dark); color: #fff; }
@media (max-width: 900px) { .nav a.nav-cta { text-align: center; margin-top: 14px; padding: 12px; } }
/* 메뉴 왼쪽 로고 이미지 */
.logo img { height: 28px; width: auto; display: block; }
@media (max-width: 600px) { .logo img { height: 24px; } }

/* =========================================================
   글씨 더 진하고 굵게 (색은 파랑)
   ========================================================= */
:root {
  --accent: #0b5cad;       /* 포인트 파랑 */
  --accent-dark: #08447f;  /* 작은 글씨용 진한 파랑 */
  --accent-soft: #eaf3fc;  /* 아주 연한 하늘색 */
  --text: #1f1f1f;         /* 본문 글씨 더 진하게 */
  --text-sub: #555050;     /* 설명 글씨도 더 진하게 (예전보다 잘 보이게) */
  --line: #e2dddb;
}
body { font-weight: 500; }
h2 { font-weight: 700; }                 /* 가늘던 큰 제목 → 굵게 */
h3 { font-weight: 700; }
.lead { font-size: 17px; }
.sec-title > p, .section-head .eyebrow, .ph-label, .page-head .eyebrow { font-weight: 700; color: var(--accent-dark); }
.card p, .point p, .plan li, .coach-box p, .faq .a, .line-list li, .review p { font-weight: 500; }
.rv-title, .quote { font-weight: 700; }
.toc a { font-weight: 700; color: #3a3636; }
.tag, .badge, .plan .pill, .form-msg { font-weight: 700; }
.btn { font-weight: 700; }
.consult-form label { font-weight: 700; }
.plan h3, .facts b { color: var(--accent-dark); }
.plan { box-shadow: 0 6px 20px rgba(11, 60, 120, .07); }

/* =========================================================
   전체 색: 뉴스킨 느낌의 맑은 파랑 (예전 분홍 → 파랑)
   ★ 다시 바꾸고 싶으면 아래 세 줄 값만 바꾸면 돼요.
   ========================================================= */
:root {
  --accent: #0b5cad;       /* 포인트 파랑 */
  --accent-dark: #08447f;  /* 작은 글씨용 진한 파랑 */
  --accent-soft: #eaf3fc;  /* 아주 연한 하늘색 */
  --bg-soft: #f5f8fb;      /* 연회색 대신 푸른 기 도는 연한 바탕 */
  --line: #dbe4ee;
  --text: #16202b;
  --text-sub: #4d5966;
}
.plan { box-shadow: 0 6px 20px rgba(11, 60, 120, .07); }

/* =========================================================
   전체 색: 터콰이즈(청록) — 보내주신 색 #3CC1B9 기준
   ★ 다시 바꾸고 싶으면 아래 값만 바꾸면 돼요.
   ========================================================= */
:root {
  --brand: #3cc1b9;        /* 보내주신 색 그대로 (로고·장식) */
  --accent: #17a097;       /* 버튼 바탕 (흰 글씨가 잘 보이게 한 단계 진하게) */
  --accent-dark: #0b736d;  /* 작은 글씨용 진한 청록 */
  --accent-soft: #e7f7f6;  /* 아주 연한 청록 바탕 */
  --bg-soft: #f4f9f9;
  --line: #d9ebea;
  --text: #15201f;
  --text-sub: #4a5958;
}
.toc a:hover, .toc a.on, .nav a.active { border-bottom-color: var(--brand); }
.point .num, .flow-steps span, .steps li::before { background: var(--brand); }
.plan { box-shadow: 0 6px 20px rgba(20, 110, 105, .08); }

/* =========================================================
   새 메뉴 구성에 맞춘 첫 화면 요소
   ========================================================= */
/* 네 갈래 입구: 배우기 · 확인하기 · 시작하기 · 함께하기 */
.starts-sec { padding: 0; }
.starts4 { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.starts4 a { display: flex; flex-direction: column; gap: 2px; padding: 28px 22px; text-decoration: none; border-right: 1px solid var(--line); transition: background .2s; }
.starts4 a:last-child { border-right: 0; }
.starts4 a:hover { background: var(--accent-soft); }
.starts4 .s-label { font-size: 13px; font-weight: 700; color: var(--accent-dark); }
.starts4 b { font-size: 19px; }
.starts4 small { font-size: 14px; color: var(--text-sub); }
@media (max-width: 800px) {
  .starts4 { grid-template-columns: 1fr 1fr; }
  .starts4 a:nth-child(2) { border-right: 0; }
  .starts4 a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* 코치 짧은 소개 */
.coach-quote { font-size: 18px; font-weight: 700; line-height: 1.7; margin: 20px 0 24px; }
.coach-mini .facts { padding-top: 18px; border-top: 1px solid var(--line); }

/* 무료 자료 받기 띠 */
.free-guide { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff; border: 2px solid var(--brand, var(--accent)); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; }
.free-guide > div { min-width: 0; flex: 1 1 260px; }
.free-guide b { font-size: 18px; color: var(--accent-dark); }
.free-guide p { font-size: 15px; color: var(--text-sub); }

/* =========================================================
   전체 색: 로즈 베이지 (스킨케어 느낌, 부드러운 누드 톤)
   ★ 다시 바꾸고 싶으면 아래 값만 바꾸면 돼요.
   ========================================================= */
:root {
  --brand: #b07a6e;        /* 로고 · 장식용 로즈 베이지 */
  --accent: #a3655a;       /* 버튼 바탕 (흰 글씨가 잘 보이게 한 단계 진하게) */
  --accent-dark: #7a463d;  /* 작은 글씨용 진한 로즈 브라운 */
  --accent-soft: #f8efec;  /* 아주 연한 살구빛 바탕 */
  --bg-soft: #faf6f4;      /* 연한 바탕 */
  --panel: #efe8e5;        /* 고민 해결 판 바탕 */
  --line: #ecdfda;
  --text: #2a201d;
  --text-sub: #6a5853;
}
.plan { box-shadow: 0 6px 20px rgba(110, 60, 50, .07); }

/* 첫 화면 숫자 3개 */
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 560px; }
.hero-facts li { font-size: 14px; color: var(--text-sub); }
.hero-facts b { display: block; font-size: 24px; color: var(--accent-dark); }

/* ---------- 고민 해결 판 (참고: 달리아 프로그램 안내) ---------- */
.info-board { position: relative; background: var(--panel); min-height: 560px; overflow: hidden; }
.info-badge { position: absolute; left: 36px; top: 36px; z-index: 2; background: var(--brand); color: #fff; font-size: 30px; font-weight: 700; line-height: 1.25; padding: 16px 20px; }
.body-figure { position: absolute; left: 50%; top: 40px; bottom: 0; height: calc(100% - 40px); transform: translateX(-50%); fill: none; stroke: var(--accent-dark); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .5; }
.body-figure .soft { stroke-dasharray: 4 5; }
.pt-dot { position: absolute; z-index: 3; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px rgba(255, 255, 255, .55); }
.pt-box { position: absolute; z-index: 3; background: #fff; border-radius: 8px; padding: 22px 26px; font-size: 16px; box-shadow: 0 10px 30px rgba(80, 45, 35, .12); max-width: 300px; }
.pt-box b { display: none; }
.pt-1 { left: 58%; top: 10%; }
.pt-2 { left: 60%; top: 40%; }
.pt-3 { right: 58%; top: 70%; }
.info-desc { max-width: 760px; margin: 40px auto 0; text-align: center; }
.info-desc h3 { font-size: 20px; margin-bottom: 10px; }
.info-desc p { color: var(--text-sub); }

@media (max-width: 800px) {
  .info-board { min-height: 0; padding: 0 0 20px; }
  .info-badge { left: 16px; top: 16px; font-size: 22px; padding: 10px 14px; }
  .body-figure { position: relative; display: block; left: auto; transform: none; margin: 0 auto; top: 0; height: 380px; width: auto; }
  .pt-box { position: static; max-width: none; margin: 10px 16px 0; padding: 14px 16px; font-size: 15px; display: flex; gap: 12px; align-items: center; }
  .pt-box b { display: inline-flex; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; align-items: center; justify-content: center; font-size: 14px; }
}
@media (max-width: 800px) { .pt-dot { display: none; } }  /* 휴대폰에서는 번호를 말풍선 안에만 표시 */

/* 루틴 안내 판: 선 그림 대신 모델 사진 */
.info-board { min-height: 0; background: #c19686; }
.info-photo { position: relative; aspect-ratio: 3 / 2; background: url("images/model.jpg") center / cover no-repeat; }
.pt-1 { left: 60%; top: 13%; }
.pt-2 { left: 60%; top: 52%; }
.pt-3 { left: auto; right: 59%; top: 78%; }
@media (max-width: 800px) {
  .info-board { background: var(--panel); }
  .pt-dot { display: flex; width: 28px; height: 28px; font-size: 13px; box-shadow: 0 0 0 4px rgba(255,255,255,.55); }
  .info-board .pt-1 { margin-top: 16px; }
}
.pt-1, .pt-2 { left: 66%; }
.pt-3 { right: 63%; }
@media (max-width: 800px) { .pt-1, .pt-2, .pt-3 { left: auto; right: auto; } }

/* =========================================================
   위 메뉴 펼침 판 (참고: 달리아 메뉴) — 사람 사진 없이 색 판 + 하위 항목
   ========================================================= */
.mega { display: none; }
@media (min-width: 901px) {
  .nav-item { display: flex; align-items: center; }
  .mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(80, 45, 35, .08); z-index: 60; }
  .nav-item:hover .mega, .nav-item:focus-within .mega { display: block; }
  .nav-item:hover > a, .nav-item:focus-within > a { color: var(--accent-dark); border-bottom-color: var(--accent); }
  .mega-inner { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding-block: 0; }
  .mega-side { background: var(--accent-soft); display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 40px 32px; min-height: 220px; }
  .mega-side b { font-size: 26px; color: var(--accent-dark); }
  .mega-side span { font-size: 15px; color: var(--text-sub); }
  .mega-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 6px 32px; padding: 32px 0; }
  .nav .mega-list a { display: block; padding: 12px 0; border: 0; color: var(--text); }
  .nav .mega-list a b { display: block; font-size: 19px; font-weight: 700; }
  .nav .mega-list a span { display: block; font-size: 14px; font-weight: 500; color: #9a8d89; margin-top: 2px; }
  .nav .mega-list a:hover b { color: var(--accent-dark); }
}
@media (max-width: 900px) {
  .nav-item { display: block; }
  .nav-item > a { display: block; }
}
/* 펼침 메뉴 하위 항목: 옆으로 말고 한 줄로 쭉 내려오게 */
@media (min-width: 901px) {
  .mega-list { grid-template-columns: 1fr; max-width: 420px; gap: 0; padding: 28px 0; }
  .nav .mega-list a { padding: 8px 0; }
}
/* 펼침 메뉴: 왼쪽 색 판 없이, 누른 메뉴 바로 아래에 목록만 */
@media (min-width: 901px) {
  .mega-side { display: none; }
  .nav-item { position: relative; }
  .mega { left: -28px; right: auto; width: 320px; border: 1px solid var(--line); border-radius: 0 0 10px 10px; }
  .mega-inner { display: block; padding: 0 28px; }
  .mega-list { max-width: none; padding: 18px 0 20px; }
}
/* 맨 오른쪽 메뉴(비즈니스 파트너) 펼침 목록은 왼쪽으로 열리게 */
@media (min-width: 901px) {
  .nav .biz { }
  .nav-item:has(> a.biz) .mega { left: auto; right: -28px; }
}

/* =========================================================
   전체 글자 크기 한 단계 줄이기
   ========================================================= */
body { font-size: 15px; }
h1 { font-size: clamp(26px, 3.6vw, 38px); }
h2 { font-size: clamp(21px, 2.6vw, 28px); }
h3 { font-size: 16px; }
.lead { font-size: 15px; }
.nav { font-size: 15px; gap: 26px; }
.btn { font-size: 14px; min-height: 44px; padding: 0 22px; }
.card p, .point p, .plan li, .coach-box p, .faq .a, .line-list li, .review p, .card-scroll p { font-size: 14px; }
.plan h3 { font-size: 18px; }
.sec-title > p, .section-head .eyebrow, .ph-label, .page-head .eyebrow, .eyebrow { font-size: 13px; }
.facts b, .hero-facts b { font-size: 21px; }
.facts li, .hero-facts li { font-size: 13px; }
.box-head h3 { font-size: 17px; }
.faq summary { font-size: 15px; }
.toc a { font-size: 13px; }
.flow-steps b { font-size: 15px; }
.flow-steps small { font-size: 12px; }
.consult-form label { font-size: 13px; }
.consult-form input[type=text], .consult-form input[type=tel], .consult-form select { font-size: 14px; padding: 10px 12px; }
.career li, .check li { font-size: 14px; }
.quote { font-size: 17px; }
.vcard .video-caption { font-size: 15px; }
.video-caption small { font-size: 13px; }
@media (min-width: 901px) {
  .nav .mega-list a b { font-size: 16px; }
  .nav .mega-list a span { font-size: 13px; }
}
/* 후기 목록 제목을 눌러 원래 후기로 */
.line-list li a { color: var(--text); text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-list li a:hover { color: var(--accent-dark); text-decoration: underline; }
.review h3 { font-size: 16px; }
/* 루틴 챌린지: 이렇게 준비해요 */
.prep { margin-top: 28px; }
.prep h3 { font-size: 17px; margin-bottom: 12px; }
.prep .check li { margin-bottom: 8px; }

/* =========================================================
   장스케어 소개 (참고: 달리아 브랜드 페이지)
   ========================================================= */
.brand-hero-wrap { padding: 32px 0 0; }
.brand-hero { background: var(--accent-soft); border-radius: 24px; min-height: 380px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 48px 24px; }
.brand-hero .bh-label { font-size: 14px; font-weight: 700; color: var(--accent-dark); margin-bottom: 14px; }
.brand-hero h1 { color: var(--text); }
.brand-intro { padding-bottom: 40px; }
.brand-intro h2 { margin-bottom: 28px; }
.brand-intro p:not(.eyebrow) { color: var(--text-sub); font-size: 15px; line-height: 1.9; margin-bottom: 14px; }

.brand-stats-wrap { padding: 24px 0 80px; }
.brand-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 16px; }
.brand-stats li { font-size: 14px; color: var(--text-sub); }
.brand-stats b { display: block; font-size: clamp(34px, 5vw, 52px); font-weight: 800; color: var(--text); line-height: 1.2; margin-bottom: 6px; }

.brand-values .sec-title { margin-bottom: 56px; }
.value { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-bottom: 80px; }
.value:last-child { margin-bottom: 0; }
.value.rev .brand-visual { order: 2; }
.value > * { min-width: 0; }
.brand-visual { aspect-ratio: 4 / 3; border-radius: 20px; background: var(--accent-soft); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; }
.brand-visual span { font-size: 64px; font-weight: 800; color: var(--brand); line-height: 1; }
.brand-visual b { font-size: 22px; color: var(--accent-dark); }
.value-text h3 { font-size: 20px; margin-bottom: 10px; }
.value-text .v-lead { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.value-text p { font-size: 14px; color: var(--text-sub); }
.v-quote { margin-top: 22px; background: var(--brand); color: #fff; border-radius: 18px; padding: 26px 28px; font-size: 16px; font-weight: 700; line-height: 1.7; position: relative; box-shadow: 0 12px 28px rgba(110, 60, 50, .14); }
.v-quote::before { content: "“"; display: block; font-size: 40px; line-height: .6; margin-bottom: 10px; opacity: .85; }
.v-quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 13px; font-weight: 500; opacity: .9; }
@media (max-width: 800px) {
  .value { grid-template-columns: 1fr; gap: 20px; margin-bottom: 56px; }
  .value.rev .brand-visual { order: 0; }
  .brand-visual { aspect-ratio: 16 / 9; }
  .brand-visual span { font-size: 44px; }
  .brand-hero { min-height: 260px; }
}

.history { list-style: none; border-left: 2px solid var(--line); margin-left: 8px; }
.history li { position: relative; padding: 0 0 26px 28px; display: flex; gap: 18px; font-size: 15px; }
.history li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.history li:last-child { padding-bottom: 0; }
.history li:last-child::before { background: var(--accent-dark); box-shadow: 0 0 0 4px var(--accent-soft); }
.history b { min-width: 70px; color: var(--accent-dark); }

/* =========================================================
   첫 화면: 큰 제목 + 휘어진 카드 줄 (넓은 화면은 1440×1016 판 기준)
   --u 는 hero.js 가 화면 크기에 맞춰 정해요.
   ========================================================= */
.rm-hero { --u: .6px; position: relative; background: #fbf8f6; overflow: hidden; }
.rm-frame { position: relative; width: calc(1440 * var(--u)); height: calc(1016 * var(--u)); margin: 0 auto; }
.rm-badge { position: absolute; left: 50%; top: calc(56 * var(--u)); transform: translateX(-50%); white-space: nowrap; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: calc(17 * var(--u)); padding: calc(8 * var(--u)) calc(22 * var(--u)); border-radius: 999px; margin: 0; }
.rm-title { position: absolute; left: 0; right: 0; top: calc(116 * var(--u)); text-align: center; font-size: calc(70 * var(--u)); line-height: calc(86 * var(--u)); font-weight: 800; letter-spacing: -0.035em; color: var(--text); margin: 0; }
.rm-title .rm-line { display: block; }
.rm-title .rm-line + .rm-line { letter-spacing: -0.022em; }
.rm-sub { position: absolute; left: 0; right: 0; top: calc(310 * var(--u)); text-align: center; font-size: calc(21 * var(--u)); line-height: calc(33 * var(--u)); color: var(--text-sub); margin: 0; }
.rm-doodles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: none; stroke: var(--accent-dark); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; z-index: 3; }
.rm-note { position: absolute; z-index: 3; margin: 0; font-family: "Nanum Pen Script", "Gaegu", cursive; color: var(--accent-dark); line-height: 1.05; pointer-events: none; }
.rm-note-1 { left: calc(1170 * var(--u)); top: calc(222 * var(--u)); font-size: calc(40 * var(--u)); transform: rotate(14deg); }
.rm-note-2 { left: calc(470 * var(--u)); top: calc(860 * var(--u)); font-size: calc(38 * var(--u)); transform: rotate(-12deg); }
.rm-track { position: absolute; inset: 0; z-index: 1; pointer-events: none; touch-action: pan-y; }
.rm-card { position: absolute; overflow: hidden; pointer-events: auto; cursor: grab; background: var(--accent-soft); user-select: none; }
.rm-track.grabbing .rm-card { cursor: grabbing; }
.rm-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; pointer-events: none; }
.rm-play { position: absolute; width: calc(34 * var(--u)); height: calc(34 * var(--u)); border-radius: 50%; background: rgba(255,255,255,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rm-play::after { content: ""; position: absolute; left: 40%; top: 30%; border-left: calc(11 * var(--u)) solid #fff; border-top: calc(7 * var(--u)) solid transparent; border-bottom: calc(7 * var(--u)) solid transparent; }
.rm-cta { position: absolute; left: 0; right: 0; top: calc(830 * var(--u)); display: flex; justify-content: center; z-index: 2; }
.rm-ring { display: inline-flex; padding: calc(8 * var(--u)); border: 2px dashed var(--brand); border-radius: 999px; }
.rm-btn { display: inline-flex; align-items: center; height: calc(58 * var(--u)); min-height: 44px; padding: 0 calc(34 * var(--u)); border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: max(14px, calc(18 * var(--u))); text-decoration: none; white-space: nowrap; }
.rm-btn:hover { background: var(--accent-dark); }

/* 휴대폰: 위에서부터 차례로 쌓기 */
@media (max-width: 820px) {
  .rm-frame { width: 100%; height: auto; padding: 40px 0 36px; display: flex; flex-direction: column; align-items: center; }
  .rm-badge, .rm-title, .rm-sub, .rm-cta, .rm-note { position: static; transform: none; }
  .rm-badge { font-size: 13px; padding: 6px 14px; }
  .rm-title { font-size: clamp(26px, 7.4vw, 40px); line-height: 1.3; margin-top: 16px; padding: 0 16px; }
  .rm-sub { font-size: 15px; line-height: 1.7; margin-top: 12px; padding: 0 16px; }
  .rm-doodles, .rm-note-1 { display: none; }
  .rm-track { position: relative; inset: auto; width: 100%; height: 250px; margin-top: 24px; }
  .rm-cta { margin-top: 20px; }
  .rm-play { width: 24px; height: 24px; }
  .rm-play::after { border-left-width: 8px; border-top-width: 5px; border-bottom-width: 5px; }
  .rm-note-2 { font-size: 26px; margin-top: 8px; transform: rotate(-4deg); }
}
@media (max-width: 820px) {
  .rm-badge { order: 1; } .rm-title { order: 2; } .rm-sub { order: 3; }
  .rm-track { order: 4; } .rm-cta { order: 5; } .rm-note-2 { order: 6; }
}

/* =========================================================
   추천 루틴: 세로 글씨 큰 카드 3장 (참고: 보내주신 카테고리 구성)
   ========================================================= */
.cat-sec { padding: 0; background: #fff; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.cat-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; min-height: 750px; padding: 48px; overflow: hidden; text-decoration: none; color: #fff; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.cat-dim { position: absolute; inset: 0; background: rgba(0,0,0,.18); transition: background-color .5s; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card:hover .cat-dim { background: rgba(0,0,0,.28); }
.cat-name { position: relative; z-index: 1; margin: 0; color: #fff; font-size: 96px; font-weight: 500; line-height: 1; letter-spacing: -0.02em;
  writing-mode: vertical-lr; text-orientation: sideways; transform: rotate(180deg); transition: transform .5s; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.cat-card:hover .cat-name { transform: rotate(180deg) translateX(8px); }
.cat-btn { position: relative; z-index: 1; margin-top: auto; padding: 12px 32px; background: #fff; color: var(--text); border-radius: 999px; font-size: 14px; font-weight: 700; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.cat-btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 0%, rgba(0,0,0,.06) 50%, transparent 100%); transform: translateX(-100%); transition: transform .5s ease; }
.cat-card:hover .cat-btn { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.cat-card:hover .cat-btn::before { transform: translateX(100%); }
.cat-card:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
/* 스크롤하면 아래에서 떠오르기 */
.reveal .cat-card { opacity: 0; transform: translateY(48px); transition: opacity 1s ease-out, transform 1s ease-out; transition-delay: var(--d); }
.reveal.in .cat-card { opacity: 1; transform: none; }
@media (max-width: 1100px) { .cat-name { font-size: 72px; } .cat-card { min-height: 560px; padding: 32px; } }
@media (max-width: 760px) {
  .cat-sec { min-height: 0; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { min-height: 420px; padding: 24px; }
  .cat-name { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) { .reveal .cat-card { opacity: 1; transform: none; transition: none; } }
/* 한글은 글자를 세워서 위에서 아래로 쌓기 */
.cat-name { writing-mode: vertical-rl; text-orientation: upright; transform: none; letter-spacing: .02em; font-weight: 700; }
.cat-card:hover .cat-name { transform: translateY(-8px); }
.cat-dim { background: linear-gradient(90deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.12) 55%, rgba(0,0,0,.18) 100%); }
.cat-card:hover .cat-dim { background: linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.2) 55%, rgba(0,0,0,.26) 100%); }

/* 추천 루틴 카드 배경 영상 */
.cat-card video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .7s ease; }
.cat-card:hover video { transform:scale(1.05); }

/* =========================================================
   루틴 챌린지: 비디오테이프 책장
   ========================================================= */
.vs {
  --vs-paper:#f4eee9; --vs-ink:#2b2b2b; --vs-muted:#77706d; --vs-acc:#a3655a;
  --vs-rule:rgba(43,43,43,.85); --vs-ease:cubic-bezier(.2,.8,.2,1);
  --H: min(44svh, 31vw);
  --mid: 54%;
  position:relative; height:calc(100svh - 64px); min-height:680px; overflow:hidden;
  background:var(--vs-paper); color:var(--vs-ink); user-select:none; -webkit-font-smoothing:antialiased;
}
.vs-lbl { font-size:11.5px; font-weight:700; line-height:1; letter-spacing:.06em; }
.vs-box { display:inline-flex; align-items:center; height:28px; padding:0 12px; border:1px solid var(--vs-rule); background:transparent; color:var(--vs-ink); cursor:pointer; }
.vs-head { position:absolute; left:0; right:0; top:calc(var(--mid) - var(--H)/2 - 176px); text-align:center; }
.vs-kicker { color:var(--vs-acc); margin:0 0 12px; }
.vs-h1 { font-family:"Noto Serif KR", serif; font-weight:700; font-size:clamp(24px,2.6vw,36px); letter-spacing:-.02em; margin:0; color:var(--vs-ink); }
.vs-h1 em { font-style:normal; color:var(--vs-acc); }

.vs-tabs { position:absolute; left:50%; transform:translateX(-50%); top:calc(var(--mid) - var(--H)/2 - 92px); display:flex; z-index:5; }
.vs-tab { position:relative; z-index:1; height:28px; padding:0 14px; margin-left:-1px; border:1px solid var(--vs-rule); background:transparent; color:var(--vs-ink); white-space:nowrap; cursor:pointer; font-family:inherit; transition:color .45s var(--vs-ease); }
.vs-tab.on { color:#fff; }
.vs-ind { position:absolute; left:0; top:0; height:28px; width:0; background:var(--vs-acc); transition:width .6s var(--vs-ease), transform .6s var(--vs-ease); }

.vs-shelf { position:absolute; left:0; right:0; top:calc(var(--mid) - var(--H)/2 - 40px); height:calc(var(--H) + 80px); perspective:2200px; perspective-origin:50% 50%; touch-action:pan-y; }
.vs-stage { position:absolute; left:50%; top:50%; width:0; height:0; transform-style:preserve-3d; }
.vs-tape { position:absolute; left:0; top:0; width:0; height:0; transform-style:preserve-3d; will-change:transform; cursor:pointer; }
.vs-face { position:absolute; top:calc(var(--Hp) / -2); height:var(--Hp); backface-visibility:hidden; -webkit-backface-visibility:hidden; border-radius:2px; overflow:hidden; }
.vs-face::after { content:""; position:absolute; inset:0; background:#000; opacity:var(--shade,0); pointer-events:none; }

/* 테이프 옆면 */
.vs-sp { width:var(--ws); left:calc(var(--ws) / -2); transform:translateZ(calc(var(--d) / 2)); background:var(--bg); color:var(--fg);
  display:flex; flex-direction:column; align-items:center; padding:calc(var(--ws) * .16) 0; gap:calc(var(--ws) * .16);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.08), inset 3px 0 6px rgba(255,255,255,.12), inset -3px 0 6px rgba(0,0,0,.12); }
.vs-sp-pic { width:70%; aspect-ratio:1; border-radius:50%; background-size:cover; background-position:center; filter:grayscale(1) contrast(1.1); flex:none; box-shadow:0 0 0 2px currentColor; }
.vs-sp-title { flex:1; min-height:0; writing-mode:vertical-rl; text-orientation:upright; font-family:"Noto Serif KR", serif; font-weight:700; font-size:calc(var(--ws) * .32); letter-spacing:.02em; line-height:1; overflow:hidden; white-space:nowrap; }
.vs-sp-brand { writing-mode:vertical-rl; text-orientation:upright; font-size:calc(var(--ws) * .15); font-weight:700; opacity:.75; flex:none; }
.vs-sp-badge { flex:none; border:1px solid currentColor; font-size:calc(var(--ws) * .15); font-weight:700; padding:3px 4px; line-height:1; white-space:nowrap; }

/* 테이프 앞표지 */
.vs-cv { width:var(--d); left:calc(var(--d) / -2); transform:rotateY(90deg) translateZ(calc(var(--ws) / 2)); background:#efe4da; color:var(--vs-ink);
  box-shadow:0 30px 60px -28px rgba(20,16,10,.55); display:flex; flex-direction:column; padding:calc(var(--d) * .075); gap:calc(var(--d) * .045); }
.vs-cv-top { font-size:calc(var(--d) * .05); font-weight:700; letter-spacing:.12em; color:var(--vs-acc); }
.vs-cv-title { font-family:"Noto Serif KR", serif; font-weight:700; font-size:calc(var(--d) * .15); line-height:1.1; letter-spacing:-.03em; word-break:keep-all; }
.vs-cv-pic { position:relative; flex:1; min-height:0; overflow:hidden; background:#c99b8e; }
.vs-cv-pic img { width:100%; height:100%; object-fit:cover; filter:grayscale(1) contrast(1.15); mix-blend-mode:multiply; display:block; }
.vs-cv-foot { display:flex; justify-content:space-between; align-items:center; font-size:calc(var(--d) * .05); font-weight:700; }
.vs-cv-badge { border:1px solid currentColor; padding:3px 6px; }

/* 재생 버튼 */
.vs-play { position:absolute; z-index:6; left:0; top:0; width:46px; height:46px; border-radius:50%; border:1px solid var(--vs-acc); background:rgba(250,246,243,.8); color:var(--vs-acc); display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; transform:translate(-50%,-50%) scale(0); }
.vs-play svg { width:12px; height:12px; fill:currentColor; margin-left:2px; }

/* 아래 글씨 */
.vs-cap { position:absolute; left:0; right:0; top:calc(var(--mid) + var(--H)/2 + 34px); display:flex; flex-direction:column; align-items:center; gap:10px; pointer-events:none; }
.vs-mask { position:relative; overflow:hidden; width:min(76vw,760px); text-align:center; }
.vs-mask > span { display:block; }
.vs-mask > span + span { position:absolute; left:0; right:0; top:0; }
.vs-cap-title { font-family:"Noto Serif KR", serif; font-weight:700; font-size:30px; line-height:1.3; letter-spacing:-.02em; }
.vs-cap-sub { color:var(--vs-acc); font-weight:500; }
.vs-cap-days { font-size:12px; font-weight:500; letter-spacing:.08em; color:var(--vs-muted); line-height:1.3; }

.vs-arrow { position:absolute; z-index:6; top:calc(var(--mid) + var(--H)/2 + 34px); width:44px; height:44px; border:0; background:none; color:var(--vs-ink); cursor:pointer; display:flex; align-items:center; justify-content:center; }
.vs-arrow svg { width:18px; height:10px; fill:none; stroke:currentColor; stroke-width:1.2; }
.vs-prev { left:24px; } .vs-next { right:24px; }
.vs-hint { position:absolute; left:0; right:0; bottom:22px; margin:0; text-align:center; color:var(--vs-muted); font-weight:500; }

.vs-grain { position:absolute; inset:0; z-index:40; pointer-events:none; mix-blend-mode:multiply; opacity:.55;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .42 0 0 0 0 .38 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* 둥근 커서 */
.vs-cursor { position:fixed; left:0; top:0; width:58px; height:58px; margin:-29px 0 0 -29px; z-index:100; pointer-events:none; display:none; }
@media (pointer:fine) {
  .vs, .vs * { cursor:none !important; }
  .vs-cursor.show { display:block; }
}
.vs-ring { position:absolute; inset:0; border-radius:50%; border:1.5px solid var(--vs-ink); background:transparent; transition:transform .5s var(--vs-ease), background-color .4s var(--vs-ease), border-color .4s var(--vs-ease); }
.vs-dot { position:absolute; left:50%; top:50%; width:6px; height:6px; margin:-3px 0 0 -3px; border-radius:50%; background:var(--vs-ink); transition:transform .4s var(--vs-ease); }
.vs-open { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:11px; font-weight:700; letter-spacing:.04em; transform:scale(0); transition:transform .45s var(--vs-ease); }
.vs-cursor.spine .vs-ring { transform:scale(.72); }
.vs-cursor.btn .vs-ring { transform:scale(.55); }
.vs-cursor.btn .vs-dot { transform:scale(0); }
.vs-cursor.open .vs-ring { transform:scale(1.75); background:var(--vs-acc); border-color:var(--vs-acc); }
.vs-cursor.open .vs-dot { transform:scale(0); }
.vs-cursor.open .vs-open { transform:scale(1); }

/* 자세히 보기 종이 */
.vs-detail { --vs-ink:#2b2b2b; --vs-muted:#77706d; --vs-acc:#a3655a; --vs-rule:rgba(43,43,43,.85); --vs-ease:cubic-bezier(.2,.8,.2,1);
  position:fixed; inset:0; z-index:200; background:#faf6f3; color:var(--vs-ink); visibility:hidden;
  display:grid; grid-template-columns:1fr 1fr; gap:4vw; padding:110px 6vw 56px 7vw; align-items:center; overflow:hidden; }
.vs-close { position:absolute; left:32px; top:31px; font-family:inherit; }
.vs-d-body { display:flex; flex-direction:column; gap:18px; max-width:520px; }
.vs-m { overflow:hidden; }
.vs-m > * { margin:0; }
.vs-d-sub { color:var(--vs-acc); }
.vs-d-title { font-family:"Noto Serif KR", serif; font-weight:700; font-size:clamp(34px,4.2vw,64px); line-height:1.15; letter-spacing:-.03em; word-break:keep-all; }
.vs-d-meta { color:var(--vs-muted); }
.vs-d-text { font-size:17px; line-height:1.7; max-width:42ch; word-break:keep-all; }
.vs-d-credit { font-family:"Noto Serif KR", serif; font-size:15px; color:var(--vs-muted); }
.vs-d-btns { display:flex; align-items:center; gap:18px; flex-wrap:wrap; padding-top:10px; }
.vs-d-btn { display:inline-flex; align-items:center; height:46px; padding:0 22px; background:#fee500; color:#191919; font-weight:700; font-size:15px; text-decoration:none; border-radius:2px; }
.vs-d-more { color:var(--vs-ink); text-decoration:none; }
.vs-poster { height:min(100%, 78vh); aspect-ratio:474/900; justify-self:center; }
.vs-poster svg { width:100%; height:100%; display:block; }
.vs-p-top { font-size:20px; font-weight:700; letter-spacing:.12em; fill:#a3655a; }
.vs-p-title { font-family:"Noto Serif KR", serif; font-size:68px; font-weight:700; letter-spacing:-2px; fill:#2b2b2b; }
.vs-p-img { filter:grayscale(1) contrast(1.15); }
.vs-p-foot, .vs-p-days { font-size:20px; font-weight:700; fill:#2b2b2b; }

@media (max-width:767px) {
  .vs { --H: min(60vw, 36svh); --mid: 46%; min-height:620px; height:calc(100svh - 56px); }
  .vs-head { top:calc(var(--mid) - var(--H)/2 - 146px); }
  .vs-h1 { font-size:21px; }
  .vs-tabs { top:calc(var(--mid) - var(--H)/2 - 80px); }
  .vs-tab { padding:0 8px; font-size:10.5px; }
  .vs-cap-title { font-size:21px; }
  .vs-prev { left:4px; } .vs-next { right:4px; }
  .vs-hint { display:none; }
  .vs-detail { grid-template-columns:1fr; overflow-y:auto; padding:84px 22px 40px; gap:24px; align-items:start; }
  .vs-poster { order:-1; height:46svh; }
  .vs-d-title { font-size:32px; }
  .vs-d-text { font-size:16px; }
  .vs-close { left:16px; top:21px; }
}
