/* 인생한편 홈페이지 — 앱과 같은 종이·명조·와인색 */
:root {
  --paper: #f6f1e7;
  --surface: #fbf8f2;
  --ink: #2a2420;
  --muted: #776c62;
  --line: #e3d9cb;
  --ruby: #9b3047;
  --life: #3f6e52;
  --story: #3f5276;
  --gold: #a5813f;
  --serif: 'Noto Serif KR', 'MaruBuri', 'Nanum Myeongjo', serif;
  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #1b1715;
    --surface: #24201d;
    --ink: #efe7dc;
    --muted: #a99d91;
    --line: #3a332e;
    --ruby: #d76f86;
    --life: #8fbf9d;
    --story: #9eb1d6;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.75 var(--sans);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }

/* 머리 */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--serif); font-size: 19px; color: var(--ruby); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
nav.links { display: flex; gap: 20px; margin-left: auto; font-size: 14px; }
nav.links a { text-decoration: none; color: var(--muted); }
nav.links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--ruby); color: #fff; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13px; }
@media (max-width: 720px) { nav.links { display: none; } header.top .btn.small { margin-left: auto; } }

/* 첫 화면 */
.hero { padding: 72px 0 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 5vw, 50px); line-height: 1.35; margin: 0; letter-spacing: -0.01em; }
.hero p.lead { margin: 18px 0 28px; font-size: 18px; color: var(--muted); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.stores { margin-top: 14px; font-size: 13px; color: var(--muted); }
.shelf { position: relative; height: 380px; }
.shelf .book { position: absolute; width: 190px; border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: 0 18px 40px rgba(42, 36, 32, 0.22); background: var(--story); aspect-ratio: 0.73; }
.shelf .book img { width: 100%; height: 100%; object-fit: cover; }
.shelf .book:nth-child(1) { left: 4%; top: 40px; transform: rotate(-7deg); }
.shelf .book:nth-child(2) { left: 32%; top: 0; z-index: 2; width: 210px; }
.shelf .book:nth-child(3) { left: 62%; top: 52px; transform: rotate(6deg); }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .shelf { height: 280px; }
  .shelf .book { width: 140px; }
  .shelf .book:nth-child(2) { width: 156px; }
}

/* 공통 구역 */
section.block { padding: 64px 0; border-top: 1px solid var(--line); }
.eyebrow { font-size: 12px; letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; }
h2.title { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3.2vw, 32px); margin: 6px 0 28px; line-height: 1.4; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.feature .tag { font-size: 11px; letter-spacing: 0.18em; font-weight: 700; }
.feature h3 { font-family: var(--serif); font-weight: 500; font-size: 19px; margin: 8px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.feature.life .tag { color: var(--life); }
.feature.story .tag { color: var(--story); }
.feature.ai .tag { color: var(--ruby); }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }

/* 읽어 보기 */
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.work { text-decoration: none; }
.work .cover { aspect-ratio: 0.73; border-radius: 3px 8px 8px 3px; overflow: hidden; box-shadow: 0 8px 22px rgba(42, 36, 32, 0.16); background: var(--story); }
.work .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.work:hover .cover img { transform: scale(1.03); }
.work .t { margin-top: 10px; font-family: var(--serif); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work .a { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.badge { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; font-size: 11px; line-height: 18px; color: var(--muted); }
@media (max-width: 820px) { .works { grid-template-columns: repeat(2, 1fr); } }

/* 안심 */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust div { padding: 18px; border-left: 2px solid var(--ruby); background: var(--surface); border-radius: 0 12px 12px 0; }
.trust b { display: block; font-family: var(--serif); font-weight: 500; font-size: 17px; margin-bottom: 4px; }
.trust span { font-size: 14px; color: var(--muted); }
@media (max-width: 820px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

/* 요금 */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; }
.plan.hot { border-color: var(--ruby); box-shadow: 0 0 0 1px var(--ruby); }
.plan h3 { margin: 0; font-size: 15px; letter-spacing: 0.08em; }
.plan .price { font-family: var(--serif); font-size: 26px; margin: 10px 0 2px; }
.plan .price small { font-size: 13px; color: var(--muted); font-family: var(--sans); }
.plan ul { margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; }
.plan li { padding: 5px 0 5px 18px; position: relative; }
.plan li::before { content: '·'; position: absolute; left: 4px; color: var(--ruby); font-weight: 700; }
.inkline { margin-top: 16px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }

/* 자주 묻는 질문 */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-family: var(--serif); font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: '+'; color: var(--muted); }
details[open] summary::after { content: '−'; }
details p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

/* 마무리 권유 */
.cta-band { text-align: center; padding: 72px 20px; }
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 22px; }

/* 꼬리 */
footer.bottom { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 13px; color: var(--muted); }
footer.bottom .legal { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; }
footer.bottom .legal a { text-decoration: none; }
footer.bottom .legal a.strong { color: var(--ink); font-weight: 700; }
footer.bottom .biz { line-height: 1.9; }

/* 약관·지원 문서 */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0 0 6px; }
.doc .meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.doc h2 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin: 36px 0 10px; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc li { font-size: 15px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); }
.doc blockquote { margin: 12px 0; padding: 10px 16px; border-left: 3px solid var(--gold); background: var(--surface); color: var(--muted); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.doc .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.doc .tabs a { text-decoration: none; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--muted); }
.doc .tabs a.on { border-color: var(--ink); color: var(--ink); }

/* 종이 질감 — 앱의 '종이책' 스킨과 같은 방식(구김 + 고운 입자 + 섬유 결). 파일 없이 SVG 노이즈로 */
:root { --paper-texture: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27640%27%20height%3D%27640%27%3E%3Cfilter%20id%3D%27c%27%20x%3D%270%27%20y%3D%270%27%20width%3D%27100%25%27%20height%3D%27100%25%27%3E%3CfeTurbulence%20type%3D%27turbulence%27%20baseFrequency%3D%270.006%200.009%27%20numOctaves%3D%274%27%20seed%3D%2711%27%20stitchTiles%3D%27stitch%27%20result%3D%27t%27/%3E%3CfeDiffuseLighting%20in%3D%27t%27%20surfaceScale%3D%275%27%20lighting-color%3D%27%23fff%27%20result%3D%27l%27%3E%3CfeDistantLight%20azimuth%3D%27225%27%20elevation%3D%2748%27/%3E%3C/feDiffuseLighting%3E%3CfeColorMatrix%20in%3D%27l%27%20values%3D%270%200%200%200%200.165%200%200%200%200%200.141%200%200%200%200%200.125%20-0.16%200%200%200%200.147%27/%3E%3C/filter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23c%29%27/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27260%27%20height%3D%27260%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.85%27%20numOctaves%3D%273%27%20stitchTiles%3D%27stitch%27/%3E%3CfeColorMatrix%20values%3D%270%200%200%200%200.165%200%200%200%200%200.141%200%200%200%200%200.125%200%200%200%200.07%200%27/%3E%3C/filter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23n%29%27/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27420%27%20height%3D%27420%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.03%200.06%27%20numOctaves%3D%273%27%20stitchTiles%3D%27stitch%27/%3E%3CfeColorMatrix%20values%3D%270%200%200%200%200.165%200%200%200%200%200.141%200%200%200%200%200.125%200%200%200%200.06%200%27/%3E%3C/filter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23n%29%27/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) { --paper-texture: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27640%27%20height%3D%27640%27%3E%3Cfilter%20id%3D%27c%27%20x%3D%270%27%20y%3D%270%27%20width%3D%27100%25%27%20height%3D%27100%25%27%3E%3CfeTurbulence%20type%3D%27turbulence%27%20baseFrequency%3D%270.006%200.009%27%20numOctaves%3D%274%27%20seed%3D%2711%27%20stitchTiles%3D%27stitch%27%20result%3D%27t%27/%3E%3CfeDiffuseLighting%20in%3D%27t%27%20surfaceScale%3D%275%27%20lighting-color%3D%27%23fff%27%20result%3D%27l%27%3E%3CfeDistantLight%20azimuth%3D%27225%27%20elevation%3D%2748%27/%3E%3C/feDiffuseLighting%3E%3CfeColorMatrix%20in%3D%27l%27%20values%3D%270%200%200%200%200.000%200%200%200%200%200.000%200%200%200%200%200.000%20-0.3%200%200%200%200.276%27/%3E%3C/filter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23c%29%27/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27260%27%20height%3D%27260%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.85%27%20numOctaves%3D%273%27%20stitchTiles%3D%27stitch%27/%3E%3CfeColorMatrix%20values%3D%270%200%200%200%201.000%200%200%200%200%200.973%200%200%200%200%200.922%200%200%200%200.05%200%27/%3E%3C/filter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23n%29%27/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27420%27%20height%3D%27420%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.03%200.06%27%20numOctaves%3D%273%27%20stitchTiles%3D%27stitch%27/%3E%3CfeColorMatrix%20values%3D%270%200%200%200%201.000%200%200%200%200%200.973%200%200%200%200%200.922%200%200%200%200.04%200%27/%3E%3C/filter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23n%29%27/%3E%3C/svg%3E"); } }
body { background-color: var(--paper); background-image: var(--paper-texture); background-size: 640px 640px, 260px 260px, 420px 420px; background-attachment: fixed; }
/* 카드·머리줄은 종이 위에 놓인 한 장처럼 살짝 비치게 */
.feature, .plan, .trust div { background: color-mix(in srgb, var(--surface) 82%, transparent); }
