/* 남친커피 랜딩 · 문서 페이지 공통 스타일 (docs/남친커피_컬러_디자인가이드.md 토큰) */
:root {
  --primary: #14254a;
  --accent: #4263f5;
  --accent-medium: #748af7;
  --accent-light: #eef3ff;
  --background: #f7f9fc;
  --surface: #ffffff;
  --surface-secondary: #f2f5f9;
  --text: #101b36;
  --text-2: #667085;
  --text-3: #98a2b3;
  --border: #e4e9f1;
  --success: #28b67a;
  --success-bg: #e8f8f1;
  --dessert: #ff8b7b;
  --dessert-bg: #fff0ea;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--background); line-height: 1.6; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ── 상단 ── */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(247, 249, 252, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav img { height: 30px; width: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 26px; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform 0.1s; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(66, 99, 245, 0.28); }
.btn-ghost { background: var(--surface); color: var(--primary); border: 1px solid var(--border); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 20px; }
.btn[aria-disabled='true'] { opacity: 0.55; pointer-events: none; }

/* ── 히어로 ── */
.hero { background: radial-gradient(90% 70% at 80% 0%, #e3eaff 0%, rgba(238, 243, 255, 0) 60%), radial-gradient(70% 60% at 0% 30%, #fff0ea 0%, rgba(255, 240, 234, 0) 55%); padding: 48px 0 64px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--accent-light); color: var(--accent); font-size: 13px; font-weight: 700; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.2; font-weight: 800; letter-spacing: -0.035em; color: var(--primary); margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--text-2); margin-top: 18px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cta-note { margin-top: 12px; font-size: 13px; color: var(--text-3); }
.hero-phone { justify-self: center; position: relative; }
.hero-phone .phone { transform: rotate(2deg); }
.bubble { position: absolute; left: -36px; top: 18%; background: var(--surface); border-radius: 18px 18px 18px 4px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(20, 37, 74, 0.14); font-size: 14px; font-weight: 600; max-width: 230px; line-height: 1.45; }
.bubble.b2 { left: auto; right: -28px; top: 62%; border-radius: 18px 18px 4px 18px; background: var(--primary); color: #fff; }

/* 폰 프레임 */
.phone { width: 270px; aspect-ratio: 390 / 844; border-radius: 38px; padding: 9px; background: #101b36; box-shadow: 0 30px 60px rgba(20, 37, 74, 0.25); flex-shrink: 0; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; background: var(--background); }

/* ── 섹션 ── */
section { padding: 72px 0; }
.section-title { font-size: clamp(26px, 4vw, 38px); line-height: 1.3; font-weight: 800; letter-spacing: -0.03em; color: var(--primary); }
.section-sub { color: var(--text-2); font-size: 17px; margin-top: 12px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; max-width: 36em; }

/* 문제 → 해결 */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.compare > div { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 26px; }
.compare h3 { font-size: 17px; margin-bottom: 14px; }
.compare ol { margin: 0; padding-left: 20px; color: var(--text-2); }
.compare li { margin: 6px 0; }
.compare .after { background: var(--primary); border-color: var(--primary); color: #fff; }
.compare .after ol { color: rgba(255, 255, 255, 0.82); }
.compare .after strong { color: #fff; }

/* 사용 흐름 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; counter-reset: step; }
.step { background: var(--surface); border-radius: 22px; padding: 26px; box-shadow: 0 2px 12px rgba(20, 37, 74, 0.06); }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 17px; background: var(--accent); color: #fff; font-weight: 800; }
.step h3 { font-size: 19px; margin-top: 14px; color: var(--primary); }
.step p { color: var(--text-2); margin-top: 8px; font-size: 15px; }
.step .quote { display: block; margin-top: 12px; background: var(--accent-light); color: var(--accent); border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 600; }

/* 기능 */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 36px; }
.feature { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px; }
.feature .ico { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: var(--accent-light); }
.feature h3 { font-size: 17px; color: var(--primary); }
.feature p { color: var(--text-2); font-size: 15px; margin-top: 4px; }

/* 화면 */
.shots { display: flex; gap: 22px; overflow-x: auto; padding: 36px 20px 20px; margin: 0 -20px; scroll-snap-type: x mandatory; scrollbar-width: none; justify-content: safe center; }
.shots::-webkit-scrollbar { display: none; }
.shot { scroll-snap-align: center; text-align: center; margin: 0; flex-shrink: 0; }
.shot .phone { width: 220px; margin: 0 auto; }
.shot figcaption { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--text-2); }

/* 예시 요청 */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.chip { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 10px 16px; font-size: 15px; }
.chip.d { background: var(--dessert-bg); border-color: transparent; color: #c65a4c; }

/* FAQ */
.faq { max-width: 720px; margin: 32px auto 0; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--primary); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '＋'; float: right; color: var(--text-3); }
.faq details[open] summary::after { content: '－'; }
.faq p { color: var(--text-2); margin-top: 10px; font-size: 15px; }

/* 마지막 CTA */
.final { background: var(--primary); color: #fff; border-radius: 32px; padding: 56px 24px; text-align: center; }
.final .section-title { color: #fff; }
.final .section-sub { color: rgba(255, 255, 255, 0.75); }
.final .cta { justify-content: center; }
.final .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }

/* 푸터 */
.site-footer { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: center; padding: 36px 20px 44px; color: var(--text-3); font-size: 14px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── 모바일 ── */
@media (max-width: 820px) {
  .hero { padding: 28px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-phone .phone { width: 230px; }
  .bubble { left: -8px; font-size: 13px; max-width: 190px; }
  .bubble.b2 { right: -8px; }
  .compare, .steps, .features { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .cta .btn { flex: 1 1 100%; }
}

/* ── 문서(개인정보처리방침) ── */
.doc { background: var(--surface); }
.doc-header { max-width: 820px; margin: 0 auto; padding: 20px; }
.doc-main { max-width: 820px; margin: 0 auto; padding: 8px 20px 40px; font-size: 15px; }
.doc-main h1 { font-size: 28px; color: var(--primary); letter-spacing: -0.02em; }
.doc-main h2 { font-size: 18px; color: var(--primary); margin: 36px 0 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.doc-main p, .doc-main li { color: #344054; }
.doc-main p + p { margin-top: 10px; }
.doc-main ol, .doc-main ul { padding-left: 20px; }
.doc-main li { margin: 4px 0; }
.doc-meta { color: var(--text-2) !important; margin: 8px 0 20px; }
.doc-summary { background: var(--accent-light); border-radius: 16px; padding: 16px 20px; margin: 20px 0; }
.doc-summary strong { color: var(--accent); }
.doc-summary ul { margin: 8px 0 0; }
.note { background: var(--surface-secondary); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-top: 12px; }
.doc-main table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; display: block; overflow-x: auto; }
.doc-main th, .doc-main td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; min-width: 110px; }
.doc-main thead th, .doc-main tbody th { background: var(--surface-secondary); color: var(--primary); font-weight: 700; }
.todo { background: #fff3cd; color: #8a5a00; border-radius: 4px; padding: 0 4px; font-weight: 600; }
