/* ==========================================================================
   Victor Tools — 공유 디자인 시스템
   lab.victor-jk.com 디자인 언어 기반 (차콜 다크 + 시안 액센트, 미니멀)
   ========================================================================== */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* ---- 디자인 토큰 -------------------------------------------------------- */
:root {
  /* 브랜드 컬러 */
  --c-ink: #1a1a1a;
  --c-accent: #00d4ff;
  --c-accent-deep: #0094b3; /* 라이트 배경 위 텍스트/링크용 (대비 확보) */
  --c-accent-press: #00b8dd;

  /* 라이트 테마 (기본) */
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-sunken: #eef0f2;
  --surface: #ffffff;
  --surface-2: #f7f8f9;
  --ink: #1a1a1a;
  --ink-soft: #4a4f55;
  --ink-mute: #8a9099;
  --border: #e4e6ea;
  --border-strong: #d2d6dc;
  --shadow-sm: 0 1px 2px rgba(20, 24, 28, 0.05);
  --shadow-md: 0 4px 16px rgba(20, 24, 28, 0.07);
  --shadow-lg: 0 12px 40px rgba(20, 24, 28, 0.1);
  --accent-text: var(--c-accent-deep);

  /* 형태 */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  /* 간격 스케일 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* 타이포 */
  --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui,
    "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --maxw: 1080px;
  --maxw-narrow: 760px;
  --header-h: 60px;
}

[data-theme="dark"] {
  --bg: #16181c;
  --bg-soft: #1c1f24;
  --bg-sunken: #121316;
  --surface: #1f2228;
  --surface-2: #262a31;
  --ink: #f3f4f6;
  --ink-soft: #b8bdc6;
  --ink-mute: #7e858f;
  --border: #2e333b;
  --border-strong: #3a404a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --accent-text: #4fe3ff;
}

/* ---- 리셋 / 베이스 ----------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background-color 0.2s ease, color 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-text);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--c-accent);
  color: var(--c-ink);
}

/* ---- 애니메이션 배경 (aurora) ----------------------------------------- */
/* common.js 가 <div class="aurora"> 를 모든 페이지 body 최상단에 주입 */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.aurora span:nth-child(1) {
  width: 46vw;
  height: 46vw;
  min-width: 360px;
  min-height: 360px;
  top: -12vw;
  left: -8vw;
  opacity: 0.32;
  background: radial-gradient(circle, #00d4ff, transparent 70%);
  animation: aurora-drift-1 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(2) {
  width: 40vw;
  height: 40vw;
  min-width: 320px;
  min-height: 320px;
  bottom: -14vw;
  right: -10vw;
  opacity: 0.3;
  background: radial-gradient(circle, #6f7bff, transparent 70%);
  animation: aurora-drift-2 32s ease-in-out infinite alternate;
}
.aurora span:nth-child(3) {
  width: 34vw;
  height: 34vw;
  min-width: 280px;
  min-height: 280px;
  top: 34%;
  left: 42%;
  opacity: 0.2;
  background: radial-gradient(circle, #36e6c8, transparent 70%);
  animation: aurora-drift-3 38s ease-in-out infinite alternate;
}
[data-theme="dark"] .aurora span:nth-child(1) {
  opacity: 0.4;
}
[data-theme="dark"] .aurora span:nth-child(2) {
  opacity: 0.36;
}
[data-theme="dark"] .aurora span:nth-child(3) {
  opacity: 0.26;
}
@keyframes aurora-drift-1 {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(8vw, 6vw, 0) scale(1.18);
  }
}
@keyframes aurora-drift-2 {
  from {
    transform: translate3d(0, 0, 0) scale(1.1);
  }
  to {
    transform: translate3d(-7vw, -5vw, 0) scale(0.9);
  }
}
@keyframes aurora-drift-3 {
  from {
    transform: translate3d(0, 0, 0) scale(0.95);
  }
  to {
    transform: translate3d(-6vw, 7vw, 0) scale(1.16);
  }
}

/* ---- 레이아웃 유틸 ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.container--narrow {
  max-width: var(--maxw-narrow);
}

.section {
  padding-block: var(--sp-8);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--sp-3);
}

.muted {
  color: var(--ink-mute);
}

/* ---- 헤더 -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.logo:hover {
  text-decoration: none;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
[data-theme="dark"] .logo__mark {
  background: var(--c-accent);
  color: var(--c-ink);
}
.logo__accent {
  color: var(--accent-text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.site-nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
}
.site-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink-soft);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.theme-toggle:hover {
  border-color: var(--border-strong);
}

/* ---- 푸터 -------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding-block: var(--sp-7);
  font-size: 0.9rem;
}
.site-footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5) var(--sp-7);
  justify-content: space-between;
}
.site-footer__brand {
  max-width: 320px;
}
.site-footer__brand strong {
  display: block;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}
.site-footer__col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--sp-3);
}
.site-footer__col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.site-footer__col a {
  color: var(--ink-soft);
}
.site-footer__cta {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
}
.site-footer__cta strong {
  color: var(--ink);
}
.site-footer__bottom {
  max-width: var(--maxw);
  margin: var(--sp-6) auto 0;
  padding: var(--sp-4) var(--sp-5) 0;
  border-top: 1px solid var(--border);
  color: var(--ink-mute);
  font-size: 0.84rem;
}

/* ---- 버튼 -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--c-ink);
  color: #fff;
}
.btn--primary:hover {
  background: #000;
}
[data-theme="dark"] .btn--primary {
  background: var(--c-accent);
  color: var(--c-ink);
}
[data-theme="dark"] .btn--primary:hover {
  background: var(--c-accent-press);
}

.btn--accent {
  background: var(--c-accent);
  color: var(--c-ink);
}
.btn--accent:hover {
  background: var(--c-accent-press);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: var(--surface-2);
}

.btn--lg {
  padding: 14px 26px;
  font-size: 1rem;
}
.btn--sm {
  padding: 7px 12px;
  font-size: 0.85rem;
}

/* ---- 카드 -------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* 도구 그리드 */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-4);
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease;
}
a.tool-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.tool-card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  margin-bottom: var(--sp-1);
}
.tool-card__title {
  font-size: 1.05rem;
  font-weight: 800;
}
.tool-card__desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.tool-card--soon {
  opacity: 0.62;
  cursor: default;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.badge--soon {
  background: var(--bg-sunken);
  color: var(--ink-mute);
  border: 1px solid var(--border);
}
.badge--live {
  background: color-mix(in srgb, var(--c-accent) 18%, transparent);
  color: var(--accent-text);
}

/* ---- 폼 컨트롤 --------------------------------------------------------- */
.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: var(--sp-2);
}

textarea,
input[type="text"],
input[type="number"],
select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea:focus,
input:focus,
select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 22%, transparent);
}
textarea {
  resize: vertical;
  min-height: 240px;
  line-height: 1.7;
}
textarea::placeholder {
  color: var(--ink-mute);
}

/* ---- 통계 표시 (도구용) ------------------------------------------------ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-3);
}
.stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
}
.stat__value {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-top: 2px;
}
.stat--accent .stat__value {
  color: var(--accent-text);
}

/* 진행바 */
.progress {
  height: 8px;
  background: var(--bg-sunken);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  width: 0;
  background: var(--c-accent);
  border-radius: var(--radius-pill);
  transition: width 0.15s ease, background 0.15s ease;
}
.progress__bar.is-over {
  background: #ff5d5d;
}

/* ---- 도구 페이지 셸 ---------------------------------------------------- */
.tool-hero {
  padding-block: var(--sp-6) var(--sp-5);
}
.tool-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}
.tool-hero p {
  color: var(--ink-soft);
  margin-top: var(--sp-2);
  font-size: 1.05rem;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-bottom: var(--sp-3);
}
.breadcrumb a {
  color: var(--ink-mute);
}

.tool-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--sp-5);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}
.toolbar__spacer {
  flex: 1;
}

/* ---- 도구 공통 컴포넌트 (이미지·PDF 도구) ----------------------------- */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  text-align: center;
  padding: var(--sp-7) var(--sp-5);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover {
  border-color: var(--c-accent);
}
.dropzone.is-dragover {
  border-color: var(--c-accent);
  background: color-mix(in srgb, var(--c-accent) 10%, var(--surface));
}
.dropzone__icon {
  font-size: 2rem;
}
.dropzone__text {
  font-weight: 700;
  color: var(--ink);
}
.dropzone__hint {
  font-size: 0.86rem;
  color: var(--ink-mute);
}

/* 선택 파일 목록 */
.file-list {
  list-style: none;
  padding: 0;
  margin: var(--sp-4) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.file-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.file-item__thumb {
  width: 44px;
  height: 44px;
  flex: none;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-sunken);
}
.file-item__meta {
  flex: 1;
  min-width: 0;
}
.file-item__name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-item__sub {
  font-size: 0.8rem;
  color: var(--ink-mute);
}
.file-item__actions {
  display: flex;
  gap: 4px;
  flex: none;
}
.icon-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1;
}
.icon-btn:hover:not(:disabled) {
  border-color: var(--border-strong);
  color: var(--ink);
}
.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* 옵션 영역 */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}
.seg {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.seg button {
  flex: 1;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  background: var(--surface);
  color: var(--ink-soft);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.seg button + button {
  border-left: 1px solid var(--border-strong);
}
.seg button.is-active {
  background: var(--c-ink);
  color: #fff;
}
[data-theme="dark"] .seg button.is-active {
  background: var(--c-accent);
  color: var(--c-ink);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--c-accent);
}

.check-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.check-row input {
  width: auto;
  accent-color: var(--c-accent);
}

/* 결과 미리보기 */
.result-preview {
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.result-preview img,
.result-preview canvas {
  max-width: 100%;
  max-height: 460px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.hint {
  font-size: 0.84rem;
  color: var(--ink-mute);
}
.is-hidden {
  display: none !important;
}

/* ---- 본문(콘텐츠) 영역 ------------------------------------------------- */
.prose {
  max-width: var(--maxw-narrow);
}
.prose h2 {
  font-size: 1.4rem;
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-3);
}
.prose h3 {
  font-size: 1.08rem;
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
}
.prose p,
.prose li {
  color: var(--ink-soft);
}
.prose p {
  margin-bottom: var(--sp-3);
}
.prose ul,
.prose ol {
  margin: 0 0 var(--sp-4);
  padding-left: 1.3em;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.faq-item {
  border-top: 1px solid var(--border);
  padding-block: var(--sp-4);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  color: var(--ink-mute);
  font-weight: 700;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  margin: var(--sp-3) 0 0;
}

/* 프라이버시 노트 */
.privacy-note {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  background: color-mix(in srgb, var(--c-accent) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c-accent) 28%, var(--border));
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.privacy-note strong {
  color: var(--ink);
}

/* ---- 광고 슬롯 (AdSense 승인 후 채움) ---------------------------------- */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  margin-block: var(--sp-6);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--ink-mute);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  background: var(--bg-soft);
}
.ad-slot::before {
  content: "광고 영역";
}
.ad-slot--filled {
  border: none;
  background: transparent;
  min-height: 0;
}
.ad-slot--filled::before {
  content: none;
}

/* ---- 히어로 (홈) ------------------------------------------------------- */
.hero {
  padding-block: var(--sp-9) var(--sp-7);
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: -0.04em;
}
.hero h1 .accent {
  color: var(--accent-text);
}
.hero p {
  max-width: 560px;
  margin: var(--sp-4) auto 0;
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.hero__meta {
  margin-top: var(--sp-5);
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  justify-content: center;
  font-size: 0.9rem;
  color: var(--ink-mute);
}
.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---- 헬퍼 -------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--c-ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
[data-theme="dark"] .toast {
  background: var(--c-accent);
  color: var(--c-ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- 반응형 ------------------------------------------------------------ */
@media (max-width: 720px) {
  body {
    font-size: 15px;
  }
  .container {
    padding-inline: var(--sp-4);
  }
  .section {
    padding-block: var(--sp-7);
  }
  .site-nav {
    gap: var(--sp-3);
  }
  .site-nav a {
    display: none;
  }
  .site-footer__inner {
    flex-direction: column;
    gap: var(--sp-5);
  }
  .stat__value {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
