/* ════════════════════════════════════════════════════════════════
   SMONEYLAB — Landing
   Beige minimal · editorial-industrial · house tokens reused
   ════════════════════════════════════════════════════════════════ */

/* ── FONTS (self-hosted, no CDN runtime dependency) ───────────── */
@font-face {
  font-family: 'Pretendard';
  font-weight: 400; font-style: normal; font-display: swap;
  src: url('/fonts/Pretendard-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 500; font-style: normal; font-display: swap;
  src: url('/fonts/Pretendard-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 800; font-style: normal; font-display: swap;
  src: url('/fonts/Pretendard-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 900; font-style: normal; font-display: swap;
  src: url('/fonts/Pretendard-900.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 500; font-style: normal; font-display: swap;
  src: url('/fonts/IBMPlexMono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 600; font-style: normal; font-display: swap;
  src: url('/fonts/IBMPlexMono-600.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 700; font-style: normal; font-display: swap;
  src: url('/fonts/IBMPlexMono-700.woff2') format('woff2');
}

/* ── TOKENS (carried over from bangpeu-scope/site.css) ────────── */
:root {
  --bg:          #E8E6E0;
  --panel:       #F6F4EF;
  --ink:         #0E0E0E;
  --body:        #5A5A55;
  --accent:      #1F8A5B;
  --accent-soft: rgba(31,138,91,0.08);
  --rule:        #D6D2C8;
  --ink-inv:     #F6F4EF;

  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Pretendard', system-ui, -apple-system, sans-serif;

  --maxw: 1080px;
}

/* ── RESET ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }

/* mono label utility */
.mono {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* ── HEADER ───────────────────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.brand .slash { color: var(--accent); margin-right: 2px; }
.topnav { display: flex; gap: 0; }
.topnav a {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--body);
  text-decoration: none;
  padding: 8px 16px;
  border-left: 1px solid var(--rule);
  transition: color .15s, background .15s;
}
.topnav a:first-child { border-left: none; }
.topnav a:hover { color: var(--ink); }
.topnav a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ── MAIN ─────────────────────────────────────────────────────── */
main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--rule);
}
.hero-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--body);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-label::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--accent);
}
.hero-mark {
  font-family: var(--sans);
  font-weight: 900;
  text-transform: uppercase;
  /* G: 상한 낮춤 — 1440px 이상에서 9글자+점이 maxw 1080px 내에서 잘리지 않게.
     1080px 컨테이너 ÷ 10글자 ≈ 108px. 패딩(80px)·letter-spacing 감안 → 상한 104px. */
  font-size: clamp(54px, 9vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-mark .dot { color: var(--accent); }
.hero-sub {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 500;
  color: var(--body);
  max-width: 540px;
}
.hero-sub strong { color: var(--ink); font-weight: 800; }
/* GEO 정의 문장 — 화면에 보이되 보조 스타일로 위계 유지 */
.hero-def {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  border-left: 2px solid var(--accent);
  padding-left: 14px;
  margin-bottom: 20px;
  max-width: 600px;
  line-height: 1.6;
}

/* ── HERO ANIMATION ───────────────────────────────────────────── */
.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}
.hero-text {
  flex: 1 1 auto;
  min-width: 0;
}
.hero-anim {
  flex: 0 0 300px;
  width: 300px;
}
.hero-anim #hero-lottie {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.9;
}
@media (max-width: 760px) {
  .hero-inner {
    flex-direction: column-reverse;
    gap: 32px;
  }
  .hero-anim {
    flex: 0 0 auto;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-section { margin-bottom: 16px; }
.faq-list { list-style: none; display: flex; flex-direction: column; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.faq-item { background: var(--panel); }
.faq-item details { width: 100%; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .2s;
  line-height: 1;
}
.faq-item details[open] summary::after { transform: rotate(45deg); }
.faq-item summary dt {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.4;
}
.faq-item summary:hover dt { color: var(--accent); }
.faq-item dd {
  padding: 0 28px 22px 28px;
  font-size: 15px;
  font-weight: 400;
  color: var(--body);
  line-height: 1.75;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.faq-item:focus-within summary { outline: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ── SECTION HEAD ─────────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 64px 0 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-head .count {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--body);
}

/* ── TOOL CARDS ───────────────────────────────────────────────── */
.tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 16px;
}
.card {
  background: var(--panel);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: background .2s, transform .2s;
}
.card:hover { background: #FBFAF6; }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.card-idx {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--body);
}
.card-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--rule);
  padding: 4px 10px;
}
.card-name {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 16px;
}
.card-desc {
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  line-height: 1.7;
  flex: 1;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  width: 100%;
}
.card-cta .arrow { transition: transform .2s; color: var(--accent); }
.card:hover .card-cta .arrow { transform: translateX(5px); }

/* ── FEATURED PRODUCT (대표 제품 — 전체 너비 다크 카드) ──────────── */
.card--featured {
  background: var(--ink);
  color: var(--ink-inv);
  border: 1px solid var(--ink);
  min-height: 260px;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  margin-bottom: 12px;
}
.card--featured:hover { background: #1a1a1a; }
.card--featured .card-body { display: flex; flex-direction: column; flex: 1; }
.card--featured .card-top { margin-bottom: 14px; }
.card--featured .card-tag { color: #6EE7B7; border-color: rgba(246,244,239,0.22); }
.card--featured .card-name { font-size: 42px; margin-bottom: 14px; }
.card--featured .card-desc { color: rgba(246,244,239,0.72); max-width: 520px; flex: none; }
.card--featured .card-cta {
  color: var(--ink-inv);
  margin-top: 0; padding-top: 0; border-top: none;
  width: auto; white-space: nowrap;
}
.card--featured .card-cta .arrow { color: #6EE7B7; }
.card--featured:hover .card-cta .arrow { transform: translateY(4px); }

/* ── RELATED SERVICE CARDS (2-col) ─────────────────────────────── */
.cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 16px;
}
.card--sub {
  min-height: 200px;
}
@media (max-width: 520px) {
  .cards-2 { grid-template-columns: 1fr; }
}

/* ── SUBLINKS (관련 서비스 보조 링크) ──────────────────────────── */
.sublinks {
  display: flex;
  align-items: center;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.sublinks-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--body);
  background: var(--panel);
  padding: 16px 22px;
}
.sublink {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  background: var(--panel);
  padding: 16px 22px;
  transition: background .2s, color .2s;
}
.sublink:hover { background: #FBFAF6; color: var(--accent); }
.sublink:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sublink-meta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--body);
}
.sublink .arrow { margin-left: auto; color: var(--accent); transition: transform .2s; }
.sublink:hover .arrow { transform: translate(3px, -3px); }


/* ── SCREENS (제품 실제 화면) ─────────────────────────────────── */
.screens {
  display: flex;
  flex-direction: column;
  gap: 44px;
  margin-bottom: 16px;
}
.shot { display: block; margin: 0; }
.shot-frame {
  border: 1px solid var(--rule);
  background: var(--panel);
  box-shadow: 0 18px 44px -26px rgba(14, 14, 14, 0.5);
  overflow: hidden;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: #ECEAE3;
  border-bottom: 1px solid var(--rule);
}
.shot-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--rule);
}
.shot-bar span:nth-child(1) { background: #E0917C; }
.shot-bar span:nth-child(2) { background: #E3C46A; }
.shot-bar span:nth-child(3) { background: #8DBD96; }
.shot-bar em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body);
  margin-left: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot-frame img { display: block; width: 100%; height: auto; }
.shot-cap {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 640px;
}
.shot-cap strong { color: var(--ink); font-weight: 800; }

/* ── CTA BAND ─────────────────────────────────────────────────── */
.band {
  background: var(--ink);
  color: var(--ink-inv);
  padding: 48px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.band-title {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.band-sub { font-size: 15px; font-weight: 500; opacity: 0.72; }
.band-btn {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 16px 30px;
  white-space: nowrap;
  transition: opacity .15s;
}
.band-btn:hover { opacity: 0.88; }
.band-btn:focus-visible { outline: 2px solid var(--ink-inv); outline-offset: 2px; }

/* ── FOOTER ───────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--ink);
  margin-top: 80px;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.foot-l {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.foot-r {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--body);
}

/* ── MOTION (restrained, load-only fade-up) ───────────────────────
   Content is visible by default. The hidden→rise enhancement only
   applies when JS adds .anim to <html> AND motion is allowed, so
   no-JS / reduced-motion users never see blank content. */
@media (prefers-reduced-motion: no-preference) {
  html.anim .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise .7s cubic-bezier(.22,.61,.36,1) forwards;
  }
  html.anim .reveal.d1 { animation-delay: .05s; }
  html.anim .reveal.d2 { animation-delay: .14s; }
  html.anim .reveal.d3 { animation-delay: .22s; }
  html.anim .reveal.d4 { animation-delay: .30s; }
  html.anim .reveal.d5 { animation-delay: .38s; }
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 860px) {
  main { padding: 0 24px; }
  header { padding: 14px 24px; }
  .tools { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .card--featured { flex-direction: column; align-items: flex-start; gap: 24px; min-height: auto; }
  .card--featured .card-name { font-size: 32px; }
  .card--featured .card-cta { width: 100%; }
  .sublinks { flex-direction: column; align-items: stretch; }
  .sublink { width: 100%; }
  .hero { padding: 64px 0 56px; }
}
@media (max-width: 520px) {
  header { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 20px; }
  main { padding: 0 20px; }
  footer { padding: 20px; }
  .topnav a:first-child { padding-left: 0; }
  .band { padding: 32px 24px; }
  .screens { gap: 32px; }
  .shot-bar em { display: none; }
}

/* ── PROMO VIDEO ──────────────────────────────────────────────── */
.promo-video-section {
  margin-bottom: 80px;
}
.promo-video-wrap {
  background: #0E0E0E;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(14,14,14,.18);
}
.promo-video-wrap video {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: contain;
}

/* ── FEATURES GRID ────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 80px;
  background: var(--border);
}
.feat-card {
  background: var(--bg);
  padding: 36px 32px;
}
.feat-card h3 {
  font-family: var(--ff-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.feat-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}
.feat-card p strong {
  color: var(--ink);
  font-weight: 700;
}
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .feat-card { padding: 28px 20px; }
  .promo-video-wrap video { max-height: 240px; }
}
