/* ============================================================================
   Moart 커뮤니티(cafe.moart.kr) 메인 8단 에디토리얼 데이라이트 디자인 시스템
   Editorial Daylight (#FFFFFF / #F4F5F7) + Obsidian (#0B0E14) + Royal Blue (#1858FA)
   ============================================================================ */

.ed-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Pill Buttons */
.ed-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.ed-pill:hover { transform: translateY(-1px); }
.ed-pill-sm { height: 34px; padding: 0 15px; font-size: 12.5px; }
.ed-pill-dark { background: #0B0E14; color: #FFFFFF; }
.ed-pill-dark:hover { background: #1E293B; }
.ed-pill-blue { background: #1858FA; color: #FFFFFF; box-shadow: 0 8px 20px -6px rgba(24, 88, 250, 0.45); }
.ed-pill-blue:hover { background: #1246D6; }
.ed-pill-ghost { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; border-color: rgba(255, 255, 255, 0.28); }
.ed-pill-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.5); }

/* 01. Split Obsidian Contrast Hero */
.ed-hero {
  position: relative;
  background: linear-gradient(135deg, #0B0E14 0%, #151C2C 62%, #111827 100%);
  border-radius: 28px;
  padding: 48px 46px 0 50px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: end;
  overflow: hidden;
  min-height: 392px;
  color: #FFFFFF;
}
.ed-hero-copy { padding-bottom: 52px; }
.ed-hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}
.ed-hero-copy p {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.66;
  color: #CBD5E1;
  max-width: 460px;
}
.ed-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.ed-hero-visual {
  position: relative;
  background: #FFFFFF;
  border-radius: 20px 20px 0 0;
  padding: 12px 12px 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
}
.ed-hero-visual img {
  width: 100%;
  height: 312px;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px 14px 0 0;
  display: block;
}
.ed-hero-float {
  position: absolute;
  left: -18px;
  bottom: 24px;
  background: #FFFFFF;
  color: #0B0E14;
  border-radius: 14px;
  padding: 11px 15px;
  box-shadow: 0 14px 32px rgba(11, 14, 20, 0.24);
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12.5px;
}
.ed-hero-float-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ECFDF5;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 02. 3-Column Reward & Value Strip */
.ed-trust-strip {
  background: #F4F5F7;
  border-radius: 18px;
  padding: 20px 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ed-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 12px;
  padding: 4px;
  transition: transform .15s ease;
}
.ed-trust-item:hover { transform: translateY(-1px); }
.ed-trust-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0B0E14;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ed-trust-item strong { display: block; font-size: 14.5px; font-weight: 700; color: #0B0E14; }
.ed-trust-item span { display: block; font-size: 12.5px; color: #64748B; margin-top: 2px; }

/* Shared Tray Section */
.ed-tray {
  background: #F4F5F7;
  border-radius: 28px;
  padding: 36px 34px 32px;
}
.ed-tray-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.ed-tray-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0B0E14;
}
.ed-center-title {
  text-align: center;
  margin: 0 0 28px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0B0E14;
}

/* 03. Curated Showcase Gallery Tabs & Cards */
.ed-pill-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  background: #FFFFFF;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid #E5E7EB;
}
.ed-pill-tab {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, color .15s ease;
}
.ed-pill-tab:hover { color: #0B0E14; }
.ed-pill-tab.active { background: #0B0E14; color: #FFFFFF; }
.ed-arrows { display: inline-flex; gap: 8px; }
.ed-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #D1D5DB;
  background: #FFFFFF;
  color: #0B0E14;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.ed-arrow-btn:hover, .ed-arrow-btn.dark { background: #0B0E14; color: #FFFFFF; border-color: #0B0E14; }

.ed-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ed-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.ed-sc-card {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(11, 14, 20, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, border-color .18s ease;
}
.ed-sc-card:hover { transform: translateY(-2px); border-color: #CBD5E1; }
.ed-sc-card[hidden] { display: none; }
.ed-sc-thumb { position: relative; height: 210px; overflow: hidden; background: #E2E8F0; }
.ed-sc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-sc-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(11, 14, 20, 0.8);
  color: #FFFFFF;
}
.ed-sc-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.ed-sc-body h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 700; line-height: 1.4; color: #0B0E14; }
.ed-sc-body p {
  margin: 0 0 16px;
  font-size: 13px;
  color: #64748B;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ed-sc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #E5E7EB;
  gap: 8px;
}
.ed-price { font-size: 15px; font-weight: 800; color: #0B0E14; }
.ed-price.free { color: #059669; }
.ed-dots { display: flex; justify-content: center; gap: 6px; margin-top: 22px; }
.ed-dot { width: 7px; height: 7px; border-radius: 999px; background: #CBD5E1; transition: width .2s ease, background .2s ease; }
.ed-dot.active { width: 22px; background: #0B0E14; }

/* 04. First-Timer 4-Step Guide */
.ed-guide {
  background: #F4F5F7;
  border-radius: 28px;
  padding: 48px 50px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: center;
}
.ed-guide-left h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0B0E14;
}
.ed-guide-left p { margin: 0; font-size: 14.5px; color: #64748B; line-height: 1.68; }
.ed-step-rail {
  border-left: 2px solid #0B0E14;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ed-step strong { display: block; font-size: 15px; font-weight: 800; color: #0B0E14; margin-bottom: 4px; }
.ed-step span { display: block; font-size: 13.5px; color: #64748B; line-height: 1.55; }

/* 05. Seller Reviews Proof Split */
.ed-proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: center;
}
.ed-overlap { position: relative; height: 280px; }
.ed-overlap-back {
  position: absolute;
  left: 0;
  top: 0;
  width: 64%;
  height: 220px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(11, 14, 20, 0.12);
}
.ed-overlap-front {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 64%;
  height: 220px;
  border-radius: 18px;
  object-fit: cover;
  border: 4px solid #F4F5F7;
  box-shadow: 0 18px 36px rgba(11, 14, 20, 0.18);
}
.ed-review-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 28px 30px;
  margin-bottom: 14px;
  border: 1px solid rgba(11, 14, 20, 0.06);
}
.ed-review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ed-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #EFF4FF;
  color: #1858FA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.ed-stars { display: inline-flex; gap: 2px; margin-top: 3px; color: #F59E0B; }
.ed-review-quote { margin: 0; font-size: 14.5px; line-height: 1.72; color: #334155; }

/* 06. Impact Metrics + Brand Story 3-Column */
.ed-metrics {
  background: #F4F5F7;
  border-radius: 28px;
  padding: 42px 46px;
  display: grid;
  grid-template-columns: 0.85fr 0.95fr 1.1fr;
  gap: 32px;
  align-items: center;
}
.ed-metric-stack { display: flex; flex-direction: column; gap: 22px; }
.ed-metric strong { display: block; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; color: #0B0E14; }
.ed-metric span { display: block; font-size: 13px; color: #64748B; margin-top: 4px; }
.ed-metrics-mid img { width: 100%; height: 286px; object-fit: cover; border-radius: 18px; display: block; }
.ed-metrics-story h3 { margin: 0 0 12px; font-size: 22px; font-weight: 800; line-height: 1.35; letter-spacing: -0.025em; color: #0B0E14; }
.ed-metrics-story p { margin: 0; font-size: 14px; color: #334155; line-height: 1.72; }

/* 07. Blog / 실전 가이드 4-Card Shelf */
.ed-blog-card {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(11, 14, 20, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, border-color .18s ease;
}
.ed-blog-card:hover { transform: translateY(-2px); border-color: #CBD5E1; }
.ed-blog-card img { width: 100%; height: 144px; object-fit: cover; display: block; }
.ed-blog-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.ed-blog-cat { font-size: 11.5px; font-weight: 700; color: #1858FA; margin-bottom: 6px; }
.ed-blog-body h4 { margin: 0 0 6px; font-size: 14.5px; font-weight: 700; line-height: 1.42; color: #0B0E14; }
.ed-blog-body p {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: #64748B;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ed-blog-foot { display: flex; justify-content: space-between; align-items: center; }

/* 08. Services 01 / 02 / 03 Contrast Finale */
.ed-svc-card {
  border-radius: 20px;
  padding: 30px 28px 32px;
  min-height: 244px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .18s ease;
}
.ed-svc-card:hover { transform: translateY(-2px); }
.ed-svc-card.dark { background: #0B0E14; color: #FFFFFF; }
.ed-svc-card.light { background: #FFFFFF; color: #0B0E14; border: 1px solid rgba(11, 14, 20, 0.07); }
.ed-svc-num { font-size: 20px; font-weight: 800; text-align: right; opacity: 0.85; }
.ed-svc-card h3 { margin: 16px 0 10px; font-size: 20px; font-weight: 800; line-height: 1.32; letter-spacing: -0.02em; }
.ed-svc-card p { margin: 0; font-size: 13.5px; line-height: 1.65; opacity: 0.78; }

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .ed-hero { grid-template-columns: 1fr; padding: 36px 32px 0; }
  .ed-hero-copy { padding-bottom: 12px; }
  .ed-hero-float { left: 14px; }
  .ed-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-metrics { grid-template-columns: 1fr; }
  .ed-guide { grid-template-columns: 1fr; gap: 28px; padding: 34px 28px; }
  .ed-proof-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .ed-stack { gap: 18px; }
  .ed-hero { border-radius: 22px; padding: 28px 18px 0; text-align: center; min-height: 0; }
  .ed-hero-copy { padding-bottom: 10px; }
  .ed-hero-copy h1 { font-size: 25px; }
  .ed-hero-copy p { margin-left: auto; margin-right: auto; font-size: 13.5px; }
  .ed-hero-ctas { flex-direction: column; }
  .ed-hero-ctas .ed-pill { width: 100%; }
  .ed-hero-visual img { height: 200px; }
  .ed-hero-float { position: static; margin: 12px 0 14px; box-shadow: none; border: 1px solid #E5E7EB; text-align: left; }
  .ed-trust-strip { grid-template-columns: 1fr; text-align: center; padding: 20px 18px; gap: 16px; }
  .ed-trust-item { flex-direction: column; gap: 8px; }
  .ed-tray { border-radius: 22px; padding: 22px 16px; }
  .ed-tray-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .ed-pill-tabs { width: 100%; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .ed-pill-tabs::-webkit-scrollbar { display: none; }
  .ed-pill-tab { flex-shrink: 0; padding: 7px 13px; font-size: 12px; }
  .ed-arrows { justify-content: flex-end; }
  .ed-grid-3, .ed-grid-4 { grid-template-columns: 1fr; }
  .ed-sc-foot { flex-direction: column; align-items: stretch; }
  .ed-sc-foot .ed-pill { width: 100%; }
  .ed-guide { border-radius: 22px; padding: 26px 20px; }
  .ed-step-rail { padding-left: 18px; gap: 16px; }
  .ed-overlap { height: 200px; }
  .ed-overlap-back, .ed-overlap-front { height: 160px; }
  .ed-metrics { border-radius: 22px; padding: 28px 20px; text-align: center; }
  .ed-svc-card { min-height: 170px; padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .ed-pill, .ed-sc-card, .ed-blog-card, .ed-svc-card, .ed-trust-item { transition: none; }
  .ed-pill:hover, .ed-sc-card:hover, .ed-blog-card:hover, .ed-svc-card:hover, .ed-trust-item:hover { transform: none; }
}
