/* 예나준 — 공통 스타일 */
:root {
  --cream: #FAF6EF;
  --cream-2: #F4EFE6;
  --line: #EAE2D4;
  --navy: #1F2A44;
  --navy-2: #2A3656;
  --text: #1F2A44;
  --muted: #4E5568;
  --muted-2: #5B5F6B;
  --coral: #A54E38;      /* 글자용 (대비 확보) */
  --coral-soft: #F2B8A5;
  --sage-bg: #E6EDE4;
  --sage-text: #3F5A45;
  --dash: #D6C4A8;
  --serif: 'Noto Serif KR', serif;
  --sans: 'IBM Plex Sans KR', system-ui, sans-serif;
  --wrap: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--text); font-family: var(--sans); line-height: 1.6; word-break: keep-all; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 40px; } }
@media (min-width: 1200px) { .wrap { padding: 0 80px; max-width: 1440px; } }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1px; color: var(--coral); margin: 0; }
h1, h2 { font-family: var(--serif); margin: 0; letter-spacing: -0.02em; }
h2 { font-weight: 700; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.3; }

.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 14px; font-size: 16px; font-weight: 600; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { color: var(--cream); background: #151D32; }
.btn-ghost { color: var(--navy); }
.btn-light { background: var(--cream); color: var(--navy); }
.btn-light:hover { color: var(--navy); background: #fff; }

/* ---------- 헤더 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 239, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; }
@media (min-width: 900px) { .site-header .wrap { height: 80px; } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand span { font-family: var(--serif); font-weight: 900; font-size: 21px; color: var(--navy); }
.nav { display: none; align-items: center; gap: 36px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav .pill { padding: 10px 18px; border: 1.5px solid var(--navy); border-radius: 999px; }
.menu-btn { width: 44px; height: 44px; border: 0; background: transparent; color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.menu-btn .icon { width: 24px; height: 24px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--cream); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 20px; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .nav { display: flex; } .menu-btn, .mobile-nav, .mobile-nav.open { display: none; } }

/* ---------- 히어로 ---------- */
.hero { position: relative; overflow: hidden; background: #FAF1E4; }
.hero-media { display: none; }
.hero-inner { position: relative; padding: 32px 0 48px; display: flex; flex-direction: column; gap: 20px; }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 6px 12px; background: var(--sage-bg); color: var(--sage-text); border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge .icon { width: 14px; height: 14px; }
.hero h1 { font-weight: 900; font-size: clamp(34px, 5vw, 64px); line-height: 1.2; }
.hero p { margin: 0; font-size: clamp(16px, 1.5vw, 20px); color: var(--muted); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.hero-mobile-img { width: 100%; aspect-ratio: 1.12; object-fit: cover; border-radius: 22px; }
@media (max-width: 899px) { .hero-actions .btn-primary { flex: 1 1 100%; } .hero-actions .btn-ghost { display: none; } }
@media (min-width: 900px) {
  .hero { min-height: min(56vw, 820px); display: flex; align-items: center; }
  .hero-media { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
  .hero-mobile-img { display: none; }
  .hero .wrap { width: 100%; }
  .hero-inner { max-width: 660px; padding: 80px 0; gap: 28px; }
  .badge { padding: 8px 14px; font-size: 14px; }
}

/* ---------- 섹션 공통 ---------- */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }
@media (min-width: 900px) { .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; } .section-head > div { display: flex; flex-direction: column; gap: 12px; } }

/* ---------- 도구 카드 ---------- */
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.tool-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.tool-card:hover { color: inherit; transform: translateY(-3px); box-shadow: 0 12px 28px -18px rgba(31, 42, 68, .35); }
.tool-card img { width: 60px; height: 60px; border-radius: 16px; flex-shrink: 0; }
.tool-card img.bordered { border: 1px solid var(--line); }
.tool-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.tool-body strong { font-size: 18px; font-weight: 600; }
.tool-body span { font-size: 14px; color: var(--muted); line-height: 1.6; }
.tool-foot { display: none; }
.tool-card .chev { width: 20px; height: 20px; margin-top: 4px; }
@media (min-width: 700px) {
  .tool-card { flex-direction: column; gap: 20px; padding: 32px; border-radius: 24px; min-height: 290px; }
  .tool-card img { width: 80px; height: 80px; border-radius: 20px; }
  .tool-body { gap: 10px; }
  .tool-body strong { font-size: 22px; }
  .tool-body span { font-size: 16px; }
  .tool-card .chev { display: none; }
  .tool-foot { display: flex; width: 100%; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 600; }
  .tool-foot .go { display: inline-flex; align-items: center; gap: 6px; }
}
.tag { padding: 6px 12px; background: var(--cream-2); border-radius: 999px; font-size: 13px; color: var(--muted-2); font-weight: 600; }
.tool-soon { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 20px; border: 1.5px dashed var(--dash); border-radius: 20px; color: #7A6A52; font-weight: 600; text-align: center; }
.tool-soon small { display: none; font-weight: 400; font-size: 15px; line-height: 1.6; }
@media (min-width: 700px) { .tool-soon { flex-direction: column; border-radius: 24px; min-height: 290px; gap: 14px; } .tool-soon small { display: block; } }

/* ---------- 광고 ---------- */
.ad-slot { min-height: 100px; border: 1.5px dashed var(--dash); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #8A7759; }
@media (min-width: 900px) { .ad-slot { min-height: 120px; } }

/* ---------- 업무 도구 ---------- */
.work { background: var(--navy); color: var(--cream); border-radius: 24px; padding: 32px 24px; display: grid; gap: 24px; }
.work .eyebrow { color: var(--coral-soft); display: inline-flex; align-items: center; gap: 8px; }
.work .eyebrow .icon { width: 14px; height: 14px; }
.work h2 { margin: 12px 0 12px; }
.work p { margin: 0; color: #C9CEDA; font-size: 15px; line-height: 1.7; }
.work-cards { display: grid; gap: 14px; }
.work-card { background: var(--navy-2); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.work-card img { width: 52px; height: 52px; border-radius: 14px; }
.work-card strong { font-size: 18px; font-weight: 600; }
.work-card span { color: #C9CEDA; font-size: 14px; line-height: 1.6; }
@media (min-width: 900px) {
  .work { grid-template-columns: 380px 1fr; gap: 64px; padding: 64px; border-radius: 32px; align-items: center; }
  .work-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .work-card { padding: 28px; }
  .work-card img { width: 64px; height: 64px; border-radius: 16px; }
  .work-card strong { font-size: 20px; }
  .work-cards .btn { grid-column: span 2; }
}

/* ---------- 이야기 ---------- */
.story { display: grid; gap: 20px; align-items: center; }
.story img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 40% center; border-radius: 22px; }
.story-text { display: flex; flex-direction: column; gap: 16px; }
.story-link { text-decoration: none; color: inherit; }
.story-link img { transition: transform .2s ease; }
.story-link:hover img { transform: scale(1.02); }
.story-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); }
.story-link:hover .story-more { text-decoration: underline; }
.story-text p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
@media (min-width: 900px) {
  .story { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 80px; }
  .story img { aspect-ratio: 560 / 380; border-radius: 28px; }
  .story-text { gap: 20px; }
  .story-text p { font-size: 18px; }
}

/* ---------- 푸터 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted-2); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 28px; height: 28px; }
.footer-brand b { font-family: var(--serif); font-weight: 900; font-size: 18px; color: var(--navy); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-nav a { text-decoration: none; padding: 10px 0; }
@media (min-width: 900px) {
  .site-footer { padding: 48px 0; font-size: 15px; }
  .site-footer .wrap { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-nav { display: flex; gap: 32px; }
}

/* ---------- 문서 페이지 (개인정보처리방침 등) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); font-size: 16px; line-height: 1.8; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 48px 20px; background: url('img/notfound-bg.jpg') center / cover no-repeat; }
.notfound h1 { font-size: clamp(32px, 5vw, 52px); }
.notfound p { margin: 0 0 8px; color: var(--muted); }
