/* 온명함 — 차분한 그린·페이퍼 테마 */
:root {
  --bg: #f7f5f0;
  --bg-2: #eeeae2;
  --card: #ffffff;
  --ink: #263230;
  --ink-2: #56615e;
  --muted: #8d9693;
  --line: #e3e0d7;

  --coral: #2f6b5c;
  --coral-2: #23574a;
  --coral-soft: #e2eee8;
  --sage: #86a998;
  --sage-soft: #e5efe9;
  --butter: #e6c26e;
  --butter-soft: #f6efdc;
  --lilac: #9aa6c4;
  --lilac-soft: #e9ecf4;
  --sky: #8fb2c9;
  --sky-soft: #e5eef4;
  --danger: #d9534f;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 2px 0 rgba(38, 50, 48, .04), 0 10px 30px rgba(47, 107, 92, .07);
  --shadow-hover: 0 4px 0 rgba(38, 50, 48, .04), 0 18px 40px rgba(47, 107, 92, .14);
  --sans: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --round: 'Gowun Dodum', 'Pretendard', sans-serif;
  --essay: 'Gowun Batang', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 800; line-height: 1.3; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(30px, 5.2vw, 52px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
main { outline: none; min-height: 70vh; }
.container { width: min(1140px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(780px, 100% - 40px); margin: 0 auto; }
.muted { color: var(--muted); }
.tiny { font-size: 13px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.hl { background: linear-gradient(transparent 62%, var(--butter) 62%); padding: 0 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 245, 240, .9);
  backdrop-filter: blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  background: var(--coral); color: #fff; font-family: var(--round); font-weight: 700; font-size: 22px;
  box-shadow: 0 4px 0 var(--coral-2); transform: rotate(-6deg);
}
.logo-mark.small { width: 34px; height: 34px; font-size: 18px; border-radius: 12px; margin-bottom: 12px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: 18px; font-weight: 800; }
.logo-text small { font-size: 12px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.nav a:not(.btn) { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); transition: background .15s; }
.nav a:not(.btn):hover { background: var(--bg-2); }
.nav a.active:not(.btn) { background: var(--coral-soft); color: var(--coral-2); }
.nav .btn { margin-left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid var(--ink);
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  background: #fff; color: var(--ink); transition: transform .12s ease, box-shadow .12s ease, background .12s;
  box-shadow: 0 3px 0 var(--ink);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn-primary { background: var(--coral); color: #fff !important; }
.btn-ghost { border-color: var(--line); box-shadow: none; color: var(--ink-2); background: #fff; }
.btn-ghost:hover { box-shadow: none; background: var(--bg-2); }
.btn-small { padding: 9px 16px; font-size: 14px; box-shadow: 0 2px 0 var(--ink); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px;
  background: #fff; border: 1.5px solid var(--line); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; color: var(--ink-2);
}
.hero h1 em { font-style: normal; color: var(--coral); }
.hero .lead { font-size: 18px; color: var(--ink-2); margin: 20px 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 14px; color: var(--ink-2); }
.face-stack { display: flex; }
.face-stack .avatar { width: 34px; height: 34px; font-size: 14px; border: 2px solid var(--bg); margin-left: -8px; }
.face-stack .avatar:first-child { margin-left: 0; }

.hero-stage { position: relative; height: 520px; }
.hero-stage .card { position: absolute; width: 330px; }
.hero-stage .card:nth-child(1) { top: 10px; left: 0; transform: rotate(-5deg); z-index: 1; }
.hero-stage .card:nth-child(2) { top: 200px; right: 0; transform: rotate(4deg); z-index: 2; }
.bubble {
  position: absolute; z-index: 3; background: #fff; border: 2px solid var(--ink); border-radius: 999px;
  padding: 8px 14px; font-weight: 700; font-size: 14px; box-shadow: 0 3px 0 var(--ink); white-space: nowrap;
  animation: float 4s ease-in-out infinite;
}
.bubble.b1 { top: 0; right: 30px; background: var(--butter); }
.bubble.b2 { bottom: 40px; left: 10px; background: var(--sage-soft); animation-delay: -1.3s; }
.bubble.b3 { bottom: 0; right: 90px; background: var(--lilac-soft); animation-delay: -2.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } }

/* 취미 띠 */
.marquee { overflow: hidden; padding: 18px 0; background: var(--ink); color: #fff; transform: rotate(-1.2deg); margin: 24px -20px 8px; }
.marquee-track { display: flex; gap: 36px; width: max-content; animation: slide 40s linear infinite; font-weight: 700; font-size: 17px; }
.marquee-track span { white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head p { margin: 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title p { color: var(--ink-2); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { border-radius: var(--radius); padding: 30px 28px; }
.pillar:nth-child(1) { background: var(--coral-soft); }
.pillar:nth-child(2) { background: var(--butter-soft); }
.pillar:nth-child(3) { background: var(--sage-soft); }
.pillar-wide { grid-column: 1 / -1; background: var(--sky-soft); }
.pillar-wide p { max-width: 760px; }
.pillar-list { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pillar-list li { background: #fff; border-radius: 14px; padding: 14px 16px; font-size: 14.5px; color: var(--ink-2); }
.pillar-list li b { display: block; color: var(--ink); margin-bottom: 4px; font-size: 15px; }
.pillar .icon { font-size: 34px; margin-bottom: 12px; display: block; }
.pillar p { color: var(--ink-2); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step-card { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: 0 4px 0 var(--ink); position: relative; }
.step-card .n { position: absolute; top: -16px; left: 22px; background: var(--coral); color: #fff; font-weight: 800; border-radius: 999px; padding: 4px 12px; font-size: 13px; border: 2px solid var(--ink); }
.step-card .icon { font-size: 30px; display: block; margin: 6px 0 8px; }
.step-card p { color: var(--ink-2); margin: 0; font-size: 15px; }

.band {
  background: var(--coral); color: #fff; border-radius: 32px; padding: 56px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden;
}
.band::after { content: '온'; position: absolute; right: -20px; bottom: -70px; font-family: var(--round); font-size: 260px; color: rgba(255,255,255,.12); line-height: 1; pointer-events: none; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.92); margin: 0; }
.band .btn { position: relative; z-index: 1; }
.band-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; position: relative; z-index: 1; }
.band-list li { background: rgba(255,255,255,.18); border-radius: 12px; padding: 10px 14px; font-weight: 600; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column; overflow: hidden;
  border: 1.5px solid var(--line);
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-cover { height: 64px; position: relative; }
.card-body { position: relative; padding: 0 22px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-top { display: flex; gap: 12px; align-items: flex-end; margin-top: -30px; }
.card-top .avatar { border: 4px solid #fff; }
.card-top .who { padding-bottom: 2px; min-width: 0; flex: 1; }
.mbti-sticker {
  position: absolute; right: 16px; top: 14px; background: #fff; border: 2px solid var(--ink); border-radius: 10px;
  font-weight: 800; font-size: 13px; padding: 2px 9px; letter-spacing: .04em; box-shadow: 0 2px 0 var(--ink); transform: rotate(4deg);
}
.card-name { font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-meta { font-size: 13.5px; color: var(--muted); }
.card-intro { font-size: 15.5px; color: var(--ink); margin: 2px 0 0; font-weight: 500; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1.5px dashed var(--line); font-size: 13px; color: var(--muted); }

.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--round); font-weight: 700; font-size: 23px; color: var(--ink);
}
.avatar.lg { width: 120px; height: 120px; font-size: 50px; border: 6px solid #fff; box-shadow: var(--shadow); }
.c0 { background: var(--coral-soft); } .c1 { background: var(--butter-soft); } .c2 { background: var(--sage-soft); }
.c3 { background: var(--lilac-soft); } .c4 { background: var(--sky-soft); }
.cv0 { background: linear-gradient(120deg, #d6e8df, #efe6cc); }
.cv1 { background: linear-gradient(120deg, #efe3c3, #dbe8d9); }
.cv2 { background: linear-gradient(120deg, #cfe3d8, #d6e3ed); }
.cv3 { background: linear-gradient(120deg, #dfe3ef, #ebe4d4); }
.cv4 { background: linear-gradient(120deg, #d5e4ee, #e1e5f0); }

.badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.badge-verified { background: var(--sage-soft); color: #3f8a64; }
.badge-founding { background: var(--butter-soft); color: #a8761b; }
.badge-sample { background: var(--bg-2); color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 13px; padding: 5px 11px; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-weight: 600; }
.tag.mbti { background: var(--ink); color: #fff; letter-spacing: .03em; }
.tag.drink { background: var(--butter-soft); color: #8a6418; }
.tag.match { background: var(--coral); color: #fff; }

/* ---------- Explore ---------- */
.page-head { padding: 40px 0 24px; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); }
.explore-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 64px; }
.filters {
  position: sticky; top: 90px; background: #fff; border-radius: var(--radius); padding: 22px;
  display: grid; gap: 20px; max-height: calc(100vh - 110px); overflow: auto; border: 1.5px solid var(--line);
}
.filters-head { display: none; }
.filter-title { font-size: 14px; font-weight: 800; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.filter-title button { background: none; border: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; font-weight: 600; }
.filter-toggle { display: none; }
select, input[type=text], input[type=email], input[type=tel], input[type=number], textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
select:focus, input:focus, textarea:focus { outline: 3px solid var(--coral-soft); border-color: var(--coral); }
textarea { resize: vertical; min-height: 120px; line-height: 1.7; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; cursor: pointer; user-select: none; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); transition: all .12s;
}
.chip:hover span { border-color: var(--coral); }
.chip input:checked + span { background: var(--coral); border-color: var(--coral); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--butter); }
.mbti-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.mbti-grid .chip span { width: 100%; text-align: center; padding: 7px 0; font-size: 12px; font-weight: 800; }

.result-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 14px; color: var(--ink-2); gap: 12px; flex-wrap: wrap; }
.result-bar strong { font-size: 16px; color: var(--ink); }
.notice { background: var(--butter-soft); border-radius: 12px; padding: 9px 14px; font-size: 13px; color: #7a5a17; font-weight: 600; }
.empty { text-align: center; padding: 64px 20px; color: var(--muted); background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); }
.empty .icon { font-size: 40px; display: block; margin-bottom: 8px; }

/* ---------- Profile ---------- */
.profile-cover { height: 200px; border-radius: 0 0 40px 40px; position: relative; overflow: hidden; }
.profile-cover .deco { position: absolute; font-size: 54px; opacity: .55; }
.profile-hero { margin-top: -70px; position: relative; padding-bottom: 28px; }
.profile-head { display: flex; gap: 26px; align-items: flex-end; }
.profile-head .who { padding-bottom: 6px; flex: 1; min-width: 0; }
.profile-head h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-head h1 .prof { font-size: 17px; font-weight: 600; color: var(--ink-2); }
.profile-intro {
  background: #fff; border-radius: 20px; padding: 18px 22px; margin-top: 22px; font-size: 18px; font-weight: 600;
  position: relative; border: 1.5px solid var(--line); display: inline-block;
}
.profile-intro::before { content: '“'; font-family: var(--essay); font-size: 46px; color: var(--coral); line-height: 0; vertical-align: -18px; margin-right: 6px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-bottom: 72px; }
.panel { background: #fff; border-radius: var(--radius); padding: 28px; margin-bottom: 20px; border: 1.5px solid var(--line); }
.panel h2 { font-size: 20px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.trait-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { border-radius: 18px; padding: 18px; }
.tile.t-mbti { background: var(--ink); color: #fff; }
.tile.t-mbti .trait-label { color: rgba(255,255,255,.65); }
.tile.t-drink { background: var(--butter-soft); }
.tile.t-hobby { background: var(--sage-soft); grid-column: 1 / -1; }
.tile.t-key { background: var(--lilac-soft); grid-column: 1 / -1; }
.tile .tag { background: rgba(255,255,255,.75); }
.trait-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.trait-value { font-weight: 800; font-size: 17px; }
.mbti-big { font-size: 40px; font-weight: 900; letter-spacing: .04em; line-height: 1.1; }
.hobby-big { display: flex; flex-wrap: wrap; gap: 8px; }
.hobby-big span { background: #fff; border-radius: 14px; padding: 8px 14px; font-weight: 700; font-size: 15px; }
.work-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.work-item { background: var(--bg); border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.work-item .wi { font-size: 24px; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline li { padding: 6px 0 14px 32px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--coral); }
.timeline .year { display: inline-block; font-weight: 800; color: var(--coral-2); font-size: 14px; margin-right: 8px; }
.essay { font-family: var(--essay); font-size: 17.5px; line-height: 2; color: #2f3836; background: #fdfcf9; }
.essay h3 { font-family: var(--sans); font-size: 24px; margin-bottom: 22px; }
.essay p { margin-bottom: 1.3em; }
.essay-label { font-family: var(--sans); display: inline-block; background: var(--coral-soft); color: var(--coral-2); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.side-sticky { position: sticky; top: 90px; }
.contact-box { border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.contact-box .contact-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1.5px dashed var(--line); font-size: 15px; font-weight: 600; }
.contact-box .contact-row:last-of-type { border-bottom: none; }
.side-actions { display: grid; gap: 10px; margin-top: 14px; }
.mobile-cta { display: none; }

/* ---------- Register ---------- */
.form { display: grid; gap: 22px; padding-bottom: 80px; }
.form-section { background: #fff; border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; border: 1.5px solid var(--line); }
.form-section > h2 { font-size: 20px; margin: 0; display: flex; align-items: center; gap: 10px; }
.form-section > h2 .step { font-size: 13px; background: var(--coral); color: #fff; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.form-section .desc { color: var(--muted); font-size: 14px; margin: -10px 0 0; }
.field label.lbl { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field.error input, .field.error textarea, .field.error select { border-color: var(--danger); }
.err { font-size: 14px; color: var(--danger); background: #fdecea; border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.radio-card { position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card .rc { display: block; border: 2px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; height: 100%; transition: all .12s; }
.radio-card .rc strong { display: block; margin-bottom: 4px; }
.radio-card .rc small { color: var(--muted); font-size: 12.5px; line-height: 1.5; display: block; }
.radio-card input:checked + .rc { border-color: var(--coral); background: var(--coral-soft); }
.radio-card input:focus-visible + .rc { outline: 3px solid var(--butter); }
.counter { font-size: 12px; color: var(--muted); text-align: right; margin-top: 4px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.callout { background: var(--butter-soft); border-radius: 16px; padding: 16px 18px; font-size: 14px; color: #6e5214; }

/* ---------- Essays ---------- */
.essay-card { padding: 24px; gap: 14px; }
.essay-card .quote { font-family: var(--essay); font-size: 44px; line-height: .6; color: var(--coral); height: 18px; }
.essay-card .essay-title { font-size: 19px; font-weight: 800; line-height: 1.45; }
.essay-card .excerpt { font-family: var(--essay); color: var(--ink-2); font-size: 15px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.essay-card .author { display: flex; align-items: center; gap: 10px; }
.essay-card .author .avatar { width: 34px; height: 34px; font-size: 15px; }

/* ---------- About ---------- */
.principles { counter-reset: p; list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 24px; }
.principles li { counter-increment: p; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 18px 20px 18px 64px; position: relative; }
.principles li::before { content: counter(p); position: absolute; left: 20px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); padding: 44px 0; margin-top: 40px; border-radius: 40px 40px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; }
.footer-links { display: flex; gap: 20px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.footer-note { grid-column: 1 / -1; margin: 0; }

/* ---------- Mobile tab bar ---------- */
.tabbar { display: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: all .2s ease; z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .band, .profile-layout, .explore-layout { grid-template-columns: 1fr; }
  .hero-stage { height: 480px; max-width: 520px; margin: 0 auto; width: 100%; }
  .hero-stage .card:nth-child(2) { top: 170px; }
  .pillars, .steps, .pillar-list { grid-template-columns: 1fr; }
  .steps { gap: 28px; }
  .side-sticky { position: static; }
  .band { padding: 40px 28px; }
}

@media (max-width: 720px) {
  body { padding-bottom: 76px; }
  .header-inner { height: 60px; }
  .nav { display: none; }
  .logo-text small { display: none; }

  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40;
    background: #fff; border-radius: 22px; box-shadow: 0 10px 30px rgba(38,50,48,.18); border: 1.5px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11px; font-weight: 700; color: var(--muted); padding: 6px 0; border-radius: 14px; }
  .tabbar a .ti { font-size: 20px; filter: grayscale(1); opacity: .6; transition: all .15s; }
  .tabbar a.active { color: var(--coral-2); background: var(--coral-soft); }
  .tabbar a.active .ti { filter: none; opacity: 1; }
  .toast { bottom: 100px; }

  .hero { padding: 28px 0 20px; }
  .hero .lead { font-size: 16px; }
  .hero .lead br { display: none; }
  .hero-stage { height: 420px; }
  .hero-stage .card:nth-child(2) { top: 140px; }
  .hero-stage .card { width: 270px; }
  .hero-stage .card .card-intro { font-size: 14px; }
  .bubble { font-size: 12.5px; padding: 6px 11px; }
  section { padding: 40px 0; }

  /* 필터: 바텀시트 */
  .filter-toggle {
    display: flex; position: sticky; top: 66px; z-index: 20; justify-content: space-between; align-items: center; gap: 10px;
    background: var(--bg); padding: 8px 0 12px;
  }
  .filters {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 50; max-height: 82vh; border-radius: 26px 26px 0 0;
    transform: translateY(105%); transition: transform .25s ease; box-shadow: 0 -10px 40px rgba(38,50,48,.25); padding-bottom: 20px;
  }
  .filters.open { transform: translateY(0); }
  .filters-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: -22px; background: #fff; padding: 6px 0 10px; margin-top: -6px; z-index: 1; }
  .filters-head::before { content: ''; position: absolute; top: -10px; left: 50%; width: 40px; height: 5px; border-radius: 3px; background: var(--line); transform: translateX(-50%); }
  .filters-apply { position: sticky; bottom: 0; width: 100%; box-shadow: 0 -12px 0 #fff, 0 3px 0 var(--ink); }
  .sheet-dim { position: fixed; inset: 0; background: rgba(38,50,48,.35); z-index: 45; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .sheet-dim.open { opacity: 1; pointer-events: auto; }
  .result-bar .notice { width: 100%; }

  .profile-cover { height: 140px; border-radius: 0 0 28px 28px; }
  .profile-cover .deco { font-size: 38px; }
  .profile-hero { margin-top: -56px; }
  .profile-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .avatar.lg { width: 96px; height: 96px; font-size: 40px; }
  .profile-intro { font-size: 16px; display: block; }
  .contact-panel-desktop { display: none; }
  .mobile-cta {
    display: flex; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: 86px; z-index: 35;
  }
  .mobile-cta .btn { flex: 1; }
  .mobile-cta .btn-ghost { flex: none; box-shadow: 0 6px 20px rgba(38,50,48,.15); }
  .profile-layout { padding-bottom: 120px; }

  .row-2, .row-3, .trait-tiles, .work-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .panel, .form-section { padding: 22px; }
  .band { border-radius: 26px; }
  .band::after { font-size: 180px; }
}
@media (min-width: 721px) {
  .filters-apply, .sheet-dim { display: none; }
}

/* ---------- 프로필 사진 ---------- */
.avatar.has-photo { overflow: hidden; background: var(--bg-2); }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-row { display: flex; align-items: center; gap: 20px; }
.photo-row .avatar.lg { width: 96px; height: 96px; font-size: 40px; }
.photo-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-btns label.btn { cursor: pointer; }
.opt { font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 4px; }

/* ---------- 자격 확인 (운영진 전용) ---------- */
.private-box { border: 1.5px dashed var(--coral); background: var(--coral-soft); border-radius: 18px; padding: 18px 20px; display: grid; gap: 14px; }
.private-head { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.private-head span { font-size: 12px; font-weight: 700; background: var(--coral); color: #fff; border-radius: 999px; padding: 3px 10px; }
.file-pick { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; cursor: pointer; font-weight: 600; }
.file-pick:hover { border-color: var(--coral); }
.file-pick small { color: var(--muted); font-weight: 500; }
.owner-note { margin-top: 14px; font-size: 13px; color: var(--ink-2); background: var(--bg); border-radius: 12px; padding: 10px 12px; line-height: 1.6; }

/* ---------- 운영진 화면 ---------- */
.admin-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.admin-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.admin-stats span { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--ink-2); }
.admin-stats b { color: var(--ink); margin-left: 4px; }
.admin-list { display: grid; gap: 14px; }
.admin-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 20px; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cert-thumb, .cert-pdf, .cert-empty { width: 150px; height: 110px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); overflow: hidden; padding: 0; cursor: pointer; font: inherit; }
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cert-pdf { display: grid; place-content: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink); padding: 8px; text-align: center; overflow-wrap: anywhere; }
.cert-pdf small { color: var(--muted); font-weight: 500; }
.cert-empty { display: grid; place-items: center; font-size: 13px; color: var(--muted); cursor: default; }
.admin-name { font-weight: 800; font-size: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-name .muted { font-weight: 500; font-size: 14px; }
.admin-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0; font-size: 14px; }
.admin-meta dt { color: var(--muted); }
.admin-meta dd { margin: 0; }
.admin-actions { display: grid; gap: 8px; }
.admin-actions .btn[disabled] { opacity: .4; cursor: not-allowed; }
.status-pill { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.s-pending { background: var(--butter-soft); color: #8a6418; }
.s-approved { background: var(--sage-soft); color: #3f7a5c; }
.s-rejected { background: #fdecea; color: var(--danger); }
.s-none { background: var(--bg-2); color: var(--muted); }
@media (max-width: 720px) {
  .admin-row { grid-template-columns: 1fr; }
  .cert-thumb, .cert-pdf, .cert-empty { width: 100%; height: 180px; }
  .admin-actions { grid-template-columns: 1fr 1fr; }
  .photo-row { align-items: flex-start; }
}

/* ---------- 내 프로필 통계 (본인만) ---------- */
.stats-panel { margin-top: 16px; }
.stats-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.stats-head h2 { margin: 0; font-size: 18px; }
.owner-tag { font-size: 11.5px; font-weight: 700; background: var(--coral-soft); color: var(--coral-2); border-radius: 999px; padding: 3px 10px; }
.stats-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.stats-nums div { background: var(--bg); border-radius: 14px; padding: 12px 8px; text-align: center; }
.stats-nums b { display: block; font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.stats-nums span { font-size: 12px; color: var(--muted); }
.stats-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 120px; align-items: end; margin-bottom: 14px; }
.stats-bars .bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.stats-bars .track { flex: 1; width: 100%; max-width: 26px; display: flex; align-items: flex-end; }
.stats-bars .bar i { display: block; width: 100%; min-height: 3px; background: var(--coral); border-radius: 6px 6px 3px 3px; }
.stats-bars .bar em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink-2); }
.stats-bars .bar small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.stats-contact { font-size: 14px; background: var(--butter-soft); border-radius: 12px; padding: 10px 12px; margin: 0 0 8px; }

/* ---------- 관계 약속 / 잘 맞는 고객 ---------- */
.handler { display: flex; gap: 14px; align-items: center; background: var(--coral-soft); border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.handler .hi { font-size: 28px; }
.handler strong { display: block; font-size: 16px; }
.handler small { color: var(--ink-2); font-size: 13.5px; }
.promise-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.promise-list li { position: relative; padding: 11px 14px 11px 40px; background: var(--bg); border-radius: 12px; font-weight: 600; font-size: 15px; }
.promise-list li::before { content: '✓'; position: absolute; left: 14px; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 11px; display: grid; place-items: center; }
.tag.ind { background: var(--sky-soft); }
.fit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fit { border-radius: 14px; padding: 14px 16px; }
.fit b { font-size: 13.5px; }
.fit p { margin: 6px 0 0; font-size: 15px; color: var(--ink); }
.fit.good { background: var(--sage-soft); }
.fit.bad { background: var(--butter-soft); }
.partner-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.partner { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fff; transition: border-color .12s; }
.partner:hover { border-color: var(--coral); }
.partner .avatar { width: 40px; height: 40px; font-size: 17px; }
.partner strong { display: block; font-size: 15px; }
.partner small { color: var(--muted); font-size: 12.5px; }

/* ---------- 홈: 견적 앱과 비교 ---------- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.compare-col { border-radius: var(--radius); padding: 24px; }
.compare-col.them { background: #fff; border: 1.5px dashed var(--line); color: var(--ink-2); }
.compare-col.us { background: var(--coral-soft); border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.compare-head { font-weight: 800; font-size: 17px; margin-bottom: 14px; color: var(--ink); }
.compare-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.compare-col li span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.compare-col.us li { color: var(--ink); font-weight: 600; }
.team-band { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--sky-soft); border-radius: var(--radius); padding: 20px 24px; }
.team-band p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 720px) {
  .compare, .fit-grid, .partner-list { grid-template-columns: 1fr; }
  .team-band { flex-direction: column; align-items: flex-start; }
}

/* ---------- 홈 하단: 개업 / 소속 두 파트 ---------- */
.band.band-split { display: block; }
.band-top { position: relative; z-index: 1; max-width: 640px; margin-bottom: 28px; }
.aud-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; position: relative; z-index: 1; }
.aud { background: #fff; color: var(--ink); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; }
.aud-tag { display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 800; background: var(--coral-soft); color: var(--coral-2); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.aud h3 { font-size: 21px; line-height: 1.35; margin: 0 0 14px; color: var(--ink); }
.aud ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.aud li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.aud li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.aud li b { color: var(--ink); }
.aud-price { margin-top: auto; background: var(--butter-soft); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; }
.aud-price small { display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }
.band-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; position: relative; z-index: 1; }
.band-bottom .band-list { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 720px) {
  .aud-grid { grid-template-columns: 1fr; }
  .aud { padding: 20px; }
  .band-bottom { flex-direction: column; align-items: stretch; }
}

/* ---------- 요금 안내 · 계좌이체 ---------- */
.plan-now { display: inline-block; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; margin-top: 6px; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.price-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; }
.price-card.pro { border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); background: var(--coral-soft); }
.price-name { font-weight: 800; color: var(--coral-2); font-size: 15px; }
.price-num { font-size: 30px; font-weight: 800; margin: 6px 0 2px; }
.price-num small { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-sub { font-size: 13px; color: var(--ink-2); }
.price-card ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: 14.5px; }
.price-card li::before { content: '✓ '; color: var(--coral); font-weight: 800; }
.price-card li small { color: var(--muted); }
.receipt-fields { display: grid; gap: 14px; background: var(--bg); border-radius: 14px; padding: 16px; }
.receipt-fields[hidden] { display: none; }
.deposit-box { border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.deposit-info { display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; margin: 0 0 14px; }
.deposit-info dt { color: var(--muted); font-size: 14px; padding-top: 2px; }
.deposit-info dd { margin: 0; }
.deposit-info .big { font-size: 20px; }
.deposit-info small { color: var(--ink-2); }
.deposit-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-history { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pay-history li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14.5px; padding: 8px 0; border-bottom: 1.5px dashed var(--line); }
.refund ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.plan-box { margin-top: 16px; }
.plan-status { margin: 0 0 12px; font-size: 16px; }
.plan-status small { color: var(--ink-2); font-size: 13px; }
.plan-warn { background: var(--butter-soft); border-radius: 12px; padding: 9px 12px; font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }
.stats-lock { display: block; background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 10px; color: var(--ink-2); }
.stats-lock:hover { color: var(--coral-2); }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.admin-tabs a { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.admin-tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pay-row { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 720px) {
  .price-grid { grid-template-columns: 1fr; }
  .deposit-info { grid-template-columns: 1fr; gap: 4px; }
  .deposit-info dd { margin-bottom: 10px; }
}

/* ---------- 약관 · 개인정보 처리방침 ---------- */
.legal h2 { font-size: 19px; margin: 36px 0 10px; padding-top: 14px; border-top: 1.5px solid var(--line); }
.legal h3 { font-size: 15.5px; margin: 22px 0 6px; }
.legal p, .legal li { font-size: 14.5px; line-height: 1.75; color: var(--ink-2, #444); }
.legal ol, .legal ul { padding-left: 22px; margin: 6px 0; }
.legal li { margin: 4px 0; }
.legal li > ul { margin-top: 4px; }
.legal-tabs { margin-bottom: 18px; }
.legal-table { overflow-x: auto; margin: 10px 0 14px; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; background: #fff; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; line-height: 1.6; }
.legal-table th { background: var(--bg); font-weight: 600; }
.legal-biz { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14px; margin: 8px 0; }
.legal-biz dt { color: var(--muted, #777); }
.legal-biz dd { margin: 0; }
mark.todo { background: #fff1c2; color: #8a5a00; padding: 0 4px; border-radius: 4px; font-size: .95em; }
.agree-list { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.agree-list a { text-decoration: underline; }

/* 아직 프로필이 없을 때 홈 무대에 놓는 빈 명함 */
.card-ghost { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 230px; padding: 24px; text-align: center;
  background: rgba(255,255,255,.7); border: 2px dashed var(--line); box-shadow: none; color: var(--ink); }
.card-ghost .ghost-icon { font-size: 40px; }
.card-ghost small { color: var(--muted); }
.card-ghost:hover { border-color: var(--coral); }

/* 글자처럼 보이는 버튼 (비밀번호 찾기 등) */
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--muted); font: inherit; font-size: 13.5px; text-decoration: underline; cursor: pointer; align-self: center; }
.link-btn:hover { color: var(--ink); }
.link-btn[hidden] { display: none; }

/* 임시저장 */
.draft-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--butter-soft); border-radius: 16px; padding: 14px 18px; margin-bottom: 18px; }
.draft-banner b { display: block; font-size: 14.5px; }
.draft-banner small { color: #6e5214; font-size: 12.5px; }
.draft-actions { display: flex; gap: 8px; }
.draft-status { margin-right: auto; align-self: center; }
@media (max-width: 640px) { .draft-status { width: 100%; text-align: right; } }

.admin-top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
