@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --bg: #faf8f5;
  --paper: #ffffff;
  --ink: #141414;
  --muted: #6b6762;
  --faint: #a19c95;
  --line: #e7e2db;
  --rose: #b4234a;
  --rose-bg: #f6e8eb;
  --plus: #17724a;
  --minus: #c8312b;
  --band: #1d1a18;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* 상단 */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 248, 245, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.logo small { font-weight: 500; font-size: 12px; color: var(--faint); margin-left: 6px; letter-spacing: 0; }
.nav { display: flex; gap: 28px; align-items: center; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 16px; border: 1px solid var(--ink); cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: #000; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.sm { height: 40px; padding: 0 18px; font-size: 14px; }
.nav .btn { color: #fff; }

/* 첫 화면 */
.hero { padding: 64px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--rose); letter-spacing: .02em; margin: 0 0 18px; }
h1, h2, h3 { letter-spacing: -0.03em; margin: 0; }
h1 { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.12; font-weight: 800; }
h2 { font-size: clamp(32px, 3.8vw, 54px); line-height: 1.12; font-weight: 800; }
h3 { font-size: 24px; line-height: 1.3; font-weight: 700; }
.lead { font-size: 20px; color: var(--muted); margin: 28px 0 36px; max-width: 30em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-note { font-size: 14px; color: var(--faint); margin-top: 16px; }

.hero-visual { position: relative; }
.hero-visual .photo { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: 4px; }
.float-card {
  position: absolute; left: -48px; bottom: 40px; width: 320px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 18px 20px; box-shadow: 0 10px 30px rgba(20, 20, 20, .08);
  font-size: 14px;
}
.float-card .fc-title { font-size: 12px; color: var(--faint); margin-bottom: 10px; }
.fc-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); gap: 12px; }
.fc-row:first-of-type { border-top: 0; }
.fc-row .n { font-weight: 600; }
.fc-row .v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.minus { color: var(--minus); }
.plus { color: var(--plus); }

/* 큰 숫자 띠 */
.band { background: var(--band); color: #f3efe9; padding: 110px 0; }
.band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: end; }
.bignum { font-size: clamp(64px, 10vw, 150px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.bignum .arrow { color: #8a837b; font-weight: 300; margin: 0 .12em; }
.bignum .to { color: #ff7a93; }
.band p { font-size: 20px; color: #c9c2b9; margin: 0; }
.band strong { color: #fff; }
.band .src { font-size: 13px; color: #8a837b; margin-top: 18px; }

/* 공통 구역 */
section { scroll-margin-top: 80px; }
.sec { padding: 120px 0; }
.sec-head { max-width: 760px; margin-bottom: 64px; }
.sec-head p { font-size: 19px; color: var(--muted); margin: 22px 0 0; }

/* 엑셀 → 리포트 */
.convert { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; gap: 12px; }
.convert .arrow { text-align: center; font-size: 34px; color: var(--faint); }
.sheet, .report-mini { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.sheet { overflow-x: auto; }
.sheet-tag, .rm-tag { font-size: 13px; font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.sheet-tag span:last-child, .rm-tag span:last-child { color: var(--faint); font-weight: 500; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 12px; color: #7d7871; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { border-right: 1px solid #f0ece6; border-bottom: 1px solid #f0ece6; padding: 7px 8px; text-align: right; white-space: nowrap; }
.sheet th { background: #f7f4f0; font-weight: 600; color: #8f8a83; text-align: center; }
.sheet td:first-child, .sheet th:first-child { text-align: left; }
.sheet .fade td { opacity: .45; }
.report-mini table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.report-mini th, .report-mini td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: right; }
.report-mini th { font-size: 12px; color: var(--faint); font-weight: 500; }
.report-mini td:first-child, .report-mini th:first-child { text-align: left; }
.report-mini tr:last-child td { border-bottom: 0; }
.flag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--minus); background: #fbeceb; border-radius: 3px; padding: 2px 6px; margin-left: 6px; vertical-align: 1px; }
.flag.warn { color: #9a5b00; background: #fbf1df; }

/* 지그재그 */
.zig { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 120px; }
.zig:last-child { margin-bottom: 0; }
.zig.rev .zig-photo { order: 2; }
.zig-photo img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 4px; }
.zig-text .num { font-size: 15px; font-weight: 700; color: var(--rose); margin-bottom: 16px; display: block; }
.zig-text h3 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.18; font-weight: 800; }
.zig-text p { color: var(--muted); font-size: 18px; margin: 22px 0 0; }
.zig-text ul { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--line); }
.zig-text li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
.zig-text li span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

/* 색면 위 인용 */
.quote { position: relative; padding: 140px 0; color: #fff; background: #6d2b3b center / cover no-repeat; }
.quote::before { content: ''; position: absolute; inset: 0; background: rgba(76, 22, 36, .72); }
.quote .wrap { position: relative; }
.quote blockquote { margin: 0; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.32; font-weight: 700; letter-spacing: -0.02em; max-width: 900px; }
.quote cite { display: block; margin-top: 30px; font-style: normal; font-size: 15px; color: #f0d6dc; }

/* 요금 */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.plan { padding: 32px 26px 36px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.plan:last-child { border-right: 0; }
.plan.main { background: var(--paper); box-shadow: inset 0 3px 0 var(--rose); }
.plan .pname { font-weight: 700; font-size: 18px; }
.plan .pname em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--rose); margin-left: 6px; }
.plan .price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 18px 0 4px; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .pdesc { font-size: 14px; color: var(--muted); min-height: 44px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; font-size: 15px; flex: 1; }
.plan li { padding: 9px 0; border-top: 1px solid var(--line); }
.plans-note { font-size: 14px; color: var(--muted); margin-top: 26px; }
.early { margin-top: 40px; display: flex; gap: 20px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.early b { color: var(--rose); font-size: 20px; white-space: nowrap; }

/* 자주 묻는 질문 */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 300; font-size: 26px; line-height: 1; color: var(--faint); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); margin: 14px 0 0; max-width: 46em; }

/* 신청 */
.apply { background: var(--paper); border-top: 1px solid var(--line); }
.apply .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; }
.form { display: grid; gap: 22px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.field label .opt { font-weight: 400; color: var(--faint); font-size: 13px; margin-left: 4px; }
.field input[type=text], .field input[type=email], .field input[type=url], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid #d8d2ca;
  border-radius: 4px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 500; font-size: 14px; border: 1px solid #d8d2ca; border-radius: 999px; padding: 8px 14px; cursor: pointer; background: #fff; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips input:checked + span { font-weight: 700; }
.chips label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.chips label:has(input:focus-visible) { outline: 2px solid var(--rose); outline-offset: 2px; }
.consent { font-size: 13px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; }
.consent p { margin: 0 0 6px; }
.consent label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink); font-weight: 600; margin-top: 10px; cursor: pointer; }
.consent input { margin-top: 4px; }
.form .err { color: var(--minus); font-size: 14px; min-height: 20px; margin: 0; }
.done { display: none; border-top: 1px solid var(--ink); padding-top: 28px; }
.done h3 { font-size: 30px; }
.done p { color: var(--muted); }

/* 바닥 */
footer { padding: 56px 0 72px; font-size: 13px; color: var(--faint); border-top: 1px solid var(--line); }
footer .wrap { display: grid; gap: 8px; }

/* 리포트(demo) */
.demo-bar { background: var(--rose-bg); color: #7a1730; font-size: 14px; padding: 10px 0; }
.demo-bar .wrap { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.r-head { padding: 48px 0 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.r-head h1 { font-size: clamp(30px, 3.4vw, 44px); }
.r-head .meta { color: var(--muted); font-size: 15px; margin-top: 10px; }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg button { font: inherit; font-size: 14px; border: 0; background: transparent; padding: 9px 18px; cursor: pointer; color: var(--ink); }
.seg button[aria-pressed=true] { background: var(--ink); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.kpi { padding: 26px 24px 28px 0; border-right: 1px solid var(--line); }
.kpi + .kpi { padding-left: 24px; }
.kpi:last-child { border-right: 0; }
.kpi .k { font-size: 14px; color: var(--muted); }
.kpi .v { font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 13px; color: var(--faint); margin-top: 4px; }
.r-sec { padding: 56px 0 8px; }
.r-sec h2 { font-size: 26px; margin-bottom: 8px; }
.r-sec .sub { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.flow { display: flex; height: 44px; border-radius: 3px; overflow: hidden; }
.flow div { height: 100%; }
.flow-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 32px; margin-top: 18px; border-top: 1px solid var(--line); }
.flow-legend div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.flow-legend span { white-space: nowrap; }
.tbl th.l, .tbl td.l { text-align: left; padding-left: 28px; }
.flow-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: 0; }
.flow-legend b { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; min-width: 760px; }
.tbl th { font-size: 13px; color: var(--muted); font-weight: 500; text-align: right; padding: 12px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { text-align: right; padding: 14px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 0; }
.tbl tr.bad td { background: #fdf6f5; }
.held-list .tbl { min-width: 560px; }
.r-cta { margin: 72px 0 96px; padding: 40px 0; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.r-cta h3 { font-size: 26px; }
.r-cta p { color: var(--muted); margin: 8px 0 0; }

/* 화면 좁을 때 */
@media (max-width: 960px) {
  .hero .wrap, .band .wrap, .apply .wrap, .zig { grid-template-columns: 1fr; gap: 40px; }
  .zig.rev .zig-photo { order: 0; }
  .float-card { left: 16px; right: 16px; width: auto; bottom: 16px; }
  .convert { grid-template-columns: 1fr; }
  .convert .arrow { transform: rotate(90deg); }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan:nth-child(2) { border-right: 0; }
  .plan:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .kpi:nth-child(3) { padding-left: 0; }
  .nav a:not(.btn) { display: none; }
  .sec { padding: 88px 0; }
  .zig { margin-bottom: 88px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 36px 0 72px; }
  .lead { font-size: 18px; }
  .plans { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--line); }
  .early { flex-direction: column; gap: 6px; }
  .band { padding: 80px 0; }
  .quote { padding: 96px 0; }
  .logo small { display: none; }
  .report-mini table { font-size: 13px; }
  .report-mini th, .report-mini td { padding: 10px 8px; }
  .report-mini td:first-child, .report-mini th:first-child { padding-left: 12px; }
  .report-mini td:last-child, .report-mini th:last-child { padding-right: 12px; }
  .report-mini .flag { margin-left: 0; margin-top: 2px; }
  .bignum { font-size: 64px; }
}

/* 공개용 추가(2026-12-06): 스팸 막기 칸, 문의·관리 화면 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent a, .faq p a { text-decoration: underline; text-underline-offset: 3px; }
.page { max-width: 640px; margin: 0 auto; padding: 72px 28px 96px; }
.page h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.12; margin: 0 0 18px; word-break: keep-all; }
.page .lead { margin-bottom: 36px; }
.admin { max-width: 1280px; margin: 0 auto; padding: 40px 28px 96px; }
.admin h1 { font-size: 30px; margin: 0 0 8px; }
.admin h2 { font-size: 20px; margin: 44px 0 12px; }
.admin .keyrow { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.admin .keyrow input { flex: 1 1 260px; height: 44px; border: 1px solid var(--line); border-radius: 4px; padding: 0 12px; font: inherit; }
.admin .nums { display: flex; gap: 40px; flex-wrap: wrap; border-top: 1px solid var(--ink); padding-top: 18px; }
.admin .nums b { display: block; font-size: 40px; line-height: 1.1; }
.admin .nums span { color: var(--muted); font-size: 14px; }
.admin table { border-collapse: collapse; width: 100%; font-size: 13px; }
.admin th, .admin td { border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }
.admin th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.admin .scroll { overflow-x: auto; }
.admin .muted { color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .page { padding: 48px 20px 72px; } .admin { padding: 28px 20px 72px; } }
