/* 활보원 브랜드사이트 (/new/) — 심의 시안(4차 1021) 기준
   - 좁은 화면(1023px 이하)은 세로로 쌓고, 넓은 화면은 시안 배치(1920 기준 vw)
   - 중노년층 대상이라 본문 최소 18px, 제목은 크게
   - 글꼴은 시안 원본 PSD 의 글자 레이어와 같게: KoPubWorld 바탕 · 돋움(제목 · 본문), Pretendard(시험 결과 · 아이콘 이름),
     인사말은 시안의 김정철명조(유료 · 웹 불가) 대신 가장 비슷한 마루부리. 파일은 페이지에 쓰인 글자만 남긴 것
     (tools/make_subsets.py 로 다시 만듦 — 새 글자가 빠지면 다음 글꼴로 그려짐) */

@font-face { font-family: 'HB Batang'; font-weight: 300; font-display: swap; src: url(/new/fonts/kopub-batang-300.woff2) format('woff2'); }
@font-face { font-family: 'HB Batang'; font-weight: 400; font-display: swap; src: url(/new/fonts/kopub-batang-400.woff2) format('woff2'); }
@font-face { font-family: 'HB Batang'; font-weight: 700; font-display: swap; src: url(/new/fonts/kopub-batang-700.woff2) format('woff2'); }
@font-face { font-family: 'HB Dotum'; font-weight: 300; font-display: swap; src: url(/new/fonts/kopub-dotum-300.woff2) format('woff2'); }
@font-face { font-family: 'HB Dotum'; font-weight: 400; font-display: swap; src: url(/new/fonts/kopub-dotum-400.woff2) format('woff2'); }
@font-face { font-family: 'HB Dotum'; font-weight: 700; font-display: swap; src: url(/new/fonts/kopub-dotum-700.woff2) format('woff2'); }
@font-face { font-family: 'HB Maru'; font-weight: 400; font-display: swap; src: url(/new/fonts/maruburi-400.woff2) format('woff2'); }
@font-face { font-family: 'HB Maru'; font-weight: 600; font-display: swap; src: url(/new/fonts/maruburi-600.woff2) format('woff2'); }

:root {
  --ink: #1c1712;
  --body: #3b332b;
  --accent: #9a560b;
  --accent-2: #b8864d;
  --gold-lt: #efcf95;
  --gold-mid: #dfa766;
  --red: #821a1e;
  --red-dk: #5c1414;
  --serif: 'HB Batang', 'KoPubWorld Batang', 'Noto Serif KR', serif;
  --dotum: 'HB Dotum', 'KoPubWorld Dotum', 'Pretendard', 'Malgun Gothic', sans-serif;
  --maru: 'HB Maru', 'MaruBuri', 'HB Batang', 'Noto Serif KR', serif;
  --sans: 'Pretendard', 'Pretendard Variable', -apple-system, 'Malgun Gothic', sans-serif;
  --tr: -0.075em;   /* 시안 자간 -75 */
  --pad: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* 공통 구간: 화면을 꽉 채움 */
.sec {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.is-dark { color: #fff; }

/* 왼쪽 위 따라다니는 상담 버튼 */
.float-cta {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 20px;
  border-radius: 999px;
  background: var(--red);
  border: 2px solid rgba(239, 207, 149, .75);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  transition: opacity .25s, transform .25s;
}
.float-cta i {
  width: 9px; height: 9px;
  border-right: 3px solid #fff; border-bottom: 3px solid #fff;
  transform: rotate(45deg) translate(-2px, -2px);
}
.float-cta.is-hide { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.float-cta:focus-visible { outline: 3px solid #ffd27a; outline-offset: 3px; }

/* 슬라이드(가로로 밀기) 공통 */
.car { position: relative; }
.car-track {
  position: relative;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.car-track::-webkit-scrollbar { display: none; }
.car-item { flex: 0 0 auto; scroll-snap-align: center; }
.car-track.car-jump .car-item { transition: none !important; }   /* 끝없이 넘김: 복제 카드에서 진짜 카드로 순간 이동할 때 */
/* 마우스로 끌어 넘기기(hb.js) */
@media (hover: hover) and (pointer: fine) {
  .car-track { cursor: grab; }
  .car-track.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
}
.car-ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; padding: 12px 16px 16px; }
.car-prev, .car-next {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid #c99a5b; background: #fff;
  box-shadow: 0 4px 12px rgba(120, 80, 30, .18);
  position: relative; flex: 0 0 auto;
}
.car-prev::after, .car-next::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 12px;
  border-left: 3px solid #6d4a22; border-bottom: 3px solid #6d4a22;
}
.car-prev::after { transform: translate(-30%, -50%) rotate(45deg); }
.car-next::after { transform: translate(-70%, -50%) rotate(-135deg); }
.car-prev:disabled, .car-next:disabled { opacity: .35; cursor: default; }
.car-dots { display: flex; gap: 8px; align-items: center; }
.car-dots button {
  width: 11px; height: 11px; border-radius: 6px; border: 0; padding: 0;
  background: #d8d2cb; transition: width .25s, background .25s;
}
.car-dots button.on { width: 40px; background: #9a6420; }

/* ---------- 01 메인 ---------- */
.s01 { background: #000; color: #fff; justify-content: flex-start; }
.s01-text { order: 1; padding: 86px var(--pad) 6px; text-align: center; position: relative; z-index: 1; }
.s01-visual {
  order: 2; flex: 1 1 auto; min-height: 50vh; min-height: 50svh;
  background: url(/new/img/img01_bg.jpg) 74% center / cover no-repeat;
}
.s01-tag { font-size: 20px; font-weight: 500; letter-spacing: -.03em; }
.s01-tag b { font-family: var(--serif); font-weight: 900; font-size: 1.32em; color: var(--gold-lt); }
.s01-logo { margin: 6px auto 4px; width: min(78vw, 360px); }
.s01-logo img { width: 100%; padding: 1.875rem 0;}
.s01-sol { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 20px; font-weight: 500; }
.s01-sol::before, .s01-sol::after { content: ''; flex: 0 0 32px; height: 1px; background: rgba(239, 207, 149, .7); }
.s01-sol b { color: var(--gold-lt); font-weight: 800; }
.s01-icons { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.s01-icons img { width: 70px; }

/* CF */
.s-cf { background: #f4dec7; padding: 40px var(--pad); }
.cf-box { width: min(100%, 1280px); margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.cf-box iframe, .cf-box video { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 02 인사말 ---------- */
.s02 { background: #fdf5ea; justify-content: flex-start; }
.s02-visual {
  flex: 0 0 auto; height: 52vh; height: 52svh;
  background: url(/new/img/img02_bg.jpg) 21% bottom / cover no-repeat;
}
.s02-text { padding: 30px var(--pad) 48px; }
.s02-hello { color: var(--accent-2); font-size: 19px; font-weight: 600; }
.s02-title { margin-top: 10px; font-size: clamp(22px, 6.7vw, 29px); line-height: 1.38; font-weight: 700; letter-spacing: -.04em; }
.s02-title em { color: var(--accent-2); }
.s02-body { margin-top: 18px; font-size: 19px; color: var(--body); }
.s02-end { margin-top: 18px; font-size: 20px; font-weight: 700; color: var(--accent-2); }
.s02-sign { margin-top: 14px; display: flex; justify-content: flex-end; }
.s02-sign img { width: 170px; }

/* ---------- 03 관절만? ---------- */
.s03 { background: #0b0a0a; justify-content: flex-start; }
.s03-text { order: 1; padding: 92px var(--pad) 22px; position: relative; z-index: 1; }
.s03-title { font-family: var(--serif); font-weight: 900; font-size: 40px; line-height: 1.25; letter-spacing: -.04em; }
.s03-title em { background: linear-gradient(90deg, #ffe0a2 0%, #f5ca83 45%, #c9955b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent; }
.s03-body { margin-top: 18px; font-size: 19px; font-weight: 500; color: rgba(255, 255, 255, .92); }
.s03-visual {
  order: 2; flex: 1 1 auto; min-height: 46vh; min-height: 46svh;
  background: url(/new/img/img03_bg.jpg) 96% bottom / cover no-repeat;   /* 벽돌과 지팡이 짚은 어르신이 함께 보이게 */
}
.mbr { display: inline; }   /* 모바일 전용 줄바꿈(넓은 화면에서는 숨김) */

/* ---------- 04 추천 ---------- */
.s04 { background: #fff; padding: 84px 0 50px; }
.s04-head { text-align: center; padding: 0 var(--pad); }
.eyebrow { color: #a9875c; font-size: 14px; letter-spacing: .6em; padding-left: .6em; }
.s04-title { margin-top: 10px; font-family: var(--serif); font-weight: 900; font-size: 32px; line-height: 1.3; letter-spacing: -.05em; }
.s04-title em { color: var(--accent); }
.s04-desc { margin-top: 14px; font-size: 18px; color: var(--body); }
.s04-desc b { color: var(--accent); }
.rec-car { margin-top: 30px; }
.rec-car .car-track { padding: 14px calc(50% - min(43vw, 300px)) 22px; gap: 14px; }
.rec-card {
  width: min(86vw, 600px);
  display: grid; grid-template-columns: 52% 48%; align-items: center;
  background: #fff4e4; border: 3.5px solid #dcb57e; border-radius: 12px; overflow: hidden;
  aspect-ratio: 597 / 356;
  transform: scale(.9); opacity: .5;
  transition: transform .35s, opacity .35s, box-shadow .35s;
}
.rec-card.is-on { transform: scale(1); opacity: 1; box-shadow: 0 10px 26px rgba(120, 80, 30, .22); }
.rec-card img {
  width: 100%; height: 100%; object-fit: cover; object-position: left center;
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent);
  mask-image: linear-gradient(90deg, #000 78%, transparent);
}
.rec-card p {
  padding: 0 10px 0 4px;
  font-family: var(--serif); font-weight: 700; color: #241b14;
  font-size: clamp(16px, 4.6vw, 30px); line-height: 1.32; letter-spacing: -.05em;
}
.rec-card p em { color: var(--accent); }

/* ---------- 05 3중 솔루션 ---------- */
.s05 { background: #f0e0d2 url(/new/img/img05_bg.jpg) center bottom / cover no-repeat; padding: 84px 0 34px; }
.s05-in { text-align: center; padding: 0 var(--pad); }
.s05-top { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 16px; color: #3b2f25; font-weight: 500; }
.s05-top sup { font-size: .6em; color: #8a7a68; }
.s05-title { margin-top: 12px; font-family: var(--serif); font-weight: 900; font-size: 31px; line-height: 1.3; letter-spacing: -.05em; }
.s05-title em { color: var(--accent); }
.s05-desc { margin-top: 12px; font-size: 18px; color: var(--body); }
.s05-desc b { color: var(--accent); font-weight: 700; }
.s05-circles { display: flex; flex-direction: column; align-items: center; margin-top: 22px; }
.s05-circles li { width: min(80vw, 340px); }
.s05-circles li + li { margin-top: -8%; }
.s05-bar {
  margin: 18px auto 0; max-width: 1120px; padding: 12px 14px;
  background: linear-gradient(90deg, #8a5a1e, #3a210c 55%, #231105);
  color: #fff; font-family: var(--serif); font-weight: 700;
  font-size: 21px; line-height: 1.4; letter-spacing: -.04em;
}
.s05-note { margin-top: 12px; font-size: 13px; color: #6d6052; line-height: 1.5; }
.s05-note i { font-style: normal; margin: 0 .6em; }

/* ---------- 06 · 07 주원료 ---------- */
.s06 { background: #3a0d1d url(/new/img/img06_bg.jpg) center top / cover no-repeat; color: #fff; padding: 80px 0 60px; justify-content: flex-start; }
.s07 { background: #0f3d31 url(/new/img/img07_bg.jpg) center top / cover no-repeat; color: #fff; padding: 80px 0 60px; justify-content: flex-start; }
.ing-top { display: flex; flex-direction: column; gap: 26px; padding: 0 var(--pad); }
.ing-scroll { align-self: center; width: min(100%, 460px); }
.s07 .ing-scroll { order: -1; }
.ing-head { display: flex; flex-direction: column; gap: 14px; }
.ing-pre { font-family: var(--serif); font-weight: 700; font-size: 20px; color: #f1d3a3; letter-spacing: -.04em; line-height: 1.4; }
.ing-name {
  margin-top: 4px; font-family: var(--serif); font-weight: 900; font-size: 46px; line-height: 1.15; letter-spacing: -.04em;
  background: linear-gradient(180deg, #ffe6b8, #e7b56c); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ing-desc { margin-top: 12px; font-family: var(--serif); font-weight: 500; font-size: 19px; color: #f3d9ae; line-height: 1.55; }
.ing-books { width: min(76vw, 340px); align-self: center; }
.ing-claim { margin-top: 26px; text-align: center; font-weight: 800; font-size: 19px; line-height: 1.5; letter-spacing: -.03em; }
.ing-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 8px; margin-top: 18px; }
.ing-icons li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ing-icons img { width: 84px; }
.ing-icons span { margin-top: 8px; font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -.04em; }
.ing-fine { margin-top: 18px; text-align: center; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .62); }

.panel {
  position: relative; margin: 44px var(--pad) 0; padding: 40px 0 34px;
  background: #fff; color: var(--ink);
}
/* 시안의 톱니 모양 위 · 아래 가장자리 */
.panel::before, .panel::after {
  content: ''; position: absolute; left: 0; right: 0; height: 6px;
  background: linear-gradient(135deg, transparent 50%, #fff 50%) 0 0 / 10px 6px repeat-x,
              linear-gradient(225deg, transparent 50%, #fff 50%) 0 0 / 10px 6px repeat-x;
}
.panel::before { top: -6px; }
.panel::after { bottom: -6px; transform: scaleY(-1); }
.panel-title { text-align: center; padding: 0 var(--pad); font-weight: 800; font-size: 22px; line-height: 1.4; letter-spacing: -.05em; }
.chart-car { margin-top: 22px; }
.chart-car .car-track { padding: 4px calc(50% - min(39vw, 170px)) 8px; gap: 12px; }
.chart-car .car-item { width: min(78vw, 340px); }
.chart-car .car-item img { width: 100%; border-radius: 6px; }
.panel-fine { margin-top: 20px; padding: 0 var(--pad); text-align: center; font-size: 12.5px; line-height: 1.6; color: #8a8580; }
.panel-hr { margin: 34px var(--pad) 30px; border: 0; border-top: 1px solid #cfcac4; }
.panel-adas { margin-top: 18px; display: flex; justify-content: center; padding: 0 var(--pad); }
.panel-adas img { width: min(100%, 430px); }

/* ---------- 08 부원료 ---------- */
.s08 { background: #e6dbcf; justify-content: flex-start; }
.s08-text { order: 1; padding: 86px var(--pad) 20px; }
.s08-visual {
  order: 2; flex: 1 1 auto; min-height: 36vh; min-height: 36svh;
  background: url(/new/img/img08_bg.jpg) 78% 70% / cover no-repeat;
}
.s08-note { order: 3; padding: 6px var(--pad) 0; text-align: right; font-size: 13px; color: #7a6b5d; }
.s08-list { order: 4; margin: 14px var(--pad) 30px; padding-top: 14px; border-top: 1px solid #c79a64; font-size: 13px; line-height: 1.65; color: #6d6052; }
.s08-list b { font-weight: 600; }
.s08-list i { font-style: normal; margin: 0 .7em; }
.s08-title { font-family: var(--serif); font-weight: 700; font-size: 40px; line-height: 1.22; letter-spacing: -.04em; color: var(--accent); }
.s08-dash { display: block; width: 28px; height: 2px; background: var(--accent); margin: 22px 0; }
.s08-lead { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.45; letter-spacing: -.04em; }
.s08-lead em { color: var(--accent); }
.s08-body { margin-top: 16px; font-size: 18px; color: var(--body); }

/* ---------- 09 후기 ---------- */
.s09 { background: linear-gradient(180deg, #fff 0%, #fff8ef 40%, #ffe6c8 100%); padding: 84px 0 50px; }
.s09-head { text-align: center; padding: 0 var(--pad); }
.s09-title { font-family: var(--serif); font-weight: 900; font-size: 27px; line-height: 1.38; letter-spacing: -.05em; }
.s09-title em { color: var(--accent); font-size: 1.12em; }
.s09-desc { margin-top: 12px; font-size: 18px; color: var(--body); }
.s09-desc b { color: var(--accent); font-weight: 700; }
.s09-basis { margin-top: 4px; font-size: 14px; color: #6d6052; }
.rev-car { margin-top: 26px; }
.rev-car .car-track { padding: 6px calc(50% - min(44vw, 520px)) 22px; gap: 16px; }
.rev-card {
  width: min(88vw, 1040px);
  background: #fff; border-radius: 4px; padding: 14px;
  box-shadow: 0 0 0 8px rgba(214, 170, 110, .18), 0 12px 30px rgba(140, 90, 30, .2);
  display: flex; flex-direction: column; gap: 16px;
}
.rev-card img { width: 100%; aspect-ratio: 459 / 413; object-fit: cover; }
.rev-card figcaption { display: flex; flex-direction: column; padding: 0 6px 6px; }
.rev-card blockquote { position: relative; padding-top: 34px; font-size: 19px; line-height: 1.6; color: #2f2924; letter-spacing: -.03em; }
.rev-card blockquote::before { content: '\201C'; position: absolute; top: -12px; left: -2px; font-family: Georgia, serif; font-size: 64px; line-height: 1; color: #d2b48c; }
.rev-card cite { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e3d3bd; text-align: right; font-style: normal; font-size: 19px; color: #2f2924; }

/* ---------- 10 진한 가치 ---------- */
.s10 { background: #000; justify-content: flex-start; padding-top: 84px; }
.s10-head { order: 1; text-align: center; padding: 0 var(--pad); position: relative; z-index: 1; }
.s10-pre { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--serif); font-weight: 500; font-size: 20px; }
.s10-pre::before, .s10-pre::after { content: ''; flex: 0 0 34px; height: 1px; background: rgba(255, 255, 255, .5); }
.s10-title { margin-top: 6px; font-family: var(--serif); font-weight: 900; font-size: 38px; line-height: 1.25; letter-spacing: -.05em; }
.s10-title em { background: linear-gradient(180deg, #f6d8a6, #c98b45); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* 모바일: 시안 가운데(모델 · 제품, 시안 x 640~1280)만 크게 보이게 */
.s10-visual {
  order: 2; flex: 0 0 auto; height: 124vw; margin-top: 4px;
  background: url(/new/img/img10_bg.jpg) 50% 100% / 300vw auto no-repeat;
}
.s10-circles { order: 3; display: flex; justify-content: center; gap: 4vw; margin: -14vw var(--pad) 0; position: relative; z-index: 1; }
.s10-circles li { width: min(42vw, 230px); }
.s10-foot { order: 4; padding: 16px var(--pad) 40px; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.55; color: #f1d3a3; letter-spacing: -.03em; }
.s10-foot b { font-weight: 900; }

/* ---------- 11 섭취 방법 ---------- */
.s11 { background: #e4ded0; padding: 84px 0 50px; }
.s11-in { padding: 0 var(--pad); }
.s11-pre { text-align: center; font-family: var(--serif); font-weight: 500; font-size: 18px; color: #3b2f25; }
.s11-title { margin-top: 6px; text-align: center; font-family: var(--serif); font-weight: 900; font-size: 34px; line-height: 1.3; letter-spacing: -.05em; }
.s11-title em { color: var(--accent); }
.s11-steps { display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.s11-steps li { display: grid; grid-template-columns: 42% 1fr; gap: 14px; align-items: center; }
.s11-steps img { width: 100%; aspect-ratio: 428 / 351; object-fit: cover; }
.s11-steps p { display: flex; flex-direction: column; gap: 4px; }
.s11-steps b { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1; color: #d6bb93; }
.s11-steps span { font-size: 18px; line-height: 1.5; color: #2f2924; }
.s11-caution { margin-top: 26px; padding: 22px 20px; background: #fef4e8; }
.s11-caution h3 { font-family: var(--serif); font-weight: 900; font-size: 24px; color: var(--accent); }
.s11-caution ul { margin-top: 10px; }
.s11-caution li { position: relative; padding-left: 18px; font-size: 16px; line-height: 1.55; color: #8a5414; }
.s11-caution li + li { margin-top: 6px; }
.s11-caution li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; background: #8a5414; transform: rotate(45deg); }

/* ---------- 12 상담 신청 ---------- */
.s12 { background: #eae4df; justify-content: flex-start; }
.s12-visual {
  flex: 0 0 auto; height: 40vh; height: 40svh;
  background: url(/new/img/img12_bg.jpg) 14% bottom / cover no-repeat;
}
.s12-in { padding: 26px var(--pad) 46px; }
.s12-pre { text-align: center; font-size: 15px; letter-spacing: .32em; color: #3b2f25; padding-left: .32em; }
.s12-pre b { color: var(--accent); font-weight: 700; margin-right: .2em; }
.s12-title { margin-top: 8px; text-align: center; font-family: var(--serif); font-weight: 900; font-size: 25px; line-height: 1.4; letter-spacing: -.05em; }
.s12-title em { color: #a37a4f; }
.dbform {
  margin: 22px auto 0; max-width: 640px; padding: 26px 20px 24px;
  background: rgba(255, 255, 255, .92); border-radius: 22px;
  box-shadow: 0 14px 40px rgba(90, 60, 30, .18);
}
.dbform-title { text-align: center; font-family: var(--sans); font-weight: 800; font-size: 21px; color: #8e4f12; letter-spacing: -.04em; }
.db-row { display: flex; align-items: center; margin-top: 12px; border: 1.5px solid #8f8a85; background: #fff; }
.db-row span { flex: 0 0 82px; padding-left: 16px; font-size: 19px; font-weight: 700; color: #2b2520; }
.db-row input {
  flex: 1 1 auto; min-width: 0; height: 56px; border: 0; padding: 0 14px 0 4px;
  font: inherit; font-size: 20px; font-weight: 600; color: var(--ink); background: transparent;
}
.db-row input::placeholder { color: #a7a19a; font-weight: 500; }
.db-row:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(130, 26, 30, .15); }
.db-sex { display: grid; grid-template-columns: 1fr 1fr; margin-top: 12px; border: 1.5px solid #8f8a85; }
.db-sex button { height: 54px; border: 0; background: #fff; font-size: 19px; font-weight: 700; color: #2b2520; }
.db-sex button.on { background: #222; color: #fff; }
.db-agree { margin-top: 14px; display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: center; font-size: 15px; color: #4a423a; }
.db-agree label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.db-agree input { width: 20px; height: 20px; accent-color: #2a5bd7; flex: 0 0 auto; }
.db-agree a { color: #6a5f55; font-size: 14px; }
.db-submit {
  display: block; width: 100%; margin-top: 18px; height: 66px; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, #8f2226, var(--red-dk));
  color: #fff; font-size: 25px; font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 8px 20px rgba(92, 20, 20, .35);
}
.db-submit:disabled { opacity: .6; }

/* ---------- 바닥글 ---------- */
.foot { background: #17120e; color: #a99f94; padding: 40px var(--pad) 46px; font-size: 14px; line-height: 1.8; }
.foot-in { max-width: 1200px; margin: 0 auto; }
.foot-logo { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.foot-logo img:first-child { width: 150px; }
.foot-logo img:last-child { width: 86px; opacity: .9; }
.foot p span { display: inline-block; margin-right: 14px; }
.foot a { color: #e2d6c8; }
.foot-copy { margin-top: 10px; font-size: 13px; color: #7d746b; }

/* ---------- 동의 내용 창 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { width: min(100%, 640px); max-height: 86vh; display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; }
.modal-box h3 { padding: 18px 20px; font-size: 20px; border-bottom: 1px solid #eee; }
.modal-body { padding: 16px 20px; overflow-y: auto; font-size: 15px; line-height: 1.65; color: #444; }
.modal-body h4 { margin: 14px 0 6px; font-size: 16px; color: #222; }
.modal-body ul { list-style: disc; padding-left: 20px; }
.modal-body ol { list-style: decimal; padding-left: 20px; }
.modal-close { height: 56px; border: 0; background: #222; color: #fff; font-size: 18px; font-weight: 700; }

/* =====================================================================
   글꼴 · 굵기 · 자간 — 시안 원본 PSD 글자 레이어 기준(3차 구간 PSD + 4차 PSB).
   자간: 시안 -75 → -0.075em, Pretendard 쪽 -80 → -0.08em(아주 작은 글씨는 읽기 쉽게 조금 덜 좁힘)
   ===================================================================== */
.s01-tag { font-family: var(--dotum); font-weight: 300; letter-spacing: var(--tr); }
.s01-tag b { font-family: 'Noto Serif KR', serif; font-weight: 900; }   /* 시안: Noto Serif CJK KR Black */
.s01-sol { font-family: var(--dotum); font-weight: 300; letter-spacing: -0.025em; }
.s01-sol b { font-weight: 700; }
.s02-hello, .s02-title, .s02-end { font-family: var(--maru); font-weight: 600; letter-spacing: -0.05em; }
.s02-body { font-family: var(--maru); font-weight: 400; letter-spacing: -0.05em; }
.s03-title, .s03-body { font-family: var(--serif); font-weight: 700; letter-spacing: var(--tr); }
.eyebrow { font-family: 'Copperplate Gothic Light', 'Copperplate Gothic', Copperplate, 'Cinzel', serif; letter-spacing: .9em; padding-left: .9em; }
.s04-title, .s05-title, .s09-title, .s10-title, .s11-title, .s12-title, .ing-pre, .ing-desc, .s08-lead,
.rec-card p, .s05-bar, .s11-caution h3 { font-family: var(--serif); font-weight: 700; letter-spacing: var(--tr); }
.s04-desc, .s05-desc, .s09-desc, .s11-pre { font-family: var(--serif); font-weight: 300; letter-spacing: var(--tr); }
.s04-desc b, .s05-desc b, .s09-desc b { font-weight: 700; }
.s10-pre { font-family: var(--serif); font-weight: 400; letter-spacing: var(--tr); }
.s10-foot { font-family: var(--serif); font-weight: 700; letter-spacing: -0.09em; }
.s05-top { font-family: var(--dotum); font-weight: 300; letter-spacing: var(--tr); }
.s05-top b { font-weight: 400; }
.s05-note, .s08-note, .s08-list, .s09-basis { font-family: var(--dotum); font-weight: 300; letter-spacing: -0.04em; }
.ing-name { font-family: var(--dotum); font-weight: 700; letter-spacing: var(--tr); }
.ing-claim { font-family: var(--sans); font-weight: 700; letter-spacing: -0.06em; }
.ing-icons span { font-family: var(--sans); font-weight: 600; letter-spacing: -0.06em; }
.ing-fine { font-family: var(--dotum); font-weight: 300; letter-spacing: -0.04em; }
.ing-fine b { font-weight: 700; }
.panel-title { font-family: var(--sans); font-weight: 700; letter-spacing: -0.06em; }
.panel-fine { font-family: var(--sans); font-weight: 300; letter-spacing: -0.03em; }   /* 시안 Thin → 읽히게 Light */
.s08-body { font-family: var(--dotum); font-weight: 300; letter-spacing: var(--tr); }
.s08-body b { font-weight: 400; }
.s08-lead em { letter-spacing: -0.1em; -webkit-text-stroke: .025em currentColor; }   /* 시안: 가짜 굵게(Faux Bold) · 자간 -100 */
.rev-card blockquote, .rev-card cite { font-family: var(--dotum); font-weight: 300; letter-spacing: var(--tr); }
.rev-card blockquote::before { font-family: var(--serif); font-weight: 700; }
.s11-steps b { font-family: var(--serif); font-weight: 700; letter-spacing: -0.03em; }
.s11-steps span, .s11-caution li { font-family: var(--dotum); font-weight: 300; letter-spacing: var(--tr); }
.s12-pre { font-family: var(--dotum); font-weight: 300; }
.dbform-title, .db-submit { font-family: var(--dotum); font-weight: 700; letter-spacing: -0.025em; }
.db-row span, .db-sex button { font-family: var(--dotum); font-weight: 400; }
.float-cta { font-family: var(--sans); font-weight: 600; }

/* =====================================================================
   넓은 화면(1024px 이상): 시안 배치. 1920 시안의 좌표를 vw 로 옮김(1vw = 19.2px)
   ===================================================================== */
@media (min-width: 1024px) {
  body { font-size: 20px; }
  .float-cta { top: 20px; left: 20px; padding: 13px 24px 13px 26px; font-size: 20px; }

  .car-prev, .car-next { width: 58px; height: 58px; }

  /* 배경 그림 구간(01 · 02 · 03 · 08 · 10 · 12): 그림은 폭에 맞춰(글자 자리가 시안과 같게) 두고,
     화면이 그림보다 높으면 그림 가장자리와 같은 색으로 남는 곳을 채움.
     01 · 02 · 08 · 12 = 아래에 붙임(위쪽 가장자리가 단색이라 이어짐), 03 · 10 = 가운데(위아래 모두 어두움) */
  .s01-visual, .s02-visual, .s03-visual, .s08-visual, .s10-visual, .s12-visual {
    position: absolute; left: 0; right: 0; top: auto; bottom: 0;
    min-height: 0; margin: 0; background-position: center bottom; background-size: 100% auto;
  }
  .s03-visual, .s10-visual { top: 50%; bottom: auto; transform: translateY(-50%); background-position: center; }
  .s03-visual::before, .s12-visual::before {
    content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 7vw;
    background: linear-gradient(var(--edge), transparent);
  }
  .s03-visual { --edge: #161e25; }
  .s12-visual { --edge: #eae4df; }

  /* 01 */
  .s01 { min-height: max(100vh, 47.4vw); justify-content: flex-end; background: #000; }
  .s01-visual { height: 47.4vw; }
  .s01-text { order: 0; padding: 0; height: 47.4vw; width: 37.5vw; margin-left: 12vw; display: flex; flex-direction: column; justify-content: center; }
  .s01-tag { font-size: clamp(24px, 2.2vw, 46px); }
  .s01-logo { width: 28.6vw; margin: .5vw auto .4vw; }
  .s01-sol { font-size: clamp(18px, 1.4vw, 30px); }
  .s01-sol span { word-spacing: .35em; }
  .s01-sol b { word-spacing: normal; }
  .s01-sol::before, .s01-sol::after { flex-basis: 3vw; }
  .s01-icons { gap: 1vw; margin-top: 1.4vw; }
  .s01-icons img { width: 7vw; max-width: 134px; min-width: 72px; }

  .s-cf { padding: 4vw 0; }
  .cf-box { width: 66vw; }

  /* 02 */
  .s02 { min-height: max(100vh, 47.4vw); justify-content: flex-end; background: #fdf5ea; }
  .s02-visual { height: 47.4vw; }
  .s02-text { position: relative; height: 47.4vw; min-height: 620px; margin-left: 46.4vw; width: 44vw; padding: 0; display: flex; flex-direction: column; justify-content: center; }
  /* 시안 1920 기준: 인사 28px · 제목 58px · 본문 33px */
  .s02-hello { font-size: clamp(18px, 1.45vw, 30px); }
  .s02-title { font-size: clamp(30px, 3vw, 60px); margin-top: 1.2vw; }
  .s02-body { font-size: clamp(19px, 1.7vw, 34px); margin-top: 1.6vw; line-height: 1.45; }
  .s02-end { font-size: clamp(20px, 1.7vw, 34px); margin-top: 1.6vw; }
  .s02-sign { justify-content: flex-start; margin: .6vw 0 0 24vw; }
  .s02-sign img { width: clamp(150px, 11.6vw, 224px); }

  /* 03 */
  .s03 { min-height: max(100vh, 47.4vw); justify-content: center; background: linear-gradient(#161e25 50%, #020202 50%); }
  .s03-visual { height: 47.4vw; }
  .s03-text { height: 47.4vw; padding: 0 0 0 15.6vw; width: 50vw; display: flex; flex-direction: column; justify-content: center; }
  .s03-title { font-size: clamp(44px, 5vw, 101px); }
  .s03-title em { font-size: clamp(54px, 6vw, 120px); }
  .s03-body { font-size: clamp(19px, 1.35vw, 27px); margin-top: 1.8vw; }

  /* 04 */
  .s04 { padding: 6vw 0 4vw; }
  .eyebrow { font-size: clamp(13px, .8vw, 16px); }
  .s04-title { font-size: clamp(36px, 3.4vw, 66px); }
  .s04-title-up { font-size: clamp(40px, 3.8vw, 78px);}
  .s04-desc { font-size: clamp(19px, 1.2vw, 24px); }
  .rec-car { margin-top: 2.4vw; }
  .rec-car .car-track { padding: 1.4vw calc(50% - 15.6vw) 2vw; gap: 1.6vw; }
  .rec-card { width: 29vw; }
  .rec-card p { font-size: clamp(17px, 1.6vw, 31px); }

  /* 05 */
  .s05 { padding: 5vw 0 2vw; background-position: center; }
  .s05-top { font-size: clamp(16px, 1.15vw, 23px); }
  .s05-top::before, .s05-top::after { content: ''; width: 9vw; height: 1px; background: #b89770; }
  .s05-title { font-size: clamp(36px, 3.4vw, 66px); margin-top: 1vw; }
  .s05-desc { font-size: clamp(18px, 1.15vw, 23px); margin-top: .8vw; }
  .s05-circles { flex-direction: row; justify-content: center; margin-top: 1.4vw; }
  .s05-circles li { width: 19vw; max-width: 380px; }
  .s05-circles li + li { margin-top: 0; margin-left: -1.6vw; }
  .s05-bar { width: 58vw; max-width: none; margin-top: 1.4vw; font-size: clamp(22px, 2vw, 40px); padding: .7vw 1vw; }
  .s05-note { font-size: clamp(13px, .72vw, 15px); margin-top: 1.4vw; }

  /* 06 · 07 */
  .s06, .s07 { padding: 5vw 0 5vw; }
  .ing-top { flex-direction: row; align-items: flex-start; gap: 0; padding: 0; width: 82vw; margin: 0 auto; }
  .ing-scroll { width: 34.1vw; max-width: 700px; flex: 0 0 auto; align-self: flex-start; }
  .s06 .ing-info { flex: 1 1 auto; margin-left: 4vw; padding-top: 1vw; }
  .s07 .ing-scroll { order: 1; width: 36vw; }
  .s07 .ing-info { flex: 1 1 auto; margin-right: 2vw; padding-top: 1.6vw; }
  .ing-head { flex-direction: row; align-items: center; justify-content: space-between; gap: 1vw; }
  .ing-pre { font-size: clamp(22px, 1.75vw, 36px); }
  .ing-name { font-size: clamp(46px, 3.9vw, 80px); }
  .ing-desc { font-size: clamp(19px, 1.2vw, 24px); margin-top: .8vw; }
  .ing-head > div { flex: 1 1 auto; min-width: 0; }
  .ing-books { width: clamp(220px, 17vw, 400px); flex: 0 0 auto; }
  .ing-claim { font-size: clamp(19px, 1.3vw, 26px); margin-top: 2.6vw; }
  .ing-icons { display: flex; justify-content: center; gap: 1.2vw; margin-top: 1.8vw; }
  .ing-icons li { width: 6.8vw; min-width: 104px; }
  .ing-icons img { width: 6vw; max-width: 122px; min-width: 76px; }
  .ing-icons span { font-size: clamp(15px, .95vw, 19px); white-space: nowrap; }
  .ing-icons li.is-sep { padding-left: 1.6vw; border-left: 1px solid rgba(255, 255, 255, .3); }
  .ing-fine { font-size: clamp(12px, .62vw, 13px); margin-top: 2vw; }
  /* .s07 .ing-fine, .s07 .ing-claim { text-align: left; } */

  .panel { width: 81.5vw; margin: 4vw auto 0; padding: 4vw 0 3vw; }
  .panel-title { font-size: clamp(24px, 2vw, 40px); }
  .chart-car { margin-top: 2.6vw; }
  .chart-car .car-track { overflow: visible; justify-content: center; gap: 1.2vw; padding: 0 2vw; scroll-snap-type: none; }
  .chart-car .car-item { width: calc((100% - 4vw - 4.8vw) / 5); max-width: 340px; }
  .chart-car--4 .car-item { width: calc((100% - 4vw - 3.6vw) / 4); max-width: 400px; }
  .chart-car .car-ctrl { display: none; }
  .panel-fine { font-size: clamp(12px, .66vw, 14px); margin-top: 2.4vw; }
  .panel-hr { margin: 3vw 2vw; }
  .panel-adas img { width: 23vw; max-width: 460px; }

  /* 08 */
  .s08 { min-height: max(100vh, 47.4vw); justify-content: flex-end; background: #e0d4c9; }
  .s08-visual { height: 47.4vw; }
  .s08-text { position: relative; margin-left: 10vw; width: 32vw; min-width: 430px; height: 47.4vw; display: flex; flex-direction: column; justify-content: center; padding: 0 0 6vw; }
  .s08-note { position: absolute; right: 1.5vw; top: calc(100% - 47.4vw + 2vw); padding: 0; font-size: clamp(13px, .78vw, 15px); }
  .s08-list { position: absolute; left: 10vw; right: 10vw; bottom: 1.4vw; margin: 0; padding-top: 1vw; font-size: clamp(12px, .72vw, 14px); }
  .s08-title { font-size: clamp(44px, 3.75vw, 76px); }
  .s08-dash { margin: 2.4vw 0 2vw; }
  .s08-lead { font-size: clamp(22px, 1.7vw, 34px); }
  .s08-body { font-size: clamp(18px, 1.1vw, 22px); margin-top: 1.3vw; }

  /* 09 */
  .s09 { padding: 5vw 0 3vw; }
  .s09-title { font-size: clamp(32px, 2.6vw, 52px); }
  .s09-desc { font-size: clamp(18px, 1.15vw, 23px); }
  .s09-basis { font-size: clamp(14px, .78vw, 16px); }
  .rev-car .car-track { padding: 1vw calc(50% - 27vw) 2vw; gap: 3vw; }
  .rev-card { width: 54vw; max-width: 1060px; flex-direction: row; align-items: center; gap: 2.2vw; padding: 1.2vw; }
  .rev-card img { width: 46%; }
  .rev-card figcaption { flex: 1 1 auto; padding: 0 2vw 0 0; }
  .rev-card blockquote { font-size: clamp(19px, 1.3vw, 26px); padding-top: 3vw; }
  .rev-card blockquote::before { font-size: clamp(56px, 4vw, 84px); }
  .rev-card cite { font-size: clamp(18px, 1.2vw, 24px); margin-top: 2vw; padding-top: 1.2vw; }

  /* 10 */
  .s10 { min-height: max(100vh, 47.45vw); padding-top: 0; justify-content: space-between; background: linear-gradient(#120d07 50%, #020202 50%); }
  .s10-visual { height: 47.45vw; }
  .s10-head { margin-top: max(2.8vw, calc(50vh - 23.7vw + 2.8vw)); }
  .s10-pre { font-size: clamp(20px, 1.6vw, 32px); }
  .s10-pre::before, .s10-pre::after { flex-basis: 6vw; }
  .s10-title { font-size: clamp(42px, 4.1vw, 82px); }
  .s10-circles { display: none; }
  .s10-foot { position: relative; padding: 0 2vw max(2.2vw, calc(50vh - 23.7vw + 2.2vw)); font-size: clamp(19px, 1.5vw, 30px); }

  /* 11 */
  .s11 { padding: 4.6vw 0 4vw; }
  .s11-in { width: 66.6vw; margin: 0 auto; padding: 0; }
  .s11-pre { font-size: clamp(18px, 1.4vw, 28px); }
  .s11-title { font-size: clamp(40px, 3.8vw, 76px); }
  .s11-steps { flex-direction: row; gap: 2.3vw; margin-top: 2.4vw; }
  .s11-steps li { display: flex; flex-direction: column; align-items: stretch; flex: 1 1 0; gap: 1vw; }
  .s11-steps p { flex-direction: row; align-items: center; justify-content: space-between; gap: 1vw; }
  .s11-steps b { font-size: clamp(40px, 3.4vw, 68px); }
  .s11-steps span { text-align: right; font-size: clamp(17px, 1.15vw, 23px); }
  .s11-caution { display: flex; align-items: center; margin-top: 2.2vw; padding: 1.8vw 2.6vw; }
  .s11-caution h3 { flex: 0 0 auto; font-size: clamp(26px, 2vw, 40px); padding-right: 3vw; margin-right: 3vw; border-right: 1px solid #c8a77a; }
  .s11-caution ul { margin-top: 0; }
  .s11-caution li { font-size: clamp(15px, .95vw, 19px); }

  /* 12 */
  .s12 { min-height: max(100vh, 50vw); justify-content: flex-end; background: #eae4df; }
  .s12-visual { height: 50vw; }
  .s12-in { position: relative; margin-left: 45.5vw; width: 46vw; padding: 3.6vw 0 2vw; min-height: 50vw; display: flex; flex-direction: column; justify-content: center; }
  .s12-pre { font-size: clamp(15px, 1.1vw, 22px); }
  .s12-title { font-size: clamp(28px, 2.5vw, 50px); margin-top: .6vw; }
  .mbr { display: none; }
  .dbform { width: 32.5vw; min-width: 480px; max-width: 660px; margin-top: 1.8vw; padding: 2vw 2.4vw 2vw; }
  .dbform-title { font-size: clamp(21px, 1.6vw, 32px); }
  .db-row span { flex-basis: clamp(80px, 6vw, 120px); font-size: clamp(18px, 1.1vw, 22px); }
  .db-row input { height: clamp(52px, 3vw, 60px); font-size: clamp(18px, 1.1vw, 22px); }
  .db-sex button { height: clamp(52px, 3vw, 60px); font-size: clamp(18px, 1.1vw, 22px); }
  .db-agree { font-size: 15px; gap: 6px 10px; }
  .db-submit { height: clamp(62px, 4vw, 80px); font-size: clamp(24px, 1.75vw, 34px); }

  .foot { padding: 46px 0 56px; }
}

/* 좁은 PC(1024~1279): 겹치지 않게 조금 줄임 */
@media (min-width: 1024px) and (max-width: 1279px) {
  .s12-in { margin-left: 44vw; width: 52vw; }
}

/* PC 1599 이하: 지초 그래프 5개를 3 + 2 로 크게(한 줄 5개면 글자가 너무 작아짐) */
@media (min-width: 1024px) and (max-width: 1599px) {
  .panel { width: 88vw; }
  .chart-car .car-track { flex-wrap: wrap; row-gap: 2.4vw; }
  .chart-car .car-item { width: calc((100% - 4vw - 4.8vw) / 3); max-width: 360px; }
  .chart-car--4 .car-item { width: calc((100% - 4vw - 3.6vw) / 4); }
}

/* 태블릿 세로(600~1023): 모바일 배치에서 그림이 너무 커지지 않게 */
@media (min-width: 600px) and (max-width: 1023px) {
  .s10-visual { height: 64vh; height: 64svh; background-size: auto 112%; }
}

/* =====================================================================
   움직임 — 참고: 아이클타임(아래에서 올라오며 나타남 · 차례 간격), 슬림웨이 work(읽는 순서대로 등장 ·
   금빛 반짝임 · 상담 버튼 떠 있음 · 숫자 올라감), 리피어라(슬라이드 자동 넘김).
   중노년층 대상이라 거리 · 시간을 짧게, 반복 효과는 몇 곳만. 움직임 줄이기 설정이면 모두 끔
   ===================================================================== */

/* 1) 내려가며 나타나기: html.js 일 때만 숨겨 두고 hb.js 가 .in 을 붙임(3초 안에 hb.js 가 안 돌면 rv-all 로 모두 보임) */
.js [data-rv] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .8s cubic-bezier(.2, .75, .25, 1), clip-path .9s cubic-bezier(.3, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
.js [data-rv="fade"] { transform: none; }
.js [data-rv="pop"] { transform: translateY(18px) scale(.86); transition-timing-function: ease, cubic-bezier(.2, 1.3, .4, 1); }
.js [data-rv="left"] { transform: translateX(-46px); }
.js [data-rv="right"] { transform: translateX(46px); }
.js [data-rv="wipe-x"] { transform: none; clip-path: inset(0 100% 0 0); }
.js [data-rv="wipe-y"] { transform: none; clip-path: inset(100% 0 0 0); }
.js [data-rv].in, .rv-all [data-rv] { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* 2) 첫 화면: 차례로 등장 + 배경 천천히 당겨짐 */
.s01-tag, .s01-logo, .s01-sol, .s01-icons li { animation: hb-rise .9s cubic-bezier(.2, .75, .25, 1) both; }
.s01-tag { animation-delay: .25s; }
.s01-logo { animation: hb-logo 1.1s cubic-bezier(.2, .75, .25, 1) .5s both; }
.s01-sol { animation-delay: .95s; }
.s01-icons li:nth-child(1) { animation: hb-pop .7s cubic-bezier(.2, 1.3, .4, 1) 1.2s both; }
.s01-icons li:nth-child(2) { animation: hb-pop .7s cubic-bezier(.2, 1.3, .4, 1) 1.35s both; }
.s01-icons li:nth-child(3) { animation: hb-pop .7s cubic-bezier(.2, 1.3, .4, 1) 1.5s both; }
.s01-visual { animation: hb-zoom 2.8s cubic-bezier(.2, .7, .3, 1) both; transform-origin: 70% 100%; }
/* 활보원 붓글씨 로고 위로 빛이 지나감 */
.s01-logo { position: relative; }
.s01-logo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 246, 214, .95) 50%, transparent 62%) -150% 0 / 250% 100% no-repeat;
  -webkit-mask: url(/new/img/img01_tt_02.png) center / 100% 100% no-repeat;
  mask: url(/new/img/img01_tt_02.png) center / 100% 100% no-repeat;
  animation: hb-sweep 5s ease-in-out 2s infinite;
}

/* 3) 금빛 글자 반짝임(글자색은 그대로, 위로 빛만 지나감) */
/* 위 겹 = 지나가는 빛(양옆 투명), 아래 겹 = 글자색(늘 다 덮음) — 빛이 쉬는 동안 글자 일부가 비지 않게 */
.shine {
  --c: var(--accent);
  --base: linear-gradient(var(--c), var(--c));
  background: linear-gradient(105deg, transparent 40%, rgba(255, 243, 207, .95) 50%, transparent 60%) 120% 0 / 250% 100% no-repeat, var(--base);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hb-shine 5.5s ease-in-out 1.5s infinite;
}
.s01-tag .shine { --c: var(--gold-lt); }
.s10-title em.shine { --base: linear-gradient(180deg, #f6d8a6, #c98b45); }

/* 4) 금빛 입자(01 · 10 어두운 구간) — hb.js 가 점을 만들어 넣음 */
.sparkle { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.sparkle i {
  position: absolute; bottom: -10px; width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%;
  background: radial-gradient(circle, #fff6d8 0, #f2c46d 45%, rgba(242, 196, 109, 0) 70%);
  opacity: 0; animation: hb-float var(--t, 9s) linear var(--d, 0s) infinite;
}

/* 5) 따라다니는 상담 버튼: 살짝 떠 있고, 둘레가 퍼짐 */
.float-cta:not(.is-hide) { animation: hb-bob 1.6s ease-in-out infinite alternate; }
.float-cta:focus-visible { animation-play-state: paused; }
/* 마우스를 올렸을 때만(휴대폰은 누른 뒤 hover 가 그대로 남으므로 제외) */
@media (hover: hover) and (pointer: fine) {
  .float-cta:hover { animation-play-state: paused; }   /* 누르려고 마우스를 올리면 멈춤 */
}
.float-cta::after {
  content: ''; position: absolute; inset: -3px; border-radius: inherit; pointer-events: none;
  border: 2px solid rgba(239, 207, 149, .9);
  animation: hb-ring 2.4s ease-out infinite;
}

/* 6) 상담 신청 버튼 위로 빛이 지나감 */
.db-submit { position: relative; overflow: hidden; }
.db-submit::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-18deg); animation: hb-btn 3.6s ease-in-out 1s infinite;
}

/* 맨 위로(오른쪽 아래 떠 있는 버튼) — 첫 화면을 조금 지나면 나타남 */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 58px; height: 58px; padding: 0; border-radius: 50%;
  border: 2px solid rgba(239, 207, 149, .85);
  background: rgba(28, 23, 18, .9); color: var(--gold-lt);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility 0s .3s, background-color .2s;
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s, background-color .2s; }
.to-top i { width: 12px; height: 12px; border-left: 3px solid currentColor; border-top: 3px solid currentColor; transform: translateY(3px) rotate(45deg); }
.to-top span { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .06em; line-height: 1; }
@media (hover: hover) and (pointer: fine) {
  .to-top:hover { background: var(--red); }   /* 휴대폰은 누른 뒤 hover 가 남아 색이 안 돌아오므로 마우스일 때만 */
}
.to-top:active { background: var(--red); }   /* 누르는 순간에만 */
.to-top:focus-visible { outline: 3px solid #ffd27a; outline-offset: 3px; }
@media (min-width: 1024px) {
  .to-top { right: 28px; bottom: 28px; width: 66px; height: 66px; }
  .to-top span { font-size: 13px; }
}

/* 7) 아래로 안내 */
.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; z-index: 2; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: rgba(255, 255, 255, .85); text-decoration: none; font-size: 12px; letter-spacing: .3em; padding-left: .3em;
  animation: hb-cue 1.8s ease-in-out infinite;
}
.scroll-cue i { width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.scroll-cue.is-gone { opacity: 0; pointer-events: none; transition: opacity .4s; }

/* 8) 5 · 10 원형 그림: 나타난 뒤 은은한 빛 */
.s05-circles li.in img, .s10-circles li.in img { animation: hb-glow 3.2s ease-in-out 1.2s infinite; }

@keyframes hb-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hb-logo { from { opacity: 0; transform: scale(.92); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hb-pop { from { opacity: 0; transform: translateY(14px) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes hb-zoom { from { transform: scale(1.07); } to { transform: none; } }
@keyframes hb-sweep { 0% { background-position: -150% 0; } 45%, 100% { background-position: 250% 0; } }
@keyframes hb-shine { 0% { background-position: 120% 0; } 40%, 100% { background-position: -20% 0; } }
@keyframes hb-float {
  0% { opacity: 0; transform: translate(0, 0); }
  15% { opacity: var(--o, .8); }
  85% { opacity: var(--o, .8); }
  100% { opacity: 0; transform: translate(var(--x, 20px), -70vh); }
}
@keyframes hb-bob { from { transform: translateY(0); } to { transform: translateY(5px); } }
@keyframes hb-ring { 0% { opacity: .9; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.18, 1.45); } }
@keyframes hb-btn { 0% { left: -40%; } 45%, 100% { left: 130%; } }
@keyframes hb-cue { 0%, 100% { transform: translate(-50%, 0); opacity: .85; } 50% { transform: translate(-50%, 8px); opacity: .5; } }
@keyframes hb-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(242, 196, 109, 0)); } 50% { filter: drop-shadow(0 0 14px rgba(242, 196, 109, .55)); } }

/* 모바일: 첫 화면 아래로 안내는 그림 위 */
@media (max-width: 1023px) {
  .scroll-cue { bottom: 12px; }
}

/* 움직임 줄이기 설정(Windows '애니메이션 효과' 끔 등): 자리가 바뀌는 움직임(떠오름 · 튀어나옴 · 당겨짐 · 입자 ·
   떠 있음 · 자동 넘김)은 끄고, 서서히 나타나기와 금빛 반짝임처럼 자리가 그대로인 효과만 남김.
   주소 끝에 ?motion=full 을 붙이면(html.fm) 이 설정과 상관없이 전체 움직임을 보여 줌(미리보기용) */
@media (prefers-reduced-motion: reduce) {
  html:not(.fm) { scroll-behavior: auto; }
  html:not(.fm).js [data-rv] { transform: none !important; clip-path: none !important; transition: opacity .7s ease; transition-delay: var(--d, 0s); }
  html:not(.fm) .s01-tag, html:not(.fm) .s01-logo, html:not(.fm) .s01-sol, html:not(.fm) .s01-icons li { animation-name: hb-fade !important; }
  html:not(.fm) .s01-visual, html:not(.fm) .float-cta, html:not(.fm) .float-cta:not(.is-hide), html:not(.fm) .scroll-cue { animation: none !important; }
  html:not(.fm) .sparkle, html:not(.fm) .float-cta::after { display: none; }
}
@keyframes hb-fade { from { opacity: 0; } to { opacity: 1; } }
