/* Utilook 홈 스타일. 모바일 우선 + 역할 기반 토큰(라이트/다크). (DESIGN_SYSTEM 5장, 요구사항 1·12장) */

/* ── 디자인 토큰 ─────────────────────────────────────────────── */
:root {
  --brand: #5b5cf6;
  --brand-2: #3b82f6;
  --text: #111827;
  --muted: #64748b;
  --border: #e5e7eb;
  --bg: #ffffff;
  --soft: #f8fafc;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 6px 20px rgba(17, 24, 39, 0.06);
  --radius: 14px;
  --radius-lg: 18px;
  --header-h: 60px;
  --maxw: 1200px;
  --content-w: 880px;
}

.site-info {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: clamp(20px, 4vw, 32px);
}

.site-info-intro {
  max-width: 760px;
}

.site-info-intro p,
.site-info-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.site-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.site-info-grid h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.site-info-grid p {
  margin: 0;
  font-size: .9rem;
}

@media (max-width: 767px) {
  .site-info-grid {
    grid-template-columns: 1fr;
  }
}

[data-theme="dark"] {
  --brand: #8b8cf8;
  --brand-2: #60a5fa;
  --text: #e6e8eb;
  --muted: #9aa4b2;
  --border: #2a2f3a;
  --bg: #0f1115;
  --soft: #171a21;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.38);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --brand: #8b8cf8; --brand-2: #60a5fa; --text: #e6e8eb; --muted: #9aa4b2;
    --border: #2a2f3a; --bg: #0f1115; --soft: #171a21;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 50% -240px, rgba(91, 92, 246, 0.13), transparent 70%),
    radial-gradient(900px 440px at 88% -140px, rgba(59, 130, 246, 0.09), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  font-family: "Inter", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* 짧은 페이지에서도 Footer가 화면 아래에 붙도록(요구사항 16장) */
main#main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
[data-theme="dark"] body {
  background:
    radial-gradient(1100px 520px at 50% -240px, rgba(139, 140, 248, 0.10), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
h1, h2, h3, p { margin: 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 12px; top: 12px; z-index: 200;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); padding: 8px 12px; border-radius: 8px;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 표시 유틸 */
.only-desktop { display: none !important; }
@media (min-width: 1024px) {
  .only-desktop { display: inline-flex !important; }
  .only-mobile { display: none !important; }
}

/* ── 헤더 ────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--bg); } }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1rem;
}
.brand-name { font-size: 1.15rem; letter-spacing: -0.01em; }

.main-nav { display: none; }
.main-nav a, .nav-link-btn {
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  background: none; border: 0; cursor: pointer; padding: 6px 2px;
}
.main-nav a:hover, .nav-link-btn:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 10px; color: var(--text); cursor: pointer; font-size: 1.1rem;
}
.icon-btn:hover { background: var(--soft); }

.theme-toggle { display: none; }
.theme-toggle .icon-light { display: none; }
[data-theme="dark"] .theme-toggle .icon-dark { display: none; }
[data-theme="dark"] .theme-toggle .icon-light { display: inline-block; }

/* 언어 드롭다운 */
.lang-dd { display: none; position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer; color: var(--text);
  font-size: 0.9rem; font-weight: 500; padding: 8px 8px; border-radius: 10px;
}
.lang-btn:hover { background: var(--soft); }
.lang-btn .caret { font-size: 0.7rem; color: var(--muted); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px; min-width: 150px; z-index: 60;
}
.lang-item { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 0.9rem; }
.lang-item:hover { background: var(--soft); }
.lang-item.active { color: var(--brand); font-weight: 600; }

/* 데스크톱: 내비·언어·다크 노출, 햄버거 숨김 */
@media (min-width: 1024px) {
  .main-nav { display: flex; align-items: center; gap: 22px; }
  .theme-toggle { display: grid; }
  .lang-dd { display: inline-flex; }
}

/* 모바일 드로어 */
.drawer-backdrop { position: fixed; inset: var(--header-h) 0 0; z-index: 48; background: rgba(15, 17, 21, 0.35); }
.mobile-drawer {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 8px 20px 16px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.drawer-link {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 6px;
  color: var(--text); text-decoration: none; font-size: 1rem; font-weight: 500;
  background: none; border: 0; cursor: pointer; text-align: left; border-bottom: 1px solid var(--border);
}
.drawer-sub { margin-top: 6px; }
.drawer-langs { display: flex; gap: 8px; padding: 10px 6px 2px; }
.drawer-lang { padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); text-decoration: none; font-size: 0.9rem; }
.drawer-lang.active { border-color: var(--brand); color: var(--brand); font-weight: 600; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 26px 0 6px; }
.hero-title { font-size: clamp(1.55rem, 6vw, 2.35rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 10px; }
.hero-title .hl { color: var(--brand); }
.hero-subtitle { color: var(--muted); font-size: 0.9rem; max-width: 560px; margin: 0 auto 20px; line-height: 1.5; }

/* ── 검색 ────────────────────────────────────────────────────── */
.search { max-width: var(--content-w); margin: 0 auto; }
.search-box {
  position: relative; display: flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 5px 4px 44px; box-shadow: var(--shadow); transition: border-color 0.15s ease;
}
.search-box:focus-within { border-color: var(--brand); }
.search-icon { position: absolute; left: 16px; color: var(--muted); font-size: 1rem; }
.search-input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 0.95rem; color: var(--text); padding: 8px 0; outline: none; }
.search-clear { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer; }
.search-clear:hover { background: var(--soft); color: var(--text); }
.search-submit {
  flex: 0 0 auto; background: var(--brand); color: #fff; border: 0; border-radius: 999px;
  padding: 8px 20px; font-weight: 600; font-size: 0.88rem; cursor: pointer; min-height: 38px;
}
.search-submit:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }

/* 빠른 태그: 항상 한 줄. 넘치는 태그는 JS가 숨김(깔끔히 잘라냄). */
.quick-tags {
  display: flex; flex-wrap: nowrap; justify-content: flex-start;
  gap: 6px; margin-top: 8px; overflow: hidden;
}
.tag {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  border-radius: 999px; padding: 4px 10px; font-size: 0.72rem; cursor: pointer; min-height: 28px;
  flex: 0 0 auto;
}
.tag i { font-size: 0.76rem; color: var(--muted); }
.tag:hover { border-color: var(--brand); }

/* ── 통계 카드 ───────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr;
  max-width: var(--content-w); margin: 20px auto 0;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 4px;
}
.stat { display: grid; grid-template-columns: 30px 72px; justify-content: center; align-items: center; column-gap: 8px; padding: 9px 12px; min-width: 0; text-align: left; }
.stat-link { color: var(--text); text-decoration: none; cursor: pointer; border-radius: 10px; transition: background-color 0.15s ease; }
.stat-link:hover { background: var(--soft); }
.stat-link:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.stat-icon { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: 0 0 30px; font-size: 0.85rem; }
.stat-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-value { font-size: 1rem; font-weight: 700; line-height: 1.1; }
.stat-label { font-size: 0.66rem; color: var(--muted); line-height: 1.2; white-space: nowrap; }
[data-stat="tools"] .stat-icon { color: var(--brand); background: rgba(91, 92, 246, 0.12); }
[data-stat="languages"] .stat-icon { color: #3b82f6; background: rgba(59, 130, 246, 0.12); }
[data-stat="categories"] .stat-icon { color: #8b5cf6; background: rgba(139, 92, 246, 0.12); }
[data-stat="free_access"] .stat-icon { color: #6366f1; background: rgba(99, 102, 241, 0.12); }
.stat:nth-child(even) { border-left: 1px solid var(--border); }
.stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto; padding: 3px; }
  .stat { display: flex; justify-content: center; gap: 8px; padding: 7px 6px; }
  .stat-text { gap: 0; }
  .stat-value { font-size: 1.15rem; }
  .stat-label { font-size: 0.7rem; }
  .stat:nth-child(n) { border-top: 0; }
  .stat + .stat { border-left: 1px solid var(--border); }
}

/* ── 블록 공통 ───────────────────────────────────────────────── */
.block { margin-top: 40px; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.block-title { font-size: 1.2rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.view-all { background: none; border: 0; cursor: pointer; color: var(--brand); font-size: 0.85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.new-badge { background: var(--brand); color: #fff; font-size: 0.6rem; font-weight: 700; padding: 3px 7px; border-radius: 6px; letter-spacing: 0.03em; }
.fire { color: #f97316; }

/* ── 카테고리별 아이콘 색 (카테고리 카드 + 도구 아이콘 공용) ── */
[data-cat="pdf"] .category-icon, [data-cat="pdf"] .tool-icon { color: #ef4444; background: rgba(239, 68, 68, 0.12); }
[data-cat="image"] .category-icon, [data-cat="image"] .tool-icon { color: #22c55e; background: rgba(34, 197, 94, 0.12); }
[data-cat="text"] .category-icon, [data-cat="text"] .tool-icon { color: #8b5cf6; background: rgba(139, 92, 246, 0.12); }
[data-cat="dev"] .category-icon, [data-cat="dev"] .tool-icon { color: #3b82f6; background: rgba(59, 130, 246, 0.12); }
[data-cat="calculator"] .category-icon, [data-cat="calculator"] .tool-icon { color: #f59e0b; background: rgba(245, 158, 11, 0.12); }
[data-cat="converter"] .category-icon, [data-cat="converter"] .tool-icon { color: #14b8a6; background: rgba(20, 184, 166, 0.12); }
[data-cat="generator"] .category-icon, [data-cat="generator"] .tool-icon { color: #ec4899; background: rgba(236, 72, 153, 0.12); }
[data-cat="security"] .category-icon, [data-cat="security"] .tool-icon { color: #6366f1; background: rgba(99, 102, 241, 0.12); }
[data-cat="web-network"] .category-icon, [data-cat="web-network"] .tool-icon { color: #0ea5e9; background: rgba(14, 165, 233, 0.12); }

/* ── 카테고리 그리드 ─────────────────────────────────────────── */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.category-grid:has(> .category-card:nth-child(9):last-child) { grid-template-columns: repeat(3, 1fr); }
.category-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 13px; padding: 8px 4px;
  cursor: pointer; color: var(--text); transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.category-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.category-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex: 0 0 auto; }
.category-text { display: flex; flex-direction: column; min-width: 0; }
.category-name { font-size: 0.74rem; font-weight: 600; }
.category-count {
  display: inline-flex; align-items: center; justify-content: center; align-self: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--soft); color: var(--muted); font-size: 0.64rem; font-weight: 700; line-height: 1;
}
.category-count-suffix { display: none; }
@media (min-width: 768px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .category-card { flex-direction: row; align-items: center; text-align: left; gap: 13px; padding: 16px; border-radius: 16px; }
  .category-icon { width: 46px; height: 46px; font-size: 1.25rem; border-radius: 13px; }
  .category-name { font-size: 0.95rem; font-weight: 700; }
  .category-count {
    display: block; align-self: auto; min-width: 0; height: auto; margin-top: 0; padding: 0;
    border-radius: 0; background: transparent; font-size: 0.78rem; font-weight: 400; line-height: normal;
  }
  .category-count-suffix { display: inline; }
  html[lang="en"] .category-count-suffix::before { content: " "; }
}

/* ── 최근 + 인기 (데스크톱 2단) ─────────────────────────────── */
.lower-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.lower-grid > * { min-width: 0; }
@media (min-width: 1024px) { .lower-grid { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; } }

/* 도구 카드(검색결과·최근) */
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 12px; min-width: 0; }
@media (min-width: 768px) { .tool-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }

.tool-card { display: flex; color: var(--text); text-decoration: none; align-items: center; gap: 12px; min-width: 0; overflow: hidden; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.tool-icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; background: var(--soft); color: var(--brand); display: grid; place-items: center; font-size: 1.05rem; }
.tool-body { flex: 1; min-width: 0; }
.tool-name { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; }
.tool-desc { font-size: 0.82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.tool-open { font-size: 0.75rem; color: var(--brand); white-space: nowrap; }
.badge-soon { font-size: 0.68rem; color: var(--muted); background: var(--soft); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.no-results { text-align: center; color: var(--muted); padding: 32px 0; }
.search-results { min-width: 0; overflow: hidden; margin-top: 24px; }

/* 최근: 세로 목록 (인기 도구와 동일 배치·간격) */
.recent-list { display: flex; flex-direction: column; gap: 8px; }

/* 인기: 세로 순위 목록 */
.pop-list { display: flex; flex-direction: column; gap: 8px; }
.tool-row { display: flex; color: var(--text); text-decoration: none; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; }
.tool-row .tool-icon { width: 36px; height: 36px; flex: 0 0 36px; font-size: 1rem; }
.tool-row-name { flex: 1; min-width: 0; font-size: 0.92rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 특징 ────────────────────────────────────────────────────── */
.feature-card {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  background: linear-gradient(135deg, rgba(91, 92, 246, 0.07), rgba(59, 130, 246, 0.05));
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border)); border-radius: var(--radius-lg); padding: 20px;
}
.feature-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--bg); color: var(--brand); display: grid; place-items: center; font-size: 1.1rem; border: 1px solid var(--border); }
.feature-title { font-size: 0.9rem; font-weight: 700; margin: 10px 0 4px; }
.feature-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
@media (min-width: 768px) { .feature-card { grid-template-columns: repeat(4, 1fr); padding: 26px; } }

/* ── CTA ─────────────────────────────────────────────────────── */
.cta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cta { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; background: var(--bg); min-width: 0; }
.cta--primary { background: linear-gradient(135deg, rgba(91, 92, 246, 0.08), rgba(59, 130, 246, 0.06)); border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
.cta-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.cta-title-mobile { display: none; }
.cta-desc {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.cta .btn-solid, .cta .btn-outline { max-width: 100%; margin-top: auto; white-space: nowrap; }
@media (max-width: 479.98px) {
  .cta { padding: 12px; }
  .cta-title { font-size: 0.94rem; margin-bottom: 8px; }
  .cta-title-full { display: none; }
  .cta-title-mobile { display: inline; }
}
@media (min-width: 1024px) {
  .cta-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .cta { padding: 20px; }
  .cta-title { margin-bottom: 6px; }
  .cta-desc {
    position: static !important; width: auto; height: auto; padding: 0; margin: 0 0 14px;
    overflow: visible; clip: auto; white-space: normal; border: 0;
    flex: 1; overflow-wrap: anywhere; font-size: 0.85rem; color: var(--muted); line-height: 1.45;
  }
}

.btn-solid { display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 600; font-size: 0.9rem; cursor: pointer; min-height: 44px; text-decoration: none; }
.btn-solid:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 10px 18px; font-weight: 600; font-size: 0.9rem; cursor: pointer; min-height: 44px; text-decoration: none; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 1023.98px) {
  .cta .btn-compact { min-height: 40px; padding: 7px 12px; font-size: 0.9rem; line-height: 1.2; }
}

/* ── 모달 ────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(15, 17, 21, 0.5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); width: 100%; max-width: 460px; padding: 20px; box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-title { font-size: 1.1rem; font-weight: 700; }
.field { display: block; margin-bottom: 12px; }
.field-label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font: inherit; background: var(--bg); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.feedback-status { min-height: 1.5em; margin: 0 0 10px; color: var(--muted); font-size: 0.85rem; }
.feedback-card { max-height: calc(100vh - 32px); overflow-y: auto; }
.feedback-card textarea { resize: vertical; min-height: 112px; }

/* 공유 모달 스타일은 css/components/share-modal.css로 분리됨. (요구사항 11장) */

/* ── 토스트 ──────────────────────────────────────────────────── */
.toast-note { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 120; background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 0.85rem; box-shadow: var(--shadow); }

/* ── 푸터 ────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); margin-top: 52px; padding: 28px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 16px; }
.footer-tagline { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-link { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.footer-link:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: 0.8rem; margin-top: 16px; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; } }

/* ── 법적·안내 페이지 (privacy·terms·contact·sitemap) ───────────── */
.legal { max-width: 820px; margin-inline: auto; padding: 8px 0 24px; }
.legal-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.legal-updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 20px; }
.legal-dates { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 0.85rem; margin-bottom: 22px; }
.legal-body { line-height: 1.75; color: var(--text); }
.legal-body h2 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; margin: 26px 0 8px; }
.legal-body h3 { font-size: 0.98rem; font-weight: 600; margin: 16px 0 6px; }
.legal-body p { margin: 0 0 14px; }
.legal-body ol, .legal-body ul { margin: 0 0 14px; padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-body li > ul, .legal-body li > ol { margin: 6px 0 0; }
.legal-body a { color: var(--brand); }
.legal-email { color: var(--brand); }
.legal-foot-contact { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
.legal-foot-contact a { color: var(--brand); }
.contact-methods { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.contact-methods a, .contact-methods button {
  display: block; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  width: 100%; background: var(--bg); color: var(--text); text-decoration: none; text-align: left;
}
.contact-methods a:hover, .contact-methods button:hover { border-color: var(--brand); color: var(--brand); }
.sitemap section { margin-bottom: 22px; }
.sitemap h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.sitemap ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.sitemap a { color: var(--brand); text-decoration: none; }
.sitemap a:hover { text-decoration: underline; }
.sitemap-plain li { color: var(--text); }
.sitemap-empty { color: var(--muted); }

/* ── 태블릿·데스크톱 공통 ────────────────────────────────────── */
@media (min-width: 768px) {
  :root { --header-h: 68px; }
  .hero { padding: 44px 0 10px; }
  .hero-subtitle { font-size: 1.05rem; }
}

/* ── 모션 최소화 취향 존중 ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Hero 반응형 문구 */
.hero-title-mobile,
.hero-subtitle-mobile {
  display: none !important;
}

.hero-title-desktop,
.hero-subtitle-desktop {
  display: inline !important;
}

@media (max-width: 576px) {
  .hero-title-desktop,
  .hero-subtitle-desktop {
    display: none !important;
  }

  .hero-title-mobile,
  .hero-subtitle-mobile {
    display: inline !important;
  }
}

/* ── Lucide category icons ─────────────────────────────────── */
.lucide-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.lucide-icon--square-code { -webkit-mask-image: url('/static/vendor/lucide/square-code.svg'); mask-image: url('/static/vendor/lucide/square-code.svg'); }
.lucide-icon--type { -webkit-mask-image: url('/static/vendor/lucide/type.svg'); mask-image: url('/static/vendor/lucide/type.svg'); }
.lucide-icon--image { -webkit-mask-image: url('/static/vendor/lucide/image.svg'); mask-image: url('/static/vendor/lucide/image.svg'); }
.lucide-icon--repeat-2 { -webkit-mask-image: url('/static/vendor/lucide/repeat-2.svg'); mask-image: url('/static/vendor/lucide/repeat-2.svg'); }
.lucide-icon--wand-sparkles { -webkit-mask-image: url('/static/vendor/lucide/wand-sparkles.svg'); mask-image: url('/static/vendor/lucide/wand-sparkles.svg'); }
.lucide-icon--network { -webkit-mask-image: url('/static/vendor/lucide/network.svg'); mask-image: url('/static/vendor/lucide/network.svg'); }
