/* 웨디움 고객용 디자인 시스템 — "Editorial Bridal"
   고객(신랑·신부)이 보는 홈페이지·진단·예약·포털. 명조 제목, 넓은 여백, 플래너별 테마 색(--accent). */
@import url('../fonts/pretendard.css');
@import url('../fonts/gowun.css');

:root {
  --bg: #FBF8F3; --paper: #FFFFFF; --ink: #2A2420; --ink-2: #4E443D; --muted: #8A7F75; --line: #ECE4D8;
  --accent: #B08D57; --accent-ink: #5B4636; --accent-soft: #F4ECDF; --accent-2: #E9DCC6;
  --good: #4F7A5A; --good-bg: #EAF2EC; --warn: #A57A2C; --warn-bg: #F8F0DF; --bad: #A8483E; --bad-bg: #F8E9E6;
  --serif: 'Gowun Batang', 'Nanum Myeongjo', 'Batang', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --r: 18px; --w: 1080px;
}
body.t-champagne { --bg: #FAF6EF; --accent: #B8925A; --accent-ink: #5E4630; --accent-soft: #F3EBDD; --accent-2: #E7D7BC; }
body.t-blush { --bg: #FCF7F5; --accent: #C08A84; --accent-ink: #6E4741; --accent-soft: #F8EBE8; --accent-2: #F0D6D1; }
body.t-sage { --bg: #F7F8F3; --accent: #7E907A; --accent-ink: #3E4E3C; --accent-soft: #ECF0E8; --accent-2: #D6DFD1; }
body.t-navy { --bg: #F7F7F8; --accent: #3E4C66; --accent-ink: #26324A; --accent-soft: #E9ECF2; --accent-2: #CDD4E1; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.75 var(--sans); letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.4; letter-spacing: -0.01em; }
p { margin: 0 0 .8em; }
.wrap { width: min(var(--w), calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(680px, calc(100% - 32px)); margin: 0 auto; }
.muted { color: var(--muted); } .small { font-size: 14px; } .tiny { font-size: 12.5px; } .center { text-align: center; }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* 머리·바닥 */
.s-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.s-head .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.s-head .brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 19px; }
.s-head .brand img { height: 34px; width: auto; }
.s-head nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.s-head nav a { font-size: 14.5px; padding: 8px 12px; border-radius: 99px; color: var(--ink-2); }
.s-head nav a:hover { background: var(--accent-soft); }
@media (max-width: 720px) { .s-head nav a.hide-m { display: none; } }
.s-foot { border-top: 1px solid var(--line); padding: 36px 0 60px; color: var(--muted); font-size: 13px; margin-top: 40px; }
.s-foot a { text-decoration: underline; text-underline-offset: 3px; }

/* 버튼 */
.sbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 99px; border: 1px solid var(--accent-ink); background: var(--accent-ink); color: #fff; font: 600 15.5px/1 var(--sans); cursor: pointer; transition: transform .15s, background .15s; text-align: center; }
.sbtn:hover { transform: translateY(-1px); }
.sbtn.line { background: transparent; color: var(--accent-ink); }
.sbtn.soft { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-ink); }
.sbtn.sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.sbtn.block { width: 100%; }
.sbtn[disabled] { opacity: .5; pointer-events: none; }
.sbtn .i { flex: none; }

/* 섹션 */
.sec { padding: 72px 0; }
.sec-h { text-align: center; margin-bottom: 40px; }
.sec-h h2 { font-size: clamp(26px, 4vw, 36px); margin-top: 10px; }
.sec-h p { color: var(--muted); margin-top: 10px; }
.hero { padding: 72px 0 56px; }
.hero h1 { font-size: clamp(32px, 5.6vw, 54px); line-height: 1.3; }
.hero .lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); margin: 20px 0 30px; max-width: 560px; }
.card-s { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.grid-s { display: grid; gap: 18px; }
.grid-s.c2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-s.c3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .grid-s.c4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 860px) { .grid-s.c3, .grid-s.c4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .grid-s.c2, .grid-s.c3 { grid-template-columns: 1fr; } .sec { padding: 52px 0; } .hero { padding: 44px 0 36px; } .card-s { padding: 20px; } }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.pill.line { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* 플래너 홈페이지 */
.p-hero { position: relative; min-height: 78vh; display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--accent-ink); }
.p-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.p-hero .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,.05) 0%, rgba(20,16,12,.25) 45%, rgba(20,16,12,.72) 100%); }
.p-hero .bg.noimg { background: radial-gradient(circle at 78% 20%, color-mix(in srgb, var(--accent) 55%, transparent) 0, transparent 46%), linear-gradient(160deg, var(--accent-ink), #1d1814); }
.p-hero .bg.noimg::before { content: ''; position: absolute; right: -8vw; top: 12vh; width: 46vw; max-width: 520px; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); box-shadow: -60px 30px 0 -1px rgba(255,255,255,0), -70px 40px 0 0 rgba(255,255,255,.14); }
.p-hero .in { position: relative; padding: 0 0 64px; }
.p-hero h1 { font-size: clamp(30px, 5vw, 50px); max-width: 760px; }
.p-hero .who { margin-top: 18px; display: flex; gap: 10px; align-items: center; opacity: .92; font-size: 15px; }
.p-hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.p-hero .sbtn { background: #fff; color: var(--accent-ink); border-color: #fff; }
.p-hero .sbtn.line { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.p-logo { position: absolute; top: 22px; left: 0; right: 0; z-index: 2; }
.p-logo .wrap { display: flex; align-items: center; gap: 12px; }
.p-logo img { max-height: 44px; width: auto; }
.p-logo b { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.profile .ph-img { aspect-ratio: 4/5; border-radius: 200px 200px 18px 18px; background: var(--accent-soft) center/cover; border: 1px solid var(--line); }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; gap: 24px; } .profile .ph-img { max-width: 260px; } }
.port { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.port figure { margin: 0; position: relative; aspect-ratio: 4/5; border-radius: 14px; overflow: hidden; background: var(--accent-soft); }
.port figure img { width: 100%; height: 100%; object-fit: cover; }
.port figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-size: 14px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
@media (max-width: 600px) { .port { grid-template-columns: repeat(2, 1fr); } }
.quote { font-family: var(--serif); font-size: 17px; line-height: 1.8; }
.quote::before { content: '“'; display: block; font-size: 44px; line-height: .6; color: var(--accent); margin-bottom: 6px; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: none; gap: 8px; }
@media (max-width: 720px) { .sticky-cta { display: flex; } .sticky-cta .sbtn { flex: 1; min-height: 46px; padding: 0 10px; } body.has-sticky { padding-bottom: 76px; } }

/* 진단 카드 */
.diag-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.diag-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.diag-card h3 { font-size: 20px; }
.diag-card .go { margin-top: auto; padding-top: 12px; color: var(--accent-ink); font-weight: 600; font-size: 14px; }

/* 진단 진행 */
.q-wrap { min-height: calc(100vh - 64px); display: flex; flex-direction: column; }
.q-top { padding: 18px 0 0; }
.q-prog { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; }
.q-prog i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .35s ease; }
.q-step { display: none; padding: 34px 0 30px; animation: qin .35s ease; }
.q-step.on { display: block; }
@keyframes qin { from { opacity: 0; transform: translateY(10px); } }
.q-step .qn { font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: .08em; }
.q-step h2 { font-size: clamp(22px, 3.6vw, 30px); margin: 8px 0 6px; }
.q-step .help { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font-size: 16px; transition: border-color .12s, background .12s; text-align: left; width: 100%; font-family: inherit; color: inherit; }
.opt:hover { border-color: var(--accent-2); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .mk { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--accent-2); flex: none; display: grid; place-items: center; }
.opt.multi .mk { border-radius: 7px; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt:has(input:checked) .mk { background: var(--accent); border-color: var(--accent); }
.opt:has(input:checked) .mk::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.opt .d { display: block; font-size: 13px; color: var(--muted); }
.img-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 720px) { .img-opts { grid-template-columns: repeat(2, 1fr); } }
.img-opt { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: var(--paper); transition: border-color .12s, transform .12s; }
.img-opt input { position: absolute; opacity: 0; }
.img-opt .art { aspect-ratio: 4/5; position: relative; display: block; }
.img-opt .art img { width: 100%; height: 100%; object-fit: cover; }
.img-opt .cap { padding: 10px 12px 12px; font-size: 14.5px; font-weight: 600; }
.img-opt .cap small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.img-opt:has(input:checked) { border-color: var(--accent); transform: translateY(-2px); }
.img-opt:has(input:checked)::after { content: '✓'; position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.scale { display: flex; gap: 8px; }
.scale label { flex: 1; }
.scale .opt { justify-content: center; padding: 14px 0; font-weight: 600; }
.scale .opt .mk { display: none; }
.q-nav { display: flex; gap: 10px; margin-top: 26px; }
.q-nav .sbtn { flex: 1; }
.q-nav .back { flex: 0 0 auto; }
.inp { width: 100%; min-height: 54px; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 16px; font: 17px var(--sans); background: var(--paper); color: var(--ink); }
.inp:focus { outline: none; border-color: var(--accent); }
.f-row { display: grid; gap: 6px; margin-bottom: 14px; }
.f-row > label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.f-err { color: var(--bad); font-size: 14px; margin-top: 8px; min-height: 1em; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.chk input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-ink); flex: none; }
details.terms { font-size: 13px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 8px 0 14px; }
details.terms summary { cursor: pointer; }

/* 결과 리포트 */
.rep-hero { padding: 54px 0 34px; text-align: center; }
.rep-hero h1 { font-size: clamp(26px, 4.4vw, 40px); margin: 12px auto 12px; max-width: 760px; }
.rep-hero .sum { color: var(--ink-2); max-width: 620px; margin: 0 auto; }
.score { width: 148px; height: 148px; margin: 24px auto 0; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); }
.score > div { width: 122px; height: 122px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; text-align: center; line-height: 1.2; }
.score b { font: 600 38px/1 var(--sans); } .score span { font-size: 12px; color: var(--muted); }
.palette { display: flex; justify-content: center; gap: 0; margin: 22px auto 0; width: 220px; height: 34px; border-radius: 99px; overflow: hidden; box-shadow: 0 6px 20px -10px rgba(0,0,0,.3); }
.palette i { flex: 1; }
.rsec { padding: 26px 0; border-top: 1px solid var(--line); }
.rsec > h2 { font-size: 22px; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.rsec > h2 .n { font: 600 12px/1 var(--sans); color: var(--accent); letter-spacing: .1em; }
.ritems { display: grid; gap: 10px; }
.ritem { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.ritem .top { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.ritem .nm { font-weight: 600; }
.ritem .val { font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ritem .nt { font-size: 14px; color: var(--muted); margin-top: 3px; }
.ritem .bar { height: 6px; border-radius: 99px; background: var(--line); margin-top: 8px; overflow: hidden; position: relative; }
.ritem .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.ritem .bar i.b2 { background: var(--accent-ink); opacity: .55; margin-top: 2px; height: 4px; }
.ritem.good { border-left: 3px solid var(--good); } .ritem.warn { border-left: 3px solid var(--warn); } .ritem.bad { border-left: 3px solid var(--bad); }
.bul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bul li { position: relative; padding: 12px 14px 12px 40px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.bul li::before { content: ''; position: absolute; left: 15px; top: 19px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.bul.good li::before { background: var(--good); } .bul.need li::before { background: var(--warn); } .bul.first li::before { background: var(--accent-ink); border-radius: 3px; }
.tline { list-style: none; padding: 0; margin: 0; }
.tline li { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.tline li b { color: var(--accent-ink); font-size: 14px; }
.tline li.late b { color: var(--bad); }
@media (max-width: 600px) { .tline li { grid-template-columns: 1fr; gap: 2px; } }
.expert { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; grid-template-columns: 64px 1fr; gap: 16px; }
.expert .av { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft) center/cover; display: grid; place-items: center; font-family: var(--serif); font-size: 24px; color: var(--accent-ink); }
.note-s { font-size: 13px; color: var(--muted); background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; }
.cta-box { text-align: center; background: var(--accent-ink); color: #fff; border-radius: 24px; padding: 40px 24px; margin: 30px 0; }
.cta-box h2 { font-size: 26px; }
.cta-box .sbtn { background: #fff; color: var(--accent-ink); border-color: #fff; margin-top: 18px; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .cmp { grid-template-columns: 1fr; } }

/* 예약 */
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 64px; padding: 10px 0; text-align: center; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); cursor: pointer; font-family: inherit; color: inherit; }
.day b { display: block; font-size: 19px; } .day span { font-size: 12px; color: var(--muted); }
.day.on { border-color: var(--accent); background: var(--accent-soft); }
.day.off { opacity: .35; pointer-events: none; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.slot { padding: 12px 0; text-align: center; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; font: 600 15px var(--sans); color: var(--ink); }
.slot.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { flex: 1; min-width: 120px; }

/* 고객 포털 */
.portal-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 20px 0; overflow-x: auto; }
.portal-tabs a { padding: 10px 14px; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.portal-tabs a.on { color: var(--ink); border-color: var(--accent-ink); font-weight: 600; }
.task { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.task .when { font-size: 13px; color: var(--muted); }
.task.done .tt { text-decoration: line-through; color: var(--muted); }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 16px; margin: 6px 0; font-size: 15px; white-space: pre-wrap; }
.msg.me { margin-left: auto; background: var(--accent-ink); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg time { display: block; font-size: 11px; opacity: .6; margin-top: 2px; }
.flash-s { padding: 12px 16px; border-radius: 12px; background: var(--good-bg); color: var(--good); margin: 16px 0; font-size: 14.5px; }
.flash-s.err { background: var(--bad-bg); color: var(--bad); }

@media print {
  .s-head, .s-foot, .sticky-cta, .no-print { display: none !important; }
  body { background: #fff; font-size: 13px; } .rsec { break-inside: avoid; } .cta-box { display: none; }
  .ritem, .bul li, .expert { break-inside: avoid; }
}
