/* 파이블릿 소개 사이트. 앱과 같은 색: 하늘 #DBEDF7, 종이 #FFF9EE, 먹 #45362E, 금 테두리 #FFD173 */
:root {
  --sky: #dbedf7;
  --sky-deep: #bfdcef;
  --paper: #fff9ee;
  --paper-2: #f7eedc;
  --ink: #45362e;
  --ink-soft: #7a6a5f;
  --gold: #ffd173;
  --gold-deep: #e0a93c;
  --wood: #73bf6b; --fire: #ef8a5a; --earth: #e4b85a; --metal: #b8c4cf; --water: #7cc1e8;
  --radius: 22px;
  --max: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* 상단 */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 249, 238, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(69, 54, 46, 0.08); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.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: 10px; }
.nav { display: flex; gap: 18px; font-size: 14px; color: var(--ink-soft); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* 히어로 */
.hero { background: linear-gradient(180deg, var(--sky) 0%, var(--sky) 70%, var(--paper) 100%); padding: 48px 0 24px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; }
.hero-art img { width: min(100%, 520px); margin: 0 auto; filter: drop-shadow(0 18px 24px rgba(69, 54, 46, 0.14)); }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
.hero h1 small { display: block; font-size: 0.42em; color: var(--ink-soft); font-weight: 600; margin-bottom: 6px; }
.hero p.lead { font-size: 18px; color: var(--ink-soft); margin: 0 0 24px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 16px; text-decoration: none; font-weight: 700; font-size: 16px; border: 0; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-store { background: #111; color: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16); }
.btn-store svg { width: 22px; height: 22px; fill: #fff; }
.btn-store .two { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-store .two small { font-size: 11px; font-weight: 500; opacity: .8; }
.btn-store[aria-disabled="true"] { background: #8d8781; box-shadow: none; cursor: default; }
.btn-soft { background: var(--paper); color: var(--ink); border: 2px solid var(--gold); }
.note { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }

/* 섹션 공통 */
section { padding: 56px 0; }
.sec-title { text-align: center; margin: 0 0 8px; font-size: clamp(24px, 3.4vw, 34px); }
.sec-sub { text-align: center; color: var(--ink-soft); margin: 0 auto 32px; max-width: 620px; }

/* 다섯 섬 */
.islands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.island { background: var(--paper-2); border-radius: var(--radius); padding: 16px 12px 14px; text-align: center; border: 2px solid transparent; transition: transform .15s ease; }
.island:hover { transform: translateY(-4px); }
.island img { width: 110px; height: 110px; object-fit: contain; margin: 0 auto 8px; }
.island b { display: block; font-size: 16px; }
.island span { font-size: 13px; color: var(--ink-soft); }
.island.wood { border-color: var(--wood); } .island.fire { border-color: var(--fire); } .island.earth { border-color: var(--earth); } .island.metal { border-color: var(--metal); } .island.water { border-color: var(--water); }

/* 특징 */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { background: #fff; border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: 0 6px 18px rgba(69, 54, 46, 0.06); display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.feature img { width: 96px; height: 96px; object-fit: contain; }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* 파이블릿 띠 */
.kids { background: var(--sky); }
.kid-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.kid { width: 132px; background: var(--paper); border-radius: 18px; padding: 12px 8px 10px; text-align: center; }
.kid img { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 6px; }
.kid b { display: block; font-size: 15px; }
.kid span { font-size: 12px; color: var(--ink-soft); }
.kid.mystery { background: var(--paper-2); outline: 2px dashed var(--gold-deep); }
.kid.mystery img { opacity: .75; }
.tag { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; margin-top: 4px; }
.tag.mystery { background: #fff0cf; color: #9a6a12; }

/* 받기 */
.get { text-align: center; }
.get .cta { justify-content: center; }

/* 바닥 */
footer { border-top: 1px solid rgba(69, 54, 46, 0.1); padding: 28px 0 40px; font-size: 13px; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 16px; }
footer a { text-decoration: none; }

/* 문서 페이지(개인정보처리방침) */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.doc h1 { font-size: 30px; margin: 0 0 6px; }
.doc .meta { color: var(--ink-soft); font-size: 14px; margin-bottom: 28px; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; padding-top: 8px; border-top: 1px solid rgba(69, 54, 46, 0.1); }
.doc p, .doc li { font-size: 15.5px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 10px 0 6px; }
.doc th, .doc td { border: 1px solid rgba(69, 54, 46, 0.14); padding: 9px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--paper-2); font-weight: 700; white-space: nowrap; }
.doc .fill { background: #fff3c4; padding: 0 4px; border-radius: 4px; }
.doc .box { background: var(--paper-2); border-radius: 14px; padding: 14px 16px; font-size: 14.5px; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: -1; }
  .cta { justify-content: center; }
  .islands { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 520px) {
  .islands { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 72px 1fr; }
  .feature img { width: 72px; height: 72px; }
  .kid { width: calc(50% - 5px); }
}
