@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url("https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --paper: #f3efe6;
  --paper-2: #ebe5d8;
  --sheet: #fbf9f4;
  --ink: #1c1b18;
  --ink-2: #3a3832;
  --muted: #6f6a5f;
  --line: #d9d2c3;
  --line-2: #c7bfad;
  --accent: #b8431f;
  --accent-ink: #fff8f2;
  --accent-soft: #f4dfd3;
  --ok: #3f5b3a;
  --ok-soft: #e1e6d6;
  --star: #b8862b;
  --serif: "Gowun Batang", "Nanum Myeongjo", "AppleMyungjo", serif;
  --mono: "IBM Plex Mono", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --sans: Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.7 var(--sans); letter-spacing: -0.005em;
  word-break: keep-all; overflow-wrap: anywhere;
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
code { font-family: var(--mono); font-size: .9em; background: var(--paper-2); padding: 1px 6px; border-radius: 3px; }

/* 버튼·입력 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 4px; border: 1px solid var(--ink);
  background: transparent; cursor: pointer; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 15px; line-height: 1.2;
  transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: default; background: transparent; color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:disabled { background: var(--ink); color: var(--paper); }
.btn.small { padding: 7px 12px; font-size: 13.5px; }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: transparent; color: var(--ink); text-decoration: underline; }
.btn .arr { font-family: var(--mono); transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
input[type=email], input[type=password], input[type=text], textarea, select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 4px;
  background: var(--sheet); transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus, .btn:focus-visible, a:focus-visible {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28,27,24,.12);
}
textarea { resize: vertical; min-height: 92px; line-height: 1.65; }
label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: 6px; }
.tag {
  display: inline-block; font: 600 12px/1.5 var(--sans); letter-spacing: 0;
  padding: 1px 7px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--ink-2); background: transparent;
}
.tag.warn { border-color: var(--accent); color: var(--accent); }
.tag.ok { border-color: var(--ok); color: var(--ok); }

/* 상단바 */
.top { position: sticky; top: 0; z-index: 10; background: rgba(243,239,230,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); }
.logo b { font: 700 21px/1 var(--serif); letter-spacing: -0.02em; }
.logo small { font: 400 11px/1 var(--mono); color: var(--muted); letter-spacing: .06em; }
.top nav { display: flex; gap: 6px; align-items: center; }
.top nav a.link { font-size: 14.5px; color: var(--ink-2); text-decoration: none; padding: 6px 10px; }
.top nav a.link:hover { text-decoration: underline; }

/* ───────── 랜딩 ───────── */
.kicker { font: 500 13px/1.4 var(--sans); letter-spacing: .02em; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero { padding: 88px 0 72px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
.hero h1 {
  font: 700 clamp(40px, 6.2vw, 76px)/1.12 var(--serif); letter-spacing: -0.045em; margin: 22px 0 26px;
}
.hero h1 .strike { position: relative; color: var(--muted); }
.hero h1 .strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 54%; height: 4px; background: var(--accent);
  transform: rotate(-2deg); transform-origin: left; animation: strike .7s .5s cubic-bezier(.6,0,.2,1) both;
}
@keyframes strike { from { transform: rotate(-2deg) scaleX(0); } }
.hero p.lead { font-size: 18px; color: var(--ink-2); margin: 0 0 32px; max-width: 30em; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero .cta .note { font-size: 13.5px; color: var(--muted); margin-left: 6px; }

/* 리뷰관리 화면 흉내 */
.console { background: var(--sheet); border: 1px solid var(--ink); border-radius: 6px; box-shadow: 8px 8px 0 var(--ink); overflow: hidden; }
.console .bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.console .bar .mono { color: var(--muted); }
.console .row { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.console .row:last-child { border-bottom: 0; }
.console .head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.stars { color: var(--star); letter-spacing: 1px; font-size: 13px; }
.console .text { font-size: 15px; }
.console .reply { margin-top: 12px; padding: 10px 0 2px 14px; border-left: 2px solid var(--ink); font-size: 14.5px; color: var(--ink-2); }
.console .reply.warn { border-color: var(--accent); }
.console .reply .who { display: block; font: 600 11.5px/1.4 var(--sans); color: var(--muted); margin-bottom: 4px; letter-spacing: .04em; }
.typing { white-space: pre-wrap; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--ink); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 섹션 공통 */
section.block { padding: 96px 0; border-top: 1px solid var(--ink); }
.sec-head { display: grid; grid-template-columns: 200px 1fr; gap: 32px; margin-bottom: 48px; }
.sec-head h2 { font: 700 clamp(28px, 3.6vw, 42px)/1.25 var(--serif); letter-spacing: -0.035em; margin: 0 0 12px; }
.sec-head p { margin: 0; color: var(--ink-2); max-width: 36em; }

/* 순서 */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); margin: 0; padding: 0; list-style: none; }
.flow li { padding: 22px 22px 8px 0; border-right: 1px solid var(--line); margin-right: 22px; }
.flow li:last-child { border-right: 0; margin-right: 0; }
.flow .no { font: 500 13px var(--mono); color: var(--accent); }
.flow h3 { font-size: 18px; margin: 14px 0 8px; letter-spacing: -0.02em; }
.flow p { margin: 0; color: var(--muted); font-size: 15px; }

/* 비교표 */
.compare { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.compare th, .compare td { text-align: left; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 600 12.5px var(--sans); letter-spacing: 0; color: var(--muted); border-bottom: 1px solid var(--ink); }
.compare td:first-child { font-weight: 600; width: 22%; }
.compare td:nth-child(2) { color: var(--muted); width: 36%; }
.compare td:nth-child(3) { color: var(--ink); }
.compare td:nth-child(3)::before { content: "→ "; font-family: var(--mono); color: var(--accent); }

/* 요금: 영수증 */
.price { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.receipt {
  background: var(--sheet); padding: 30px 28px 26px; position: relative; font-size: 15px;
  border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(28,27,24,.35);
  transform: rotate(-1deg);
}
.receipt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: linear-gradient(-45deg, transparent 6px, var(--sheet) 0) 0 0/14px 10px, linear-gradient(45deg, transparent 6px, var(--sheet) 0) 0 0/14px 10px;
}
.receipt .mono { color: var(--muted); }
.receipt .amount { font: 700 46px/1.1 var(--serif); letter-spacing: -0.04em; margin: 10px 0 4px; }
.receipt .amount small { font: 400 15px var(--sans); color: var(--muted); letter-spacing: 0; }
.receipt hr { border: 0; border-top: 1px dashed var(--line-2); margin: 18px 0; }
.receipt .line { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.receipt .line span:last-child { font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }
.receipt .btn { width: 100%; margin-top: 8px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 17px; padding: 20px 40px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 24px var(--mono); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { margin: -4px 0 22px; color: var(--ink-2); max-width: 40em; }

.closing { padding: 110px 0; border-top: 1px solid var(--ink); text-align: left; }
.closing h2 { font: 700 clamp(30px, 4.4vw, 54px)/1.2 var(--serif); letter-spacing: -0.04em; margin: 0 0 28px; max-width: 16em; }
footer { padding: 28px 0 44px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ───────── 로그인 ───────── */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--ink); color: var(--paper); padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth-side .logo { color: var(--paper); }
.auth-side .logo small { color: #a49e90; }
.auth-side blockquote { margin: 0; font: 400 clamp(22px, 2.4vw, 30px)/1.55 var(--serif); letter-spacing: -0.02em; max-width: 16em; }
.auth-side blockquote .stars { display: block; font-size: 14px; margin-bottom: 14px; }
.auth-side .reply { margin-top: 24px; padding-left: 16px; border-left: 2px solid var(--accent); color: #d6d0c3; font-size: 15px; max-width: 30em; }
.auth-side .mono { color: #a49e90; }
.auth-main { display: grid; place-items: center; padding: 48px 28px; }
.auth { width: 100%; max-width: 380px; }
.auth h1 { font: 700 34px/1.25 var(--serif); letter-spacing: -0.035em; margin: 14px 0 28px; }
.auth form { display: grid; gap: 16px; }
.auth .btn.primary { width: 100%; padding: 13px; margin-top: 4px; }
.auth #switch { font-size: 14.5px; }
.err { color: var(--accent); min-height: 1.4em; font-size: 14px; }

/* ───────── 대시보드 ───────── */
.dash { display: grid; grid-template-columns: 210px 1fr; gap: 48px; padding: 36px 28px 80px; }
.side { display: grid; gap: 0; align-content: start; position: sticky; top: 96px; border-top: 1px solid var(--ink); }
.side a { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 2px; border-bottom: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 15px; }
.side a:hover { color: var(--ink); }
.side a.on { color: var(--ink); font-weight: 700; }
.side a.on::before { content: "■"; font-size: 8px; color: var(--accent); margin-right: 8px; align-self: center; }
.side a .n { font: 500 12.5px var(--mono); color: var(--muted); margin-left: auto; }
.side a.warn .n { color: var(--accent); }
.notice { padding: 14px 18px; margin-bottom: 24px; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent-soft); color: #6e2510; font-size: 15px; }
.notice.ok { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.toolbar { display: flex; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; }
.toolbar h2, #view > h2 { font: 700 30px/1.3 var(--serif); letter-spacing: -0.035em; margin: 0; }
#view > h2 { margin-bottom: 20px; }
#view > p.muted { margin: 4px 0 24px; font-size: 15px; }
.list { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.list > .card { border-width: 0 0 1px; border-radius: 0; background: transparent; }
.item { padding: 22px 0; display: grid; gap: 12px; }
.item.complaint { box-shadow: inset 3px 0 0 var(--accent); padding-left: 18px; }
.item .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.item .meta input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.item .content { white-space: pre-wrap; font-size: 15.5px; }
.item .reason { font-size: 14px; color: var(--accent); font-weight: 600; }
.item textarea { background: var(--sheet); }
.item textarea[readonly] { background: transparent; border-style: dashed; color: var(--ink-2); }
.item .actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.item .error { font: 12.5px/1.5 var(--mono); color: var(--accent); }
.empty { padding: 56px 20px; text-align: center; color: var(--muted); }
.form-grid { display: grid; gap: 24px; padding: 28px; max-width: 660px; }
.radio { display: flex; gap: 6px; flex-wrap: wrap; }
.radio label { font-weight: 500; border: 1px solid var(--line-2); border-radius: 4px; padding: 8px 12px; margin: 0; cursor: pointer; background: var(--sheet); font-size: 14.5px; }
.radio label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.radio input { margin: 0 6px 0 0; accent-color: var(--accent); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 4px; font-size: 14px; z-index: 50; animation: rise .2s ease-out; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }
.guide ol { padding-left: 22px; margin: 0 0 12px; } .guide li { margin-bottom: 12px; } .guide li::marker { font-family: var(--mono); color: var(--accent); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 56px 0; }
  .sec-head { grid-template-columns: 1fr; gap: 8px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(2n) { border-right: 0; margin-right: 0; }
  .price { grid-template-columns: 1fr; gap: 56px; }
  .receipt { max-width: 420px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { padding: 28px; gap: 28px; }
  .auth-side blockquote { font-size: 21px; }
  .dash { grid-template-columns: 1fr; gap: 24px; padding-top: 20px; }
  .side { position: static; grid-auto-flow: column; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--ink); gap: 18px; }
  .side a { white-space: nowrap; gap: 6px; border-bottom: 0; }
  .side a.on { box-shadow: inset 0 -2px 0 var(--accent); }
  .side a.on::before { content: none; }
}
@media (max-width: 560px) {
  .wrap, .dash { padding-left: 16px; padding-right: 16px; }
  .flow { grid-template-columns: 1fr; }
  .flow li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .top nav .hide-sm { display: none; }
  section.block { padding: 64px 0; }
  .console { box-shadow: 5px 5px 0 var(--ink); }
  .compare thead { display: none; }
  .compare tr { display: block; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .compare td { display: block; border: 0; padding: 2px 0; width: auto !important; }
  .form-grid { padding: 20px; }
}
