/* 챗관상 홍보 사이트. 앱과 같은 색(src/theme.ts): 한지 아이보리·남색·금빛. */
:root {
  --bg: #f6f3ec;
  --bg-soft: #efe9dc;
  --card: #ffffff;
  --ink: #1f2937;
  --muted: #5f6673;
  --line: #e3ddd0;
  --navy: #1f2942;
  --navy-deep: #162038;
  --gold: #b8904a;
  --gold-soft: #f3e7cf;
  --sage: #3f6b55;
  --sage-soft: #e3ece5;
  --seal: #b03a2e;
  --shadow: 0 10px 30px rgba(22, 32, 56, 0.08);
  --radius: 20px;
  --serif: "Gowun Batang", "Noto Serif KR", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121722;
    --bg-soft: #171e2c;
    --card: #1b2231;
    --ink: #eef0f4;
    --muted: #a3aab6;
    --line: #2a3344;
    --gold: #d6b37a;
    --gold-soft: #2c2a22;
    --sage: #8fc1a6;
    --sage-soft: #1d2b25;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.7;
  word-break: keep-all; overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.35; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* 머리 */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; }
.brand img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gold); }
.brand small { color: var(--gold); font-weight: 600; font-size: 12px; letter-spacing: .08em; }
.nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } }

/* 공통 절 */
section { padding: 88px 0; }
section.soft { background: var(--bg-soft); }
.eyebrow { color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: .06em; margin-bottom: 10px; }
.h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }
.grid { display: grid; gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

/* 첫 화면 */
.hero { padding: 56px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); margin: 6px 0 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: 19px; }
.promise-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--sage-soft); color: var(--sage); font-weight: 700; font-size: 14px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
/* 공식 스토어 배지가 아니다. 출시 전에는 공식 배지를 쓸 수 없다(구글·애플 지침). */
.soon { display: inline-flex; flex-direction: column; padding: 10px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); min-width: 190px; }
.soon b { font-size: 16px; }
.soon span { color: var(--muted); font-size: 13px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.phone { width: min(300px, 70vw); border-radius: 36px; border: 8px solid var(--navy-deep); background: var(--navy-deep); box-shadow: 0 30px 60px rgba(22,32,56,.25); overflow: hidden; }
.phone img { border-radius: 28px; }
.hero-art .figure { position: absolute; left: -40px; bottom: -40px; width: 36%; filter: drop-shadow(0 12px 24px rgba(0,0,0,.18)); }
@media (max-width: 900px) { .hero-art .figure { left: 2%; width: 34%; } }

/* 한결 선생 */
.teacher { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .teacher { grid-template-columns: 1fr; } }
.variants { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.variants figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px 8px 6px; text-align: center; }
.variants figcaption { font-size: 13px; color: var(--muted); }
.chat { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-size: 16px; }
.bubble.me { align-self: flex-end; background: var(--navy); color: #f5f1e8; border-color: var(--navy); }
.bubble small { display: block; color: var(--gold); font-weight: 700; font-size: 12px; margin-bottom: 2px; }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* 네 렌즈 */
.lenses { grid-template-columns: repeat(4, 1fr); margin-top: 36px; }
@media (max-width: 900px) { .lenses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .lenses { grid-template-columns: 1fr; } }
.lens img { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 12px; }
.lens h3 { font-size: 21px; margin-bottom: 6px; }
.lens p { color: var(--muted); font-size: 15.5px; }
.shots { display: flex; gap: 20px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.shots figure { margin: 0; width: min(250px, 44vw); }
.shots img { border-radius: 26px; border: 6px solid var(--navy-deep); box-shadow: var(--shadow); }
.shots figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 10px; }

/* 사진 약속 */
.flow { grid-template-columns: repeat(3, 1fr); margin-top: 36px; counter-reset: step; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } }
.flow .card { position: relative; padding-top: 30px; }
.flow .card::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 24px; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #f5f1e8; font-weight: 800; display: grid; place-items: center; }
.flow h3 { font-size: 20px; margin-bottom: 8px; }
.flow p { color: var(--muted); font-size: 15.5px; }
.exception { margin-top: 20px; border-left: 4px solid var(--gold); background: var(--gold-soft); padding: 14px 18px; border-radius: 10px; font-size: 15.5px; }

/* 기능 격자 */
.features { grid-template-columns: repeat(3, 1fr); margin-top: 36px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { display: flex; gap: 14px; align-items: flex-start; box-shadow: none; }
.feature img { width: 52px; height: 52px; border-radius: 14px; flex: none; }
.feature h3 { font-family: var(--sans); font-size: 17px; margin-bottom: 2px; }
.feature p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* 하지 않는 것 */
.nots { grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
@media (max-width: 700px) { .nots { grid-template-columns: 1fr; } }
.not { display: flex; gap: 12px; align-items: flex-start; box-shadow: none; }
.not .x { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--seal); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.not b { display: block; }
.not span { color: var(--muted); font-size: 15px; }

/* 둘로 나눈 절 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split.rev > :first-child { order: 0; } }
.bullets { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.bullets li { padding-left: 26px; position: relative; }
.bullets li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.row-art { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.row-art img { width: calc(33% - 8px); border-radius: 14px; box-shadow: var(--shadow); }
.talis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 30px; }
@media (max-width: 700px) { .talis { grid-template-columns: repeat(3, 1fr); } }
.talis img { border-radius: 8px; box-shadow: var(--shadow); }
.ai-tag { display: inline-block; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-top: 12px; }

/* 프로그램 */
.programs { grid-template-columns: repeat(3, 1fr); margin-top: 36px; }
@media (max-width: 900px) { .programs { grid-template-columns: 1fr; } }
.program h3 { font-size: 22px; margin: 6px 0 8px; }
.program .status { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); }
.program ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.program li { margin: 4px 0; }
.engine { margin-top: 24px; color: var(--muted); font-size: 15px; }

/* 자주 묻는 질문 */
.faq { max-width: 820px; margin: 32px auto 0; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding: 0 0 16px; font-size: 15.5px; }

/* 바닥 */
.cta { background: var(--navy-deep); color: #f5f1e8; text-align: center; }
.cta .lead { color: #c9cfdb; margin: 0 auto; }
.cta img { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--gold); margin: 0 auto 18px; }
.cta .stores { justify-content: center; margin-top: 24px; }
.cta .soon { background: transparent; border-color: #3a4560; }
.cta .soon span { color: #aab2c3; }
footer { padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px; }
footer .links a { color: var(--ink); text-decoration: none; font-weight: 600; }
footer p + p { margin-top: 6px; }

/* 스크롤하며 떠오르기. 움직임 줄이기를 켠 사람에게는 처음부터 보인다. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* 짧은 구절은 한 줄에 둔다(제목이 「한 / 줄.」 처럼 끊기지 않게). */
.nw { white-space: nowrap; }
