/* ===== CSS 변수 ===== */
:root {
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --green-600: #059669;
  --green-500: #10b981;
  --green-50:  #ecfdf5;
  --gray-900: #0f172a;
  --gray-700: #334155;
  --gray-500: #64748b;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50:  #f8fafc;
  --white:    #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --transition: 0.2s ease;
}

/* ===== 리셋 & 기본 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }

/* ===== 레이아웃 ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== AI 상태 배너 ===== */
.ai-banner {
  background: linear-gradient(90deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  padding: 10px 20px;
  font-size: 0.85rem;
  text-align: center;
  transition: opacity var(--transition);
}
.ai-banner.ready  { background: linear-gradient(90deg, var(--green-600), var(--green-500)); }
.ai-banner.error  { background: #dc2626; }
.ai-banner-inner  { display: flex; align-items: center; justify-content: center; gap: 10px; }

/* ===== 헤더 ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 18px 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand:hover .brand-name { color: var(--blue-500); }
.brand:hover .brand-logo { transform: scale(1.08); }
.brand-logo { font-size: 2rem; line-height: 1; display: inline-block; transition: transform 0.15s ease; }
.brand-name {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-600);
  letter-spacing: -0.02em;
  transition: color 0.15s ease;
}
.brand-tagline {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 1px;
}
.header-home-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-500);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.header-home-link:hover {
  color: var(--blue-600);
  border-color: var(--blue-400);
  background: var(--blue-50);
}
@media (max-width: 480px) {
  .header-home-link .home-link-label { display: none; }
  .header-home-link { padding: 6px 10px; }
}

/* ===== 도구 섹션 ===== */
.tool-section {
  margin: 40px 0 32px;
}

/* ===== 업로드 영역 ===== */
.upload-zone {
  background: var(--white);
  border: 2.5px dashed var(--blue-400);
  border-radius: var(--radius-lg);
  padding: 60px 30px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--blue-600);
  background: var(--blue-50);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12), var(--shadow-md);
}
.upload-zone.drag-invalid {
  border-color: #dc2626;
  background: #fef2f2;
  box-shadow: 0 0 0 4px rgba(220,38,38,.12), var(--shadow-md);
}
.upload-drop-hint {
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 6px;
  min-height: 1.2em;
}
.upload-icon {
  margin: 0 auto 20px;
  color: var(--blue-400);
  width: 72px;
}
.upload-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.upload-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}
.btn-upload { min-width: 180px; }

/* ===== 에디터 영역 ===== */
.editor-zone {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.editor-hint {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  border-bottom: 2.5px solid var(--blue-400);
  padding: 18px 24px 12px;
  text-align: center;
}
.hint-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.hint-step {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hint-step-num {
  background: var(--blue-600);
  color: var(--white);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
.hint-step-text {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.3;
}
.hint-btn-preview {
  display: inline-flex;
  align-items: center;
  background: var(--blue-600);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  vertical-align: middle;
  white-space: nowrap;
}
.hint-step-arrow {
  font-size: 1.6rem;
  color: var(--blue-400);
  font-weight: 300;
  line-height: 1;
}
.hint-sub {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin: 0;
}

/* ===== 툴바 ===== */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  flex-wrap: wrap;
}
.toolbar-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.toolbar-right { display: flex; gap: 8px; flex-wrap: wrap; }
.tool-label { font-size: 0.83rem; font-weight: 600; color: var(--gray-700); white-space: nowrap; }

.brush-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 120px;
  height: 4px;
  border-radius: 4px;
  background: var(--gray-300);
  outline: none;
  cursor: pointer;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-600);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(37,99,235,.4);
  transition: transform var(--transition);
}
.range-input::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range-input::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue-600);
  cursor: pointer;
  border: none;
}
.dot { border-radius: 50%; background: var(--gray-500); display: inline-block; }
.dot-sm { width: 6px; height: 6px; }
.dot-lg { width: 12px; height: 12px; }
.brush-badge {
  background: var(--blue-600);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  min-width: 40px;
  text-align: center;
}

/* ===== 캔버스 영역 ===== */
.canvas-wrapper {
  position: relative;
  margin: 0 auto;
  display: block;
  background: #1a1a2e;
  overflow: hidden;
  cursor: none;
}
#image-canvas,
#mask-canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}
#image-canvas { z-index: 1; }
#mask-canvas  { z-index: 2; }

.cursor-ring {
  position: absolute;
  border: 2.5px solid rgba(6, 182, 212, 0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  display: none;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
  transform: translate(0, 0);
  will-change: transform;
}

/* ===== 처리 중 오버레이 ===== */
.proc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proc-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  width: 90%;
}
.proc-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-700);
  margin: 16px 0 14px;
}
.proc-hint {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 10px;
}
.progress-track {
  height: 6px;
  background: var(--gray-200);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-600));
  border-radius: 99px;
  width: 0%;
  transition: width 0.3s ease;
}

/* ===== 액션 바 ===== */
.action-bar {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  justify-content: center;
  flex-wrap: nowrap;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

/* ===== 액션바 구분선 ===== */
.action-bar-divider {
  width: 1px;
  background: var(--gray-300);
  align-self: stretch;
  margin: 4px 0;
  flex-shrink: 0;
}

/* ===== 해상도 정보 ===== */
.res-info {
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-500);
  padding: 6px 20px 10px;
  background: var(--gray-50);
  letter-spacing: 0.01em;
}

/* ===== 버튼 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition), opacity var(--transition);
  line-height: 1.3;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}
.btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
  box-shadow: 0 4px 14px rgba(37,99,235,.4);
}

.btn-success {
  background: var(--green-600);
  color: var(--white);
  border-color: var(--green-600);
}
.btn-success:hover:not(:disabled) {
  background: #047857;
  box-shadow: 0 4px 14px rgba(5,150,105,.4);
}

/* Next step 버튼 — 그레이, 다운로드 버튼과 시각적으로 구분 */
.btn-next {
  background: var(--gray-100);
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn-next:hover:not(:disabled) { background: var(--gray-200); }

.btn-sm {
  background: var(--white);
  border-color: var(--gray-300);
  color: var(--gray-700);
  padding: 6px 12px;
  font-size: 0.8rem;
}
.btn-sm:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}
.btn-restore {
  border-color: #f59e0b;
  color: #b45309;
}
.btn-restore:hover {
  background: #fffbeb;
  border-color: #d97706;
}

.btn-hero {
  padding: 12px 16px;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  flex: 0 0 auto;
  min-width: 0;
  white-space: nowrap;
}

/* ===== 광고 플레이스홀더 ===== */
.ad-placeholder {
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px 0;
  color: var(--gray-400);
  font-size: 0.85rem;
}

/* ===== 콘텐츠 섹션 ===== */
.content-section { margin-bottom: 32px; }
.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  box-shadow: var(--shadow-md);
}
.section-heading {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}
.section-intro {
  font-size: 0.96rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 720px;
}

/* ===== 단계 카드 ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.step-card {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.step-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--blue-100);
  line-height: 1;
  position: absolute;
  top: 14px;
  right: 16px;
  letter-spacing: -0.05em;
}
.step-icon { font-size: 2.2rem; margin-bottom: 12px; }
.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===== 정보 박스 ===== */
.info-box {
  background: linear-gradient(135deg, var(--blue-50), #f0f9ff);
  border: 1px solid var(--blue-200, #bfdbfe);
  border-left: 4px solid var(--blue-600);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}
.info-box h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-600);
  margin-bottom: 8px;
}
.info-box p {
  font-size: 0.88rem;
  color: var(--gray-600, #475569);
  line-height: 1.75;
}

/* ===== 꿀팁 그리드 ===== */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.tip-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition);
}
.tip-item:hover { box-shadow: var(--shadow-md); }
.tip-icon { font-size: 1.8rem; flex-shrink: 0; margin-top: 2px; }
.tip-body h3 { font-size: 0.93rem; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.tip-body p  { font-size: 0.85rem; color: var(--gray-500); line-height: 1.7; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.faq-item {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:has(.faq-q[aria-expanded="true"]) { border-color: var(--blue-400); }

.faq-q {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 18px 20px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  transition: background var(--transition);
}
.faq-q:hover { background: var(--blue-50); }
.faq-q[aria-expanded="true"] { background: var(--blue-50); color: var(--blue-600); }
.faq-arrow {
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--gray-400);
}
.faq-q[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); color: var(--blue-500); }

.faq-a {
  padding: 0 20px 18px;
  background: var(--blue-50);
}
.faq-a p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.8;
}

/* ===== 푸터 ===== */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 48px 0 32px;
  margin-top: 60px;
}
.footer-inner { text-align: center; }
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-brand-name { color: var(--blue-400); }
.footer-desc { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 20px; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-link {
  font-size: 0.85rem;
  color: var(--gray-400);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--blue-400); }
.footer-copy { font-size: 0.78rem; color: var(--gray-600, #4b5563); }

/* ===== 스피너 ===== */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-xs {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
.spinner-lg {
  width: 48px; height: 48px;
  border: 4px solid var(--blue-100);
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto;
}

/* ===== 비교 슬라이더 ===== */
.before-overlay {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}
#before-canvas {
  position: absolute;
  top: 0; left: 0;
  display: block;
}
.slider-handle {
  position: absolute;
  top: 0;
  height: 100%;
  width: 44px;
  z-index: 5;
  cursor: ew-resize;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--white);
  box-shadow: 0 0 8px rgba(0,0,0,.5);
  transform: translateX(-50%);
}
.slider-knob {
  position: relative;
  z-index: 1;
  width: 38px; height: 38px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--gray-700);
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
  user-select: none;
}
.canvas-wrapper.compare-mode { cursor: ew-resize; }
.canvas-wrapper.compare-mode #cursor-ring { display: none !important; }

/* ===== 지우개 커서 링 ===== */
.cursor-ring.eraser {
  border-color: rgba(251, 113, 133, 0.9);
  box-shadow: 0 0 8px rgba(251, 113, 133, 0.5);
}

/* ===== 버튼 변형 ===== */
.btn-compare {
  background: var(--white);
  border-color: var(--blue-400);
  color: var(--blue-600);
}
.btn-compare:hover:not(:disabled) {
  background: var(--blue-50);
  box-shadow: 0 4px 14px rgba(37,99,235,.2);
}
.btn-sm.active {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

/* ===== 키보드 단축키 배지 ===== */
kbd {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.72rem;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 4px;
  vertical-align: middle;
  opacity: 0.8;
}

/* ===== 반응형 ===== */
/* ===== 모달 ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.65);
  backdrop-filter: blur(3px);
}
.modal-container {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-container-sm { max-width: 440px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  line-height: 1;
}
.modal-close:hover { background: var(--gray-100); color: var(--gray-700); }

.modal-body {
  overflow-y: auto;
  padding: 24px 28px 32px;
  line-height: 1.8;
  color: var(--gray-700);
  font-size: 0.92rem;
}
.modal-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 22px 0 6px;
}
.modal-body h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin: 14px 0 4px;
}
.modal-body p  { margin-bottom: 10px; }
.modal-body ul { padding-left: 20px; margin-bottom: 10px; }
.modal-body li { margin-bottom: 4px; }
.modal-body a  { color: var(--blue-600); text-decoration: underline; }
.modal-updated {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 16px !important;
}

/* Contact modal */
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 18px 0;
}
.contact-icon { font-size: 2rem; flex-shrink: 0; }
.contact-label { font-size: 0.8rem; color: var(--gray-500); margin: 0 0 4px; }
.contact-link  { font-size: 1rem; font-weight: 700; color: var(--blue-600); }
.contact-note  { font-size: 0.85rem; color: var(--gray-500); }

/* Footer links as buttons */
.footer-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
  .content-card { padding: 28px 20px; }
  .section-heading { font-size: 1.3rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .tips-grid  { grid-template-columns: 1fr; }

  .toolbar { flex-direction: column; align-items: flex-start; }
  .toolbar-right { width: 100%; justify-content: flex-end; }

  .brush-control .range-input { width: 100px; }

  .btn-hero { flex: 1 1 auto; min-width: 0; }
  .action-bar { flex-wrap: wrap; }
  .action-bar-divider { width: 100%; height: 1px; margin: 0; }

  .brand-name { font-size: 1.1rem; }
  .upload-title { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .upload-zone { padding: 40px 16px; }
  .step-number { font-size: 2rem; }
  .faq-q { font-size: 0.88rem; padding: 14px 16px; }
  .faq-a { padding: 0 16px 14px; }
}
