/* ===========================================================
   차곡차곡 복식장부 — 홍보 랜딩 페이지 스타일
   앱과 동일한 베이지/그린 톤
   =========================================================== */
:root {
  --cream: #F2EFE3;
  --cream-soft: #F7F4E9;
  --cream-deep: #EAE6D7;
  --paper: #FBFAF4;
  --green-deep: #2E5D3E;
  --green: #3C7A4F;
  --green-mid: #4A8A60;
  --green-soft: #B7D9B8;
  --green-pale: #DDEBD7;
  --orange: #D97757;
  --red-soft: #C75B5B;
  --ink: #1F2A22;
  --ink-soft: #45504A;
  --ink-muted: #7A8478;
  --line: rgba(46, 93, 62, 0.14);
  --shadow-sm: 0 2px 10px rgba(31,42,34,0.05);
  --shadow-md: 0 12px 32px rgba(31,42,34,0.10);
  --shadow-lg: 0 30px 70px rgba(31,42,34,0.16);
  --font: "Pretendard", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --max: 1120px;
  --radius: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- App Store 배지 ---------- */
.appstore-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.appstore-badge:hover { transform: translateY(-2px); }
.appstore-badge img { height: 54px; width: auto; }
/* 밝은 배경용 = 검은 배지 (흰 배지 반전) */
.appstore-badge.dark img { filter: invert(1); }

/* ---------- 네비게이션 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242,239,227,0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; color: var(--green-deep); letter-spacing: -0.02em; white-space: nowrap; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  overflow: hidden; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.brand-mark img { width: 100%; height: 100%; display: block; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--green-deep); color: var(--cream);
  font-size: 14.5px; font-weight: 700;
  padding: 10px 18px; border-radius: 999px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.nav-cta:hover { background: var(--ink); transform: translateY(-1px); }
.nav-cta svg { width: 15px; height: 15px; }

/* ---------- 공통 섹션 ---------- */
section { position: relative; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.18; color: var(--green-deep);
  text-wrap: balance;
}
.section-lead {
  font-size: clamp(16px, 1.8vw, 18.5px);
  color: var(--ink-soft); line-height: 1.7;
  margin-top: 18px; max-width: 600px;
  text-wrap: pretty;
}

/* ---------- HERO ---------- */
.hero { padding: 80px 0 100px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.06fr 0.94fr;
  gap: 56px; align-items: center;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-pale); color: var(--green-deep);
  font-size: 13.5px; font-weight: 600;
  padding: 7px 15px; border-radius: 999px;
  margin-bottom: 26px;
}
.hero-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-mid); }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 62px);
  font-weight: 800; letter-spacing: -0.035em;
  line-height: 1.1; color: var(--green-deep);
  text-wrap: balance;
}
.hero h1 .alt { color: var(--orange); }
.hero p.sub {
  font-size: clamp(16.5px, 1.9vw, 19px);
  color: var(--ink-soft); line-height: 1.72;
  margin-top: 24px; max-width: 480px;
  text-wrap: pretty;
}
.hero-actions { margin-top: 36px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-meta { font-size: 13.5px; color: var(--ink-muted); }
.hero-meta strong { color: var(--ink-soft); font-weight: 600; }

/* 히어로 폰 스택 */
.hero-visual { display: flex; justify-content: center; position: relative; }
.phone-stack { position: relative; width: 340px; height: 600px; }
.phone {
  position: absolute;
  width: 256px;
  border-radius: 40px;
  border: 9px solid #20271F;
  background: #20271F;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.phone img { border-radius: 31px; }
.phone.back  { top: 6px; right: 0; transform: rotate(5deg); }
.phone.front { bottom: 6px; left: 0; transform: rotate(-4deg); z-index: 2; }
.toggle-chip {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: 4;
  display: inline-flex; gap: 4px;
  background: #fff; border-radius: 999px; padding: 6px;
  box-shadow: 0 10px 30px rgba(31,42,34,0.22);
  font-size: 13px; font-weight: 700;
}
.toggle-chip .seg { padding: 9px 17px; border-radius: 999px; color: var(--ink-muted); transition: all 0.3s ease; white-space: nowrap; }
.toggle-chip .seg.on { background: var(--green-deep); color: #fff; }

/* ---------- 신뢰 띠 ---------- */
.trust { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--cream-soft); }
.trust-row { display: flex; justify-content: center; gap: clamp(24px, 6vw, 72px); flex-wrap: wrap; text-align: center; }
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-item .big { font-size: 24px; font-weight: 800; color: var(--green-deep); letter-spacing: -0.02em; }
.trust-item .small { font-size: 13px; color: var(--ink-muted); }

/* ---------- 컨셉 (토글) ---------- */
.concept { padding: 110px 0; }
.concept-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.concept-head .section-lead { margin-left: auto; margin-right: auto; }
.concept-compare {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 0; align-items: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 48px;
  box-shadow: var(--shadow-sm);
}
.compare-col { text-align: center; }
.compare-col .label {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.compare-col.easy .label { background: var(--green-pale); color: var(--green-deep); }
.compare-col.acc .label { background: #EFE6DA; color: var(--orange); }
.compare-shot {
  width: 200px; margin: 0 auto;
  border-radius: 26px; border: 7px solid #20271F; background: #20271F;
  overflow: hidden; box-shadow: var(--shadow-md);
}
.compare-shot img { border-radius: 20px; }
.compare-mid {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 0 32px; color: var(--green-mid);
}
.compare-mid .arrows { font-size: 30px; line-height: 1; }
.compare-mid .cap { font-size: 12.5px; color: var(--ink-muted); text-align: center; max-width: 110px; }

/* ---------- 단어 페어 ---------- */
.pairs { padding: 0 0 110px; }
.pairs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pair {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 12px; align-items: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pair:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pair .easy { font-weight: 600; font-size: 16px; color: var(--ink); text-align: right; }
.pair .arrow { color: var(--green-mid); font-size: 15px; }
.pair .acc { font-weight: 700; font-size: 16px; color: var(--green-deep); text-align: left; }

/* ---------- 기능 ---------- */
.features { padding: 110px 0; background: var(--cream-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features-head { text-align: center; max-width: 620px; margin: 0 auto 60px; }
.features-head .section-lead { margin-left: auto; margin-right: auto; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 20px; padding: 34px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--green-pale); color: var(--green-deep);
  display: grid; place-items: center; margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; font-weight: 700; color: var(--green-deep); line-height: 1.35; margin-bottom: 11px; letter-spacing: -0.01em; }
.feature p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; }

/* ---------- 스크린샷 갤러리 ---------- */
.gallery { padding: 110px 0; overflow: hidden; }
.gallery-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.gallery-head .section-lead { margin-left: auto; margin-right: auto; }
.gallery-strip {
  display: flex; gap: 22px; overflow-x: auto;
  padding: 10px 28px 30px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery-strip::-webkit-scrollbar { height: 8px; }
.gallery-strip::-webkit-scrollbar-thumb { background: var(--green-soft); border-radius: 999px; }
.gallery-strip::-webkit-scrollbar-track { background: transparent; }
.shot-card { flex: 0 0 232px; scroll-snap-align: center; }
.shot-frame {
  border-radius: 30px; border: 8px solid #20271F; background: #20271F;
  overflow: hidden; box-shadow: var(--shadow-md);
}
.shot-frame img { border-radius: 22px; }
.shot-meta { margin-top: 16px; text-align: center; padding: 0 6px; }
.shot-meta .tag { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-mid); }
.shot-meta .ttl { font-size: 15px; font-weight: 700; color: var(--green-deep); margin-top: 5px; line-height: 1.35; }

/* ---------- 대상 ---------- */
.audience { padding: 110px 0; background: var(--cream-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audience-head { text-align: center; margin-bottom: 60px; }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.aud-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 36px 32px; border-top: 3px solid var(--green-soft); }
.aud-card .num { font-family: ui-monospace, monospace; font-size: 13px; color: var(--green-mid); margin-bottom: 16px; }
.aud-card h4 { font-size: 18.5px; font-weight: 700; color: var(--green-deep); margin-bottom: 12px; letter-spacing: -0.01em; }
.aud-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.72; }

/* ---------- 최종 CTA ---------- */
.cta { padding: 120px 0; }
.cta-box {
  background: linear-gradient(155deg, #356546 0%, #234A30 100%);
  border-radius: 36px; padding: clamp(56px, 8vw, 96px) 40px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(183,217,184,0.18), transparent 45%);
  pointer-events: none;
}
.cta-icon {
  width: 92px; height: 92px; border-radius: 21px;
  margin: 0 auto 28px; position: relative;
  box-shadow: 0 18px 44px rgba(0,0,0,0.28);
  overflow: hidden;
}
.cta-icon img { width: 100%; height: 100%; display: block; }
.cta-box h2 {
  font-size: clamp(32px, 4.6vw, 50px);
  font-weight: 800; color: #fff; letter-spacing: -0.03em;
  line-height: 1.16; text-wrap: balance; position: relative;
}
.cta-box p {
  font-size: clamp(16px, 1.9vw, 18.5px);
  color: rgba(242,239,227,0.85); line-height: 1.7;
  margin: 20px auto 40px; max-width: 480px; position: relative;
}
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; }

/* ---------- 푸터 ---------- */
.footer { padding: 56px 0 64px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer .brand { font-size: 16px; }
.footer .brand-mark { width: 28px; height: 28px; border-radius: 7px; }
.footer-links { display: flex; gap: 24px; font-size: 14px; color: var(--ink-muted); }
.footer-links a { transition: color 0.18s ease; }
.footer-links a:hover { color: var(--green-deep); }
.footer-copy { font-size: 13px; color: var(--ink-muted); margin-top: 20px; }

/* ---------- 스크롤 등장 애니메이션 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .features-grid, .audience-grid, .pairs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .brand { font-size: 16px; }
  .hero { padding: 48px 0 72px; }
  .concept, .features, .gallery, .audience { padding: 72px 0; }
  .cta { padding: 80px 0; }
  .concept-compare { grid-template-columns: 1fr; gap: 32px; padding: 36px 24px; }
  .compare-mid { flex-direction: row; padding: 0; }
  .compare-mid .arrows { transform: rotate(90deg); }
  .compare-mid .cap { max-width: none; }
  .features-grid, .audience-grid, .pairs-grid { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .phone-stack { width: 300px; height: 540px; }
  .phone { width: 224px; }
}
