
/* ━━━━━━━━━━ 기본 설정 ━━━━━━━━━━ */
:root {
  --bg-faq: #f0f0f0;
  --text-black: #1A1A1A;
  --text-gray: #666666;
  --font: 'Pretendard', sans-serif;
  --brand-blue: #3182F6;
  --brand-blue-hover: #1b6ef3;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text-black);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  padding: 72px 0 110px;
  letter-spacing: -0.015em;
}

/* ━━━━━━━━━━ 애니메이션 ━━━━━━━━━━ */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes waveAnim {
  from { height: 4px; } to { height: 16px; }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 1; }
}
.animate-up {
  animation: fadeInUp 0.6s cubic-bezier(0.2,0.8,0.2,1) both;
}

/* ━━━━━━━━━━ 헤더 ━━━━━━━━━━ */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  height: 72px;
  display: flex;
  align-items: center;
}
.site-header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  line-height: 1;
  gap: 3px;
}
.header-logo-tag {
  background: #E5302A;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 6px;
  border-radius: 2px 8px 8px 2px;
  display: inline-block;
}
.header-logo-text {
  font-size: 23px;
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: -0.03em;
}
.header-logo-text .logo-light { font-weight: 400; }
.header-right {
  display: flex;
  align-items: center;
  gap: 36px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-nav a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.15s;
  white-space: nowrap;
}
.header-nav a:hover { color: #E5302A; }
.header-nav a.nav-free { color: #1a1a1a; font-weight: 700; }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 208px;
  height: 50px;
  line-height: 46px;
  border: 2px solid #d72849;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 500;
  color: #222;
  background-color: #fff;
  box-shadow: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.header-cta:hover { background: #fff; color: #222; }
.header-cta svg { width: 16px; height: 16px; stroke: currentColor; }

/* ━━━━━━━━━━ 햄버거 메뉴 · 모바일 내비 ━━━━━━━━━━ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.hamburger:hover { background: rgba(0,0,0,0.06); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0;
  width: 100%;
  height: calc(100vh - 72px);
  height: calc(100dvh - 72px);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9998;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  overflow-y: auto;
}
.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  padding: 8px 24px 40px;
}
.mobile-nav nav a {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  letter-spacing: -0.01em;
  transition: color 0.15s;
}
.mobile-nav nav a:last-child { border-bottom: none; }
.mobile-nav nav a:hover { color: #E5302A; }
.mobile-nav nav a.mobile-nav-cta { color: #E5302A; font-weight: 800; }
.mobile-nav-trial-btn {
  margin-top: 24px;
  display: block;
  width: 100%;
  background: #1d1d1d;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  padding: 16px 0;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  letter-spacing: -0.02em;
  transition: background 0.2s;
}
.mobile-nav-trial-btn:hover { background: #333; }

/* ━━━━━━━━━━ 플로팅 배너 ━━━━━━━━━━ */
.floating-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(24px);
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 20px 0;
  z-index: 1000;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.08);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.floating-banner.banner-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.banner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.banner-text { color: #191f28; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.65; letter-spacing: -0.015em; font-weight: 500; }
.banner-btn {
  background-color: #FF6F61; color: white; border: none;
  padding: 16px 32px; font-size: clamp(16px, 1.4vw, 18px); font-weight: 700;
  border-radius: 50px; cursor: pointer;
  transition: all 0.2s ease; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(255,107,0,0.3);
  font-family: var(--font);
}
.banner-btn:hover { background-color: #E85549; transform: translateY(-2px); }

/* ━━━━━━━━━━ 스크롤 인디케이터 ━━━━━━━━━━ */
.scroll-indicator {
  position: fixed;
  bottom: 104px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  animation: scrollBounce 1.8s ease-in-out infinite;
  z-index: 9999;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: bottom 0.35s ease;
}
.scroll-indicator.banner-hidden { bottom: 32px; }

/* ━━━━━━━━━━ 히어로 섹션 ━━━━━━━━━━ */
.hero {
  position: relative;
  background-color: #faf8ff;
  background-image: url('img/backig1.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-bottom: 1px solid #EAECF0;
  overflow: hidden;
  padding: 100px 24px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 배경 장식 — 텍스트 가독성을 위한 중앙 부드러운 광원 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 50% 42%, rgba(255,255,255,0.6) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  min-width: 0;
}
.hero-text {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
  z-index: 2;
}
.hero-mascot-left {
  position: absolute;
  left: calc(50% - 350px);
  bottom: 0;
  width: 180px;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}
.hero-mascot-right {
  position: absolute;
  right: calc(50% - 350px);
  bottom: 0;
  width: 180px;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}
.hero-mascot-left img,
.hero-mascot-right img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #0A0F1E;
  margin-bottom: 24px;
  word-break: keep-all;
}
.text-gradient {
  background: linear-gradient(135deg, #3182F6 0%, #7C3AED 60%, #EC4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}
.hero-sub-new {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.75;
  color: #6B7684;
  font-weight: 400;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
  word-break: keep-all;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-hero-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #5b57f5;
  color: white;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  height: 52px;
  padding: 0 28px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.btn-hero-new:hover { background: #1a2236; transform: translateY(-1px); }

.stats-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  font-size: 13px;
  color: #8B95A1;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.stat-items { color: #4E5968; font-weight: 600; }
.stat-none { color: #5b57f5; font-weight: 700; }
.stats-sep { color: #D1D5DB; }

/* ━━━━━━━━━━ 시나리오 섹션 ━━━━━━━━━━ */
.scenario-sec {
  background: #F8F9FB;
  border-bottom: 1px solid #F2F4F6;
  padding: 80px 0 60px;
}
.scenario-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.scenario-header {
  text-align: center;
  margin-bottom: 48px;
}
.scenario-sec .scenario-header .sec-label {
  font-size: 14px;
  font-weight: 700;
  color: #3182F6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}
.scenario-sec .scenario-header .sec-title {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 16px;
  color: #111827;
  letter-spacing: -0.04em;
  word-break: keep-all;
}
.sec-title em { font-style: normal; color: #3182F6; }
.scenario-tabs::-webkit-scrollbar { display: none; }
.scenario-sec .scenario-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.scenario-sec .scenario-tab {
  flex-shrink: 0;
  padding: 12px 24px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid #E5E8EB;
  font-size: 16px;
  font-weight: 700;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: 8px;
}
.scenario-sec .scenario-tab:hover { border-color: #C9D1D9; color: #191F28; }
.scenario-sec .scenario-tab[data-type="class"].on {
  background: linear-gradient(to right, #3B82F6, #2563EB);
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 24px rgba(59,130,246,0.3); transform: scale(1.05);
}
.scenario-sec .scenario-tab[data-type="hw"].on {
  background: linear-gradient(to right, #F97316, #EA580C);
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 24px rgba(249,115,22,0.3); transform: scale(1.05);
}
.scenario-sec .scenario-tab[data-type="lab"].on {
  background: linear-gradient(to right, #A855F7, #9333EA);
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 24px rgba(168,85,247,0.3); transform: scale(1.05);
}
.scenario-panel { display: none; }
.scenario-panel.show { display: block; animation: fadeInUp 0.4s forwards; }

/* 피처 행 & 구분선 */
.sc-feature-rows { display: flex; flex-direction: column; gap: 72px; padding: 8px 0 24px; }
.sc-feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.sc-feature-divider { border: none; border-top: 1px solid #EAECF0; margin: 0; }
.sc-feature-label { display: inline-block; font-size: 14px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.01em; }
.sc-label--blue   { color: #3182F6; }
.sc-label--orange { color: #F97316; }
.sc-label--purple { color: #9333EA; }
.sc-feature-heading {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
  word-break: keep-all;
}
.sc-feature-body {
  font-size: clamp(18px, 1.8vw, 22px);
  color: #4B5563;
  line-height: 1.78;
  letter-spacing: -0.015em;
  font-weight: 400;
  word-break: keep-all;
}
.sc-feature-point-box {
  margin-top: 16px;
  background: #EEF4FF;
  border-left: 3px solid #3182F6;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 15px;
  color: #374151;
  line-height: 1.72;
  letter-spacing: -0.01em;
}
.sc-feature-point-box strong { color: #3182F6; }
.sc-feature-point-box--orange { background: #FFF7ED; border-color: #F97316; }
.sc-feature-point-box--orange strong { color: #F97316; }
.sc-feature-badge-row { margin-top: 12px; }
.sc-feat-badge {
  display: inline-block; margin-top: 10px;
  background: #E6F9F0; color: #1B9E5F;
  font-size: 14px; font-weight: 700;
  padding: 5px 13px; border-radius: 999px;
}

/* 화면 예시 카드 */
.sc-preview-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.09);
  padding: 24px;
  border: 1px solid #EFEFEF;
  position: relative;
}
.sc-preview-card::before {
  content: '화면 예시';
  position: absolute; top: 10px; right: 14px;
  font-size: 10px; font-weight: 700; color: #B0B8C1;
  letter-spacing: 0.02em; pointer-events: none; z-index: 1;
}
.sc-preview-card--no-label::before { content: ''; }
.sc-preview-card--fill {
  padding: 0; overflow: hidden;
  align-self: stretch;
  background: transparent; border: none; box-shadow: none;
}
.sc-preview-card--fill img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-rec-wrap { width: 100%; }
.preview-card-img { padding: 12px; }
.preview-card-img img { width: 100%; border-radius: 12px; display: block; }

/* ════════════════════════════
   화면 예시 카드 — UI 버튼 공통
════════════════════════════ */
.ui-btn-row { display:flex; gap:6px; margin-bottom:8px; flex-wrap:wrap; }
.ui-btn { padding:4px 10px; border-radius:6px; font-size:10px; font-weight:700; border: 1px solid; cursor:default; }
.ui-btn-blue   { background:#EEF4FF; color:#3182F6; border-color:#3182F6; }
.ui-btn-orange { background:#FFF0E6; color:#FF6B00; border-color:#FF6B00; }
.rec-section-label { font-size: 11px; font-weight: 700; color: #8B95A1; margin-bottom: 10px; }
.rec-submit-row { display: flex; gap: 6px; margin-top: 10px; }
.rec-timer { font-size: 10px; color: #8B95A1; }
.rec-icon-dot { color: #fff; font-size: 12px; }

/* ════════════════════════════
   화면 예시 카드 — 녹음 기능
════════════════════════════ */
.ui-rec-bar {
  display:flex; align-items:center; gap:8px;
  background:#fff; border-radius:8px; padding:10px 12px;
  border:1px solid #E5E8EB; margin-bottom:8px;
}
.ui-rec-icon { width:28px; height:28px; border-radius:50%; background:#FF4452; display:flex; align-items:center; justify-content:center; }
.ui-rec-wave { flex:1; display:flex; align-items:center; gap:2px; height:18px; }
.ui-rec-wave span { display:inline-block; width:3px; border-radius:2px; background:#3182F6; animation: waveAnim 0.8s ease-in-out infinite alternate; }
.ui-rec-wave span:nth-child(2) { animation-delay:.1s; }
.ui-rec-wave span:nth-child(3) { animation-delay:.2s; }
.ui-rec-wave span:nth-child(4) { animation-delay:.3s; }
.ui-rec-wave span:nth-child(5) { animation-delay:.4s; }
.ui-rec-wave span:nth-child(6) { animation-delay:.3s; }
.ui-rec-wave span:nth-child(7) { animation-delay:.2s; }
.ui-rec-wave span:nth-child(8) { animation-delay:.1s; }

/* ════════════════════════════
   자주 묻는 질문 (FAQ)
════════════════════════════ */
.faq-section {
  background: var(--bg-faq);
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.faq-list-col { flex: 0 0 auto; width: min(640px, 100%); display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: #fff; border-radius: 16px; overflow: hidden; transition: box-shadow 0.2s; border: 1px solid #EFEFEF; }
.faq-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.faq-question {
  width: 100%; background: none; border: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px; font-family: var(--font); font-size: 18px; font-weight: 700;
  color: var(--text-black); cursor: pointer; text-align: left;
  letter-spacing: -0.02em; transition: color 0.2s;
}
.faq-question:hover { color: var(--brand-blue-hover); }
.faq-chevron { flex-shrink: 0; margin-left: 12px; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; transition: transform 0.3s; }
.faq-chevron svg { width: 10px; height: 7px; transition: transform 0.3s; }
.faq-chevron svg path { fill: #8C9BB0; }
.faq-item.open .faq-chevron svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner { padding: 18px 24px 24px; font-size: 18px; font-weight: 400; color: #555; line-height: 1.82; letter-spacing: -0.01em; background: #F7F8FA; }
.faq-item.open .faq-answer { max-height: 700px; }
.faq-right-col { width: min(640px, 100%); padding-top: 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.faq-label { font-size: 14px; font-weight: 700; color: var(--text-gray); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.faq-heading { font-size: clamp(30px, 4.2vw, 48px); font-weight: 900; color: var(--text-black); line-height: 1.18; letter-spacing: -0.04em; margin-bottom: 40px; word-break: keep-all; }
.mascot-wrap { display: flex; justify-content: center; }
.mascot-img { width: 160px; height: 160px; object-fit: contain; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.15)); animation: mascot-float 4s ease-in-out infinite; }
@keyframes mascot-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

/* ━━━━━━━━━━ 모달 ━━━━━━━━━━ */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex; justify-content: center; align-items: center;
  z-index: 10000; opacity: 0; visibility: hidden; transition: 0.3s;
  backdrop-filter: blur(4px); padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
  background-color: #ffffff; width: 100%; max-width: 480px;
  max-height: 90vh; border-radius: 24px; padding: 40px;
  position: relative; overflow-y: auto;
  transform: translateY(20px); transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: #b0b8c1; font-size: 28px; cursor: pointer; line-height: 1; transition: color 0.2s; }
.modal-close:hover { color: #191f28; }

/* 타이틀 */
.modal-title { font-size: clamp(24px, 2.8vw, 30px); font-weight: 800; margin-bottom: 10px; color: #191f28; letter-spacing: -0.03em; line-height: 1.2; }
.modal-subtitle { font-size: 18px; color: #6b7684; margin-bottom: 32px; line-height: 1.65; letter-spacing: -0.01em; word-break: keep-all; }

/* 폼 — 기본 */
.form-section-title { font-size: 17px; color: #191f28; font-weight: 700; margin: 32px 0 16px; letter-spacing: -0.015em; }
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 16px; color: #4e5968; margin-bottom: 8px; font-weight: 600; letter-spacing: -0.01em; }
.form-label-hint { font-size: 14px; color: #8b95a1; font-weight: 400; margin-left: 4px; }
.form-input-hint { font-size: 12px; color: #9aa0ac; margin-top: 6px; letter-spacing: -0.01em; }
.form-input {
  width: 100%; background-color: #f2f4f6; border: 1px solid transparent;
  color: #191f28; padding: 0 16px; border-radius: 12px;
  font-size: 18px; box-sizing: border-box; transition: all 0.2s;
  height: 56px; font-family: var(--font);
}
.form-input::placeholder { color: #b0b8c1; font-size: 18px; }
.form-input:focus { outline: none; background-color: #fff; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(49,130,246,0.1); }
.input-row { display: flex; gap: 10px; flex-wrap: wrap; }
.input-row .form-input { flex: 1; min-width: 0; }

/* 폼 — 휴대폰 인증 */
.input-with-timer { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.input-with-timer .form-input { padding-right: 50px; }
.input-with-timer .verify-timer { position: absolute; right: 16px; font-size: 14px; font-weight: 700; color: #f04452; pointer-events: none; }
.verify-btn, .verify-confirm-btn {
  height: 52px; width: 100px; flex-shrink: 0;
  border-radius: 12px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font);
}
.verify-btn { background: #e8f3ff; color: var(--brand-blue); border: none; }
.verify-btn:hover { background: #d3e8ff; }
.verify-btn.sent { background: var(--brand-blue); color: #fff; }
.verify-confirm-btn { background: #333d4b; color: #fff; border: none; }
.input-error { border-color: #f04452 !important; background-color: #fff0f1 !important; animation: shake 0.4s ease; }
.agree-error { color: #f04452 !important; animation: shake 0.4s ease; }
input[type="checkbox"] { accent-color: var(--brand-blue); cursor: pointer; width: 18px; height: 18px; }
.verify-code-row { display: none; margin-top: 10px; }
.verify-code-row.visible { display: flex; gap: 10px; }
.verify-status { margin-top: 8px; font-size: 13px; font-weight: 600; display: none; }
.verify-status.success { color: #3182f6; display: block; }
.verify-status.error   { color: #f04452; display: block; }

/* 폼 — 약관 동의 */
.agreement-group { border: 1px solid rgba(0,0,0,0.06); border-radius: 12px; padding: 16px 20px; margin-top: 16px; background: #fff; }
.agreement-item { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 16px; color: #4e5968; cursor: pointer; transition: color 0.2s; letter-spacing: -0.01em; }
.agreement-item.all { font-weight: 700; color: #191f28; margin-top: 0; font-size: 15px; }
.agreement-badge { font-size: 12px; font-weight: 700; padding: 3px 6px; border-radius: 4px; margin-right: 4px; }
.badge-required { background: #e8f3ff; color: var(--brand-blue); }
.badge-optional { background: #f2f4f6; color: #8b95a1; }
.agreement-view { margin-left: auto; font-size: 14px; padding-top: 2px; color: #8b95a1; text-decoration: underline; cursor: pointer; white-space: nowrap; }

/* 폼 — 안내 문구 */
.form-guide { font-size: 14px; color: #8b95a1; margin-top: 8px; line-height: 1.65; padding-left: 12px; position: relative; word-break: keep-all; }
.form-guide::before { content: '·'; font-weight: bold; position: absolute; left: 0; top: 0; }
.form-guide-url { color: var(--brand-blue); font-weight: 600; }
.agreement-item span { word-break: keep-all; }

/* 진행 바 */
.modal-step { display: none; }
.modal-step.active { display: block; animation: fadeInUp 0.35s forwards; }
.modal-progress-wrap { margin-bottom: 28px; }
.modal-progress-bar { height: 4px; background: #F2F4F6; border-radius: 2px; overflow: hidden; }
.modal-progress-fill { height: 100%; background: #3182F6; border-radius: 2px; transition: width 0.4s ease; }

/* 버튼 */
.modal-btn { width: 100%; height: 58px; border: none; border-radius: 16px; font-family: var(--font); font-size: 17px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; }
.modal-btn-primary { background: #191F28; color: white; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.modal-btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.modal-btn-primary:disabled { background: #E5E8EB; color: #8B95A1; cursor: not-allowed; box-shadow: none; transform: none; }
.modal-btn-secondary { background: #F2F4F6; color: #4E5968; }
.modal-btn-secondary:hover { background: #E5E8EB; color: #191F28; }
.modal-btn-wrap { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

/* 결제 단계 */
.payment-check-list { list-style: none; padding: 0; margin: 20px 0 32px; display: flex; flex-direction: column; gap: 16px; }
.payment-check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 18px; color: #333d4b; line-height: 1.72; letter-spacing: -0.01em; }
.payment-check-list li .check-icon { width: 22px; height: 22px; min-width: 22px; border-radius: 50%; background: #e8f3ff; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.payment-check-list li .check-icon svg { width: 12px; height: 12px; stroke: var(--brand-blue); stroke-width: 2.5; }
.payment-check-list li em { font-style: normal; color: var(--brand-blue); font-weight: 700; }
.payment-divider { border: none; border-top: 1px solid rgba(0,0,0,0.06); margin: 24px 0; }
.referral-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.referral-label { font-size: 14px; font-weight: 600; color: #333d4b; white-space: nowrap; flex-shrink: 0; }
.payment-agree-row { display: flex; align-items: center; justify-content: space-between; padding: 20px; background: #f9f9f9; border-radius: 12px; margin-bottom: 32px; font-size: 15px; }
.payment-agree-check { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #191f28; cursor: pointer; }
.payment-notice-box { background: #f9f9f9; border-radius: 12px; padding: 20px; margin-top: 24px; font-size: 14px; color: #8b95a1; line-height: 1.75; }

/* ════════════════════════════
   푸터
════════════════════════════ */
.site-footer { width: 100%; background: #222222; color: #aaaaaa; }
.footer-top { background: #1a1a1a; border-bottom: 1px solid #333; padding: 16px 0; }
.footer-top-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-top-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.footer-top-links a { text-decoration: none; color: #bbbbbb; font-size: 14px; font-weight: 400; padding: 0 20px; border-right: 1px solid #444; line-height: 1; }
.footer-top-links a:first-child { padding-left: 0; }
.footer-top-links a:last-child { border-right: none; }
.footer-top-links a.footer-link-bold { font-weight: 700; color: #ffffff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 16px; transition: opacity 0.15s; overflow: hidden; color: white; }
.footer-social a:hover { opacity: 0.85; }
.footer-social .sns-insta { background: #E1306C; }
.footer-social .sns-facebook { background: #1877F2; }
.footer-social .sns-blog { background: #03C75A; font-size: 12px; font-weight: 800; }
.footer-social .sns-line { background: #06C755; }
.footer-social .sns-kakao { background: #FEE500; color: #3A1D1D; }
.footer-body { padding: 40px 0; }
.footer-body-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; align-items: flex-start; gap: 48px; flex-wrap: wrap; }
.footer-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex-shrink: 0; margin-top: 2px; }
.footer-logo-tag { background: #555; color: #ccc; font-size: 9px; font-weight: 800; letter-spacing: 0.05em; padding: 3px 6px; border-radius: 3px; display: inline-block; }
.footer-logo-text { font-size: 22px; font-weight: 900; color: #ffffff; letter-spacing: -0.02em; }
.footer-logo-text .logo-light { font-weight: 400; }
.footer-info { flex: 1; min-width: 240px; }
.footer-info p { font-size: 14px; line-height: 1.9; color: #999999; margin-bottom: 4px; }
.footer-info .footer-copyright { margin-top: 16px; font-size: 14px; color: #666; }

/* ════════════════════════════
   모바일 줄바꿈 제어
════════════════════════════ */
.mobile-br { display: none; }

/* ════════════════════════════
   반응형 — 768px 이하 (태블릿 · 모바일)
════════════════════════════ */
@media (max-width: 768px) {

  /* 헤더 */
  .hamburger { display: flex; }
  .header-nav { display: none; }
  .header-cta { display: none; }
  .mobile-nav { display: block; }

  /* 플로팅 배너 / 스크롤 인디케이터 */
  .floating-banner { display: block; padding: 12px 0; }
  .banner-container { flex-direction: column; align-items: stretch; gap: 10px; padding: 0 18px; text-align: center; }
  .banner-text { font-size: 14px; line-height: 1.45; }
  .banner-btn { width: 100%; padding: 14px 0; font-size: 16px; }
  .scroll-indicator { display: none; }

  /* 히어로 */
  .hero {
    padding: clamp(48px, 12vw, 76px) 18px clamp(190px, 46vw, 250px);
    min-height: clamp(680px, calc(100vh - 72px), 820px);
    min-height: clamp(680px, calc(100svh - 72px), 820px);
    width: 100%;
    max-width: 100vw;
    display: flex;
    align-items: flex-start;
    text-align: center;
    background-image: url('img/backig2.png');
    background-size: cover;
    background-position: center center;
    background-color: #fff;
  }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.58) 0%, rgba(255,255,255,0.36) 46%, rgba(255,255,255,0.08) 74%, rgba(255,255,255,0) 100%),
      radial-gradient(ellipse 86% 34% at 50% 20%, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.48) 58%, transparent 80%);
  }
  .hero-content { flex-direction: column; padding: 0; gap: 18px; margin: 0 auto; }
  .hero-text { text-align: center; order: 0; padding-right: 0; }
  .hero-mascot-left,
  .hero-mascot-right {
    display: block;
    position: absolute;
    top: clamp(430px, 60vw, 510px);
    bottom: auto;
    width: clamp(96px, 26vw, 128px);
    opacity: 1;
  }
  .hero-mascot-left  { left: calc(50% - 152px); }
  .hero-mascot-right { right: calc(50% - 152px); }
  .hero-title { font-size: clamp(38px, 10vw, 52px); line-height: 1.16; margin-bottom: 12px; }
  .hero-sub-new  { font-size: clamp(16px, 4.5vw, 20px); line-height: 1.7; margin-bottom: 20px; }
  .btn-hero-new  { font-size: clamp(14px, 4vw, 17px); margin-top: 24px; height: 54px; max-width: 100%; }
  .stats-wrapper { font-size: clamp(12px, 3.2vw, 15px); margin: 16px auto; padding: 11px 20px; }

  /* 시나리오 */
  .scenario-sec { padding: 52px 0 44px; }
  .scenario-inner { padding: 0 20px; }
  .scenario-header { margin-bottom: 28px; }
  .scenario-sec .scenario-header .sec-title { font-size: clamp(24px, 6.5vw, 32px); line-height: 1.3; }
  .scenario-sec .scenario-tab[data-type="class"].on,
  .scenario-sec .scenario-tab[data-type="hw"].on,
  .scenario-sec .scenario-tab[data-type="lab"].on { transform: none; box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
  .scenario-sec .scenario-tabs { justify-content: stretch; padding: 0; gap: 8px; overflow-x: hidden; margin-bottom: 32px; }
  .scenario-sec .scenario-tab { flex: 1 1 0; min-width: 0; justify-content: center; text-align: center; padding: 12px 6px; font-size: clamp(13px, 3.5vw, 15px); min-height: 48px; white-space: nowrap; border-radius: 14px; letter-spacing: -0.01em; }
  .sc-feature-row { display: flex; flex-direction: column; gap: 20px; }
  .sc-feature-row > div:not(.sc-feature-text) { order: 1; }
  .sc-feature-row > .sc-feature-text { order: 0; }
  .sc-feature-rows { gap: 44px; padding: 4px 0 16px; }
  .sc-feature-label { font-size: clamp(12px, 3.2vw, 14px); margin-bottom: 10px; }
  .sc-feature-heading { font-size: clamp(22px, 6vw, 28px); line-height: 1.25; margin-bottom: 10px; }
  .sc-feature-body { font-size: clamp(15px, 4.2vw, 18px); line-height: 1.75; }
  .sc-feature-point-box { font-size: clamp(13px, 3.5vw, 15px); padding: 12px 16px; margin-top: 14px; }
  .sc-preview-card { border-radius: 16px; }
  .sc-preview-card--fill { height: auto; max-height: none; border-radius: 16px; overflow: hidden; background: transparent; align-self: auto; border: none; box-shadow: none; padding: 0; }
  .sc-preview-card--fill img { width: 100%; height: auto; object-fit: contain; display: block; border-radius: 0; }
  .preview-card-img { padding: 0; }
  .preview-card-img img { border-radius: 16px; width: 100%; display: block; }
  .sc-feature-divider { margin: 0; }

  /* FAQ */
  .faq-section { padding: 48px 20px 52px; gap: 24px; }
  .faq-list-col { width: 100%; }
  .faq-right-col { width: 100%; }
  .faq-heading { font-size: clamp(22px, 6vw, 30px); margin-bottom: 24px; }
  .faq-question { font-size: clamp(14px, 4vw, 17px); padding: 18px 20px; }
  .faq-answer-inner { font-size: clamp(14px, 4vw, 17px); padding: 14px 20px 20px; line-height: 1.75; }
  .mascot-img { width: 120px; height: 120px; }

  /* 모달 */
  .modal-overlay { padding: 16px; }
  .modal-content { padding: 28px 20px; border-radius: 20px; max-height: 92vh; }
  .modal-title { font-size: clamp(20px, 5.5vw, 26px); }
  .modal-subtitle { font-size: clamp(14px, 4vw, 17px); margin-bottom: 24px; }
  .form-input { height: 52px; font-size: 16px; border-radius: 10px; }
  .modal-btn { height: 54px; font-size: 16px; border-radius: 14px; }
  .payment-check-list li { font-size: clamp(14px, 4vw, 17px); }

  /* 푸터 */
  .footer-top-inner { flex-direction: column; align-items: flex-start; padding: 0 24px; }
  .footer-body-inner { flex-direction: column; gap: 32px; padding: 0 24px; }
  .footer-top-links a { font-size: 13px; padding: 0 14px; }
  .footer-info p { font-size: 13px; }
}

/* ════════════════════════════
   반응형 — 480px 이하 (소형 모바일)
════════════════════════════ */
@media (max-width: 480px) {
  .scenario-inner { padding: 0 16px; }
  .mobile-br { display: inline; }
  .hero {
    padding: 34px 18px 168px;
    min-height: clamp(520px, 135vw, 600px);
    justify-content: center;
    align-items: flex-start;
    background-size: cover;
    background-position: center center;
    overflow-x: hidden;
  }
  .hero-content,
  .hero-text,
  .hero-cta-row {
    width: 100%;
    max-width: calc(100vw - 36px);
  }
  .hero-content { align-items: center; margin: 0 auto; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.64) 0%, rgba(255,255,255,0.42) 48%, rgba(255,255,255,0.12) 76%, rgba(255,255,255,0) 100%),
      radial-gradient(ellipse 104% 34% at 50% 20%, rgba(255,255,255,0.86) 0%, rgba(255,255,255,0.5) 58%, transparent 80%);
  }
  .hero-mascot-left,
  .hero-mascot-right {
    top: auto;
    bottom: 0;
    width: clamp(104px, 31vw, 126px);
  }
  .hero-mascot-left  { left: calc(50% - 156px); }
  .hero-mascot-right { right: calc(50% - 156px); }
  .hero-title .text-gradient { white-space: nowrap; }
  .header-logo-text { font-size: 18px; }
  .hero-title {
    max-width: calc(100vw - 36px);
    font-size: clamp(34px, 9.5vw, 44px);
    line-height: 1.15;
  }
  .hero-sub-new { font-size: 17px; margin-bottom: 16px; }
  .btn-hero-new {
    width: min(100%, 220px);
    max-width: calc(100vw - 72px);
    margin-top: 18px;
    font-size: 15px;
  }
  .stats-wrapper {
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    width: 100%;
    max-width: 100%;
    margin: 14px auto 0;
    padding: 0;
    text-align: center;
    white-space: nowrap;
  }
  .sc-feature-heading { font-size: clamp(20px, 5.5vw, 24px); }
  .sc-feature-body { font-size: 16px; line-height: 1.75; }
  .scenario-sec .scenario-tabs { gap: 5px; }
  .scenario-sec .scenario-tab { font-size: 13px; padding: 11px 4px; min-height: 44px; }
  .faq-question { font-size: 16px; padding: 18px 20px; }
  .faq-answer-inner { font-size: 16px; line-height: 1.75; }
  .modal-subtitle { font-size: 17px; }
  .form-input, .form-input::placeholder { font-size: 16px; }
  .payment-check-list li { font-size: 17px; }
}

@media (max-width: 380px) {
  .hero-content,
  .hero-text,
  .hero-cta-row,
  .stats-wrapper {
    max-width: calc(100vw - 56px);
  }
  .hero-title {
    max-width: calc(100vw - 56px);
    font-size: clamp(30px, 8vw, 34px);
  }
  .btn-hero-new { width: min(100%, 204px); }
  .hero-mascot-left,
  .hero-mascot-right {
    width: clamp(94px, 29vw, 108px);
  }
  .hero-mascot-left  { left: calc(50% - 136px); }
  .hero-mascot-right { right: calc(50% - 136px); }
  .stats-wrapper { font-size: 13px; }
}
