/* 현담·봉구 — clean white, mobile-first.
   Layout: quiet white page, characters carry the color. Each character owns one accent:
   봉구 = jade green + gold (his robe), 현담 = deep indigo + silver (his robe).
   After a character is chosen, body[data-character] retints buttons, progress and selections. */
@font-face{font-family:'Pretendard';src:url('assets/fonts/pretendard-regular.subset.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Pretendard';src:url('assets/fonts/pretendard-semibold.subset.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Pretendard';src:url('assets/fonts/pretendard-bold.subset.woff2') format('woff2');font-weight:700 800;font-style:normal;font-display:swap}

:root{
  color-scheme:light;
  --bg:#ffffff;--surface:#f6f6f4;--surface-2:#efefec;
  --ink:#15171c;--sub:#555b63;--faint:#8a9097;--line:#e6e6e3;--line-2:#d6d7d4;
  /* B. deep tones — desaturated so the photos carry the color; champagne / silver-blue ink on buttons */
  --bonggu:#2e4a3e;--bonggu-ink:#f4ead6;--bonggu-soft:#eef2ef;--bonggu-gold:#b89b6e;
  --hyundam:#1f2a3d;--hyundam-ink:#e3e8f1;--hyundam-soft:#eef1f6;--hyundam-silver:#8a9bb0;
  --accent:var(--ink);--accent-ink:#ffffff;--accent-soft:var(--surface);
  --danger:#c2412d;--warn-bg:#fdf6e7;--warn-ink:#7a5410;
  --radius:18px;--gutter:20px;
  --font:'Pretendard','Apple SD Gothic Neo','Malgun Gothic','Noto Sans KR',system-ui,sans-serif;
}
body[data-character=bonggu]{--accent:var(--bonggu);--accent-ink:var(--bonggu-ink);--accent-soft:var(--bonggu-soft)}
body[data-character=hyundam]{--accent:var(--hyundam);--accent-ink:var(--hyundam-ink);--accent-soft:var(--hyundam-soft)}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:72px}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.65;letter-spacing:-.01em;
  word-break:keep-all;overflow-wrap:break-word;-webkit-font-smoothing:antialiased}
h1,h2,h3,p{margin:0}
h1,h2{text-wrap:balance}
a{color:inherit}
button,input,select,textarea{font:inherit;color:inherit;letter-spacing:inherit}
button{cursor:pointer}
img,video{display:block;max-width:100%}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.skip-link{position:absolute;left:-999px;top:8px;background:var(--ink);color:#fff;padding:8px 12px;border-radius:8px;z-index:50}
.skip-link:focus{left:8px}

.status-banner{background:var(--warn-bg);color:var(--warn-ink);font-size:14px;line-height:1.5;text-align:center;padding:10px var(--gutter)}

/* header */
.site-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px var(--gutter);background:#ffffffeb;backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid var(--line)}
.wordmark{font-weight:700;font-size:19px;letter-spacing:-.04em;text-decoration:none;white-space:nowrap}
.wordmark .mark{color:var(--bonggu-gold);margin-right:7px;font-size:14px}
.wordmark .dot{color:var(--faint);padding:0 3px}
.wordmark.small{font-size:17px}
.site-header nav{display:flex;gap:18px;font-size:15px;color:var(--sub)}
.site-header nav a{text-decoration:none;padding:6px 0}
.site-header nav a:hover{color:var(--ink)}
@media(max-width:420px){.site-header nav a:nth-child(3){display:none}}

/* hero */
.hero{text-align:center;padding:44px var(--gutter) 30px;max-width:640px;margin:0 auto}
.eyebrow{display:inline-block;color:var(--sub);font-size:14px;font-weight:600;padding:6px 12px;border-radius:999px;background:var(--surface)}
.hero h1{font-size:clamp(30px,8vw,50px);font-weight:700;line-height:1.28;letter-spacing:-.05em;margin:16px 0 12px}
.hero h1 em{font-style:normal;color:var(--hyundam)}
.lead{color:var(--sub);font-size:17px;line-height:1.7}

/* guides */
.guides{display:grid;gap:36px;padding:0 var(--gutter);max-width:1040px;margin:0 auto}
@media(min-width:760px){.guides{grid-template-columns:1fr 1fr;gap:28px}}
.guide{display:flex;flex-direction:column;min-width:0}
.media{position:relative;aspect-ratio:4/5;max-width:100%;border-radius:24px;overflow:hidden;background:var(--surface-2);
  box-shadow:0 1px 2px #0000000d,0 12px 32px -12px #00000033}
.guide-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 20%}
.media-controls{position:absolute;top:14px;right:14px;display:flex;gap:8px;z-index:2}
.ctl{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border-radius:999px;border:0;
  background:#ffffffe6;color:var(--ink);font-size:14px;font-weight:600;box-shadow:0 2px 10px #00000026;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.ctl.pause{width:40px;padding:0;justify-content:center;font-size:13px}
.guide[data-character=bonggu] .ctl.sound[aria-pressed=true]{background:var(--bonggu);color:var(--bonggu-ink)}
.guide[data-character=hyundam] .ctl.sound[aria-pressed=true]{background:var(--hyundam);color:var(--hyundam-ink)}
.ctl-icon{font-size:15px;line-height:1}
.guide-body{padding:20px 4px 0;display:flex;flex-direction:column;gap:6px}
.tag{font-size:14px;font-weight:600}
.guide[data-character=bonggu] .tag{color:var(--bonggu)}
.guide[data-character=hyundam] .tag{color:var(--hyundam)}
.guide h2{font-size:30px;font-weight:700;letter-spacing:-.05em;line-height:1.25}
.quote{font-size:18px;font-weight:600;line-height:1.5;letter-spacing:-.03em}
.guide-desc{color:var(--sub);font-size:15px;line-height:1.7;margin-top:2px}
.guide .btn{margin-top:14px;width:100%}
.autoplay-note{text-align:center;color:var(--faint);font-size:14px;padding:22px var(--gutter) 0}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:56px;padding:0 22px;border-radius:14px;
  border:1px solid transparent;font-size:17px;font-weight:700;letter-spacing:-.03em;text-decoration:none;transition:filter .15s,transform .15s,background .15s}
.btn:active{transform:scale(.99)}
.btn:disabled{opacity:.35;cursor:not-allowed}
.btn-primary{background:var(--accent);color:var(--accent-ink)}
.btn-primary:hover:not(:disabled),.btn-bonggu:hover,.btn-hyundam:hover{filter:brightness(1.12)}
.btn-bonggu{background:var(--bonggu);color:var(--bonggu-ink)}
.btn-hyundam{background:var(--hyundam);color:var(--hyundam-ink)}
.btn-ghost{background:var(--bg);border-color:var(--line-2);color:var(--ink);font-weight:600}
.btn-ghost:hover{background:var(--surface)}
.btn-wide{width:100%}
.back{background:none;border:0;color:var(--sub);font-size:15px;padding:8px 0;min-height:44px}

/* sections */
.section{max-width:760px;margin:0 auto;padding:72px var(--gutter) 0}
.section h2{font-size:26px;font-weight:700;letter-spacing:-.05em;line-height:1.35;margin-bottom:22px}
.steps-list{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.steps-list li{display:flex;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}
.steps-list li:last-child{border-bottom:0}
.num{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--ink);color:#fff;font-weight:700;font-size:14px}
.steps-list strong{font-size:17px;font-weight:700}
.steps-list p{color:var(--sub);font-size:15px;margin-top:2px}
.promise-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
@media(min-width:640px){.promise-list{grid-template-columns:repeat(3,1fr)}}
.promise-list li{padding:20px;background:var(--surface);border-radius:var(--radius)}
.promise-list strong{display:block;font-size:17px;margin-bottom:4px}
.promise-list span{color:var(--sub);font-size:15px}
.faq details{border-bottom:1px solid var(--line)}
.faq details:first-of-type{border-top:1px solid var(--line)}
.faq summary{list-style:none;cursor:pointer;padding:18px 32px 18px 0;font-size:16px;font-weight:600;position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'';position:absolute;right:6px;top:24px;width:9px;height:9px;border-right:2px solid var(--faint);border-bottom:2px solid var(--faint);transform:rotate(45deg);transition:transform .2s}
.faq details[open] summary::after{transform:rotate(-135deg);top:28px}
.faq details p{color:var(--sub);font-size:15px;padding:0 0 18px}

/* flow pages */
.flow{max-width:560px;margin:0 auto;padding:12px var(--gutter) 40px}
.center-flow{text-align:center;padding-top:80px}
.flow-head{display:flex;align-items:center;gap:14px;margin:10px 0 20px}
.avatar{width:60px;height:60px;border-radius:50%;object-fit:cover;object-position:50% 18%;box-shadow:0 0 0 3px var(--bg),0 0 0 5px var(--accent)}
.flow-who{color:var(--accent);font-size:15px;font-weight:700}
.flow-title{font-size:24px;font-weight:700;letter-spacing:-.05em;line-height:1.4;margin:4px 0 10px}
.muted{color:var(--sub);font-size:15px}
.progress{list-style:none;display:flex;gap:6px;padding:0;margin:4px 0 24px;font-size:13px;color:var(--faint)}
.progress li{flex:1;padding-top:9px;border-top:3px solid var(--line);text-align:center;line-height:1.4}
.progress li.on{border-color:var(--accent);color:var(--ink);font-weight:700}
.progress li.done{border-color:var(--accent);opacity:.45}

.products{border:0;margin:0 0 20px;padding:0;display:grid;gap:10px}
.product{position:relative;display:block;cursor:pointer}
.product input{position:absolute;opacity:0;pointer-events:none}
.product-body{display:block;padding:18px 18px 18px 52px;border:1.5px solid var(--line);border-radius:var(--radius);background:var(--bg);transition:border-color .15s,background .15s}
.product-body::before{content:'';position:absolute;left:18px;top:22px;width:20px;height:20px;border-radius:50%;border:2px solid var(--line-2);background:var(--bg)}
.product input:checked+.product-body{border-color:var(--accent);background:var(--accent-soft)}
.product input:checked+.product-body::before{border-color:var(--accent);background:radial-gradient(circle,var(--accent) 0 5px,var(--bg) 6px)}
.product input:focus-visible+.product-body{outline:2px solid var(--accent);outline-offset:2px}
.product-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.product-top strong{font-size:18px;font-weight:700}
.price{font-size:17px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.price.pending{font-size:14px;font-weight:500;color:var(--faint)}
.product-sub{display:block;color:var(--ink);font-size:15px;margin-top:2px}
.includes{display:block;color:var(--sub);font-size:14px;line-height:1.65;margin-top:8px}

.facts{margin:0 0 14px}
.facts>div{display:grid;grid-template-columns:92px 1fr;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.facts>div:first-child{border-top:1px solid var(--line)}
.facts dt{color:var(--faint);font-size:14px}
.facts dd{margin:0;font-size:15px;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}
.summary dd{font-weight:700;font-variant-numeric:tabular-nums}
.note{color:var(--faint);font-size:14px;margin-bottom:20px}
.closed-note{margin:12px 0;padding:12px 14px;border-radius:12px;background:var(--warn-bg);color:var(--warn-ink);font-size:15px}
#preview-intake{margin-top:4px}

/* forms */
.field{display:block;margin-bottom:18px}
.label{display:block;font-size:15px;font-weight:600;margin-bottom:7px}
.hint{display:block;color:var(--faint);font-size:13px;line-height:1.6;margin-top:6px}
.hint.center{text-align:center}
input[type=text],input[type=email],input[type=tel],input[type=date],input[type=time],input:not([type]),select,textarea{
  width:100%;min-height:52px;padding:13px 15px;border-radius:12px;border:1.5px solid var(--line);background:var(--surface);font-size:16px;color:var(--ink);transition:border-color .15s,background .15s}
input::placeholder,textarea::placeholder{color:#a3a8ae}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);background:var(--bg)}
input:disabled{opacity:.5}
textarea{resize:vertical;min-height:130px;line-height:1.6}
select{appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--sub) 50%),linear-gradient(135deg,var(--sub) 50%,transparent 50%);
  background-position:calc(100% - 20px) 23px,calc(100% - 14px) 23px;background-size:6px 6px;background-repeat:no-repeat;padding-right:36px}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:end}
.field-row .field{margin-bottom:18px;min-width:0}
.check{display:flex;gap:10px;align-items:flex-start;font-size:15px;line-height:1.6;margin:4px 0 18px;cursor:pointer;color:var(--sub)}
.check input{flex:none;width:22px;height:22px;margin:1px 0 0;accent-color:var(--accent)}
.check.inline{align-self:center;margin:0 0 18px;min-height:52px;align-items:center;color:var(--ink)}
.error{color:var(--danger);font-size:15px;font-weight:600;margin:0 0 12px}
.preview-flag{margin:0 0 12px;padding:10px 14px;border-radius:12px;background:var(--warn-bg);color:var(--warn-ink);font-size:14px}
#confirm-edit{margin-top:10px}

.spinner{width:44px;height:44px;margin:0 auto 18px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--accent);animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.status-list{list-style:none;padding:0;margin:10px 0 18px;display:grid;gap:8px}
.status-list li{display:flex;justify-content:space-between;gap:10px;padding:14px 16px;border-radius:14px;background:var(--surface);font-size:15px}
.status-list li>span:first-child{font-weight:600}
.status-list .state{color:var(--faint);text-align:right}
.status-list .state.ok{color:var(--accent);font-weight:600}

.site-footer{margin-top:80px;padding:36px var(--gutter) calc(44px + env(safe-area-inset-bottom));background:var(--surface);text-align:center;color:var(--faint);font-size:13px;line-height:1.75}
.site-footer .wordmark{color:var(--ink)}
.site-footer .seller{max-width:560px;margin:12px auto}
.site-footer .fine{margin-top:8px}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}

/* chat — messenger-like, character-tinted */
.chat{max-width:560px;margin:0 auto;display:flex;flex-direction:column;min-height:calc(100dvh - 64px)}
.chat-head{position:sticky;top:61px;z-index:5;display:flex;align-items:center;gap:12px;padding:10px var(--gutter);background:#ffffffee;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.chat-back{border:0;background:none;font-size:22px;width:36px;height:40px;color:var(--sub)}
.chat-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;object-position:50% 18%;box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--accent)}
.chat-who{display:flex;flex-direction:column;line-height:1.3}
.chat-who strong{font-size:17px}
.chat-who span{font-size:13px;color:var(--accent);font-weight:600}
.chat-log{flex:1;display:flex;flex-direction:column;gap:8px;padding:18px var(--gutter) 12px}
.msg{max-width:84%;padding:11px 15px;border-radius:20px;font-size:16px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;animation:pop .22s ease-out}
.msg.bot{align-self:flex-start;background:var(--surface);color:var(--ink);border-top-left-radius:6px}
.msg.me{align-self:flex-end;background:var(--accent);color:var(--accent-ink);border-top-right-radius:6px}
.msg.notice{align-self:center;max-width:100%;background:var(--warn-bg);color:var(--warn-ink);font-size:13px;border-radius:12px;text-align:center}
.msg.typing{display:flex;gap:5px;padding:15px 16px}
.msg.typing i{width:7px;height:7px;border-radius:50%;background:var(--faint);animation:blink 1.1s infinite}
.msg.typing i:nth-child(2){animation-delay:.18s}.msg.typing i:nth-child(3){animation-delay:.36s}
@keyframes blink{0%,80%,100%{opacity:.25}40%{opacity:1}}
@keyframes pop{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.offer{align-self:stretch;margin:4px 0;padding:18px;border-radius:20px;border:1.5px solid var(--accent);background:var(--accent-soft)}
.offer-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:10px}
.offer-head strong{font-size:18px}
.offer-price{font-weight:700;font-size:17px;font-variant-numeric:tabular-nums}
.offer-price.pending{font-size:14px;font-weight:500;color:var(--faint)}
.offer ul{margin:0;padding:0;list-style:none;display:grid;gap:6px}
.offer li{position:relative;padding-left:22px;font-size:15px}
.offer li::before{content:'';position:absolute;left:2px;top:9px;width:10px;height:6px;border-left:2px solid var(--accent);border-bottom:2px solid var(--accent);transform:rotate(-45deg)}
.offer li.mine{font-weight:700}
.offer-foot{margin-top:12px;font-size:13px;color:var(--sub)}
.composer{position:sticky;bottom:0;padding:12px var(--gutter) calc(14px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#ffffff00,var(--bg) 22%)}
.composer:empty{padding:0}
.chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.chip{min-height:44px;padding:9px 16px;border-radius:999px;border:1.5px solid var(--accent);background:var(--bg);color:var(--accent);font-size:15px;font-weight:600;text-align:left}
.chip:hover{background:var(--accent-soft)}
.chip.ghost{border-color:var(--line-2);color:var(--sub);margin-top:8px;float:right}
.composer-form::after{content:'';display:block;clear:both}
.composer-row{display:flex;gap:8px;align-items:flex-end}
.composer-row input,.composer-row textarea{flex:1;min-width:0;border-radius:22px;min-height:48px;background:var(--surface)}
.composer-row textarea{min-height:48px;resize:none}
.send{flex:none;min-height:48px;padding:0 18px;border-radius:24px;border:0;background:var(--accent);color:var(--accent-ink);font-weight:700;font-size:15px}
.composer-error{color:var(--danger);font-size:14px;margin-top:6px}
.flow-title{white-space:pre-line}
.guide .quote{min-height:3em}
@media(min-width:760px){.guide-desc{min-height:3.4em}}
/* policy page */
.policy{max-width:720px;margin:0 auto;padding:24px var(--gutter) 40px}
.policy section{padding:28px 0;border-bottom:1px solid var(--line)}
.policy h1{font-size:24px;letter-spacing:-.04em;margin-bottom:6px}
.policy h2{font-size:17px;margin:20px 0 6px}
.policy p,.policy li,.policy td,.policy th{font-size:15px;line-height:1.75;color:var(--sub)}
.policy .meta{font-size:13px;color:var(--faint)}
.policy-list{padding-left:18px;display:grid;gap:8px;margin:10px 0}
.policy-list strong{color:var(--ink)}
.policy-table{width:100%;border-collapse:collapse;margin:8px 0;display:block;overflow-x:auto}
.policy-table th,.policy-table td{text-align:left;padding:10px 8px;border-bottom:1px solid var(--line);vertical-align:top}
.policy-table th{color:var(--ink);font-weight:700;white-space:nowrap}
.seller-box p{color:var(--sub)}
.check a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.footer-links{margin:12px 0}.footer-links a{color:var(--sub)}
