/* ══════════════════════════════════════════════════════════════
   머스트체크 랜딩 — 디자인 시스템

   방향: 제품이 카카오톡처럼 생겼다. 랜딩도 그 세계에서 나온 것처럼 —
   회청색 대화창 배경 + 흰 말풍선 + 노란 '새 글' 포인트. 제네릭 SaaS 파랑 그라데
   대신, 앱과 한 몸으로 읽히는 국민-메신저 톤. 힘은 노란 '핑' 하나에만.

   색:
     ground #FFFFFF / soft #F5F7FA(살짝 차가운 오프화이트, 고른 게 아니라 고른 것)
     ink    #14181F(살짝 블루쿨한 검정)
     brand  #1B6EF3(심볼의 파랑을 더 맑게)  navy #0B1B3A(대비 블록)
     핑     #FEE500(노랑 — 유일한 강조. 새 글/미확인의 색, 실제 앱과 동일)
     alert  #FF3B30(미확인 점)
   타입:
     한글 Noto Sans KR (헤드라인 800~900 / 본문 400~500)
     라틴/숫자/라벨 Manrope (600~800) — 워드마크·수치·캡션
   레이아웃:
     히어로 = 좌 카피 / 우 '진짜 앱처럼' 다듬은 창(카톡 톤) + 노란 핑 토스트.
     이후 한 화면씩: 통증 3 → 사용법 3 → 신뢰 밴드 → FAQ → 마지막 CTA.
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --soft: #f5f7fa;
  --panel: #ffffff;
  --ink: #14181f;
  --muted: #59647a;
  --line: #e6eaf0;
  --brand: #1b6ef3;
  --brand-ink: #0d4fc4;
  --navy: #0b1b3a;
  --ping: #fee500;
  --ping-ink: #3a2e00;
  --alert: #ff3b30;

  /* 카톡 톤(앱과 동일) */
  --room: #b2c7d9;
  --bubble: #ffffff;

  --shadow: 0 24px 60px -24px rgba(11, 27, 58, .28), 0 8px 24px -14px rgba(11, 27, 58, .18);
  --wrap: 1120px;

  --sans-ko: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  --sans-lt: "Manrope", var(--sans-ko);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1116;
    --soft: #141922;
    --panel: #161c26;
    --ink: #eaeef4;
    --muted: #9aa5b7;
    --line: #252c39;
    --brand: #4e92ff;
    --brand-ink: #7fb0ff;
    --navy: #0a1426;
    --room: #2a3b4d;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .6), 0 8px 24px -14px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  --bg: #0e1116;
  --soft: #141922;
  --panel: #161c26;
  --ink: #eaeef4;
  --muted: #9aa5b7;
  --line: #252c39;
  --brand: #4e92ff;
  --brand-ink: #7fb0ff;
  --navy: #0a1426;
  --room: #2a3b4d;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .6), 0 8px 24px -14px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans-ko);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
img { max-width: 100%; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.lt { font-family: var(--sans-lt); }

/* ── 상단 바 ─────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .sym { width: 30px; height: 30px; }
.brand .wm { font-family: var(--sans-lt); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand .ko { font-size: 12px; font-weight: 700; color: var(--muted); }
.nav .sp { flex: 1; }

.btn {
  --bg-btn: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans-ko); font-weight: 700; font-size: 15px;
  color: #fff; background: var(--bg-btn);
  border: 0; border-radius: 13px; padding: 13px 24px;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { background: var(--brand-ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }
.btn.sm { padding: 9px 16px; font-size: 13.5px; border-radius: 10px; }
.btn.xl { padding: 17px 32px; font-size: 17px; border-radius: 15px; box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--brand) 60%, transparent); }
.btn.ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn.ghost:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.btn.on-navy { background: #fff; color: var(--navy); }
.btn.on-navy:hover { background: #eef3ff; }

/* ── 히어로 ─────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(760px 460px at 84% -6%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 62%),
    radial-gradient(560px 380px at 6% 8%, color-mix(in srgb, var(--ping) 12%, transparent), transparent 60%);
}
.hero-in {
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 54px; align-items: center;
  padding: 72px 0 78px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans-lt); font-weight: 700; font-size: 12.5px; letter-spacing: .02em;
  color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  padding: 7px 13px; border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--alert); box-shadow: 0 0 0 3px color-mix(in srgb, var(--alert) 22%, transparent); }
h1.headline {
  margin: 20px 0 0;
  font-weight: 900; letter-spacing: -.035em;
  font-size: clamp(33px, 4.9vw, 56px); line-height: 1.12;
  text-wrap: balance;
}
h1.headline .kw {
  color: var(--brand);
  /* 검색어에 노란 밑줄 하이라이트 — '새 글'의 색을 이름에 얹는다 */
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--ping) 80%, transparent) 62%);
  padding: 0 .04em; word-break: keep-all;
}
.pain-line {
  margin: 20px 0 6px; font-size: clamp(16px, 1.9vw, 19px); font-weight: 700;
  color: var(--ink); word-break: keep-all; line-height: 1.5;
}
.sub {
  margin: 0 0 28px; font-size: 15.5px; line-height: 1.7; color: var(--muted);
  max-width: 31em; word-break: keep-all;
}
.sub b { color: var(--ink); font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px;
  font-size: 13px; color: var(--muted);
}
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 15px; height: 15px; fill: none; stroke: #16a34a; stroke-width: 2.6; }

/* ── 제품 창(카톡 톤, 실제 앱과 같은 결) ─────────── */
.device { position: relative; justify-self: center; width: 100%; max-width: 396px; }
.win {
  border-radius: 18px; background: var(--panel);
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}
.win-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: color-mix(in srgb, var(--soft) 80%, var(--panel)); border-bottom: 1px solid var(--line); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; background: #d3d9e2; }
.win-bar i.r { background: #ff5f57; } .win-bar i.y { background: #febc2e; } .win-bar i.g { background: #28c840; }
.win-bar b { margin-left: 8px; font-family: var(--sans-lt); font-size: 12px; font-weight: 700; color: var(--muted); }

.app-head { display: flex; align-items: center; gap: 9px; padding: 13px 15px 11px; }
.app-head .sym { width: 21px; height: 21px; }
.app-head strong { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.app-head .bell { margin-left: auto; position: relative; }
.app-head .bell svg { width: 20px; height: 20px; fill: var(--muted); }
.app-head .bell em { position: absolute; top: -3px; right: -3px; width: 15px; height: 15px; border-radius: 50%; background: var(--alert); color: #fff; font-family: var(--sans-lt); font-weight: 800; font-size: 9.5px; display: grid; place-items: center; }
.app-tabs { display: flex; gap: 20px; padding: 0 15px; border-bottom: 1px solid var(--line); }
.app-tabs span { padding: 7px 0 10px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.app-tabs span.on { color: var(--ink); box-shadow: inset 0 -2.5px 0 var(--ping); }

.rows { padding: 5px 0 9px; background: var(--panel); }
.row { display: flex; align-items: center; gap: 11px; padding: 10px 15px; }
.row .av { width: 36px; height: 36px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--ping); color: var(--ping-ink); }
.row.k .av { background: #e5efff; color: #1f5fd0; }
.row.m .av { background: #e2f6e9; color: #14804a; }
.row .mid { flex: 1; min-width: 0; }
.row .nm { font-size: 13px; font-weight: 800; }
.row .pv { font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .rt { text-align: right; flex: 0 0 auto; }
.row .tm { font-family: var(--sans-lt); font-size: 10.5px; color: color-mix(in srgb, var(--muted) 70%, transparent); }
.row .bg { display: inline-block; margin-top: 4px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--alert); color: #fff; font-family: var(--sans-lt); font-weight: 800; font-size: 10px; line-height: 17px; }

/* 노란 핑 토스트 — 창 오른쪽 아래로 튀어나오게 */
.ping-toast {
  position: absolute; right: -18px; bottom: -26px; width: 306px;
  display: flex; gap: 11px; padding: 13px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 15px;
  box-shadow: 0 26px 46px -14px rgba(11, 27, 58, .42);
  animation: pingIn .7s cubic-bezier(.2,.8,.2,1) both, floaty 4s ease-in-out 1s infinite;
}
@keyframes pingIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.ping-toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--ping); border-radius: 15px 0 0 15px; }
.ping-toast .kd { display: inline-block; margin-bottom: 5px; padding: 1.5px 8px; border-radius: 999px; font-family: var(--sans-lt); font-size: 10px; font-weight: 800; background: #e5efff; color: #1f5fd0; }
.ping-toast .rm { font-size: 11px; font-weight: 800; color: var(--muted); margin-bottom: 3px; }
.ping-toast .tt { font-size: 13px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ping-toast .ph { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 10px; align-self: center; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 25%, #fff), color-mix(in srgb, var(--brand) 8%, #fff)); display: grid; place-items: center; }
.ping-toast .ph svg { width: 24px; height: 24px; fill: color-mix(in srgb, var(--brand) 55%, #fff); }

/* ── 섹션 골격 ─────────────────────────── */
section { padding: 78px 0; }
.band-soft { background: var(--soft); border-block: 1px solid var(--line); }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head .tag { font-family: var(--sans-lt); font-weight: 800; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
h2 { margin: 8px 0 10px; font-weight: 900; letter-spacing: -.03em; font-size: clamp(24px, 3vw, 34px); text-wrap: balance; }
.sec-head p { margin: 0; color: var(--muted); font-size: 16px; }

/* 통증 3 */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; }
.pcard .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--alert) 10%, transparent); margin-bottom: 14px; }
.pcard .ic svg { width: 24px; height: 24px; fill: var(--alert); }
.pcard h3 { margin: 0 0 7px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.pcard p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; word-break: keep-all; }

/* 통증 카드의 '기능(What)' 변주 — 빨강 대신 브랜드 파랑 아이콘 */
.pcard.blue .ic { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.pcard.blue .ic svg { fill: var(--brand); }
.pcard p b { color: var(--ink); font-weight: 700; }

/* 카페 목록 — 이름 칩(홈·카페 랜딩의 연결고리) */
.cafes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; margin-inline: auto; }
.cafes a {
  display: inline-flex; align-items: center;
  padding: 11px 18px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  font-size: 14px; font-weight: 700; word-break: keep-all;
  transition: border-color .15s ease, transform .12s ease, color .15s ease;
}
.cafes a:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); color: var(--brand-ink); transform: translateY(-1px); }

/* 본문 페이지(개인정보 처리방침 등) */
.prose { max-width: 760px; }
.prose > .tag { display: inline-block; font-family: var(--sans-lt); font-weight: 800; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.prose h1 { margin: 10px 0 12px; font-weight: 900; letter-spacing: -.03em; font-size: clamp(28px, 3.4vw, 38px); text-wrap: balance; }
.prose .lead { margin: 0 0 8px; color: var(--muted); font-size: 16.5px; }
.prose h2 { margin: 36px 0 8px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.prose p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.prose strong { color: var(--ink); font-weight: 700; }

/* 사용법 3 — 번호 있는 실제 순서 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px 24px; }
.step .no { font-family: var(--sans-lt); font-weight: 800; font-size: 13px; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { margin: 0 0 7px; font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; }
.step p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.62; word-break: keep-all; }
.step p b { color: var(--ink); }

/* 신뢰 밴드 — 네이비 대비 블록 */
.assure { background: var(--navy); color: #fff; border: 0; }
.assure h2 { color: #fff; }
.assure .sec-head p { color: #b8c6e4; }
.assure .sec-head .tag { color: var(--ping); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); font-size: 14.5px; font-weight: 700; }
.chip svg { width: 18px; height: 18px; fill: none; stroke: var(--ping); stroke-width: 2.6; }
.chip b { color: var(--ping); font-family: var(--sans-lt); }

/* FAQ */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 15.5px; padding: 15px 0; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-family: var(--sans-lt); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* 마지막 CTA */
.final { text-align: center; background: linear-gradient(155deg, var(--navy), color-mix(in srgb, var(--navy) 55%, var(--brand))); color: #fff; border: 0; }
.final h2 { color: #fff; }
.final p { color: #c3d3f2; margin: 0 0 26px; font-size: 16px; }

/* 푸터 */
footer { padding: 40px 0 52px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; background: var(--bg); }
.frow { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.frow strong { color: var(--ink); }
.legal { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal p { margin: 3px 0; font-size: 12.5px; line-height: 1.7; color: color-mix(in srgb, var(--muted) 85%, transparent); }
.legal .cp { font-family: var(--sans-lt); margin-top: 8px; }
footer a { color: var(--muted); }

/* 모바일 */
@media (max-width: 880px) {
  .hero-in { grid-template-columns: 1fr; gap: 46px; padding: 48px 0 40px; }
  .device { max-width: 356px; }
  .ping-toast { right: 0; }
  .grid3, .steps { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
.sticky { display: none; }
@media (max-width: 720px) {
  .sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: block; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .sticky .btn { width: 100%; }
  body { padding-bottom: 76px; }
}
