:root {
  color-scheme: dark;
  --bg-main: #070c17;
  --bg-panel: #0f172a;
  --bg-card: #152036;
  --bg-elevated: #1e293b;
  --border-subtle: rgba(148, 163, 184, 0.2);
  --border-strong: rgba(16, 185, 129, 0.55);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #10b981;
  --accent-strong: #059669;
  --accent-soft: rgba(16, 185, 129, 0.16);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.16);
  --info: #38bdf8;
  --danger: #ef4444;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-lg: 0 18px 40px rgba(2, 6, 23, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body,
input,
textarea,
select,
button {
  word-break: keep-all;
  overflow-wrap: break-word;
  font-family: inherit;
}

input,
textarea,
select {
  color-scheme: dark;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 상단 고정 헤더 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 12, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
}

.brand-text {
  min-width: 0;
}

.brand-title {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.plan-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
  color: #6ee7b7;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease;
}

.plan-switch-btn.is-pro {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  border-color: #34d399;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-pill:hover {
  border-color: var(--accent);
}

/* 상단 쿼터 안내 바 */
.quota-strip {
  background: #0b1325;
  border-bottom: 1px solid var(--border-subtle);
  padding: 9px 0;
}

.quota-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.quota-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-chip.ok {
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

/* 히어로 영역 */
.hero-section {
  padding: 28px 0 18px;
}

.hero-card {
  background: radial-gradient(circle at 88% 12%, rgba(16, 185, 129, 0.18), transparent 48%),
    linear-gradient(165deg, #0f172a 0%, #0b1120 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-lg);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #6ee7b7;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: clamp(1.38rem, 3.2vw, 2.1rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.hero-desc {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  max-width: 780px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.highlight-item {
  min-width: 0;
  background: rgba(21, 32, 54, 0.82);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.highlight-item strong {
  display: block;
  font-size: 0.9rem;
  color: #6ee7b7;
  margin-bottom: 3px;
}

.highlight-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* 공통 섹션 블록 */
.step-section {
  padding: 16px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.step-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.02em;
  margin-bottom: 3px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.14rem, 2.2vw, 1.42rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Step 1 업종 그리드 */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.choice-card {
  min-width: 0;
  min-height: 48px;
  text-align: left;
  background: var(--bg-panel);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.14s ease;
}

.choice-card:hover {
  border-color: rgba(52, 211, 153, 0.5);
}

.choice-card.is-active {
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.2), rgba(15, 23, 42, 0.96));
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35);
}

.choice-icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
  display: block;
}

.choice-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.choice-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Step 2 양식 그리드 */
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.template-card {
  min-width: 0;
  min-height: 48px;
  text-align: left;
  background: var(--bg-panel);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 15px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.template-card.is-active {
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.2), rgba(15, 23, 42, 0.96));
  border-color: var(--accent);
}

.template-card.request-trigger {
  border-style: dashed;
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(14, 116, 144, 0.14);
}

.template-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  background: var(--bg-elevated);
  color: #6ee7b7;
}

.template-card.request-trigger .template-tag {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
}

.template-title {
  font-size: 0.96rem;
  font-weight: 800;
  margin: 2px 0;
}

.template-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Step 3 촬영 스튜디오 레이아웃 */
.studio-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.camera-column,
.control-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-btn {
  flex: 1 1 160px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.tab-btn.is-active {
  background: var(--accent);
  border-color: #34d399;
  color: #042f2e;
}

/* 뷰파인더 */
.viewfinder-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #030712;
  border-radius: var(--radius-md);
  border: 3px solid #334155;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.viewfinder-wrap.is-portrait {
  aspect-ratio: 3 / 4;
  max-width: 440px;
  margin: 0 auto;
}

.viewfinder-wrap.match-ok {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.32), 0 0 28px rgba(16, 185, 129, 0.28);
}

.viewfinder-wrap.match-warn {
  border-color: #f59e0b;
}

.vf-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#liveVideo {
  background: #020617;
}

#ghostCanvas {
  pointer-events: none;
  transition: opacity 0.1s linear;
}

#edgeCanvas,
#gridCanvas {
  pointer-events: none;
}

.vf-hud-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  z-index: 8;
  pointer-events: none;
}

.hud-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 800;
}

.hud-pill.status-ok {
  background: rgba(5, 150, 105, 0.94);
  border-color: #6ee7b7;
  color: #ffffff;
}

.hud-pill.status-warn {
  background: rgba(180, 83, 9, 0.9);
  border-color: #fcd34d;
  color: #ffffff;
}

.vf-hud-bottom {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 8;
  pointer-events: none;
}

.match-meter {
  flex: 1;
  height: 10px;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.match-meter-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  transition: width 0.16s ease;
}

/* 셔터 및 촬영 단계 바 */
.stage-target-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.stage-btn {
  min-height: 44px;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.stage-btn.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #6ee7b7;
}

.shutter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, opacity 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #022c22;
  border-color: #34d399;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.shutter-main {
  flex: 2 1 200px;
  font-size: 1rem;
}

/* 무순서 필름스트립 바 */
.filmstrip-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}

.filmstrip-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.filmstrip-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}

.slot-thumb {
  flex: 0 0 136px;
  scroll-snap-align: start;
  background: var(--bg-panel);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.slot-thumb.is-selected {
  border-color: var(--accent);
  background: rgba(16, 185, 129, 0.14);
}

.slot-thumb-preview {
  width: 100%;
  height: 76px;
  object-fit: cover;
  border-radius: 6px;
  background: #020617;
  margin-bottom: 6px;
}

.slot-thumb-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-thumb-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.72rem;
}

.status-dot {
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 700;
}

.status-dot.done {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.status-dot.mid {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
}

.status-dot.todo {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

/* 우측 가이드 및 시뮬레이터 컨트롤 박스 */
.panel-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.panel-box-title {
  margin: 0 0 10px;
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.control-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.control-row:last-child {
  margin-bottom: 0;
}

.control-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

input[type="range"] {
  width: 100%;
  min-height: 36px;
  accent-color: var(--accent);
  cursor: pointer;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  font-size: 0.81rem;
  font-weight: 700;
  cursor: pointer;
}

.check-pill input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.sim-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Step 4 드래그 비교 슬라이더 & 비파괴 편집 */
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 16px;
}

.compare-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #020617;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  user-select: none;
  touch-action: pan-y;
}

.compare-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.compare-after-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
  pointer-events: none;
  z-index: 5;
}

.compare-knob {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #10b981;
  color: #022c22;
  font-weight: 900;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* 폼 필드 */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-group.full {
  grid-column: 1 / -1;
}

.field-group label {
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.text-input,
.text-select,
.text-area {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #091020;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.text-area {
  min-height: 92px;
  resize: vertical;
}

.text-input:focus,
.text-select:focus,
.text-area:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.phrase-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.phrase-chip {
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.phrase-chip:hover {
  border-color: var(--accent);
  color: #6ee7b7;
}

/* Step 5 PDF 미리보기 & 홍보 패키지 */
.output-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.a4-preview-frame {
  background: #1e293b;
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#pdfPreviewCanvas {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  background: #ffffff;
}

#promoCardCanvas {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.page-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.page-nav-row button {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Step 6 요금제 카드 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.price-card {
  min-width: 0;
  background: var(--bg-panel);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.14), rgba(15, 23, 42, 0.98));
}

.price-amount {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 6px 0;
}

.price-amount small {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 커뮤니티 목록 및 모달 */
.community-preview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.req-item-card {
  min-width: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.req-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.76rem;
}

.req-title {
  margin: 4px 0;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-primary);
}

.req-detail {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.req-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.vote-btn {
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.vote-btn:hover {
  border-color: var(--accent);
  color: #6ee7b7;
}

/* 상태 알림 박스 */
.status-banner {
  min-height: 24px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.status-banner:empty {
  display: none;
}

.status-banner.is-error {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

/* 모달 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.site-footer {
  margin-top: 32px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.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;
}

/* 반응형 브레이크포인트 (태블릿 / 갤럭시 일반 360px / 폴드 커버 344px) */
@media (max-width: 1024px) {
  .industry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .studio-shell,
  .editor-grid,
  .output-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .community-preview-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 12px;
  }
  .hero-card,
  .studio-shell,
  .panel-box,
  .price-card {
    padding: 14px;
  }
  .hero-highlights,
  .industry-grid,
  .template-grid,
  .form-grid,
  .toggle-grid,
  .sim-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .stage-target-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header-actions {
    width: 100%;
  }
  .plan-switch-btn,
  .nav-pill {
    flex: 1 1 auto;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.79rem;
  }
  .vf-hud-top {
    top: 6px;
    left: 6px;
    right: 6px;
    gap: 4px;
  }
  .hud-pill {
    padding: 4px 9px;
    font-size: 0.72rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
