@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
/* 앱 셸: 폰 폭 한 칼럼 + 상단 바 + 하단 탭 바. 흰 바탕 + 얇은 선 + 로즈는 포인트에만 (가이드북과 같은 색). */
:root {
  --ink:#2b2727; --ink-80:#4a4343; --ink-48:#857c7c;
  --heart:#e8aeb2; --blush:#fbe7e8; --rose:#b65d67; --rose-text:#a04f59; /* heart·blush는 그래픽 전용: 글자·버튼은 대비가 나오는 rose 계열 */
  --canvas:#fff; --fill:#fdf6f6; --track:#f4e7e7;
  --img-bg:#f7efeb; /* 캐릭터 PNG 에 박힌 배경색. 이미지는 이 색 타일로 둥글게 */
  --hairline:#f1e4e4; --outside:#fbf4f4;
  --lift:0 1px 2px rgba(150,80,88,.04), 0 8px 28px rgba(150,80,88,.08);
  --r-lg:20px; --r-pill:9999px;
  --appbar-h:52px; --tabbar-h:58px; --safe-b:env(safe-area-inset-bottom);
}
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { background:var(--canvas); }
@media (min-width:481px) { html { background:var(--outside); } } /* 폰에서는 바깥색이 비치지 않게 */
body { margin:0; color:var(--ink);
  font:400 16px/1.55 "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; letter-spacing:-0.2px; word-break:keep-all; }
a { color:var(--rose-text); text-decoration:none; }
b, strong { font-weight:600; }

.app { position:relative; max-width:480px; min-height:100dvh; margin:0 auto; background:var(--canvas); padding-bottom:calc(var(--tabbar-h) + var(--safe-b) + 24px); }
.screen { padding:8px 20px 0; animation:in .25s ease-out; }
@keyframes in { from { opacity:0; transform:translateY(8px); } }
@media (prefers-reduced-motion:reduce) { .screen { animation:none; } .btn, button { transition:none !important; } }

/* 상단 바 */
.appbar { position:sticky; top:0; z-index:2; height:var(--appbar-h); display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.85); backdrop-filter:saturate(180%) blur(20px); -webkit-backdrop-filter:saturate(180%) blur(20px); }
.appbar-title { font-weight:600; display:flex; align-items:center; }
.appbar .my { position:absolute; right:10px; top:4px; width:44px; height:44px; display:grid; place-items:center; color:var(--ink); }
.appbar .logo { height:22px; width:auto; display:block; }
.appbar .back { position:absolute; left:6px; top:4px; width:44px; min-height:44px; padding:0; background:none; color:var(--ink); font-size:30px; line-height:1; }

/* 하단 탭 바 */
.tabbar { box-shadow:0 -4px 20px rgba(150,80,88,.05); position:fixed; left:50%; transform:translateX(-50%); bottom:0; z-index:3; width:100%; max-width:480px; height:calc(var(--tabbar-h) + var(--safe-b)); padding-bottom:var(--safe-b); display:flex; background:rgba(255,255,255,.9); backdrop-filter:saturate(180%) blur(20px); -webkit-backdrop-filter:saturate(180%) blur(20px); border-top:1px solid var(--hairline); }
.tabbar a { flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; font-size:11px; letter-spacing:-0.1px; color:var(--ink-48); }
.tabbar a.on { color:var(--rose-text); font-weight:600; }
.tabbar a.on svg { fill:var(--blush); stroke:var(--rose-text); }

/* 글자 */
h1 { font-size:29px; font-weight:700; line-height:1.25; letter-spacing:-0.8px; margin:0 0 10px; }
h2 { font-size:19px; font-weight:700; line-height:1.3; letter-spacing:-0.4px; margin:32px 2px 12px; }
h3 { font-size:17px; font-weight:600; line-height:1.24; margin:0 0 6px; }
.sub { color:var(--ink-48); }
.caption, small { font-size:13.5px; line-height:1.5; letter-spacing:-0.1px; color:var(--ink-48); }
small { display:block; margin-top:12px; }
.eyebrow { font-size:12px; font-weight:600; letter-spacing:.02em; color:var(--rose-text); margin:0 0 8px; }
.center { text-align:center; }

/* 버튼: 필 = 액션 */
.btn, button { display:inline-block; font:inherit; letter-spacing:inherit; cursor:pointer; border:0; border-radius:var(--r-pill); padding:14px 24px; min-height:50px; text-align:center; transition:transform .1s; }
.btn:active, button:active, a.card:active { transform:scale(.97); }
.primary { background:linear-gradient(135deg, #c76f79, var(--rose)); color:#fff !important; font-weight:600; box-shadow:0 6px 16px rgba(182,93,103,.22); }
.secondary { background:transparent; color:var(--ink); box-shadow:inset 0 0 0 1.5px var(--ink); }
.link { background:none; color:var(--rose-text); min-height:44px; padding:10px 8px; }
.block { display:block; width:100%; }
button:disabled, .btn[aria-disabled=true] { background:var(--hairline); color:var(--ink-48) !important; cursor:not-allowed; transform:none; }
:focus-visible { outline:2px solid var(--rose-text); outline-offset:2px; }

/* 카드: 흰 바탕 + 아주 옅은 그림자. 강조할 면만 .tint(연핑크) */
.card { display:block; background:var(--canvas); border:0; box-shadow:var(--lift); border-radius:var(--r-lg); padding:20px; margin-bottom:12px; color:inherit; transition:transform .1s; }
.card p { margin:0; white-space:pre-wrap; }
.hero { padding:0; overflow:hidden; }
.hero img { display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; object-position:50% 40%; }
.hero .body { padding:24px 22px 22px; }
.card.tint { background:var(--fill); box-shadow:none; }
.duo { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
.duo .card { margin:0; text-align:center; padding:12px 12px 18px; }
.duo img { height:120px; width:auto; }
.mascot { display:block; height:168px; width:auto; margin:0 auto 12px; border-radius:28px; background:var(--img-bg); }

/* 번호 목록 */
.rows { list-style:none; margin:0; padding:0; counter-reset:r; }
.rows li { counter-increment:r; position:relative; padding:12px 0 12px 44px; border-bottom:1px solid var(--hairline); }
.rows li:last-child { border-bottom:0; padding-bottom:0; }
.rows li:first-child { padding-top:0; }
.rows li::before { content:counter(r); position:absolute; left:0; width:30px; height:30px; border-radius:50%; background:var(--fill); color:var(--rose-text); font-size:13px; font-weight:700; display:grid; place-items:center; }

/* 캐릭터 말풍선 */
.says { display:flex; gap:10px; align-items:flex-start; margin-bottom:16px; }
.says img { width:48px; height:48px; flex:none; border-radius:50%; object-fit:cover; object-position:50% 20%; background:var(--img-bg); }
.says p { margin:0; background:var(--fill); border-radius:6px 20px 20px 20px; padding:13px 16px; font-weight:500; line-height:1.5; color:var(--ink-80); }

/* 진행 단계 */
.steps { display:flex; gap:6px; padding:4px 20px 12px; }
.steps i { flex:1; height:4px; border-radius:2px; background:var(--hairline); }
.steps i.on { background:var(--heart); }

/* 읽는 중 */
.loading { min-height:60dvh; display:grid; place-content:center; text-align:center; }
.dots::after { content:"…"; display:inline-block; width:1.2em; text-align:left; animation:dots 1.2s steps(4, end) infinite; overflow:hidden; vertical-align:bottom; }
@keyframes dots { from { width:0; } }

/* 관계 온도 */
.temp { font-size:56px; font-weight:700; color:var(--rose-text); line-height:1.07; letter-spacing:-0.28px; }
.gauge { position:relative; height:8px; border-radius:var(--r-pill); background:var(--track); margin:16px 0 6px; overflow:hidden; }
.gauge i { position:absolute; top:0; bottom:0; background:var(--heart); border-radius:var(--r-pill); transition:left .8s ease-out, width .8s ease-out; }
.gauge::after { content:""; position:absolute; left:calc(50% - 1px); top:0; bottom:0; width:2px; background:var(--ink-48); }
.gauge-ends { display:flex; justify-content:space-between; gap:8px; font-size:11px; color:var(--ink-48); margin-bottom:8px; }

table { width:100%; border-collapse:collapse; font-size:15px; }
th, td { padding:10px 2px; border-bottom:1px solid var(--hairline); text-align:right; font-weight:400; }
th { font-size:13px; color:var(--ink-48); }
td:first-child, th:first-child { text-align:left; color:var(--ink-48); }
tr:last-child td { border-bottom:0; padding-bottom:0; }

/* 잠금 카드: 안의 글은 실제 리포트가 아닌 자리표시 문장. 진짜 내용은 결제 후 서버에서 받아온다. */
.locked { position:relative; overflow:hidden; }
.locked .blur { filter:blur(7px); user-select:none; pointer-events:none; color:var(--ink-48); }
.locked .lock { position:absolute; right:18px; top:18px; font-size:13px; color:var(--ink-48); }
.hint { font-size:14px; color:var(--ink-80); margin:0 0 10px !important; }

/* 하단 고정 액션 바 (결제·상담 신청). 뜰 때는 탭 바를 대신한다 */
.actionbar { position:fixed; left:50%; transform:translateX(-50%); bottom:0; z-index:4; width:100%; max-width:480px; padding:10px 20px calc(10px + var(--safe-b)); background:rgba(255,255,255,.9); backdrop-filter:saturate(180%) blur(20px); -webkit-backdrop-filter:saturate(180%) blur(20px); border-top:1px solid var(--hairline); }
.actionbar .row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.actionbar .price { font-weight:600; font-size:19px; }
body.has-actionbar .tabbar { display:none; }
body.has-actionbar .app { padding-bottom:calc(120px + var(--safe-b)); }

.who { display:grid; gap:10px; }
.who button { background:var(--canvas); box-shadow:inset 0 0 0 1px var(--hairline); color:var(--ink); font-weight:600; min-height:60px; border-radius:var(--r-lg); }
input[type=file] { position:absolute; opacity:0; width:1px; height:1px; }
label.btn:focus-within { outline:2px solid var(--rose-text); outline-offset:2px; }
.err { color:#b3261e; font-size:14px; margin:12px 0 0; }
.basis { margin-top:14px; font-size:14px; }
.basis summary { cursor:pointer; color:var(--rose-text); font-weight:600; min-height:32px; line-height:32px; }
.basis summary .badge { margin:0 4px 0 0; font-size:11px; line-height:18px; vertical-align:1px; }
.basis-item { padding:10px 0; border-top:1px solid var(--hairline); }
.basis-item .badge { margin:0 6px 0 0; font-size:11px; }
label.check { display:flex; align-items:center; gap:10px; min-height:44px; margin-top:10px; font-size:14px; cursor:pointer; }
label.check input { width:20px; height:20px; flex:none; accent-color:var(--rose); }
.crisis { border:1px solid var(--blush); background:var(--canvas); }
.crisis p { margin:0 0 6px; }
.crisis a { font-weight:600; display:inline-block; min-height:44px; line-height:44px; }
.basis-item p { margin:2px 0 0 !important; white-space:normal !important; }
.basis a { display:inline-block; padding:8px 0; }
.bar { height:6px; border-radius:3px; background:var(--track); overflow:hidden; margin:4px 0 10px; position:relative; }
.bar i { position:absolute; top:0; bottom:0; background:var(--heart); }
.bar::after { content:""; position:absolute; left:50%; top:0; bottom:0; width:2px; background:var(--ink-48); }
.fine p { margin:0 0 4px; }
.fine details { margin:0 0 4px; }
.fine summary { cursor:pointer; display:inline-block; min-height:28px; line-height:28px; padding:0 8px; }
.doc h2 { font-size:17px; margin:24px 0 6px; }
.doc p, .doc li { font-size:15px; color:var(--ink-80); }
.doc ul { padding-left:20px; margin:6px 0; }
.doc table { font-size:14px; }
.doc td, .doc th { text-align:left !important; vertical-align:top; padding:8px 6px; }
.fine { font-size:12px; line-height:1.6; color:var(--ink-48); text-align:center; margin:24px 8px 0; }
[hidden] { display:none !important; }

/* ── 체계화 추가분 ── */
/* 캐릭터 타일: PNG 배경색 타일로 둥글게 — 이모지 대신 하트비 표정이 아이콘 */
.thumb { width:64px; height:64px; flex:none; border-radius:20px; background:var(--img-bg); object-fit:cover; }
.grid4 .card { position:relative; padding:18px 16px 18px; }
.grid4 .card .thumb { position:absolute; right:12px; top:12px; width:52px; height:52px; border-radius:16px; }
.grid4 .card .num { margin-bottom:34px; }
.tool { display:flex; gap:16px; align-items:center; }
.tool .text { flex:1; min-width:0; }
.tool .thumb { width:76px; height:76px; border-radius:22px; }
.moods { display:grid; grid-template-columns:repeat(5, 1fr); gap:8px; }
.moods button { display:flex; flex-direction:column; align-items:center; gap:6px; background:none; padding:0; min-height:0; border-radius:0; font-size:12.5px; font-weight:500; color:var(--ink-80); }
.moods img { width:100%; aspect-ratio:1; object-fit:contain; padding:1px; border-radius:18px; background:none; transition:background .15s, box-shadow .15s; }
.moods button.on { color:var(--rose-text); font-weight:700; }
.moods button.on img { background:var(--blush); box-shadow:0 0 0 2px var(--rose); }
.mood-say { margin:16px 0 0; padding:14px 16px; border-radius:16px; background:var(--fill); color:var(--ink-80); font-weight:500; }
.chips { display:flex; gap:8px; overflow-x:auto; padding:2px 0 12px; scrollbar-width:none; }
.chips::-webkit-scrollbar { display:none; }
.chip { flex:none; min-height:40px; padding:8px 16px; font-size:15px; background:var(--fill); color:var(--ink-80); border-radius:var(--r-pill); }
.chip.on { background:var(--rose); color:#fff; font-weight:600; }
.grid4 { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
.grid4 .card { margin:0; padding:16px; }
.grid4 .card b { display:block; }
.num { display:block; font-size:12px; font-weight:700; letter-spacing:.06em; color:var(--rose-text); margin-bottom:14px; }
.grid4 .card .caption { display:block; margin-top:2px; }
.mood { display:flex; gap:14px; align-items:center; }
.mood img { width:88px; height:88px; flex:none; border-radius:22px; background:var(--img-bg); }
.item { display:block; padding:14px 0; border-bottom:1px solid var(--hairline); color:inherit; }
.item:last-child { border-bottom:0; padding-bottom:0; }
.item:first-child { padding-top:0; }
.badge { display:inline-block; font-size:12px; font-weight:600; color:var(--rose-text); background:var(--fill); border-radius:var(--r-pill); padding:2px 10px; margin-bottom:6px; }
.more { float:right; font-size:14px; font-weight:400; margin-top:4px; }
.banner { background:var(--blush); display:flex; gap:12px; align-items:center; }
.banner img { width:84px; height:84px; flex:none; object-fit:contain; }
textarea, input[type=date] { width:100%; font:inherit; letter-spacing:inherit; color:var(--ink); background:var(--canvas); border:0; box-shadow:inset 0 0 0 1px var(--hairline); border-radius:16px; padding:14px; }
textarea { min-height:140px; resize:vertical; }
.scale { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin-top:10px; }
.scale button { min-height:44px; padding:6px 2px; font-size:14px; background:var(--canvas); color:var(--ink-80); border-radius:12px; box-shadow:inset 0 0 0 1px var(--hairline); }
.scale button.on { background:var(--rose); color:#fff; font-weight:600; }
.checks { list-style:none; margin:0; padding:0; }
.checks li { padding:10px 0 10px 30px; position:relative; border-bottom:1px solid var(--hairline); }
.checks li:last-child { border-bottom:0; }
.checks li::before { position:absolute; left:0; content:"✓"; color:#3d7a55; font-weight:700; }
.checks li.warn::before { content:"!"; color:#b3261e; }
.dday { font-size:64px; font-weight:700; line-height:1; letter-spacing:-1px; color:var(--rose-text); }
.photo { display:block; width:100%; border-radius:16px; margin-bottom:12px; }

/* 로그인 시트 (아래에서 올라옴) */
.sheet-back { position:fixed; inset:0; z-index:20; background:rgba(43,39,39,.42); animation:fade .2s ease-out; }
.sheet { position:fixed; left:50%; bottom:0; transform:translateX(-50%); z-index:21; width:100%; max-width:480px; background:var(--canvas); border-radius:28px 28px 0 0; padding:12px 24px calc(20px + var(--safe-b)); text-align:center; animation:up .25s ease-out; }
.sheet-handle { display:block; width:40px; height:4px; border-radius:2px; background:var(--hairline); margin:0 auto 18px; }
.sheet .thumb { display:block; width:72px; height:72px; margin:0 auto 14px; }
.sheet h2 { margin:0 0 6px; font-size:21px; }
.sheet .sub { margin:0 0 20px; font-size:14.5px; }
.sheet-btns { display:grid; gap:10px; }
.sheet small { margin-top:14px; }
@keyframes up { from { transform:translate(-50%, 100%); } to { transform:translate(-50%, 0); } }
@keyframes fade { from { opacity:0; } }
@media (prefers-reduced-motion:reduce) { .sheet, .sheet-back { animation:none; } }
/* 카카오 로그인 버튼: 카카오 디자인 가이드 색(#FEE500, 글자 85% 검정) */
.login-kakao { background:#fee500; color:rgba(0,0,0,.85); font-weight:600; display:flex !important; align-items:center; justify-content:center; gap:8px; }
.login-kakao::before { content:""; width:18px; height:18px; background:currentColor; -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3C6.5 3 2 6.6 2 11c0 2.8 1.9 5.3 4.7 6.7l-1 3.7c-.1.3.3.6.6.4l4.4-2.9c.4 0 .8.1 1.3.1 5.5 0 10-3.6 10-8S17.5 3 12 3z'/></svg>") center/contain no-repeat; mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3C6.5 3 2 6.6 2 11c0 2.8 1.9 5.3 4.7 6.7l-1 3.7c-.1.3.3.6.6.4l4.4-2.9c.4 0 .8.1 1.3.1 5.5 0 10-3.6 10-8S17.5 3 12 3z'/></svg>") center/contain no-repeat; }

/* 마이 */
.profile { display:flex; gap:14px; align-items:center; }
.profile .thumb { width:60px; height:60px; border-radius:20px; }
.profile b { display:block; font-size:18px; }
.menu { padding:4px 0; }
.menu a { display:flex; align-items:center; min-height:52px; padding:0 20px; color:var(--ink); border-bottom:1px solid var(--hairline); }
.menu a:last-child { border-bottom:0; }
.menu a::after { content:"›"; color:var(--ink-48); font-size:20px; margin-left:8px; }
.menu a:not(:has(span))::after { margin-left:auto; }
.menu a span { color:var(--ink-48); font-size:13.5px; margin-left:auto; }

/* 칼럼 본문 */
.article h1 { font-size:26px; margin:6px 0 10px; }
.article .lead { color:var(--ink-48); margin:0 0 24px; }
.article h2 { font-size:18px; margin:30px 0 10px; }
.article p { margin:0 0 14px; line-height:1.75; color:var(--ink-80); white-space:normal; }

/* 내 상황 알려주기 */
.sit-q { margin:0 0 20px; }
.sit-q:last-child { margin-bottom:0; }
.sit-q > b { display:block; font-size:15px; margin-bottom:10px; }
.sit-q > b .req { color:var(--rose-text); font-size:12px; font-weight:600; margin-left:6px; }
.sit-q.miss > b { color:#b3261e; }
.sit-chips { display:flex; flex-wrap:wrap; gap:8px; }
.sit-chips .chip { min-height:38px; padding:7px 14px; font-size:14px; }
.sit-q input[type=text] { width:100%; font:inherit; color:var(--ink); background:var(--canvas); border:0; box-shadow:inset 0 0 0 1px var(--hairline); border-radius:14px; padding:12px 14px; }
.sit-stop { margin:-6px 0 16px; padding:12px 14px; border-radius:14px; background:var(--fill); font-size:14px; color:var(--ink-80); }
.sit-lines { margin:0; }
.sit-lines div { display:grid; grid-template-columns:7.5em 1fr; gap:10px; padding:9px 0; border-bottom:1px solid var(--hairline); font-size:14.5px; }
.sit-lines div:last-child { border-bottom:0; }
.sit-lines dt { color:var(--ink-48); }
.sit-lines dd { margin:0; white-space:pre-wrap; }
.code-box { display:grid; gap:2px; text-align:center; background:var(--fill); border-radius:16px; padding:14px; margin:14px 0 12px !important; }
.code-box b { font-size:24px; letter-spacing:.08em; color:var(--rose-text); }
.contact-fields { display:grid; gap:8px; margin:14px 0 12px; }
.contact-fields input { width:100%; font:inherit; color:var(--ink); background:var(--canvas); border:0; box-shadow:inset 0 0 0 1px var(--hairline); border-radius:14px; padding:13px 14px; }
.sit-group { margin:26px 0 14px; padding-top:20px; border-top:1px solid var(--hairline); font-size:13px; font-weight:700; color:var(--rose-text); }
.sit-q textarea { min-height:120px; }

/* 홈 큰 제목 한 줄 */
h1.one-line { white-space:nowrap; font-size:clamp(20px, 5.9vw, 27px); letter-spacing:-0.9px; }
/* 누끼 캐릭터: 배경 타일 없이 */
.mascot.cut { background:none; border-radius:0; height:180px; }
/* 리포트: 무료 첫 항목과 잠긴 항목 */
.card.free { box-shadow:0 0 0 1.5px var(--blush), var(--lift); }
.card.free .badge { background:var(--rose); color:#fff; }
.card .num { margin-bottom:6px; }
.gets { list-style:none; margin:8px 0 10px; padding:0; }
.gets li { position:relative; padding:3px 0 3px 18px; font-size:14.5px; color:var(--ink-80); }
.gets li::before { content:""; position:absolute; left:3px; top:12px; width:6px; height:6px; border-radius:50%; background:var(--rose); }
#report-incl b { display:block; margin-bottom:4px; }
.locked .blur { margin-top:6px; }
.limit h3 { margin:2px 0 8px; }
