/* ═══════════════════════════════════════
   shared.css — INDP MUSIC shared styles
═══════════════════════════════════════ */

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

:root {
  --blue: #233eff;
  --dark: #1b1b1d;
  --light-bg: #f8f9fb;
  --white: #ffffff;
  --text-main: #1b1b1d;
  --text-sub: #39393b;
  --text-gray: #767778;
  --text-light-gray: #a3a4a6;
}

body {
  font-family: 'SUIT', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background: var(--white);
  overflow-x: hidden;
}

/* ───────────── NAV ───────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--light-bg);
  border-bottom: 1px solid #e8eaed;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s, padding 0.3s;
}

nav.scrolled {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  padding: 10px 32px;
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  transition: background 0.3s, box-shadow 0.3s, border-radius 0.3s, padding 0.3s;
}

nav.scrolled .nav-inner {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid #e8eaed;
  padding: 0 28px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-sub);
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}

.nav-links a:hover {
  background: rgba(35, 62, 255, 0.08);
  color: var(--blue);
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-login {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-sub);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}

.nav-login:hover {
  background: rgba(35, 62, 255, 0.08);
  color: var(--blue);
}

.nav-cta-blue {
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 100px;
  text-decoration: none;
}

.nav-cta-dark {
  background: var(--dark);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 100px;
  text-decoration: none;
}

/* ───────────── FOOTER ───────────── */
.site-footer {
  background: var(--blue);
  border-radius: 40px 40px 0 0;
  padding: 60px 60px 0;
  overflow: hidden;
}

/* ── 공통 CTA 푸터 ── */
.cta-footer-section {
  background: var(--blue);
  border-radius: 32px 32px 0 0;
  padding: 80px 120px 0;
  overflow: hidden;
}

.cta-footer-content {
  text-align: center;
  padding-bottom: 80px;
}

.cta-footer-heading {
  font-size: 48px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 40px;
}

.cta-btn-row {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.cta-inquiry-btn {
  display: inline-block;
  background: var(--white);
  color: var(--dark);
  font-size: 17px;
  font-weight: 700;
  padding: 16px 34px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid var(--white);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cta-inquiry-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 22px;
  text-decoration: none;
  border: 2px solid var(--white);
  transition: border-color 0.2s, color 0.2s;
}

.cta-btn-row:hover .cta-inquiry-btn {
  background: #1DFF28;
  color: var(--dark);
  border-color: #1DFF28;
}

.cta-btn-row:hover .cta-inquiry-arrow {
  border-color: #1DFF28;
  color: #1DFF28;
}

.footer-inner {
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 40px;
  margin-bottom: 0;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.footer-info p {
  font-size: 14px;
  font-weight: 400;
  color: rgba(237,239,242,0.85);
  line-height: 1.7;
}

.footer-info p.contact {
  color: var(--white);
  font-weight: 600;
}

.footer-title-big {
  font-size: clamp(120px, 17vw, 280px);
  font-weight: 900;
  color: var(--white);
  line-height: 0.85;
  text-align: center;
  letter-spacing: -6px;
  padding: 20px 0 0;
  margin: 0 -60px;
  user-select: none;
}

.footer-policy-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.footer-policy-links a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(237,239,242,0.85);
  text-decoration: none;
  line-height: 1.7;
  transition: color 0.2s;
}

.footer-policy-links a:hover {
  color: var(--white);
}

.footer-policy-links span {
  font-size: 14px;
  color: rgba(237,239,242,0.85);
}

.copyright {
  background: var(--white);
  text-align: center;
  padding: 18px;
  font-size: 14px;
  font-weight: 400;
  color: #333;
}

/* ───────────── PAGE WRAP ───────────── */
.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 120px;
}

.page-title {
  font-size: 36px;
  font-weight: 800;
  color: #1b1b1d;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 16px;
  color: #767778;
  margin-bottom: 40px;
}

/* ───────────── STEPPER ───────────── */
.stepper {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  padding: 8px 0 4px;
}

.step-item {
  flex: 1;
  display: flex;
  justify-content: center;
}

.step-item:last-child {
  flex: 1;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid #e5e7eb;
  color: #9ca3af;
  background: #f3f4f6;
  position: relative;
  z-index: 1;
}

.step-circle.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 0 0 7px rgba(35, 62, 255, 0.12);
}

.step-circle.done {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 0 0 7px rgba(35, 62, 255, 0.12);
}

.step-label {
  font-size: 13px;
  font-weight: 500;
  margin-top: 10px;
  color: #9ca3af;
  white-space: nowrap;
}

.step-label.active {
  color: var(--dark);
  font-weight: 700;
}

.step-label.done {
  color: var(--dark);
  font-weight: 700;
}

.step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-line {
  flex: 1;
  height: 1.5px;
  background: #e5e7eb;
  margin: 0;
  margin-top: 18px;
}

.step-line.done {
  background: var(--blue);
}

/* ───────────── FORM CARD ───────────── */
.form-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.form-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}

.form-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 32px;
}

.form-submit-error {
  font-size: 13px;
  font-weight: 600;
  color: #e03131;
  text-align: center;
  margin-bottom: 10px;
  display: none;
}

.form-submit-error.show { display: block; }

.field-error {
  font-size: 12px;
  color: #e03131;
  margin-top: 6px;
  display: none;
}

.field-error.show { display: block; }

.form-input.error,
select.form-input.error {
  border-color: #e03131 !important;
  background: #fff5f5 !important;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: #1b1b1d;
  margin-bottom: 10px;
  display: block;
}

.form-label .required {
  color: var(--blue);
}

.form-input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #f8f9fb;
  color: var(--dark);
  transition: border-color 0.2s, background 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #233eff;
  background: white;
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

select.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23767778' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* ───────────── CHIPS / TAGS ───────────── */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1.5px solid #e5e7eb;
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  background: white;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.chip:hover {
  border-color: var(--blue);
}

.chip.selected {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

/* ───────────── OPTION BOXES ───────────── */
.option-boxes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.option-box {
  flex: 1;
  min-width: 140px;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  background: #f8f9fb;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  line-height: 1.5;
}

.option-box:hover {
  border-color: var(--blue);
}

.option-box.selected {
  background: #eef0ff;
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 700;
}

/* ───────────── BUTTONS ───────────── */
.btn-primary {
  background: #1b1b1d;
  color: white;
  border: none;
  border-radius: 100px;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  background: #f0f0f0;
  color: #1b1b1d;
  border: none;
  border-radius: 100px;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover { opacity: 0.85; }

.btn-pill-sm {
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

.btn-pill-sm.dark {
  background: var(--dark);
  color: white;
}

.btn-pill-sm.blue {
  background: var(--blue);
  color: white;
}

/* ───────────── BOTTOM ACTIONS ───────────── */
.form-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* ───────────── INFO BOX ───────────── */
.info-box {
  background: #f8f9fb;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ───────────── UPLOAD AREA ───────────── */
.upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 14px;
  padding: 40px 20px;
  text-align: center;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upload-area:hover {
  border-color: var(--blue);
}

.upload-area p {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 12px;
}

.upload-note {
  font-size: 12px;
  color: var(--text-light-gray);
  margin-top: 10px;
}

/* ───────────── SONG LIST ───────────── */
.song-list {
  display: flex;
  flex-direction: column;
}

.song-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.song-item:last-child { border-bottom: none; }

.song-item.playing {
  background: #eef0ff;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 -14px;
}

.song-art {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #2a2a3a;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 20px;
}

.song-info {
  flex: 1;
  min-width: 0;
}

.song-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.song-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
}

.song-tag {
  background: #eef0ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

.song-artist {
  font-size: 13px;
  color: var(--text-gray);
}

.song-duration {
  font-size: 13px;
  color: var(--text-gray);
  font-weight: 500;
  flex-shrink: 0;
}

/* ───────────── LIGHTING BOXES ───────────── */
.lighting-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
}

.lighting-box {
  border-radius: 10px;
  height: 52px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 6px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(0,0,0,0.5);
}

.lighting-box:nth-child(1)  { background: #fff3d4; }
.lighting-box:nth-child(2)  { background: #ffe8b0; }
.lighting-box:nth-child(3)  { background: #ffd98a; }
.lighting-box:nth-child(4)  { background: #ffc96a; }
.lighting-box:nth-child(5)  { background: #ffb84a; }
.lighting-box:nth-child(6)  { background: #ffa62a; }
.lighting-box:nth-child(7)  { background: #e8d0ff; }
.lighting-box:nth-child(8)  { background: #c8e8ff; }
.lighting-box:nth-child(9)  { background: #a8f0ff; }
.lighting-box:nth-child(10) { background: #88f0e8; }

.lighting-box.selected {
  border-color: var(--blue);
}

/* ───────────── TABS ───────────── */
.tab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: #f0f0f0;
  color: var(--text-gray);
  font-family: inherit;
  transition: all 0.15s;
}

.tab-btn.active {
  background: var(--blue);
  color: white;
}

/* ───────────── SUB-STEPPER ───────────── */
.sub-stepper {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.sub-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #aaa;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sub-step-label {
  font-size: 14px;
  font-weight: 600;
  color: #aaa;
  white-space: nowrap;
}

.sub-step.active .sub-step-num {
  background: var(--blue);
  color: #fff;
}

.sub-step.active .sub-step-label {
  color: var(--blue);
}

.sub-step.done .sub-step-num {
  background: var(--blue);
  color: #fff;
}

.sub-step.done .sub-step-label {
  color: var(--text-sub);
}

.sub-step-line {
  flex: 1;
  height: 1px;
  background: #e5e7eb;
  margin: 0 12px;
  min-width: 32px;
}

.sub-step-line.done {
  background: var(--blue);
}

/* ───────────── PLAN SELECT CARDS ───────────── */
.plan-select-card {
  border: 2px solid #e5e7eb;
  border-radius: 18px;
  padding: 28px;
  cursor: pointer;
  flex: 1;
  transition: border-color 0.15s;
  position: relative;
  background: white;
}

.plan-select-card.selected {
  border-color: var(--blue);
  background: white;
}

.plan-select-card .popular-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
}

/* ───────────── SOUNDWAVE ANIMATION ───────────── */
.soundwave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}

.soundwave span {
  width: 3px;
  background: white;
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}

.soundwave span:nth-child(1) { animation-delay: 0s; height: 8px; }
.soundwave span:nth-child(2) { animation-delay: 0.1s; height: 16px; }
.soundwave span:nth-child(3) { animation-delay: 0.2s; height: 24px; }
.soundwave span:nth-child(4) { animation-delay: 0.3s; height: 12px; }
.soundwave span:nth-child(5) { animation-delay: 0.4s; height: 20px; }
.soundwave span:nth-child(6) { animation-delay: 0.2s; height: 8px; }
.soundwave span:nth-child(7) { animation-delay: 0.1s; height: 16px; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ───────────── SECTION BACKGROUND ───────────── */
.bg-light { background: var(--light-bg); }

/* ═══════════════════════════════════════
   MOBILE RESPONSIVE
═══════════════════════════════════════ */
/* ── 햄버거 버튼 ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.15s;
}
.nav-hamburger:hover { background: rgba(0,0,0,0.06); }

/* ── 모바일 드로어 ── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 199;
}
.mobile-nav-overlay.open { display: block; }

.mobile-nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 72vw;
  max-width: 280px;
  height: 100%;
  background: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
}
.mobile-nav-drawer.open { transform: translateX(0); }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}
.mobile-nav-header img { height: 28px; }
.mobile-nav-close {
  background: none; border: none;
  font-size: 20px; cursor: pointer;
  color: var(--text-sub); padding: 4px;
}

.mobile-nav-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  list-style: none;
}
.mobile-nav-links li a {
  display: block;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-sub);
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}
.mobile-nav-links li a:hover { background: #f8f9fb; color: var(--blue); }

.mobile-nav-actions {
  padding: 20px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-nav-actions a {
  display: block;
  text-align: center;
  padding: 13px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.mobile-nav-login {
  border: 1.5px solid #e0e0e0;
  color: var(--text-sub);
}
.mobile-nav-cta {
  background: var(--blue);
  color: #fff;
}
.mobile-nav-cta-dark {
  background: var(--dark);
  color: #fff;
}

@media (min-width: 769px) {
  .nav-hamburger { display: none !important; }
}

@media (max-width: 1024px) {
  .nav-links { gap: 28px; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { padding: 0 16px; }

  /* Page wrap */
  .page-wrap { padding: 32px 16px 80px; }
  .page-title { font-size: 26px; }
  .page-subtitle { font-size: 14px; }

  /* Footer */
  .site-footer { padding: 40px 20px 0; border-radius: 24px 24px 0 0; }
  .footer-title-big { font-size: 56px; letter-spacing: -2px; }
  .footer-info p { font-size: 12px; }

  /* Form card */
  .form-card { padding: 20px 16px; }

  /* Stepper */
  .step-label { font-size: 10px; }
  .step-circle { width: 28px; height: 28px; font-size: 11px; }
  .step-circle.active { box-shadow: 0 0 0 5px rgba(35, 62, 255, 0.12); }
  .step-line { margin-top: 14px; }

  /* Plan cards */
  .plan-cards-row { flex-direction: column; }
}
