/* 3Dear 랜딩·약관 공용 스타일. 청첩장과 같은 베이지 톤 */
:root {
  --paper: #f4ebd8; --paper-2: #fbf6ec; --ink: #4a3626; --ink-soft: #7d6650; --rule: #dccbab;
  --rose: #c4907a; --rose-deep: #a8705b; --olive: #8b9468; --night: #1e1712;
  --f-head: "Black Han Sans", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.7 var(--f-body); word-break: keep-all; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 400; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
.eyebrow { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--rose-deep); margin: 0 0 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 500 16px/1 var(--f-body); text-decoration: none; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: var(--paper-2); }
.btn.primary:hover { background: #2f2218; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; }

/* 머리 */
.top { position: sticky; top: 0; z-index: 10; background: rgba(244,235,216,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { font: 400 26px/1 var(--f-head); text-decoration: none; letter-spacing: -.02em; }
.logo b { color: var(--rose); font-weight: 400; }
.nav { display: flex; gap: 26px; align-items: center; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.nav .btn { min-height: 40px; padding: 8px 16px; font-size: 14px; color: var(--paper-2); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* 첫 화면 */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4vw, 48px); }
.hero h1 .nw { display: inline-block; font-style: normal; }   /* 구 단위로만 줄을 바꾼다 */
.hero h1 span { color: var(--rose-deep); }
.hero .lead { font-size: 18px; color: var(--ink-soft); margin: 22px 0 30px; max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin: 18px 0 0; font-size: 14px; color: var(--ink-soft); }
.phone { justify-self: center; position: relative; width: 320px; height: 672px; border-radius: 46px; background: #15100c; padding: 12px;
  box-shadow: 0 30px 60px rgba(60,40,20,.28), inset 0 0 0 2px #3a2c22; }
.phone::before { content: ""; position: absolute; z-index: 2; top: 20px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 14px; background: #15100c; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #f4ebd8; }
.screen iframe { position: absolute; left: 0; top: 0; width: 375px; height: 821px; border: 0; transform-origin: 0 0; transform: scale(.7893); }
.screen .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen .tap { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); white-space: nowrap; }
.screen .tap.btn { background: rgba(30,23,18,.82); color: #fff8ec; border-color: transparent; }
.phone-cap { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 14px; }
@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .phone { width: 280px; height: 588px; border-radius: 40px; padding: 10px; }
  .screen { border-radius: 32px; }
  .screen iframe { transform: scale(.6933); }
}

/* 공통 구간 */
section.band { padding: 88px 0; }
section.band.alt { background: var(--paper-2); }
section.band.dark { background: var(--night); color: #f3e9d8; }
section.band.dark .eyebrow { color: #e3b09c; }
.head { max-width: 640px; margin-bottom: 44px; }
.head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.head p { color: var(--ink-soft); margin: 14px 0 0; font-size: 17px; }
.dark .head p { color: #cdbfa6; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: #fffaf1; border: 1px solid var(--rule); border-radius: 22px; padding: 26px 24px; }
.feature .ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--paper); color: var(--rose-deep); margin-bottom: 16px; }
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 21px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { border-top: 2px solid #4b3a2c; padding-top: 22px; }
.step::before { counter-increment: s; content: "0" counter(s); font: 400 34px/1 var(--f-head); color: #e3b09c; display: block; margin-bottom: 14px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { margin: 0; color: #cdbfa6; font-size: 15.5px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 30px; } }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; background: #fffaf1; border: 1px solid var(--rule); border-radius: 24px; padding: 30px 26px; display: flex; flex-direction: column; }
.plan.pick { border: 2px solid var(--ink); }
.plan .tag { position: absolute; top: -13px; left: 24px; background: var(--ink); color: var(--paper-2); font-size: 12.5px; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 22px; }
.plan .price { font: 400 40px/1.1 var(--f-head); margin: 14px 0 2px; }
.plan .price small { font: 400 15px var(--f-body); color: var(--ink-soft); margin-left: 4px; }
.plan .sub { font-size: 14px; color: var(--ink-soft); margin: 0 0 18px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; font-size: 15.5px; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--olive); font-weight: 700; }
.plan li.no::before { content: "–"; color: #b9a98c; }
.plan li.no { color: var(--ink-soft); }
.plan .btn { margin-top: auto; }
.plans-note { margin-top: 22px; font-size: 14px; color: var(--ink-soft); display: grid; gap: 4px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; } }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font: 500 17px/1.5 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; color: var(--rose-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); }

.cta-end { text-align: center; }
.cta-end h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.cta-end p { color: var(--ink-soft); margin: 0 0 28px; }

/* 바닥 */
.foot { background: #2a2019; color: #c9b99c; font-size: 13.5px; padding: 44px 0 56px; }
.foot .logo { color: #f3e9d8; font-size: 22px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0; }
.foot .links a { color: #f3e9d8; text-decoration: none; }
.foot .links a:hover { text-decoration: underline; }
.foot .biz { line-height: 1.9; margin: 0; }
.foot .tbd { background: rgba(255,255,255,.08); color: #e9d9bd; padding: 0 5px; border-radius: 3px; }
.foot .copy { margin-top: 14px; color: #8d7d66; }

/* 약관 페이지 */
.legal { max-width: 780px; margin: 0 auto; padding: 48px 20px 80px; }
.legal h1 { font-size: 36px; margin-bottom: 8px; }
.legal .meta { color: var(--ink-soft); font-size: 14px; margin: 0 0 24px; }
.legal .draft { background: #fff3e6; border: 1px solid #e9c9a8; border-radius: 14px; padding: 14px 18px; font-size: 14.5px; margin-bottom: 32px; }
.legal h2 { font: 700 19px/1.5 var(--f-body); margin: 34px 0 10px; }
.legal p, .legal li { font-size: 15.5px; }
.legal ol, .legal ul { padding-left: 1.3em; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 10px 0; }
.legal th, .legal td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--paper-2); font-weight: 500; }
.legal .tbd { background: #f6e3c8; padding: 0 4px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } }

/* 브랜드 로고 (brand/3dear-logo) */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { display: block; height: 58px; width: auto; }
@media (max-width: 600px) { .top .wrap { height: 68px; } .logo img { height: 48px; } }
.foot .logo img { height: 50px; }

/* 첫 화면 휴대폰: 메신저 대화 → 링크 카드를 누르면 청첩장 */
.chat { position: absolute; inset: 0; display: flex; flex-direction: column; background: #b9cddd; font: 400 13px/1.45 var(--f-body); color: #222; transition: opacity .35s ease; }
.chat.hide { opacity: 0; pointer-events: none; }
.chat-status { display: flex; justify-content: space-between; align-items: center; padding: 12px 26px 0; font-size: 12px; font-weight: 700; height: 34px; }
.chat-status .sig { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; }
.chat-status .sig i { width: 3px; background: #222; border-radius: 1px; }
.chat-status .sig i:nth-child(1) { height: 4px; } .chat-status .sig i:nth-child(2) { height: 6px; } .chat-status .sig i:nth-child(3) { height: 8px; } .chat-status .sig i:nth-child(4) { height: 10px; }
.chat-top { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 15px; }
.chat-top b { flex: 1; font-weight: 700; }
.chat-top .chev { font-size: 22px; line-height: 1; }
.chat-top .menu { font-size: 14px; opacity: .7; }
.chat-body { flex: 1; overflow: hidden; padding: 6px 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.chat-day { align-self: center; margin: 2px 0 6px; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.12); color: #fff; font-size: 11px; }
.msg { display: flex; gap: 7px; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.msg.show { opacity: 1; transform: none; }
.msg .col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.msg .row { display: flex; align-items: flex-end; gap: 5px; }
.msg time { font-size: 10px; color: #4c5a66; white-space: nowrap; }
.msg .name { font-size: 11.5px; color: #3d4a55; }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 13px; background: #d7a88f; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.msg.cont { padding-left: 41px; }
.bubble { margin: 0; padding: 7px 10px; border-radius: 4px 14px 14px 14px; background: #fff; max-width: 190px; word-break: keep-all; }
.msg.out { justify-content: flex-end; }
.msg.out .bubble { background: #fbe34b; border-radius: 14px 4px 14px 14px; }
.link-card { display: block; width: 196px; background: #fff; border-radius: 6px 14px 14px 14px; overflow: hidden; text-decoration: none; color: #222; box-shadow: 0 0 0 0 rgba(196,144,122,.0); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.link-card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.link-card .lc-text { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 9px; }
.link-card b { font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.link-card small { font-size: 11px; color: #555; line-height: 1.35; }
.link-card em { font-style: normal; font-size: 10.5px; color: #999; }
.link-card.pulse { animation: cardPulse 1.8s ease-in-out infinite; }
@keyframes cardPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(196,144,122,.0); } 50% { box-shadow: 0 0 0 5px rgba(196,144,122,.55); } }
.link-card:hover { transform: translateY(-1px); }
.chat-input { display: flex; align-items: center; gap: 10px; padding: 8px 12px 16px; background: #fff; color: #999; font-size: 18px; }
.chat-input i { flex: 1; height: 30px; border-radius: 15px; background: #f2f2f2; }
.chat-hint { position: absolute; left: 50%; bottom: 66px; transform: translateX(-50%); white-space: nowrap; background: rgba(30,23,18,.85); color: #fff8ec; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; opacity: 0; transition: opacity .4s; pointer-events: none; }
.chat-hint.show { opacity: 1; }
.screen iframe { opacity: 0; transition: opacity .5s ease; }
.screen iframe.ready { opacity: 1; }
.screen .back-chat { position: absolute; z-index: 3; left: 10px; top: 40px; font: 500 12px/1 var(--f-body); color: #fff8ec; background: rgba(30,23,18,.7); border: 0; border-radius: 999px; padding: 7px 11px; cursor: pointer; }
.screen .open-full { position: absolute; z-index: 3; right: 10px; top: 40px; font: 500 12px/1 var(--f-body); color: #fff8ec; background: rgba(30,23,18,.7); border-radius: 999px; padding: 7px 11px; text-decoration: none; }
.screen .loading { position: absolute; inset: 0; display: grid; place-items: center; background: #faedcd; color: var(--ink); font-size: 13px; }
@media (max-width: 900px) { .chat { font-size: 12px; } .bubble { max-width: 165px; } .link-card { width: 172px; } .avatar { width: 30px; height: 30px; } .msg.cont { padding-left: 37px; } }
@media (prefers-reduced-motion: reduce) { .msg { transition: none; } .link-card.pulse { animation: none; } }
