:root {
  --bg: #ffffff;
  --surface: #f7f7f5;
  --ink: #111111;
  --ink-sub: #555555;
  --ink-mute: #888888;
  --line: #e5e5e3;
  --sale: #c83228;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 22px; border-radius: 6px;
  font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; border: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-black { background: var(--ink); color: #fff; }
.btn-black:hover { background: #333; }
.btn-line { background: #fff; color: var(--ink); border: 1px solid #d4d4d2; }
.btn-line:hover { border-color: var(--ink); background: var(--surface); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px; gap: 16px;
}
.brand {
  font-size: 17px; font-weight: 800; letter-spacing: -0.03em;
  display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap;
}
.brand span { font-size: 11px; font-weight: 600; color: var(--ink-mute); letter-spacing: 0.06em; }
.nav-links { display: flex; align-items: center; gap: 22px; overflow-x: auto; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-sub); white-space: nowrap;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Intro / Hero */
.intro { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.intro-label { font-size: 12.5px; font-weight: 600; color: var(--ink-mute); letter-spacing: 0.02em; }
.intro h1 {
  margin-top: 12px; font-size: clamp(32px, 4vw, 46px);
  font-weight: 700; line-height: 1.22; letter-spacing: -0.035em;
}
.intro-desc {
  margin-top: 16px; font-size: 16px; color: var(--ink-sub); line-height: 1.7; max-width: 480px;
}
.intro-acts { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.intro-media {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.intro-media a {
  display: block; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background: var(--surface); transition: border-color 0.2s;
}
.intro-media a:hover { border-color: var(--ink); }
.intro-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* Sections */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 28px; flex-wrap: wrap;
}
.sec-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.sec-head p { font-size: 14.5px; color: var(--ink-sub); margin-top: 4px; }

/* Filter */
.filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
}
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-btn {
  height: 36px; padding: 0 14px; border-radius: 6px;
  font: inherit; font-size: 13.5px; font-weight: 500;
  background: var(--surface); color: var(--ink-sub); border: 1px solid transparent; cursor: pointer;
}
.pill-btn:hover { color: var(--ink); }
.pill-btn.active { background: var(--ink); color: #fff; font-weight: 600; }
.search-input {
  height: 36px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; font: inherit; font-size: 13.5px; width: min(260px, 100%);
}
.search-input:focus { outline: 1px solid var(--ink); border-color: var(--ink); }

/* Product Grid — 이미지 위 텍스트/배지 없음 */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
.p-card { display: flex; flex-direction: column; min-width: 0; }
.p-card[hidden] { display: none; }
.p-thumb {
  display: block; aspect-ratio: 1 / 1; background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.p-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.p-card:hover .p-thumb img { transform: scale(1.02); }
.p-meta { padding-top: 14px; display: flex; flex-direction: column; flex: 1; }
.p-cat { font-size: 12px; font-weight: 600; color: var(--ink-mute); }
.p-title { font-size: 16.5px; font-weight: 700; margin-top: 4px; color: var(--ink); }
.p-desc { font-size: 13.5px; color: var(--ink-sub); margin-top: 6px; line-height: 1.55; flex: 1; }
.p-foot {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.p-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.p-price b { font-size: 16px; font-weight: 700; }
.p-price s { font-size: 12.5px; color: var(--ink-mute); }
.p-price .pct { font-size: 12.5px; font-weight: 700; color: var(--sale); }

/* Ebook / Editorial Split */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.box-card {
  border: 1px solid var(--line); border-radius: 6px; padding: 28px;
  background: #fff; display: flex; flex-direction: column; justify-content: space-between; min-width: 0;
}
.box-card.muted { background: var(--surface); border-color: transparent; }
.box-card small { font-size: 12px; font-weight: 600; color: var(--ink-mute); }
.box-card h3 { font-size: 19px; font-weight: 700; margin-top: 6px; }
.box-card p { font-size: 14px; color: var(--ink-sub); margin-top: 8px; line-height: 1.65; }
.box-card ul { list-style: none; margin-top: 16px; display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-sub); }
.box-card li { padding-left: 14px; position: relative; }
.box-card li::before { content: "·"; position: absolute; left: 0; font-weight: 700; }
.box-foot {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* Preview Tabs (Templates page) */
.preview-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.preview-tab {
  padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-sub); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.preview-tab:hover { border-color: var(--ink); color: var(--ink); }
.preview-tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.preview-pane {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: start;
  border: 1px solid var(--line); border-radius: 6px; padding: 24px; background: var(--surface);
}
.preview-pane[hidden] { display: none; }
.preview-img {
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; max-height: 440px;
}
.preview-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.preview-info h3 { font-size: 22px; font-weight: 700; }
.preview-info p { margin-top: 8px; font-size: 14.5px; color: var(--ink-sub); line-height: 1.65; }
.preview-list { list-style: none; margin-top: 18px; display: grid; gap: 8px; }
.preview-list li {
  font-size: 13.5px; color: var(--ink); padding: 10px 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 6px;
}

/* Content Grid */
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.c-card { display: flex; flex-direction: column; min-width: 0; }
.c-thumb {
  aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; background: var(--surface);
}
.c-thumb img { width: 100%; height: 100%; object-fit: cover; }
.c-thumb-text {
  width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center;
  padding: 20px; background: var(--surface); color: var(--ink);
}
.c-thumb-text small { font-size: 11.5px; font-weight: 700; color: var(--ink-mute); }
.c-thumb-text strong { font-size: 16px; margin-top: 6px; line-height: 1.4; }
.c-meta { padding-top: 12px; flex: 1; display: flex; flex-direction: column; }
.c-meta small { font-size: 12px; font-weight: 600; color: var(--ink-mute); }
.c-meta h3 { font-size: 15.5px; font-weight: 700; margin-top: 4px; line-height: 1.45; }
.c-meta p { font-size: 13.5px; color: var(--ink-sub); margin-top: 6px; flex: 1; }
.c-meta span { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); max-width: 780px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-list summary {
  font-size: 15px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-list summary::after { content: "+"; font-size: 18px; color: var(--ink-mute); flex-shrink: 0; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin-top: 10px; font-size: 14px; color: var(--ink-sub); line-height: 1.65; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); padding: 40px 0 56px;
  font-size: 13px; color: var(--ink-mute);
}
.footer-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .intro-grid, .preview-pane, .split-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-grid, .content-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; padding: 10px 0; }
  .nav-links { order: 3; width: 100%; gap: 16px; padding-top: 6px; border-top: 1px solid var(--line); }
  .product-grid, .content-grid { grid-template-columns: 1fr; }
  .intro { padding: 40px 0 36px; }
  .section { padding: 44px 0; }
  .preview-pane { padding: 16px; }
}
