/* 매출올려드림 AI · 화면 스타일
   글꼴: Pretendard (public/fonts, SIL OFL 1.1)
   색: 로고의 남색(#001830)·파랑(#0030a8)·금색(#c0a878)을 화면용으로 맞춤 */
:root {
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --card: #ffffff;
  --ink: #111c2e;
  --ink-2: #333d4b;
  --muted: #6b7684;
  --muted-2: #8b95a1;
  --line: #e5e8ec;
  --line-2: #eff1f4;
  --line-strong: #d3d8de;
  --brand: #1f4fe0;
  --brand-hover: #1a43c7;
  --brand-dark: #1a3fae;
  --brand-ink: #183a9b;
  --brand-soft: #eef3ff;
  --brand-line: #c7d6ff;
  --gold: #b0883a;
  --ok: #12805c;
  --ok-soft: #e7f6ef;
  --warn: #b25e09;
  --warn-soft: #fff5e8;
  --bad: #d22f27;
  --bad-soft: #fdeeed;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(17, 28, 46, 0.04);
  --shadow-pop: 0 18px 40px -20px rgba(17, 28, 46, 0.22);
  --ring: 0 0 0 4px rgba(31, 79, 224, 0.14);
  --wrap: 760px;
  --wrap-wide: 1140px;
  --pad: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; font-weight: 400; line-height: 1.65; letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
button, input, textarea, select { font-family: inherit; letter-spacing: inherit; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 10px; color: var(--ink); font-weight: 700; }
h1 { font-size: 28px; line-height: 1.3; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: 21px; line-height: 1.42; letter-spacing: -0.028em; }
h3 { font-size: 18px; line-height: 1.45; letter-spacing: -0.022em; }
p { margin: 0 0 10px; }
b, strong { font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; line-height: 1.6; }
.tiny { font-size: 12.5px; line-height: 1.55; }
.strong { font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
@media (min-width: 640px) {
  h2 { font-size: 23px; }
  h3 { font-size: 19px; }
}

/* ───────── 상단: 베타 안내 · 로고 */
.demo-bar { background: var(--bg-soft); color: var(--muted); font-size: 13px; line-height: 1.5; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.demo-bar .wrap { max-width: var(--wrap-wide); display: flex; gap: 8px; align-items: center; justify-content: center; text-align: center; }
.demo-bar b { flex: none; color: var(--brand); background: var(--brand-soft); font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.top { background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line-2); position: sticky; top: 0; z-index: 20; }
.top .wrap { max-width: var(--wrap-wide); display: flex; align-items: center; gap: 12px; min-height: 60px; }
.logo { display: flex; align-items: center; flex: none; text-decoration: none; }
.logo img { display: block; height: 38px; width: auto; }
.store-name { margin-left: auto; min-width: 0; flex: 1; text-align: right; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

main { padding: 28px 0 128px; }
@media (min-width: 640px) {
  .top .wrap { min-height: 68px; }
  .logo img { height: 46px; }
  main { padding-top: 44px; }
}

/* ───────── 카드 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card.note { background: var(--bg-soft); border-color: transparent; box-shadow: none; }
.card.note > b:first-child { display: block; margin-bottom: 6px; color: var(--ink); }
.card.warn { background: var(--warn-soft); border-color: #f6dcb6; box-shadow: none; }
@media (min-width: 640px) {
  .card { padding: 28px; border-radius: var(--radius-lg); margin-bottom: 16px; }
}

/* ───────── 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2);
  font-size: 16px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; text-align: center;
  cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.06s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:active { background: var(--brand-hover); }
.btn.go::after { content: "→"; font-weight: 600; transform: translateY(-1px); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, .opt:focus-visible, .pill:focus-visible, .status-btn:focus-visible { outline: 3px solid rgba(31, 79, 224, 0.35); outline-offset: 2px; }
@media (hover: hover) {
  .btn:hover { background: var(--bg-soft); border-color: #c4cad2; }
  .btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
  .btn[disabled]:hover { background: #fff; }
  .btn.primary[disabled]:hover { background: var(--brand); }
}
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.btn-row .btn { flex: 1 1 auto; }

/* 아래 고정 버튼 줄 */
.navbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-top: 1px solid var(--line); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
.navbar .wrap { display: flex; gap: 10px; align-items: center; }
.navbar .btn { flex: 1; white-space: nowrap; padding: 0 14px; }
.navbar .btn.primary { flex: 2; }
.navcount { flex: none; font-weight: 600; color: var(--muted); font-size: 14px; padding: 0 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) {
  .navbar { padding-top: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .navbar .wrap { gap: 12px; }
  .navbar .btn { flex: 0 0 auto; min-width: 128px; padding: 0 24px; }
  .navbar .btn.primary { flex: 0 0 auto; min-width: 200px; margin-left: auto; }
}

/* ───────── 질문 머리 · 입력칸 */
.qhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.area-tag { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 4px 11px; border-radius: 999px; letter-spacing: -0.01em; }
label.field { display: block; margin: 16px 0 0; font-weight: 600; font-size: 15px; color: var(--ink-2); }
label.field > span.lab { display: block; margin-bottom: 8px; }
input[type=text], textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--ink);
  font-size: 16px; line-height: 1.5; transition: border-color 0.15s, box-shadow 0.15s;
}
input[type=text] { min-height: 52px; padding: 13px 16px; }
textarea { min-height: 96px; padding: 13px 16px; resize: vertical; }
input[type=text]::placeholder, textarea::placeholder { color: #a3abb6; }
input[type=text]:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.hint { color: var(--bad); font-weight: 600; font-size: 14.5px; margin-top: 10px; }
.hint:empty { display: none; }

/* ───────── 첫 화면 */
.hero { margin: 0 0 28px; }
.hero h1 { font-size: 30px; line-height: 1.3; margin: 0 0 14px; }
.hero .hero-highlight { color: var(--brand); }
.hero .hero-sub { font-size: 19px; font-weight: 700; line-height: 1.45; letter-spacing: -0.025em; color: var(--ink-2); margin: 0 0 8px; }
.hero .hero-intro { font-size: 17px; font-weight: 500; line-height: 1.6; letter-spacing: -0.02em; color: var(--ink-2); margin: 0 0 12px; }
.hero-break-mobile { display: none; }
@media (max-width: 600px) { .hero-break-mobile { display: inline; } }
.hero .hero-desc { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0 0 20px; }
.hero .hero-trust { font-size: 15px; font-weight: 600; line-height: 1.65; color: var(--brand-ink); background: var(--brand-soft); border-radius: 14px; padding: 14px 18px; margin: 0; }
#startCard h2 { margin-bottom: 4px; }
#startCard .small.muted { margin: 14px 0 0; }
#startCard .small.muted.start-intro { margin: 4px 0 0; font-size: 14px; line-height: 1.6; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 4px 0 0; }
.steps-list li { position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--line-2); line-height: 1.55; }
.steps-list li:last-child { border-bottom: 0; padding-bottom: 2px; }
.steps-list li b { font-weight: 700; color: var(--ink); }
.steps-list li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 11px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 13.5px; }
.note-list { margin: 0; padding-left: 20px; }
.note-list li { margin: 5px 0; }
.note-list li::marker { color: var(--muted-2); }
@media (min-width: 768px) {
  .hero h1 { font-size: 40px; line-height: 1.25; letter-spacing: -0.04em; }
  .hero .hero-sub { font-size: 21px; }
  .hero .hero-intro { font-size: 18px; }
  .hero .hero-desc { font-size: 16px; }
  .hero .hero-trust { font-size: 16px; }
}
/* 넓은 화면: 왼쪽 소개 · 오른쪽 첫 질문 */
body[data-page="home"] #view, body[data-page="home"] .navbar .wrap { max-width: var(--wrap-wide); }
@media (min-width: 1024px) {
  body[data-page="home"] main { padding-top: 72px; }
  body[data-page="home"] #view { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); column-gap: 80px; align-items: start; }
  body[data-page="home"] #view > .hero { grid-column: 1; grid-row: 1; align-self: center; margin: 0; padding: 12px 0; }
  body[data-page="home"] #view > .resume { grid-column: 1; grid-row: 2; align-self: start; margin: 24px 0 0; }
  body[data-page="home"] #view > #startCard { grid-column: 2; grid-row: 1 / span 2; margin: 16px 16px 0 0; padding: 32px; border-radius: 22px; box-shadow: 0 0 0 16px var(--bg-soft), var(--shadow-pop); border-color: #e9ecf0; }
  body[data-page="home"] #view > .steps-card { grid-column: 1; grid-row: 3; margin: 64px 0 0; }
  body[data-page="home"] #view > .privacy-card { grid-column: 2; grid-row: 3; margin: 64px 0 0; align-self: stretch; }
  .hero h1 { font-size: 48px; line-height: 1.22; }
  .hero .hero-sub { font-size: 23px; margin-bottom: 10px; }
  .hero .hero-intro { font-size: 19px; margin-bottom: 14px; }
  .hero .hero-desc { font-size: 17px; margin-bottom: 26px; }
  .hero .hero-trust { padding: 16px 20px; }
}

/* ───────── 불러오는 중 */
.loading { text-align: center; padding: 40px 22px; }
.loading h2 { margin-bottom: 8px; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--brand-soft); border-top-color: var(--brand); margin: 4px auto 18px; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading .elapsed { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--brand); }
.draft-progress { max-width: 620px; margin: 20px auto; padding: 42px 24px; }
.draft-progress h2 { font-size: clamp(21px, 4vw, 27px); line-height: 1.4; overflow-wrap: anywhere; }
.draft-progress-message { min-height: 3.2em; max-width: 35ch; margin: 18px auto; display: flex; align-items: center; justify-content: center; color: var(--ink-2); font-size: 17px; font-weight: 600; line-height: 1.6; }
.draft-progress-note { border-top: 1px solid var(--line); padding-top: 16px; margin: 16px 0 8px; font-weight: 600; }
.draft-progress .tiny { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .draft-progress .spinner { animation: none; } }

/* ───────── 가게 후보 */
.cand h3 { font-size: 21px; margin-bottom: 6px; }
.match { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.match.high { background: var(--ok-soft); color: var(--ok); }
.match.medium { background: var(--warn-soft); color: var(--warn); }
.match.low { background: var(--bad-soft); color: var(--bad); }
.kv { display: grid; grid-template-columns: 1fr; margin: 8px 0 12px; }
.kv > div { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.kv > div > span { color: var(--muted); flex: none; width: 74px; }
.kv > div > b { font-weight: 600; min-width: 0; color: var(--ink); }
.sub-title { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 16px 0 8px; letter-spacing: -0.015em; }
.menu-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.menu-chips span { background: var(--bg-soft); border-radius: 999px; padding: 5px 12px; font-size: 14.5px; }
.menu-chips span small { color: var(--muted); margin-left: 4px; }
.plain-list { margin: 0; padding-left: 20px; font-size: 15px; }
.plain-list li { margin: 4px 0; }
.links { display: flex; flex-wrap: wrap; gap: 6px; }
.links a { font-size: 14px; font-weight: 600; background: var(--brand-soft); border-radius: 8px; padding: 5px 11px; text-decoration: none; }
.reason { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.sources { margin: 0; padding-left: 20px; font-size: 14px; }
.sources li { margin: 4px 0; }

/* ───────── 인터뷰 */
.page-head { margin-bottom: 18px; }
.page-head h2 { margin: 4px 0 6px; }
.bar { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin: 12px 0 0; }
.bar > i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width 0.3s; }
.qcard { scroll-margin-top: 88px; }
.qcard.missing { border-color: #f2aaa3; box-shadow: 0 0 0 4px var(--bad-soft); }
.qcard .qno { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: -0.005em; }
.qcard .qtext { font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: -0.025em; margin: 4px 0 12px; color: var(--ink); }
.qcard.skipped .qbody { opacity: 0.4; }
.ai-hint { font-size: 14px; font-weight: 500; color: var(--brand-ink); background: var(--brand-soft); border-radius: 10px; padding: 8px 12px; margin: 0 0 12px; }
.help { font-size: 14.5px; color: var(--muted); margin: 0 0 10px; }
.opts { display: grid; gap: 8px; margin: 4px 0; }
.opt {
  text-align: left; min-height: 52px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 15.5px; font-weight: 500; color: var(--ink); cursor: pointer; line-height: 1.45; letter-spacing: -0.015em;
  transition: border-color 0.15s, background-color 0.15s;
}
.opt small { display: block; color: var(--muted); font-size: 13.5px; font-weight: 400; margin-top: 2px; }
.opt.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0; }
.pill {
  min-height: 42px; padding: 8px 15px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 500;
  color: var(--ink-2); cursor: pointer; line-height: 1.3; text-align: left; letter-spacing: -0.015em; transition: border-color 0.15s, background-color 0.15s;
}
.pill.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
@media (hover: hover) {
  .opt:hover, .pill:hover { border-color: var(--brand-line); }
  .opt.on:hover, .pill.on:hover { border-color: var(--brand); }
}
.field-block { margin: 16px 0 0; }
.field-block:first-child { margin-top: 4px; }
.field-label { font-size: 14.5px; font-weight: 700; margin-bottom: 8px; color: var(--ink-2); }
.field-label small { font-weight: 400; color: var(--muted); }
.qbody input[type=text] { min-height: 48px; }
.unit-input { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.unit-input input { flex: 1; min-width: 90px; }
.unit-input .unit { font-weight: 600; color: var(--muted); white-space: nowrap; font-size: 14.5px; }
.num-preview { flex-basis: 100%; font-size: 13px; color: var(--brand); font-weight: 700; }
.num-preview:empty { display: none; }
.split-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; margin: 8px 0; }
.split-row .unit-input.off { opacity: 0.35; pointer-events: none; }
.split-msg { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.split-msg.bad { color: var(--warn); font-weight: 600; }
.qcard.missing .split-msg.bad { color: var(--bad); font-weight: 700; }
.row-line { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 8px 0; background: var(--bg-soft); display: grid; gap: 10px; grid-template-columns: 1fr; }
.row-label { font-size: 13.5px; font-weight: 700; color: var(--brand); }
.row-line.cols-2, .row-line.cols-3, .row-line.cols-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.row-line .row-label, .row-line .cell-text { grid-column: 1 / -1; }
.cell { display: block; min-width: 0; }
.cell-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.item-line { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.item-line:last-child { border-bottom: 0; }
.item-label { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.status-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.status-btn { min-height: 36px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 500; color: var(--muted); cursor: pointer; }
.status-btn.on { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); font-weight: 700; }
details.why { margin-top: 14px; }
details.why summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: 14px; }
details.why p { font-size: 14px; color: var(--muted); margin: 6px 0 0; line-height: 1.6; }
.tip { border-color: #f6dcb6; background: var(--warn-soft); box-shadow: none; }
.tip-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; }
.stars { color: var(--gold); font-weight: 800; letter-spacing: 1px; }
.theme-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.theme-chips span { font-size: 13.5px; border-radius: 999px; padding: 3px 11px; background: var(--bg-soft); color: var(--ink-2); }
.theme-chips .tone-good { background: var(--ok-soft); color: var(--ok); }
.theme-chips .tone-bad { background: var(--bad-soft); color: var(--bad); }
.theme-chips .tone-mixed { background: var(--warn-soft); color: var(--warn); }
@media (min-width: 640px) {
  .qcard .qtext { font-size: 19px; }
}

/* ───────── 맞춤 솔루션 */
.sol { border-left: 4px solid var(--line-strong); }
.sol-3 { border-left-color: var(--bad); }
.sol-2 { border-left-color: var(--brand); }
.sol-1 { border-left-color: #9aa5b4; }
.sol-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.sol-3 .stars { color: var(--bad); }
.sol-level { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.sol-area { font-size: 12.5px; font-weight: 500; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: 2px 10px; }
.sol h3 { font-size: 18px; margin: 6px 0 10px; line-height: 1.45; }
.sol-row { margin: 0 0 10px; }
.sol-steps { margin: 0 0 12px; padding-left: 22px; font-size: 15.5px; }
.sol-steps li { margin: 6px 0; padding-left: 2px; }
.sol-steps li::marker { color: var(--brand); font-weight: 700; }
details.all-answers > summary { cursor: pointer; font-weight: 700; font-size: 16px; }
.answer-group h3 { margin-top: 20px; }

/* ───────── 완료 */
.section-title { margin: 32px 0 10px; }
.answers { list-style: none; padding: 0; margin: 0; }
.answers li { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.answers li:last-child { border-bottom: 0; }
.answers .a-q { font-size: 13.5px; color: var(--muted); }
.answers .a-v { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14.5px; font-weight: 500; z-index: 50; max-width: 92vw; opacity: 0; transition: opacity 0.2s; pointer-events: none; box-shadow: 0 10px 30px -12px rgba(17, 28, 46, 0.5); }
.toast.show { opacity: 1; }

@media (max-width: 359px) {
  :root { --pad: 16px; }
  .logo img { height: 32px; }
}
@media (min-width: 640px) {
  .kv { grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .opts.two { grid-template-columns: 1fr 1fr; }
  .row-line .row-label, .row-line .cell-text { grid-column: auto; }
  .row-line.cols-2 { grid-template-columns: 70px 1fr 1fr; align-items: end; }
  .row-line.cols-3 { grid-template-columns: 56px 2fr 1fr 1fr; align-items: end; }
  .row-line.cols-4 { grid-template-columns: 56px 1.4fr 1fr 1fr 1fr; align-items: end; }
  .item-line { grid-template-columns: 200px 1fr; align-items: center; }
}

/* ───────── AI 진단 보고서 */
.report-cta { border: 1.5px solid var(--brand-line); box-shadow: 0 0 0 4px var(--brand-soft); }
.report-cta.ready { border-color: #b6e3cf; box-shadow: 0 0 0 4px var(--ok-soft); }
label.consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; padding: 14px 16px; background: var(--brand-soft); border-radius: 12px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; line-height: 1.55; }
label.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.rep-head { margin: 0 2px 18px; }
.rep-kicker { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: -0.005em; }
.rep-title { font-size: 26px; line-height: 1.3; margin: 4px 0 6px; }
.rep-core { border: 1.5px solid var(--ink); }
.rep-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.situation { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 11px; border-radius: 999px; background: var(--ink); color: #fff; margin-bottom: 10px; }
.one-line { font-size: 21px; font-weight: 800; line-height: 1.45; letter-spacing: -0.03em; margin: 0 0 8px; }
.key-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 16px 0 4px; }
.key-metrics > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.key-metrics span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.key-metrics b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; margin: 2px 0; }
.rep-block { margin-top: 18px; }
.rep-block h3 { font-size: 15.5px; color: var(--brand); margin-bottom: 6px; }
.first-action { background: var(--brand-soft); border-radius: 14px; padding: 14px 16px; }
.ev-list { list-style: none; padding: 0; margin: 6px 0 10px; }
.ev-list li { font-size: 14.5px; padding: 4px 0; line-height: 1.55; }
.ev-tag { display: inline-block; font-size: 11.5px; font-weight: 700; line-height: 1.7; padding: 0 7px; border-radius: 6px; margin-right: 6px; background: var(--bg-soft); color: var(--ink-2); }
.ev-ans { background: #e8f0ff; color: #1d4ed8; }
.ev-calc { background: var(--ok-soft); color: var(--ok); }
.ev-pub { background: #f2e9ff; color: #7c3aed; }
.ev-est { background: var(--warn-soft); color: var(--warn); }
table.metrics { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 6px 0 10px; }
table.metrics th, table.metrics td { vertical-align: top; padding: 10px 2px; border-bottom: 1px solid var(--line-2); }
table.metrics th { text-align: left; font-weight: 600; width: 66%; color: var(--ink); }
table.metrics th small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: 2px; }
table.metrics td { text-align: right; white-space: nowrap; padding-left: 10px; }
table.metrics td b { font-weight: 700; letter-spacing: -0.02em; }
.kind { display: block; font-size: 12px; color: var(--muted); }
.kind-calc { color: var(--ok); }
.kind-est { color: var(--warn); }
.analysis-item { margin-bottom: 16px; }
.analysis-item:last-child { margin-bottom: 0; }
.analysis-item h3 { font-size: 15.5px; color: var(--brand); margin: 0 0 4px; }
.sol-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: 14.5px; }
.sol-meta dt { font-weight: 700; color: var(--ink-2); }
.sol-meta dd { margin: 0; color: var(--ink-2); }
.plan-cols { display: grid; gap: 10px; }
.plan-col { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.plan-col h3 { font-size: 15px; color: var(--brand); margin-bottom: 6px; }
.plan-col ul { margin: 0; padding-left: 18px; font-size: 14.5px; }
.rep-foot p { margin: 0 0 6px; }
@media (min-width: 640px) {
  .plan-cols { grid-template-columns: repeat(3, 1fr); }
  .rep-title { font-size: 30px; }
  .one-line { font-size: 23px; }
}

/* 인쇄·PDF 저장: 보고서만 짧고 깔끔하게 */
@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff; font-size: 9.5pt; line-height: 1.45; }
  .demo-bar, .navbar, .toast, .no-print, .store-name { display: none !important; }
  .top { position: static; box-shadow: none; border: 0; }
  .top .wrap { min-height: 0; padding: 0 0 4px; }
  .logo img { height: 22px; width: auto; }
  main { padding: 0 !important; }
  .wrap { max-width: none; padding: 0; }
  h1 { font-size: 15pt; } h2 { font-size: 12.5pt; } h3 { font-size: 10.5pt; }
  .small, .ev-list li, .plan-col ul, .sol-meta, table.metrics { font-size: 9pt; }
  .tiny, table.metrics th small, .kind, .key-metrics span { font-size: 7.5pt; }
  .card { box-shadow: none; border: 1px solid #cfcfcf; padding: 8px 10px; margin-bottom: 6px; border-radius: 6px; }
  .rep-head { margin: 0 0 6px; }
  .rep-title { font-size: 16pt; }
  .rep-core { border: 1.5px solid #000; }
  .one-line { font-size: 13pt; }
  .key-metrics { grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 6px 0 2px; }
  .key-metrics > div { padding: 4px 6px; }
  .key-metrics b { font-size: 12pt; }
  .rep-block { margin-top: 6px; }
  .first-action { padding: 6px 8px; }
  table.metrics th, table.metrics td { padding: 2px 2px; }
  .section-title { margin: 8px 0 2px; }
  .sol-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-items: start; }
  .sol-list .card { margin: 0; }
  .sol h3, .rep-block h3, .analysis-item h3, .plan-col h3 { font-size: 10.5pt; }
  .sub-title, .sol-row, .sol-steps li, .rep-label { font-size: 9pt; }
  .sol-steps { margin: 2px 0; padding-left: 16px; }
  .sol-steps li { margin: 0; }
  .sub-title { margin: 4px 0 1px; }
  .sol, .plan-col, .key-metrics > div, table.metrics tr, .first-action, .analysis-item { break-inside: avoid; }
  h2, h3, .section-title { break-after: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* ───────── 인터넷 조사 (보고서) */
.cta-steps { margin: 10px 0 14px; padding-left: 20px; }
.cta-steps li { margin: 6px 0; }
.cta-steps li::marker { color: var(--brand); font-weight: 700; }
.stage-bar { display: flex; gap: 6px; justify-content: center; margin: 4px 0 12px; font-size: 12.5px; font-weight: 700; }
.stage-bar span { padding: 4px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }
.stage-bar span.on { background: var(--brand); color: #fff; }
.stage-bar span.done { background: var(--ok-soft); color: var(--ok); }
.research .sub-title { margin-top: 20px; }
table.plat th a { font-weight: 700; }
table.plat th { width: 58%; }
table.plat td { width: 42%; white-space: normal; overflow-wrap: anywhere; }
.st-ok { color: var(--ok); }
.st-part { color: var(--warn); }
.st-no { color: var(--muted); }
.theme-list { list-style: none; padding: 0; margin: 4px 0; }
.theme-list li { border-bottom: 1px solid var(--line-2); padding: 12px 0; }
.theme-list li:last-child { border-bottom: 0; }
.theme-list p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; }
.theme-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.tone { font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--bg-soft); }
.tone-good { background: var(--ok-soft); color: var(--ok); }
.tone-bad { background: var(--bad-soft); color: var(--bad); }
.tone-mixed { background: var(--warn-soft); color: var(--warn); }
.theme-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
details.sources-box { margin-top: 16px; font-size: 14px; }
details.sources-box summary { cursor: pointer; font-weight: 700; color: var(--brand); }
details.sources-box ol { margin: 8px 0 0; padding-left: 20px; }
details.sources-box li { margin: 4px 0; word-break: break-all; }
.ev-paste { background: #e0f2fe; color: #0369a1; }
@media print {
  .research .theme-list li, table.plat tr { break-inside: avoid; }
  .theme-list p { font-size: 9pt; }
  .tone, .theme-meta, details.sources-box { font-size: 8pt; }
  details.sources-box summary { display: none; }
}

/* ───────── 개선안 보강 · PDF 저장 */
.sol-web { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #f2e9ff; color: #7c3aed; }
.sol-effect { background: var(--ok-soft); border-radius: 10px; padding: 10px 12px; margin-top: 10px; color: var(--ink-2); }
.pdf-render { position: absolute; left: -12000px; top: 0; width: 860px; background: #fff; }
.pdf-render .card { box-shadow: none; margin-bottom: 0; }
.pdf-brand { padding: 2px 2px 8px; }
.pdf-brand img { height: 30px; width: auto; display: block; }
.pdf-render .pdf-list { list-style: none; padding-left: 0; }
.pdf-render .pdf-list > li { display: flex; gap: 6px; }
.pdf-render .pdf-mark { flex: none; min-width: 1.3em; text-align: right; }
.pdf-render .pdf-li { flex: 1; min-width: 0; }

/* ───────── 보고서 맨 아래 고정 안내: 사장님이 직접 시작할 수 있는 매장 홍보 방법 (내용은 promo.js) */
.promo { margin: 28px 0 14px; padding: 22px 14px 14px; background: var(--brand-soft); border-radius: var(--radius-lg); }
.promo-intro { padding: 0 6px 16px; }
.promo-kicker { font-size: 13px; font-weight: 700; color: var(--brand); margin-bottom: 6px; letter-spacing: -0.005em; }
.promo-intro h2 { font-size: 22px; line-height: 1.4; letter-spacing: -0.03em; margin: 0 0 6px; }
.promo-intro p { margin: 0; color: var(--ink-2); }
.promo-item { background: #fff; border: 1px solid var(--brand-line); border-radius: var(--radius); padding: 20px 18px; }
.promo-item + .promo-item { margin-top: 12px; }
.promo-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.promo-no { flex: none; font-size: 13px; font-weight: 800; line-height: 1; color: #fff; background: var(--brand); border-radius: 8px; padding: 6px 8px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.promo-head h3 { margin: 0; font-size: 18.5px; line-height: 1.45; letter-spacing: -0.025em; }
.promo-cost { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: 4px 11px; margin: 0 0 12px; }
.promo-lead { margin: 0 0 12px; color: var(--ink-2); }
.promo-steps { list-style: none; margin: 0; padding: 0; }
.promo-steps li { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line-2); }
.promo-step-no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.promo-steps li > div { flex: 1; min-width: 0; }
.promo-steps b { display: block; font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--ink); margin-bottom: 3px; }
.promo-steps p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.promo-link { font-weight: 600; white-space: nowrap; }
.promo-prompt { margin: 6px 0 0; padding: 14px; background: var(--bg-soft); border-radius: 14px; }
.promo-prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.promo-prompt-head b { font-size: 15px; color: var(--ink); }
.promo-prompt-head .btn { flex: none; }
.promo-prompt-text { margin: 0; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 14.5px; line-height: 1.7; color: var(--ink); white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
.promo-note { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
@media (min-width: 768px) {
  .promo { padding: 30px 28px 28px; }
  .promo-intro { padding: 0 2px 18px; }
  .promo-intro h2 { font-size: 24px; }
  .promo-item { padding: 26px 28px; }
  .promo-item + .promo-item { margin-top: 16px; }
}
/* PDF 저장: 바탕색 없이 항목 카드만 (항목마다 따로 배치) */
.pdf-render .promo { margin: 0; padding: 0; background: none; border-radius: 0; }
.pdf-render .promo-intro { padding: 12px 2px 14px; }
@media print {
  .promo { background: none; padding: 0; margin: 10px 0 0; }
  .promo-intro { padding: 0 0 4px; }
  .promo-item { border: 1px solid #cfcfcf; border-radius: 6px; padding: 8px 10px; break-inside: avoid; }
  .promo-item + .promo-item { margin-top: 6px; }
  .promo-head h3 { font-size: 10.5pt; }
  .promo-steps li { padding: 3px 0; }
  .promo-steps b, .promo-steps p, .promo-lead, .promo-prompt-text { font-size: 9pt; }
  .promo-note, .promo-cost { font-size: 8pt; }
}

/* ───────── 유료화: 첫 화면 버튼·요금 안내 · 무료/유료 보고서 · 샘플 · 약관 · 바닥글 */
.tiny { font-size: 13px; }
.hero .hero-desc { margin-bottom: 18px; }
.hero-actions { display: grid; gap: 10px; margin: 0 0 12px; }
.hero-actions .btn { width: 100%; min-height: 54px; font-size: 16.5px; font-weight: 700; }
.hero-note { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }
@media (min-width: 640px) {
  .hero-actions { display: flex; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; min-width: 184px; padding: 0 26px; }
}

/* 가격 */
.price-tag { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 10px 0 12px; }
.price-list { color: var(--muted); font-size: 14px; }
.price-now { font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.price-tag.big .price-now { font-size: 30px; }
.price-off { align-self: center; font-size: 12.5px; font-weight: 800; color: #fff; background: #e5484d; border-radius: 999px; padding: 3px 9px; }

/* 체크 목록 */
.check-list { list-style: none; padding: 0; margin: 10px 0 0; }
.check-list li { position: relative; padding: 6px 0 6px 26px; line-height: 1.55; font-size: 15px; color: var(--ink-2); }
.check-list li::before { content: ''; position: absolute; left: 4px; top: 12px; width: 10px; height: 5px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }

/* 무료 진단과 맞춤 실행 패키지 비교 */
.plans { display: grid; gap: 12px; margin-top: 14px; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px 12px; background: #fff; }
.plan-paid { border: 1.5px solid var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.plan-name { font-weight: 800; font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink); }
.plan-chip { font-size: 12px; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: 2px 9px; }
.plan .price-tag { margin: 8px 0 2px; }
.plans-note { margin: 14px 0 12px; color: var(--ink-2); }
@media (min-width: 640px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plan { padding: 20px 20px 14px; }
}
@media (min-width: 1024px) {
  body[data-page="home"] #view > .plans-card { grid-column: 1 / span 2; grid-row: 3; margin: 56px 0 0; }
  body[data-page="home"] #view > .steps-card { grid-row: 4; margin-top: 24px; }
  body[data-page="home"] #view > .privacy-card { grid-row: 4; margin-top: 24px; }
}

/* 잠긴 실행 자료 (가짜 글자를 흐리게 그리고 자물쇠 표시) */
.locked { position: relative; margin-top: 12px; border-radius: 12px; overflow: hidden; }
.locked-blur { filter: blur(5px); opacity: 0.85; user-select: none; -webkit-user-select: none; pointer-events: none; padding: 2px 4px; }
.locked-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 24px); background: rgba(17, 28, 46, 0.9); color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.4; padding: 9px 14px; border-radius: 999px; box-shadow: 0 8px 24px -10px rgba(17, 28, 46, 0.5); }
.lock-icon { flex: none; position: relative; display: inline-block; width: 12px; height: 10px; margin-top: 5px; border-radius: 2px; background: currentColor; }
.lock-icon::before { content: ''; position: absolute; left: 2px; top: -6px; width: 8px; height: 8px; border: 2px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; box-sizing: border-box; }
.sol-locked h3 { margin-bottom: 8px; }

/* 결제 안내 */
.paycard { border: 1.5px solid var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); scroll-margin-top: 90px; }
.paycard-kicker { font-size: 13px; font-weight: 800; color: var(--brand); margin-bottom: 6px; }
.paycard h2 { margin-bottom: 6px; }
.paycard.flash { animation: payflash 1.4s ease; }
@keyframes payflash { 0%, 100% { box-shadow: 0 0 0 4px var(--brand-soft); } 35% { box-shadow: 0 0 0 12px rgba(31, 79, 224, 0.28); } }
.test-pay { font-size: 13.5px; font-weight: 700; color: #92400e; background: #fef3c7; border-radius: 10px; padding: 8px 12px; margin: 0 0 12px; }
.pay-consent { margin: 4px 0 12px; }
.pay-fine { margin: 10px 0 0; }
.pay-reminder { background: var(--brand-soft); border-color: var(--brand-line); box-shadow: none; }
.pay-reminder p { margin: 0; }
.pay-reminder .price-tag { margin: 6px 0 12px; }
.paid-card { background: #ecfdf3; border-color: #b7ebc9; box-shadow: none; }
.paid-card .btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.linklike { border: 0; background: none; padding: 4px 6px; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* 샘플 보고서 */
.sample-bar { border: 1.5px dashed #f59e0b; background: #fffbeb; box-shadow: none; }
.sample-badge { display: inline-block; font-size: 13.5px; font-weight: 800; color: #92400e; background: #fde68a; border-radius: 999px; padding: 4px 12px; }
.seg { display: flex; background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; min-height: 42px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--ink); color: #fff; }
@media (min-width: 640px) {
  .seg { display: inline-flex; }
  .seg button { flex: none; padding: 0 20px; }
}

/* 약관·개인정보처리방침·환불 정책 */
.policy-head { margin: 0 0 16px; }
.policy-head h1 { font-size: 26px; line-height: 1.3; margin: 0 0 6px; }
.policy-head p { margin: 0 0 8px; }
.card.policy h2 { font-size: 17px; margin-bottom: 8px; }
.card.policy p { margin: 0 0 8px; line-height: 1.7; }
.card.policy p:last-child { margin-bottom: 0; }
.card.policy .note-list { margin: 0; }
.card.policy .note-list li { margin: 4px 0; line-height: 1.65; }

/* 바닥글: 고정된 아래 버튼에 가리지 않게 */
main { padding-bottom: 28px; }
.site-foot { border-top: 1px solid var(--line-2); padding: 22px 0 36px; color: var(--muted); font-size: 13px; line-height: 1.7; }
body.has-navbar .site-foot { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 6px; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.foot-links a b { font-weight: 800; }
.foot-biz, .foot-copy { margin: 4px 0 0; word-break: keep-all; }
@media print {
  .site-foot, .paycard, .pay-reminder { display: none !important; }
}
/* 가게 소개 첫 단계: 필수 동의와 후보 확인 */
.page-consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; cursor: pointer; }
.page-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--brand); }
.page-consent-note { margin: 8px 0 0; line-height: 1.55; }
.page-next-button, .page-candidate .page-choose { margin-top: 18px; }
.page-reject { margin-top: 10px; }
.page-retry-form { margin-top: 16px; padding: 18px; border-radius: 12px; background: var(--bg-soft); }
.page-retry-form h4 { margin: 0 0 8px; }
.page-retry-form .page-field { margin: 16px 0; }
.page-retry-form .page-consent { margin-bottom: 14px; }
.page-stage-note { margin: 8px 0 0; line-height: 1.6; }
.page-next-note h3 { margin-bottom: 8px; }


/* 여기봐 AI: 비공개 가게 소개 질문과 미리보기 */
.page-questions, .page-preview, .page-edit { min-width: 0; }
.page-field { display: block; margin: 18px 0 0; color: var(--ink-2); font-weight: 600; }
.page-field > span:first-child { display: block; margin-bottom: 8px; }
.page-field textarea { min-height: 104px; font-weight: 400; }
.page-field input { font-weight: 400; }
.page-question { min-width: 0; }
.page-suggestions { display: grid; gap: 7px; margin: 10px 0 24px; padding: 12px; border: 1px solid var(--brand-line); border-radius: 12px; background: var(--brand-soft); }
.page-suggestions-title { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--brand-ink); }
.page-suggestions-title span { display: block; margin-top: 3px; font-weight: 400; }
.page-suggestion { width: 100%; min-width: 0; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink-2); font: inherit; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; cursor: pointer; }
.page-suggestion:hover { border-color: var(--brand); }
.page-suggestion:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.page-suggestion:disabled { opacity: .55; cursor: not-allowed; }
.page-suggestion-label { display: block; font-size: 12px; font-weight: 700; color: var(--brand-ink); }
.page-suggestion-status { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.page-suggestion-status:empty { display: none; }
.page-facts { padding: 16px; margin: 16px 0; background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: 14px; }
.page-fact { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; font-size: 14.5px; line-height: 1.55; }
.page-fact + .page-fact { border-top: 1px solid var(--line); }
.page-fact input { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--brand); }
.page-disclosure, .page-private-note { background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 14px; padding: 14px 16px; margin: 18px 0; color: var(--ink-2); }
.page-disclosure p:last-child, .page-private-note p:last-child { margin-bottom: 0; }
.page-error { color: var(--bad); font-weight: 600; margin: 12px 0; }
.page-error:empty { display: none; }
.page-draft-content { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 20px; box-shadow: var(--shadow); }
.page-draft-content h1 { font-size: clamp(26px, 5vw, 38px); line-height: 1.28; }
.page-draft-content p, .page-preview-section, .page-preview-faq { white-space: pre-wrap; overflow-wrap: anywhere; }
.page-preview-section, .page-preview-faq { padding: 18px 0; border-top: 1px solid var(--line-2); }
.page-preview-section h2, .page-preview-faq h2 { margin-bottom: 10px; }
.page-keywords { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.page-keywords > h2, .page-keywords > h3, .page-keywords > p { flex: 0 0 100%; }
.page-keywords span { display: inline-block; background: var(--brand-soft); color: var(--brand-ink); border-radius: 999px; padding: 5px 11px; font-size: 14px; }
.page-edit-section { margin: 16px 0; padding: 16px; background: var(--bg-soft); border-radius: 14px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.page-actions > .btn { flex: 1 1 180px; }
.page-evidence { font-size: 12.5px; color: var(--muted); }
@media (min-width: 640px) {
  .page-draft-content { padding: 38px; }
  .page-facts { padding: 20px; }
}

/* 공개 가게 목록과 베타 공개 화면 */
.directory-nav { display: inline-flex; align-items: center; padding: 8px 10px; border-radius: 999px; color: var(--brand); background: var(--brand-soft); text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
.directory-nav:hover, .directory-nav:focus-visible { text-decoration: underline; }
.page-publish .page-draft-content p, .public-store p { white-space: pre-wrap; overflow-wrap: anywhere; }
.page-publish .page-consent { margin: 18px 0; }
.page-publish .page-actions { margin-top: 16px; }
.ok { color: #166534; }
.error { color: #b42318; }
@media (max-width: 480px) { .top .wrap { gap: 6px; } .directory-nav { font-size: 11px; padding: 7px; } .store-name { font-size: 12px; } }

.public-kicker { color: var(--brand); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.public-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; list-style: none; padding: 0; margin: 24px 0; }
.public-grid li { min-width: 0; }
.public-listing { height: 100%; margin: 0; overflow-wrap: anywhere; }
.public-listing h2 { margin: 0 0 8px; font-size: 21px; }
.public-listing h2 a { color: var(--ink); text-decoration: none; }
.public-listing h2 a:hover { text-decoration: underline; }
.public-more { color: var(--brand); font-weight: 700; font-size: 14px; text-decoration: none; }
.public-empty { margin-top: 24px; text-align: center; padding: 40px 24px; }
.public-store section { border-top: 1px solid var(--line-2); margin-top: 28px; padding-top: 22px; }
.public-store dt { font-weight: 700; margin-top: 16px; }
.public-store dd { margin-left: 0; }
.public-manage, .public-pagination { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 600px) { .public-grid { grid-template-columns: 1fr; } }

/* 사장님이 고르는 상황별 예상 질문 */
.page-situations { margin-top: 16px; }
.page-situation-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 12px; background: var(--card); overflow-wrap: anywhere; }
.page-situation-card .page-consent { margin: 0 0 12px; }
.page-situation-question { font-weight: 700; color: var(--ink); margin: 10px 0 6px; }
.page-situation-answer { white-space: pre-wrap; margin: 0 0 8px; }
.page-situations .page-evidence { margin-bottom: 0; }


/* 첫 화면: 가상 AI 답변과 실제 등록 페이지를 구분해 보여 주는 세로형 예시 */
.home-sample { width: 100%; max-width: 520px; margin: 0 auto 24px; overflow: hidden; border: 1px solid #e2e9f4; border-radius: 20px; background: #f5f8ff; box-shadow: 0 18px 44px -24px rgba(25, 49, 92, .3); }
.home-sample img { display: block; width: 100%; height: auto; }
.home-sample-caption { padding: 12px 16px 14px; background: #fff; color: #596b81; font-size: 13px; line-height: 1.5; }
.home-sample-caption p { margin: 0 0 5px; }
.home-sample-caption a { font-weight: 700; }
#startCard { scroll-margin-top: 88px; }
@media (min-width: 1024px) {
  body[data-page="home"] main { padding-top: 48px; }
  body[data-page="home"] #view > .hero { grid-column: 1; grid-row: 1; align-self: center; }
  body[data-page="home"] #view > .home-sample { grid-column: 2; grid-row: 1; align-self: start; margin: 0; }
  body[data-page="home"] #view > .resume { grid-column: 1 / -1; grid-row: auto; margin: 20px 0 0; }
  body[data-page="home"] #view > #startCard { grid-column: 1 / -1; grid-row: auto; justify-self: center; width: min(100%, 760px); margin: 36px auto 0; }
  body[data-page="home"] #view > .steps-card { grid-column: 1; grid-row: auto; margin: 28px 0 0; }
  body[data-page="home"] #view > .privacy-card { grid-column: 2; grid-row: auto; margin: 28px 0 0; }
}

/* 첫 화면: WHY와 진행 과정을 입력란 위에 배치 */
.home-explainer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 24px 0 0; }
.home-explainer-card { min-width: 0; padding: 28px 24px; border: 1px solid #e1e8f4; border-radius: 22px; background: #fff; box-shadow: 0 12px 34px -28px rgba(25, 49, 92, .38); }
.home-why { background: linear-gradient(165deg, #f4f7ff 0%, #fff 72%); }
.home-eyebrow { margin: 0 0 10px; color: #315ed4; font-size: 13px; line-height: 1.4; font-weight: 800; letter-spacing: .07em; }
.home-explainer h2 { margin: 0 0 20px; font-size: clamp(23px, 2.25vw, 28px); line-height: 1.35; letter-spacing: -.035em; }
.home-why > p:not(.home-eyebrow) { color: #475569; font-size: 15.5px; line-height: 1.78; margin: 0 0 17px; }
.home-why > .home-why-lead { color: #182b4a !important; font-size: 17px !important; font-weight: 700; line-height: 1.6 !important; }
.home-explainer-cta { width: 100%; margin: 5px 0 14px; }
.home-why > .home-price { margin-bottom: 6px !important; color: #1b2c49 !important; font-size: 14px !important; font-weight: 700; line-height: 1.55 !important; }
.home-price span { color: #667389; font-weight: 600; }
.home-why > .home-price-current { margin-bottom: 8px !important; color: #315a96 !important; font-size: 13px !important; font-weight: 700; line-height: 1.55 !important; }
.home-why > .home-no-guarantee { margin-bottom: 0 !important; color: #697789 !important; font-size: 12.5px !important; line-height: 1.55 !important; }
.home-how-list { list-style: none; padding: 0; margin: 0; }
.home-how-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 13px; padding: 18px 0; border-top: 1px solid #edf0f5; }
.home-how-step:first-child { border-top: 0; padding-top: 0; }
.home-how-step:last-child { padding-bottom: 0; }
.home-how-number { color: #315ed4; font-size: 16px; line-height: 1.5; font-weight: 800; font-variant-numeric: tabular-nums; }
.home-how-step h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.5; letter-spacing: -.025em; }
.home-how-step p { margin: 0; color: #526073; font-size: 14px; line-height: 1.7; }
.home-how-step p + p { margin-top: 8px; color: #315a96; font-weight: 600; }
@media (min-width: 900px) {
  .home-explainer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 20px; }
  .home-explainer-card { padding: 34px; }
}
@media (min-width: 1024px) {
  body[data-page="home"] #view > .home-explainer { grid-column: 1 / -1; grid-row: auto; margin: 42px 0 0; }
  body[data-page="home"] #view > .privacy-card { grid-column: 1 / -1; grid-row: auto; justify-self: center; width: min(100%, 760px); margin: 20px auto 0; }
}
@media (max-width: 380px) {
  .home-explainer-card { padding: 24px 19px; }
  .home-how-step { grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; }
}
@media (max-width: 1023px) {
  body[data-page="home"] #view > .home-explainer { margin-bottom: 24px; }
}

/* 모든 화면의 가게 모음·내 가게 관리 */
.header-nav { display: flex; align-items: center; gap: 6px; min-width: 0; }
.account-nav { display: inline-flex; align-items: center; padding: 8px 10px; border: 1px solid var(--brand-line); border-radius: 999px; color: var(--brand-ink); background: #fff; text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
.account-nav:hover, .account-nav:focus-visible { text-decoration: underline; }
.nav-compact { display: none; }
@media (max-width: 480px) {
  .nav-wide { display: none; }
  .nav-compact { display: inline; }
  .account-nav { font-size: 11px; padding: 7px; }
  .top .store-name { display: none; }
}

/* 간편 로그인: 제공자 공식 완성형 이미지를 비율 변경 없이 사용 */
.account-provider { display: block; width: min(100%, 230px); margin: 10px 0; line-height: 0; border-radius: 8px; }
.account-provider:focus-visible { outline: 3px solid #315ed4; outline-offset: 3px; }
.account-provider-image { display: block; width: 100%; height: auto; }

/* Google 공식 커스텀 버튼 규격(Light): 채움 #FFF, 테두리 #747775 1px(안쪽), 글자 #1F1F1F 14/20 Medium, 높이 40px, 좌 12px · G 20px · 간격 10px · 우 12px. Google Sans는 불러오지 않아 시스템 글꼴로 대체. */
.account-provider-text { box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 10px; width: min(100%, 230px); height: 40px; padding: 0 12px; line-height: 20px; font-size: 14px; font-weight: 500; color: #1f1f1f; background: #fff; border: 1px solid #747775; border-radius: 4px; text-decoration: none; }
.account-provider-text:hover { background: #f8f9fa; }
.account-provider-icon { display: block; width: 20px; height: 20px; flex: none; }
.account-provider-label { white-space: nowrap; }

/* 여기봐AI 무료·유료 가격 안내: 유료 도입 전에는 실제 구매 진행률을 표시하지 않는다. */
.home-pricing { min-width: 0; margin: 56px 0 32px; padding: 44px 0 0; border-top: 1px solid #e4ebf5; }
.pricing-heading { text-align: center; margin: 0 auto 22px; max-width: 740px; }
.pricing-eyebrow { margin: 0 0 6px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: -.01em; }
.pricing-heading h2 { margin: 0 0 8px; color: #101824; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.28; letter-spacing: -.04em; word-break: keep-all; }
.pricing-lead { margin: 0; color: #596a82; font-size: 16px; line-height: 1.6; word-break: keep-all; }
.pricing-beta { display: flex; align-items: flex-start; gap: 12px; max-width: 960px; margin: 0 auto 20px; padding: 14px 16px; border: 1px solid #cbdcff; border-radius: 14px; color: #314765; background: #f3f7ff; font-size: 13px; line-height: 1.6; word-break: keep-all; }
.pricing-beta strong { flex: 0 0 auto; color: #1646c7; }
.pricing-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 960px; margin: 0 auto; }
.pricing-plan { min-width: 0; padding: 28px; border: 1px solid #dfe7f3; border-radius: 20px; background: #fff; }
.pricing-paid { position: relative; border: 2px solid #1f4fe0; background: #f8faff; }
.pricing-plan-label { margin: 0 0 7px; color: #617087; font-size: 13px; font-weight: 800; }
.pricing-paid .pricing-plan-label { color: #1f4fe0; }
.pricing-plan h3 { margin: 0 0 13px; color: #152036; font-size: 21px; line-height: 1.3; letter-spacing: -.03em; }
.pricing-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0; color: #101824; font-size: 32px; font-weight: 800; line-height: 1.2; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pricing-paid .pricing-amount { color: #1f4fe0; }
.pricing-amount span { color: #536981; font-size: 13px; font-weight: 700; letter-spacing: 0; }
.pricing-plan-desc { margin: 7px 0 18px; color: #5f7088; font-size: 13px; }
.pricing-features { display: grid; gap: 11px; margin: 0; padding: 18px 0 0; border-top: 1px solid #e5ebf4; list-style: none; }
.pricing-feature { display: flex; gap: 9px; align-items: flex-start; color: #293a50; font-size: 14px; line-height: 1.55; word-break: keep-all; }
.pricing-check { flex: 0 0 auto; color: #1f4fe0; font-weight: 800; }
.pricing-feature-pending { color: #55677e; }
.pricing-plan-note { margin: 18px 0 0; color: #6e7d90; font-size: 12px; line-height: 1.55; word-break: keep-all; }
.pricing-progress { max-width: 960px; margin: 22px auto 0; padding: 28px; border: 1px solid #dfe7f3; border-radius: 20px; background: #f8faff; }
.pricing-progress-heading { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 18px; }
.pricing-progress-kicker { margin: 0 0 4px; color: #1f4fe0; font-size: 12px; font-weight: 800; }
.pricing-progress-heading h3 { margin: 0 0 5px; color: #152036; font-size: 21px; line-height: 1.35; letter-spacing: -.03em; word-break: keep-all; }
.pricing-progress-heading p:not(.pricing-progress-kicker) { margin: 0; color: #607188; font-size: 13px; line-height: 1.6; word-break: keep-all; }
.pricing-progress-total { display: grid; gap: 2px; min-width: 160px; padding: 12px 15px; border: 1px solid #dce6f6; border-radius: 12px; background: #fff; }
.pricing-progress-total span, .pricing-progress-total small { color: #667990; font-size: 12px; }
.pricing-progress-total strong { color: #1f4fe0; font-size: 18px; line-height: 1.4; }
.pricing-offer { margin: 20px 0 0; color: #53667e; font-size: 13px; word-break: keep-all; }
.pricing-offer strong { color: #1f4fe0; font-size: 15px; }
.pricing-meter { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 12px 0 7px; }
.pricing-meter-segment { display: block; height: 12px; border-radius: 999px; background: #dbe4f0; }
.pricing-meter-note { margin: 0 0 18px; color: #667990; font-size: 12px; line-height: 1.5; word-break: keep-all; }
.pricing-levels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.pricing-level { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 12px 10px; border: 1px solid #e0e8f3; border-radius: 12px; background: #fff; }
.pricing-level-first { border-color: #a9c1ff; background: #eef4ff; }
.pricing-level-number { color: #748399; font-size: 11px; font-weight: 700; }
.pricing-level-first .pricing-level-number { color: #1f4fe0; }
.pricing-level-range { color: #53667e; font-size: 12px; line-height: 1.4; word-break: keep-all; }
.pricing-level-price { color: #152036; font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.pricing-level-first .pricing-level-price { color: #1f4fe0; }
.pricing-progress-note, .pricing-disclaimer { color: #697b90; font-size: 12px; line-height: 1.6; word-break: keep-all; }
.pricing-progress-note { margin: 16px 0 0; }
.pricing-disclaimer { max-width: 960px; margin: 16px auto 0; }
.pricing-start { display: block; width: min(100%, 360px); margin: 24px auto 0; }
@media (min-width: 1024px) { body[data-page="home"] #view > .home-pricing { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 900px) { .pricing-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .home-pricing { margin-top: 40px; padding-top: 34px; }
  .pricing-heading { text-align: left; }
  .pricing-beta { flex-direction: column; gap: 3px; }
  .pricing-plans { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pricing-plan, .pricing-progress { padding: 22px 18px; }
  .pricing-progress-total { width: 100%; }
  .pricing-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
