/* Pilofy(필로피) 공식 웹페이지 스타일
   방향: 앱 실제 디자인 시스템(DESIGN_SYSTEM.md) 그대로 — 크림 배경 + 코럴/퍼플 포인트,
   카테고리 색상은 앱과 동일한 팔레트를 사용한다. */

@font-face {
  font-family: 'Pretendard Variable';
  src: url('/fonts/PretendardVariable.woff2') format('woff2-variations');
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FAF9F6;
  --card: #FFFFFF;
  --fg: #2B2B33;
  --muted: #6B6875;
  --divider: #E3E1EC;
  --coral: #FF7A59;
  --coral-tint: #FFF1EA;
  --purple: #8B5CF6;
  --purple-tint: #F3EEFF;
  --shadow: 0 18px 36px -20px rgba(40, 30, 70, 0.28);
  --shadow-soft: 0 10px 24px -16px rgba(40, 30, 70, 0.22);

  --font-body: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --font-mark: 'Pacifico', cursive;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, p, ul, dl, dt, dd { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}

.section {
  max-width: 880px;
  margin: 0 auto;
  padding: 96px 24px;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(250, 249, 246, 0.86);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--divider);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav__mark { border-radius: 8px; }
.nav__name {
  font-family: var(--font-mark);
  font-size: 21px;
  color: var(--fg);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav__sbp {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.nav__sbp:hover { color: var(--purple); }
.nav__blog, .nav__home {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.nav__blog:hover, .nav__home:hover { color: var(--purple); }
.nav__contact {
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
}
.nav__contact:hover { color: var(--coral); border-bottom-color: var(--coral); }

/* ---------- HERO ---------- */
.hero {
  /* 히어로 이미지(hero-launch.webp) 자체에 구워진 배경색(#FDF1EB)과 맞춰서
     이미지 경계가 안 보이게 — 첫 섹션만 이 톤으로, 나머지는 기본 --paper 유지 */
  background: #FDF1EB;
}
.hero__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero__badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
  background: var(--purple-tint);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero__title {
  font-size: 44px;
  line-height: 1.24;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero__desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease;
}
.hero__cta:hover { transform: translateY(-2px); }
.hero__cta--ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: none;
  border: 1.5px solid var(--divider);
}
.hero__cta--ghost:hover { border-color: var(--coral); color: var(--coral); }

.hero__visual {
  display: flex;
  justify-content: center;
}
.hero__art {
  width: min(420px, 88%);
}

.phone-frame {
  position: relative;
  z-index: 1;
  background: #000;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.phone-frame img { border-radius: 28px; display: block; }
.phone-frame--wide { width: 100%; max-width: 340px; margin: 0 auto; }
.phone-frame--wide img { border-radius: 20px; }

/* ---------- CONCEPT ---------- */
.concept__head h2 {
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 800;
  margin-bottom: 24px;
}
.concept__body p {
  font-size: 16px;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 14px;
}
.concept__lead {
  color: var(--fg) !important;
  font-weight: 600;
}
.concept__compare {
  margin: 40px 0 20px;
  background: var(--card);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.concept__compare img { border-radius: 16px; }
.concept__compare figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  padding-top: 14px;
}
.concept__note {
  font-size: 15px;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- DIFF ---------- */
.diff { max-width: 1000px; }
.diff__head h2 {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 14px;
}
.diff__desc {
  font-size: 16px;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 40px;
}
.diff__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.diff__item {
  background: var(--t);
  border-radius: 18px;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 148px;
}
.diff__icon { font-size: 26px; }
.diff__name { font-weight: 700; font-size: 14.5px; color: var(--fg); }
.diff__to { font-size: 13px; color: var(--c); font-weight: 600; line-height: 1.4; }
.diff__foot {
  margin-top: 28px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- FEATURES ---------- */
.features { max-width: 1080px; }
.features__head h2 {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 56px;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--divider);
}
.feature-row:first-of-type { border-top: none; }
.feature-row--reverse .feature-row__text { order: 2; }
.feature-row--reverse .feature-row__visual { order: 1; }
.feature-row__tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, white);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.feature-row__text h3 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.feature-row__text p {
  font-size: 15.5px;
  color: var(--muted);
  max-width: 42ch;
}

/* ---------- AI ---------- */
.ai { background: var(--purple-tint); border-radius: 32px; max-width: 1040px; padding: 64px 48px; }
.ai__inner { max-width: 640px; }
.ai h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 18px;
}
.ai p { font-size: 16px; color: var(--fg); opacity: 0.85; margin-bottom: 14px; }
.ai p strong { color: var(--purple); }
.ai__reqs {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ai__reqs li {
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
}

/* ---------- PROGRESS ---------- */
.progress h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 10px 0 20px;
}
.progress p {
  font-size: 16px;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 10px;
}
.progress__lead { color: var(--fg) !important; font-weight: 600; margin-bottom: 18px !important; }
.progress__list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.progress__list li {
  font-size: 15px;
  color: var(--muted);
  padding-left: 22px;
  position: relative;
  max-width: 60ch;
}
.progress__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

/* ---------- FAQ ---------- */
.faq h2 { font-size: 28px; font-weight: 800; margin: 10px 0 32px; }
.faq__list { display: flex; flex-direction: column; }
.faq__item {
  padding: 24px 0;
  border-top: 1px solid var(--divider);
}
.faq__item:last-child { border-bottom: 1px solid var(--divider); }
.faq__item dt {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}
.faq__item dd {
  font-size: 15px;
  color: var(--muted);
  max-width: 64ch;
}

/* ---------- CONTACT ---------- */
.contact { text-align: center; }
.contact__lead { font-size: 18px; margin-bottom: 20px; }
.contact__email {
  display: inline-block;
  font-size: 24px;
  font-weight: 800;
  color: var(--coral);
  border-bottom: 2px solid var(--coral-tint);
  padding-bottom: 4px;
}
.contact__insta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.contact__insta:hover { color: var(--purple); }

/* ---------- FOOTER ---------- */
.footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer a { font-weight: 700; color: var(--fg); border-bottom: 1px solid var(--divider); }
.footer a:hover { color: var(--coral); border-bottom-color: var(--coral); }
.footer__mark { border-radius: 6px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding-top: 48px; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__visual { order: -1; margin-bottom: 8px; }
  .hero__title { font-size: 34px; }
  .diff__grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row--reverse { grid-template-columns: 1fr; }
  .feature-row--reverse .feature-row__text,
  .feature-row--reverse .feature-row__visual { order: initial; }
  .feature-row__visual { order: -1; }
  .ai { padding: 44px 28px; border-radius: 24px; }
  .section { padding: 64px 20px; }
}
@media (max-width: 480px) {
  .diff__grid { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: 29px; }
}
