/* 나만의 시크릿 앱 페이지 (/fandom/, /en/fandom/, /ja/fandom/) 전용 스타일 */
:root {
  --ink: #2a2140;
  --text: #4d4563;
  --muted: #7d7594;
  --pink: #ff7eb6;
  --pink-soft: #ffe3f0;
  --lilac: #a98bff;
  --lilac-soft: #eee8ff;
  --mint: #7dd8c6;
  --sky: #8cc8ff;
  --cream: #fffaf5;
  --white: #ffffff;
  --line: #ece4f4;
  --radius: 22px;
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--cream); color: var(--text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.65; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
:lang(ja) body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  word-break: normal; line-break: strict;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 96px 0; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.3; color: var(--ink); margin-bottom: 14px; letter-spacing: -.02em; }
.head { text-align: center; margin-bottom: 48px; }
.head p { max-width: 640px; margin: 0 auto; color: var(--muted); }
.eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px;
  background: var(--pink-soft); color: #d2457f; font-size: .85rem; font-weight: 800; letter-spacing: .04em;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 26px; border-radius: 999px; font-weight: 800; border: 0; cursor: pointer; font: inherit; font-weight: 800;
}
.btn-main { background: linear-gradient(135deg, var(--pink), var(--lilac)); color: var(--white); box-shadow: 0 10px 24px rgba(169,139,255,.35); }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); }

/* 헤더 */
header { position: sticky; top: 0; z-index: 30; background: rgba(255,250,245,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); }
.logo-moon { width: 20px; height: 20px; border-radius: 50%; background: #f5c84c; box-shadow: inset -5px -2px 0 0 #e0a92a; }
.logo small { font-size: .72rem; font-weight: 800; color: #d2457f; background: var(--pink-soft); padding: 2px 8px; border-radius: 999px; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.back { font-size: .9rem; color: var(--muted); font-weight: 600; }
.back:hover { color: var(--ink); }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--lilac-soft); }
.lang a { padding: 4px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.lang a[aria-current="page"] { background: var(--white); color: var(--ink); }
.nav .btn { padding: 9px 16px; font-size: .9rem; }

/* 히어로 */
.hero { padding: 88px 0 72px; background: radial-gradient(circle at 15% 20%, var(--pink-soft), transparent 45%), radial-gradient(circle at 85% 10%, var(--lilac-soft), transparent 45%); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); line-height: 1.22; color: var(--ink); letter-spacing: -.03em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--pink), var(--lilac)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.08rem; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: .85rem; color: var(--muted); }
.sparkle { position: absolute; color: var(--lilac); opacity: .5; font-size: 1.6rem; pointer-events: none; }

/* 예시 폰 화면 */
.phone { position: relative; width: 250px; padding: 10px; border-radius: 36px; background: var(--ink); box-shadow: 0 24px 50px rgba(42,33,64,.25); flex: none; }
.screen { height: 470px; border-radius: 28px; overflow: hidden; background: var(--white); display: flex; flex-direction: column; font-size: .74rem; position: relative; }
.bar { padding: 14px 14px 10px; text-align: center; font-weight: 800; color: var(--ink); border-bottom: 1px solid var(--line); font-size: .82rem; }
.sample-tag { position: absolute; top: -11px; right: 22px; z-index: 3; font-size: .66rem; font-weight: 800; color: var(--white); background: var(--pink); padding: 3px 10px; border-radius: 999px; box-shadow: 0 4px 10px rgba(255,126,182,.35); }
.duo-phones { display: flex; justify-content: center; align-items: flex-end; }
.duo-phones .phone:first-child { transform: rotate(-5deg) translateY(10px); margin-right: -40px; z-index: 2; }
.duo-phones .phone:last-child { transform: rotate(4deg); }

/* 캐릭터 자리(실제 캐릭터 대신 쓰는 도형) */
.fav { position: relative; width: 74px; height: 92px; }
.fav::before { content: ""; position: absolute; left: 50%; top: 0; width: 46px; height: 46px; transform: translateX(-50%); border-radius: 50%; background: var(--c, var(--pink)); }
.fav::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 70px; height: 50px; transform: translateX(-50%); border-radius: 36px 36px 14px 14px; background: var(--c, var(--pink)); opacity: .8; }
.fav span { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 1; color: var(--white); font-size: .9rem; }

/* 1) 프레임 만들기 */
.fm-canvas { margin: 12px; flex: 1; border-radius: 18px; padding: 10px; background: linear-gradient(135deg, #ffd6e8, #e3d9ff); position: relative; }
.fm-inner { height: 100%; border-radius: 12px; background: repeating-linear-gradient(45deg, #fff 0 10px, #fff6fb 10px 20px); position: relative; display: flex; align-items: flex-end; justify-content: center; }
.fm-inner .fav { margin-bottom: 18px; outline: 2px dashed var(--lilac); outline-offset: 6px; border-radius: 12px; }
.fm-stk { position: absolute; font-size: 1.1rem; }
.fm-text { position: absolute; top: 12px; left: 0; right: 0; text-align: center; font-weight: 800; color: #d2457f; font-size: .78rem; }
.tools { display: flex; gap: 6px; padding: 10px 12px 14px; flex-wrap: wrap; justify-content: center; }
.tools span { padding: 5px 10px; border-radius: 999px; background: var(--lilac-soft); color: var(--ink); font-weight: 700; font-size: .66rem; }
.tools .ai { background: linear-gradient(135deg, var(--pink), var(--lilac)); color: var(--white); }

/* 2) 프레임 카메라 */
.cam { background: #191523; color: var(--white); }
.cam .bar { color: var(--white); border-color: rgba(255,255,255,.1); }
.cam-view { flex: 1; margin: 10px 18px; border-radius: 10px; padding: 8px; background: linear-gradient(135deg, var(--pink), var(--lilac)); display: grid; grid-template-rows: repeat(4, 1fr); gap: 6px; }
.cut { border-radius: 6px; background: #3a3150; position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-around; padding: 0 12px; }
.cut.live { background: #5b4d7a; outline: 2px solid var(--white); }
.cut .me, .cut .mini { width: 26px; height: 34px; border-radius: 13px 13px 4px 4px; }
.cut .me { background: #c9bfe0; }
.cut .mini { background: var(--pink); }
.cam-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 26px 18px; }
.cam-foot small { font-size: .62rem; opacity: .7; }
.shutter { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--white); background: var(--pink); }

/* 3) AI 합성 */
.mix { flex: 1; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.mix-in { display: flex; align-items: center; justify-content: center; gap: 10px; }
.mix-in div { width: 74px; height: 92px; border-radius: 14px; background: var(--lilac-soft); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; font-size: .62rem; font-weight: 700; color: var(--muted); }
.mix-in .fav { transform: scale(.8); transform-origin: bottom; }
.mix-in b { font-size: 1.2rem; color: var(--lilac); }
.mix-key { display: flex; gap: 6px; justify-content: center; }
.mix-key span { padding: 4px 10px; border-radius: 999px; background: var(--pink-soft); color: #d2457f; font-weight: 700; font-size: .66rem; }
.mix-out { flex: 1; border-radius: 16px; background: linear-gradient(180deg, #d9ecff, #ffe9f3); display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding-bottom: 12px; position: relative; }
.mix-out .me { width: 52px; height: 80px; border-radius: 26px 26px 10px 10px; background: #b9aed6; }
.mix-out .fav { margin-bottom: -2px; }
.mix-out em { position: absolute; top: 10px; left: 12px; font-style: normal; font-weight: 800; font-size: .66rem; color: var(--ink); background: rgba(255,255,255,.8); padding: 2px 8px; border-radius: 999px; }

/* 4) 친구 집 */
.house { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: #fbf8ff; }
.house-card { background: var(--white); border-radius: 14px; padding: 10px; border: 1px solid var(--line); }
.house-card h5 { font-size: .78rem; color: var(--ink); margin-bottom: 8px; display: flex; justify-content: space-between; }
.house-card h5 small { color: var(--muted); font-weight: 600; }
.friends { display: flex; gap: 8px; }
.friend { text-align: center; font-size: .6rem; color: var(--muted); }
.friend i { display: block; width: 36px; height: 36px; border-radius: 50%; margin: 0 auto 3px; background: var(--c); }
.aff { display: grid; gap: 6px; }
.aff div { display: grid; grid-template-columns: 54px 1fr 22px; gap: 6px; align-items: center; font-size: .62rem; }
.aff b { height: 7px; border-radius: 999px; background: linear-gradient(90deg, var(--pink), var(--lilac)); }
.album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.album i { aspect-ratio: 1; border-radius: 6px; background: var(--c); }

/* 5) 만화 일기 */
.diary { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.diary-meta { display: flex; justify-content: space-between; font-weight: 700; color: var(--ink); font-size: .7rem; }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: 1; }
.panel { border-radius: 8px; border: 2px solid var(--ink); position: relative; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.panel .me { width: 30px; height: 42px; border-radius: 15px 15px 6px 6px; background: #b9aed6; margin-bottom: 6px; }
.panel span { position: absolute; top: 6px; right: 8px; font-size: 1rem; }
.diary-text { font-size: .66rem; color: var(--muted); background: var(--lilac-soft); border-radius: 10px; padding: 8px 10px; line-height: 1.5; }

/* 기능 섹션 */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px dashed var(--line); }
.feature.rev .f-copy { order: 2; }
.f-copy .num { font-weight: 800; color: var(--lilac); font-size: .9rem; letter-spacing: .06em; }
.f-copy h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--ink); line-height: 1.3; margin: 6px 0 12px; letter-spacing: -.02em; }
.f-copy p { margin-bottom: 16px; }
.f-copy ul { list-style: none; display: grid; gap: 8px; }
.f-copy li::before { content: "♡ "; color: var(--pink); font-weight: 800; }
.f-copy .tag { display: inline-block; margin-bottom: 4px; font-size: .78rem; font-weight: 800; color: #d2457f; background: var(--pink-soft); padding: 3px 10px; border-radius: 999px; }
.f-visual { display: flex; justify-content: center; }
.basis { margin-top: 8px; text-align: center; font-size: .9rem; color: var(--muted); }

/* 이런 분께 */
.who { background: var(--white); }
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.who-item { border-radius: var(--radius); padding: 26px 22px; background: var(--cream); border: 1px solid var(--line); }
.who-item .icon { font-size: 1.8rem; margin-bottom: 10px; }
.who-item h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 6px; }
.who-item p { font-size: .92rem; color: var(--muted); }

/* 안심 */
.safe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.safe-item { border-radius: var(--radius); padding: 24px; background: var(--white); border: 1px solid var(--line); }
.safe-item h3 { font-size: 1.02rem; color: var(--ink); margin-bottom: 6px; }
.safe-item p { font-size: .92rem; color: var(--muted); }

/* FAQ */
.faq { background: var(--white); }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
details { border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; background: var(--cream); }
summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; color: var(--lilac); font-weight: 800; }
details[open] summary::after { content: "−"; }
details p { margin-top: 10px; color: var(--muted); }

/* 마무리 */
.cta { text-align: center; background: linear-gradient(135deg, #ffe3f0, #eee8ff); }
.cta h2 { margin-bottom: 10px; }
.cta p { margin-bottom: 26px; }
footer { padding: 32px 0; font-size: .85rem; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { font-weight: 700; color: var(--ink); }

@media (max-width: 960px) {
  .hero-grid, .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.rev .f-copy { order: 0; }
  .who-grid { grid-template-columns: 1fr 1fr; }
  .safe-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  section { padding: 72px 0; }
  .hero { padding: 56px 0 56px; }
  .back { display: none; }
  .nav .btn { display: none; }
  .who-grid { grid-template-columns: 1fr; }
  .duo-phones .phone { width: 210px; }
  .duo-phones .screen { height: 400px; }
  .duo-phones .phone:first-child { margin-right: -60px; }
}
