/* buzz 템플릿 단일 CSS. 색상 변수(--c1 --c2 --c3 --d1 --d2 --d3 --rgb1 --rgb2)는
   각 html 의 <style> 에서 common.json theme 으로 주입된다. 이 파일엔 토큰을 쓰지 마라(치환 없이 복사됨). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	color: var(--d2);
	background: #fff;
	word-break: keep-all;
	overflow-wrap: anywhere;
}
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; color: var(--d1); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
a { color: var(--d3); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
svg { display: inline-block; vertical-align: middle; }
:focus-visible { outline: 3px solid rgba(var(--rgb1), .55); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sec { padding: 56px 0; }
.sec-h { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.sec-h p { color: #5c6875; font-size: 17px; }
.acc { color: var(--c1); }

/* ── 버튼 ── */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 26px; border-radius: 12px; border: 0; cursor: pointer;
	background: linear-gradient(135deg, var(--c1), var(--c3));
	color: #fff; font-weight: 800; font-size: 16px; letter-spacing: .01em;
	box-shadow: 0 8px 22px rgba(var(--rgb1), .28);
	transition: transform .15s, box-shadow .15s;
}
.btn:hover, .btn:focus { color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(var(--rgb1), .34); }
.btn-lg { padding: 18px 36px; font-size: 18px; border-radius: 14px; }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 10px; box-shadow: none; }
.btn-ghost { background: #fff; color: var(--d3); border: 2px solid rgba(var(--rgb1), .3); box-shadow: none; }
.btn-ghost:hover, .btn-ghost:focus { color: var(--d3); border-color: var(--c1); box-shadow: none; }
.btn-block { display: flex; width: 100%; }
.btn svg { flex-shrink: 0; }

/* ── 헤더 ── */
.hdr { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid #eef1f5; transition: box-shadow .2s; }
.hdr.scrolled { box-shadow: 0 4px 18px rgba(var(--rgb1), .1); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 900; color: var(--d1); letter-spacing: -.02em; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo img { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; } /* 파비콘(icon.png) 그대로 사용 */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--d2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav a:not(.btn):hover { background-color: rgba(var(--rgb1), .08); text-decoration: none; } /* .btn 은 제외: background 축약이 그라디언트를 지워 흰 글자만 남는다 */
.nav .btn { margin-left: 8px; color: #fff; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--d1); cursor: pointer; border-radius: 10px; }
.burger:hover { background: rgba(var(--rgb1), .08); }
.burger .x { display: none; }
.menu-open .burger .x { display: block; }
.menu-open .burger .bars { display: none; }
@media (max-width: 860px) {
	.burger { display: inline-flex; align-items: center; justify-content: center; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid #eef1f5; box-shadow: 0 16px 30px rgba(var(--rgb1), .12); }
	.menu-open .nav { display: flex; }
	.nav a { padding: 12px 10px; font-size: 16px; }
	.nav .btn { margin: 10px 0 0; }
}

/* ── 히어로 ── */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; text-align: center; background: linear-gradient(180deg, rgba(var(--rgb1), .1), rgba(var(--rgb2), .06) 60%, #fff); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; pointer-events: none; }
.hero::before { width: 420px; height: 420px; left: -140px; top: -120px; background: var(--c3); }
.hero::after { width: 380px; height: 380px; right: -120px; bottom: -160px; background: var(--c1); }
.hero .wrap { position: relative; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--d3); font-weight: 700; font-size: 13px; box-shadow: 0 2px 10px rgba(var(--rgb1), .14); margin-bottom: 18px; }
.hero h1 { font-size: 44px; max-width: 820px; margin: 0 auto 16px; }
.hero .sub { font-size: 18px; color: #4b5763; max-width: 640px; margin: 0 auto 28px; }
.hero .note { font-size: 14px; color: #6b7682; margin: 14px 0 0; }
.stats { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding: 0; list-style: none; }
.stats li { min-width: 150px; padding: 14px 20px; border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(var(--rgb1), .12); }
.stats b { display: block; font-size: 24px; color: var(--c1); line-height: 1.2; }
.stats span { font-size: 13px; color: #6b7682; font-weight: 600; }

/* ── intro 2블록 ── */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px 0; }
.intro:nth-child(even) .intro-art { order: -1; }
.intro h2 { font-size: 30px; }
.intro p { color: #4b5763; font-size: 17px; }
.intro-art { display: flex; justify-content: center; }
.intro-art svg { width: 100%; max-width: 380px; height: auto; }

/* ── 서비스 카드 ── */
.svc { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; padding: 40px; border-radius: 24px; margin-bottom: 28px; border: 1px solid rgba(var(--rgb1), .12); }
.svc:nth-child(odd) { background: linear-gradient(160deg, rgba(var(--rgb1), .1), rgba(var(--rgb2), .05)); }
.svc:nth-child(even) { background: linear-gradient(160deg, #f8fafc, rgba(var(--rgb2), .08)); }
.svc-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.svc-head h2 { margin: 0; font-size: 28px; }
.ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--c1); box-shadow: 0 4px 14px rgba(var(--rgb1), .16); flex-shrink: 0; }
.ic svg { display: none; width: 28px; height: 28px; }
.ic-sm { width: 40px; height: 40px; border-radius: 11px; }
.ic-sm svg { width: 22px; height: 22px; }
[data-icon="views"] .ic-views, [data-icon="subscribers"] .ic-subscribers, [data-icon="watchtime"] .ic-watchtime,
[data-icon="likes"] .ic-likes, [data-icon="comments"] .ic-comments, [data-icon="shares"] .ic-shares { display: block; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--c1), var(--c3)); color: #fff; font-size: 12px; font-weight: 800; }
.checks { list-style: none; padding: 0; margin: 0 0 18px; }
.checks li { position: relative; padding: 5px 0 5px 28px; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%; background: var(--c1); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 13px; width: 5px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.price { font-size: 20px; font-weight: 800; color: var(--d1); margin: 0 0 16px; }
.price small { display: block; font-size: 13px; color: #6b7682; font-weight: 600; }
.svc-actions { display: flex; flex-direction: column; gap: 10px; }
.svc-actions .link { text-align: center; font-weight: 700; }
.svc-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.mini { background: #fff; border-radius: 18px; padding: 22px 18px; box-shadow: 0 6px 20px rgba(var(--rgb1), .1); text-align: center; }
.mini h3 { font-size: 17px; margin-bottom: 10px; }
.mini p { font-size: 14.5px; color: #4b5763; margin: 0; }
/* 접힘 + 더보기: 텍스트는 항상 DOM 에 있고 높이만 잘라 보여준다 */
.more { position: relative; max-height: 150px; overflow: hidden; padding-bottom: 34px; transition: max-height .3s; }
.more::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(rgba(255, 255, 255, 0), #fff 55%); pointer-events: none; }
.more.open { max-height: none; }
.more.open::after { display: none; }
.more-btn { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 1; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #e3e8ee; background: #fff; color: var(--d2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.more.open .more-btn { display: none; }

/* ── 3열 카드 (why / trust / 다른 서비스) ── */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid #eef1f5; border-radius: 18px; padding: 26px 24px; box-shadow: 0 6px 22px rgba(var(--rgb1), .08); }
.card h3 { margin-bottom: 8px; }
.card p { color: #4b5763; margin: 0; font-size: 15.5px; }
.card .num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c3)); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.tint { background: linear-gradient(180deg, rgba(var(--rgb2), .08), #fff); }
.trust-p { text-align: center; max-width: 720px; margin: 0 auto 32px; color: #4b5763; font-size: 17px; }

/* 소형 상품 카드 (상품/글 페이지의 다른 서비스) */
.pcard { display: flex; flex-direction: column; gap: 8px; }
.pcard h2, .pcard h3 { font-size: 18px; margin: 4px 0 0; }
.pcard .price { font-size: 16px; margin: 0; }
.pcard a.link { font-weight: 700; margin-top: auto; }

/* ── FAQ ── */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details { background: #fff; border: 1px solid #e6ebf0; border-radius: 14px; margin-bottom: 10px; padding: 0 20px; }
.faq-list summary { cursor: pointer; padding: 16px 30px 16px 0; font-weight: 700; color: var(--d1); list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--c1); font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-a { padding: 0 0 18px; color: #4b5763; }
.faq-a p:last-child { margin-bottom: 0; }

/* ── 글 목록 ── */
.plist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.plist a { display: block; padding: 16px 18px; background: #fff; border: 1px solid #e6ebf0; border-radius: 14px; color: var(--d1); font-weight: 700; }
.plist a:hover { border-color: var(--c1); text-decoration: none; }
.empty { text-align: center; color: #6b7682; }

/* ── CTA 밴드 ── */
.band { background: linear-gradient(135deg, var(--d1), var(--d3)); color: #fff; padding: 64px 0; text-align: center; }
.band h2 { color: #fff; font-size: 30px; }
.band p { color: rgba(255, 255, 255, .8); font-size: 17px; max-width: 640px; margin: 0 auto 28px; }
.band .btn { background: #fff; color: var(--d3); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.band .btn:hover { color: var(--d3); }

/* ── 푸터 ── */
.ftr { background: #f7f9fb; border-top: 1px solid #e6ebf0; padding: 48px 0 32px; font-size: 14px; color: #5c6875; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.ftr h3 { font-size: 15px; margin-bottom: 12px; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin-bottom: 8px; }
.ftr a { color: #5c6875; }
.ftr-biz { border-top: 1px solid #e6ebf0; padding-top: 20px; font-size: 13px; line-height: 1.8; }
.ftr-biz b { color: var(--d2); font-weight: 600; }
.biz-img { display: block; max-width: 100%; height: auto; margin-top: 6px; }
.ftr-links { display: flex; gap: 16px; margin-bottom: 8px; font-weight: 600; }

/* ── 상품 / 글 페이지 ── */
.phero { padding: 56px 0 40px; background: linear-gradient(180deg, rgba(var(--rgb1), .1), #fff); }
.phero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.phero h1 { font-size: 38px; }
.phero .lead { font-size: 18px; color: #4b5763; margin-bottom: 24px; }
.summary { background: #fff; border-radius: 20px; padding: 26px; box-shadow: 0 10px 30px rgba(var(--rgb1), .14); }
.summary .price { font-size: 22px; padding-bottom: 14px; border-bottom: 1px solid #eef1f5; }
.summary .checks { margin: 0; }
.prose { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.75; }
.prose section { margin-bottom: 40px; }
.prose h2 { font-size: 24px; margin-top: 0; }
.prose h3 { font-size: 19px; margin-top: 1.4em; }
.prose blockquote { margin: 1.2em 0; padding: 14px 20px; border-left: 4px solid var(--c1); background: rgba(var(--rgb1), .06); border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15.5px; }
.prose th, .prose td { border: 1px solid #e6ebf0; padding: 10px 12px; text-align: left; }
.prose th { background: rgba(var(--rgb1), .07); }
.prose a { text-decoration: underline; }
.prose .btn { text-decoration: none; }
.post-date { color: #6b7682; font-size: 14px; margin-bottom: 28px; }
.post-cta { text-align: center; margin: 40px 0; }
.scroll-x { overflow-x: auto; }

/* ── 스토어 하단 고정 바 (site.js 가 붙인다) ── */
.shop-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: #fff; border-top: 1px solid #edf1f5; box-shadow: 0 -6px 20px rgba(var(--rgb1), .14); text-align: center; padding: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.shop-fab { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 420px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c3)); color: #fff; font-size: 16.5px; font-weight: 800; padding: 13px 28px; border-radius: 12px; }
.shop-fab:hover, .shop-fab:focus { color: #fff; text-decoration: none; }
.shop-fab::after { content: ""; position: absolute; top: 0; left: -40%; width: 30%; height: 100%; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .35) 50%, transparent 80%); animation: shopShine 3.2s infinite; }
@keyframes shopShine { 0% { left: -40%; } 60%, 100% { left: 120%; } }
body.has-shop-bar { padding-bottom: 68px; }

/* ── 반응형 ── */
@media (max-width: 900px) {
	.svc { grid-template-columns: 1fr; padding: 28px 22px; }
	.phero-grid { grid-template-columns: 1fr; }
	.ftr-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	h1, .hero h1, .phero h1 { font-size: 30px; }
	h2, .svc-head h2, .intro h2, .band h2 { font-size: 23px; }
	.sec { padding: 40px 0; }
	.hero { padding: 44px 0 40px; }
	.hero .sub { font-size: 16px; }
	.stats li { min-width: 0; flex: 1 1 30%; padding: 12px 10px; }
	.stats b { font-size: 19px; }
	.intro { grid-template-columns: 1fr; gap: 20px; }
	.intro:nth-child(even) .intro-art { order: 0; }
	.svc-side { grid-template-columns: 1fr; }
	.grid3 { grid-template-columns: 1fr; }
	.ftr-grid { grid-template-columns: 1fr; gap: 24px; }
	.ftr-links { flex-wrap: wrap; }
	.btn-lg { width: 100%; padding: 16px 20px; font-size: 17px; }
	.shop-fab { min-width: 0; width: calc(100% - 24px); font-size: 15px; padding: 13px 16px; }
	body.has-shop-bar { padding-bottom: 66px; }
	.prose { font-size: 16px; }
}
