/* ROY JU — base44-inspired design v5 */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-warm: #f9f7f4;
  --bg-cream: #faf8f4;
  --ink: #0a0a0a;
  --ink-1: #1a1a1a;
  --ink-2: #3f3f46;
  --ink-3: #6b7280;
  --ink-4: #9ca3af;
  --ink-5: #d1d5db;
  --line: #e5e7eb;
  --line-soft: #f3f4f6;

  /* ROY JU — refined champagne gold · charcoal · white */
  --orange: #b8975a;        /* muted satin gold (accent) */
  --orange-soft: #f4efe1;
  --blue: #ece3cd;
  --blue-soft: #f6f1e4;
  --gold: #b8975a;
  --gold-deep: #8e7536;
  --gold-soft: #f4efe1;
  --accent: #b8975a;
  --accent-deep: #8e7536;
  --accent-soft: #f4efe1;

  --green: #16a34a;
  --green-soft: #dcfce7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --info: #2563eb;
  --info-soft: #dbeafe;

  --r-xs: 6px;
  --r-sm: 10px;
  --r: 14px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-2xl: 40px;
  --r-full: 999px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.05);
  --shadow:    0 6px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 14px 32px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 24px 56px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-xl: 0 40px 80px rgba(0,0,0,0.14);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  word-break: keep-all;
  overflow-wrap: break-word;
}

html {
  overflow-x: hidden;
}

/* 모든 섹션/컨테이너의 가로 폭 제한 */
section, .container, .container-md, .container-sm, .container-lg {
  max-width: 100vw;
  overflow-x: hidden;
}

/* 큰 텍스트는 모두 화면 폭에 맞춰 줄바꿈 */
h1, h2, h3, h4, .hero-title, .section-title, .features-title, .pricing-title, .faq-title {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: keep-all;
}

/* 한국어/일본어는 break-word 사용 */
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3,
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
img, svg { display: block; max-width: 100%; }

html[lang="ko"] body, html[lang="ja"] body { word-break: keep-all; }

/* Containers */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 460px; margin: 0 auto; padding: 0 24px; }
.container-md     { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.container-lg     { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ====================================================
   GLOBAL BACKGROUND — ROY JU clean white + faint gold
   ==================================================== */
body {
  background:
    radial-gradient(80% 50% at 50% -8%, #f8f1de 0%, rgba(248,241,222,0) 60%),
    linear-gradient(180deg, #ffffff 0%, #fffdf8 60%, #fdfaf1 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* keep cream wash subtle past first viewport */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, transparent 0%, transparent 70%, #fdfaf1 100%);
  pointer-events: none;
}

main, .page-content {
  position: relative;
  z-index: 1;
}

/* When inside dashboards/auth, override to clean white */
body.plain {
  background: var(--bg);
}
body.plain::after { display: none; }

/* ====================================================
   NAV — capsule floating
   ==================================================== */
.nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 0 16px;
  margin-bottom: -68px;
}

.nav {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 8px 8px 22px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--r-full);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav:hover { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06); }

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}

.logo-img {
  /* 핵심 반응형 속성 */
  max-width: 100%;  /* 부모 요소보다 커지지 않음 */
  height: auto;     /* 비율 유지 */
  
  /* 로고 크기 설정 (원하는 크기로 조절하세요) */
  width: 180px;     
}
/* 모바일 화면 (화면 너비 768px 이하일 때) */
@media (max-width: 768px) {
  .logo-img {
    width: 140px;   /* 모바일에서는 조금 더 작게 조절 */
  }
}


.logo-mark {
  width: 28px; height: 28px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-spring);
  flex-shrink: 0;
}
.logo:hover .logo-mark { transform: rotate(360deg); }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.logo-mark svg { width: 14px; height: 14px; color: white; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex-wrap: nowrap;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-full);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--r-full);
  padding: 2px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 4px;
}
.lang-switch a {
  padding: 5px 9px;
  border-radius: var(--r-full);
  color: var(--ink-3);
  transition: all 0.2s var(--ease);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.lang-switch a.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border-radius: var(--r-full);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.mobile-toggle:hover { background: rgba(0,0,0,0.04); }
.mobile-toggle .mt-bar {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.mobile-toggle.active .mt-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-toggle.active .mt-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-toggle.active .mt-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: 88px 24px 32px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease-out);
  overflow-y: auto;
  /* 스크롤바 숨김 - 닫혔을 때도 깜빡임 안 보이게 */
  scrollbar-width: none;
  -ms-overflow-style: none;
  visibility: hidden;
}
.mobile-menu::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.mobile-menu-link {
  display: block;
  padding: 18px 0;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  letter-spacing: -0.025em;
  transition: padding 0.2s var(--ease);
}
.mobile-menu-link:hover { padding-left: 8px; }
.mobile-menu-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ====================================================
   BUTTONS
   ==================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: rgba(0,0,0,0.04); }
.btn-primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--ink-1);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--ink-4);
  background: var(--bg-soft);
  transform: translateY(-1px);
}
.btn-block { width: 100%; padding: 13px 18px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }


.btn-orange {
  background: var(--gold);
  color: #2a2210;
  border-color: var(--gold);
  font-weight: 600;
}
.btn-orange:hover {
  background: var(--gold-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(194,160,95,0.4);
}

/* ====================================================
   FLASH
   ==================================================== */
.flash {
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s var(--ease);
}
.flash-hide { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.flash-error { background: var(--red-soft); color: #991b1b; }
.flash-success { background: var(--green-soft); color: #14532d; }

/* ====================================================
   HERO — Center, big title, big prompt
   ==================================================== */
.hero {
  padding: 120px 0 48px;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-1);
  margin: 0 auto 32px;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  animation: fadeUp 0.8s var(--ease-out);
  cursor: pointer;
  width: max-content;
}
.hero-pill:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.hero-pill-tag {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-pill svg {
  width: 12px; height: 12px;
  color: var(--ink-3);
  transition: transform 0.3s var(--ease);
}
.hero-pill:hover svg { transform: translateX(2px); color: var(--ink); }

.hero-title {
  font-size: clamp(48px, 8vw, 110px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--ink);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  /* fill-mode 'both' + opacity:1 안전망: animation이 어떤 이유로든 작동 못해도 콘텐츠는 보임 */
  opacity: 1;
  animation: fadeUp 0.9s var(--ease-out) 0.1s both;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
html[lang="ko"] .hero-title,
html[lang="ja"] .hero-title {
  font-size: clamp(34px, 6.4vw, 86px);
  letter-spacing: -0.04em;
  line-height: 1.1;
  word-break: keep-all;
  overflow-wrap: anywhere;
  hyphens: none;
}

/* 모바일에서 일본어/한국어 더 작게 */
@media (max-width: 640px) {
  html[lang="ko"] .hero-title,
  html[lang="ja"] .hero-title {
    font-size: clamp(28px, 7.8vw, 42px);
    line-height: 1.15;
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 auto 28px;
  letter-spacing: -0.01em;
  opacity: 1;
  animation: fadeUp 0.9s var(--ease-out) 0.2s both;
  word-break: keep-all;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ★ 추가 안전망: hero 직접 자식이 어떤 이유로든 invisible 상태로 머물지 않도록 */
.hero > .container > .hero-pill,
.hero > .container > .hero-title,
.hero > .container > .hero-sub,
.hero > .container > .prompt-wrap {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-pill, .hero-title, .hero-sub, .prompt-wrap {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ====================================================
   PROMPT BOX
   ==================================================== */
.prompt-wrap {
  max-width: 1000px;
  margin: 0 auto 12px;
  opacity: 1;
  animation: fadeUp 0.9s var(--ease-out) 0.3s both;
}

.prompt-box {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--r-xl);
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  transition: all 0.3s var(--ease);
  position: relative;
}
.prompt-box:focus-within {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 0 0 4px rgba(91, 95, 199, 0.06), 0 28px 72px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.prompt-textarea {
  width: 100%;
  min-height: 92px;
  border: none;
  outline: none;
  padding: 18px 22px 6px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: transparent;
  resize: none;
  font-family: inherit;
  letter-spacing: -0.01em;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.prompt-textarea::-webkit-scrollbar { display: none; width: 0; height: 0; }
.prompt-textarea::placeholder {
  color: var(--ink-4);
  font-weight: 400;
}

.prompt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 6px 16px;
  gap: 10px;
}

.prompt-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}

.prompt-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--r-full);
  letter-spacing: -0.005em;
}
.prompt-meta-pill svg { width: 11px; height: 11px; }

.btn-generate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: white;
  border-radius: var(--r-full);
  transition: all 0.25s var(--ease-spring);
  flex-shrink: 0;
}
.btn-generate:hover {
  background: var(--ink-1);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.btn-generate:active { transform: scale(0.95); }
.btn-generate svg { width: 16px; height: 16px; }

/* Examples chips */
.examples-eyebrow {
  margin-top: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.example-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px auto 0;
  max-width: 760px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-1);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: inherit;
}
.chip:hover {
  border-color: var(--ink-4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ====================================================
   FEATURES SECTION (Consider yourself limitless)
   slide carousel - 4 slides
   ==================================================== */
.features-section {
  padding: 60px 0 40px;
  position: relative;
}

.features-eyebrow {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.features-title {
  text-align: center;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
html[lang="ko"] .features-title,
html[lang="ja"] .features-title {
  font-size: clamp(28px, 4.2vw, 52px);
  letter-spacing: -0.025em;
}

.feature-slide {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 60px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.feature-slide:last-child { border-bottom: none; }
.feature-slide.reverse { grid-template-columns: 1.2fr 1fr; }
.feature-slide.reverse .feature-text { order: 2; }
.feature-slide.reverse .feature-visual { order: 1; }

.feature-num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  font-family: var(--font-mono);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.feature-num strong {
  color: var(--ink);
  font-weight: 700;
}

.feature-heading {
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}

.feature-body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
  word-break: keep-all;
  max-width: 480px;
}

.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--ink);
  color: white;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}
.feature-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.feature-cta svg { transition: transform 0.2s var(--ease); }
.feature-cta:hover svg { transform: translateX(3px); }

/* Mock browser */
.mock-browser {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s var(--ease);
  position: relative;
}
.feature-slide:hover .mock-browser { transform: translateY(-6px); }
.mock-browser-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
}
.mock-dot {
  width: 11px; height: 11px;
  border-radius: var(--r-full);
}
.mock-dot.r { background: #ff5f57; }
.mock-dot.y { background: #febc2e; }
.mock-dot.g { background: #28c840; }
.mock-url {
  flex: 1;
  text-align: center;
  background: white;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  border: 1px solid var(--line);
}
.mock-body {
  padding: 24px;
  min-height: 320px;
  background: white;
}

/* ====================================================
   APP GALLERY (5 cards mosaic)
   ==================================================== */
.gallery-section {
  padding: 80px 0 120px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-item {
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(135deg, #f4f4f5, #e4e4e7);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease);
  cursor: pointer;
}
.gallery-item:hover {
  transform: scale(1.02);
}
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 2; }
.gallery-item:nth-child(3) { grid-column: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(5) { grid-column: span 2; grid-row: span 2; }

.gallery-content {
  padding: 24px;
  text-align: center;
}
.gallery-emoji-bg {
  font-size: 64px;
  filter: grayscale(0.3);
  opacity: 0.85;
}
.gallery-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-1);
  margin-top: 12px;
}

/* Different colored backgrounds for variety */
.gallery-item:nth-child(1) { background: linear-gradient(135deg, #fde4d3, #fbceae); }
.gallery-item:nth-child(2) { background: linear-gradient(135deg, #d4e4fc, #b8d2f7); }
.gallery-item:nth-child(3) { background: linear-gradient(135deg, #d4f0e0, #a8dcbe); }
.gallery-item:nth-child(4) { background: linear-gradient(135deg, #e8d8f7, #ccb1ec); }
.gallery-item:nth-child(5) { background: linear-gradient(135deg, #fff4d3, #ffe39e); }

/* ====================================================
   PRICING SECTION
   ==================================================== */
.pricing-section {
  padding: 120px 0;
  text-align: center;
}
.pricing-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}
html[lang="ko"] .pricing-title,
html[lang="ja"] .pricing-title {
  font-size: clamp(28px, 4.2vw, 52px);
  letter-spacing: -0.025em;
}
.pricing-sub {
  font-size: 18px;
  color: var(--ink-2);
  margin-bottom: 56px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.plan {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  position: relative;
  transition: all 0.3s var(--ease);
  text-align: left;
}
.plan:hover {
  border-color: var(--ink-5);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.plan.featured {
  background: linear-gradient(180deg, var(--gold-soft) 0%, #fff 100%);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-md);
}
.plan.current {
  background: linear-gradient(180deg, #f0fdf4 0%, white 100%);
  border: 2px solid #16a34a;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.15);
  position: relative;
}
.plan.current.featured {
  background: linear-gradient(180deg, #f0fdf4 0%, var(--gold-soft) 100%);
  border: 2px solid #16a34a;
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--r-full);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.plan-price {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 4px;
}
.plan-price .currency {
  font-size: 22px;
  vertical-align: super;
  font-weight: 500;
  color: var(--ink-3);
}
.plan-period {
  color: var(--ink-3);
  font-size: 14px;
  margin-bottom: 28px;
}
.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  word-break: keep-all;
}
.plan-features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" fill="none"><path d="M3 9l4 4 8-8" stroke="%2316a34a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 2px;
}

/* ====================================================
   FAQ
   ==================================================== */
.faq-section {
  padding: 120px 0;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
}
.faq-title {
  text-align: center;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 56px;
}
html[lang="ko"] .faq-title,
html[lang="ja"] .faq-title {
  font-size: clamp(26px, 3.8vw, 44px);
  letter-spacing: -0.025em;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: padding-left 0.3s var(--ease);
  font-family: inherit;
}
.faq-q:hover { padding-left: 14px; }
.faq-q-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-left: 16px;
  transition: all 0.3s var(--ease);
}
.faq-q-icon svg {
  width: 14px; height: 14px;
  transition: transform 0.3s var(--ease);
}
.faq-item.open .faq-q-icon { background: var(--ink); border-color: var(--ink); color: white; }
.faq-item.open .faq-q-icon svg { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  word-break: keep-all;
}
.faq-item.open .faq-a {
  max-height: 400px;
}
.faq-a-inner { padding: 0 8px 24px; }

/* ====================================================
   CTA — final
   ==================================================== */
.cta-section {
  padding: 120px 24px;
  text-align: center;
}
.cta-title {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
html[lang="ko"] .cta-title,
html[lang="ja"] .cta-title {
  font-size: clamp(36px, 5.5vw, 76px);
  letter-spacing: -0.035em;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: white;
  padding: 16px 32px;
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s var(--ease-spring);
}
.cta-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
}
.cta-button svg { transition: transform 0.3s var(--ease); }
.cta-button:hover svg { transform: translateX(4px); }

/* ====================================================
   AUTH
   ==================================================== */
.auth-page {
  padding: 120px 24px 80px;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}
.auth-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow);
  width: 100%;
  animation: fadeUp 0.6s var(--ease-out);
}
.auth-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-align: center;
  margin-bottom: 8px;
}
.auth-sub {
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
  margin-bottom: 32px;
}

.field { margin-bottom: 16px; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-1);
  margin-bottom: 6px;
}
.field-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink);
  background: white;
  transition: all 0.2s var(--ease);
  font-family: inherit;
}
.field-input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}
.field-input::placeholder { color: var(--ink-4); }
.field-help { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.field-checkbox input { margin-top: 2px; cursor: pointer; }
.field-checkbox label { cursor: pointer; }

.auth-bottom {
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 24px;
}
.auth-bottom a { color: var(--ink); font-weight: 500; }
.auth-bottom a:hover { text-decoration: underline; }

/* ====================================================
   DASHBOARD
   ==================================================== */
.dash { padding: 88px 0 96px; }
.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.dash-greet {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.dash-sub { color: var(--ink-3); font-size: 14px; margin-top: 4px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  transition: all 0.25s var(--ease);
}
.stat-card:hover {
  border-color: var(--ink-5);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.stat-label {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 8px;
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}
.stat-meta { font-size: 13px; color: var(--ink-3); margin-top: 8px; }

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease);
}
.panel:hover { box-shadow: var(--shadow-sm); }
.panel-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.panel-body { padding: 4px 0; }
.panel-empty {
  padding: 56px 24px;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td {
  padding: 12px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  letter-spacing: -0.005em;
}
.table th {
  font-weight: 500;
  color: var(--ink-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.15s var(--ease); }
.table tbody tr:hover td { background: var(--bg-soft); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge-active, .badge-ready    { background: var(--green-soft); color: #14532d; }
.badge-pending, .badge-queued  { background: var(--amber-soft); color: #78350f; }
.badge-cancelled, .badge-expired, .badge-suspended, .badge-failed { background: var(--red-soft); color: #7f1d1d; }
.badge-building { background: var(--info-soft); color: #1e3a8a; }

/* ====================================================
   CHECKOUT
   ==================================================== */
.checkout-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  max-width: 540px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.summary-row:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 18px;
  padding-top: 18px;
}

/* ====================================================
   SITES
   ==================================================== */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.site-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  transition: all 0.25s var(--ease);
}
.site-card:hover {
  border-color: var(--ink-5);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.site-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.site-prompt {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}
.site-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
}
.site-actions {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.site-actions .btn { font-size: 12px; padding: 7px 12px; }

/* ====================================================
   ADMIN
   ==================================================== */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--bg);
}
body.admin { background: var(--bg); }
body.admin::after { display: none; }

.admin-sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar-brand {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 16px;
}
.admin-nav { display: flex; flex-direction: column; padding: 0 12px; }
.admin-nav-item {
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: all 0.2s var(--ease);
  margin-bottom: 2px;
}
.admin-nav-item:hover { background: var(--bg-soft); color: var(--ink); }
.admin-nav-item.active { background: var(--ink); color: white; }
.admin-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-content { padding: 32px; max-width: calc(100vw - 240px); overflow-x: auto; }

/* MAP */
.map-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
}
.map-svg {
  width: 100%;
  height: 480px;
  display: block;
  background: linear-gradient(to bottom, #fafafa, #f4f4f5);
}
.map-overlay {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--ink-3);
}
.map-overlay strong {
  display: block;
  font-size: 22px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 2px;
}
.map-dot { fill: #ef4444; opacity: 0.85; cursor: pointer; }
.map-dot-pulse {
  fill: #ef4444;
  opacity: 0.4;
  transform-origin: center;
  animation: dot-pulse 2s ease-out infinite;
}
@keyframes dot-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3); opacity: 0; }
}
.map-tooltip {
  position: absolute;
  background: var(--ink);
  color: white;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 12px;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: white;
  padding: 12px 22px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s var(--ease-spring);
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { width: 14px; height: 14px; }

/* ====================================================
   FOOTER
   ==================================================== */
.footer {
  padding: 80px 0 40px;
  background: var(--ink);
  color: rgba(255,255,255,0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand-col { max-width: 280px; }
.footer-brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}
.footer-brand .logo-mark { width: 28px; height: 28px; }
.footer-tagline {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  color: white;
  transition: all 0.2s var(--ease);
}
.footer-social a:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }

.footer-label {
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-link {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  padding: 6px 0;
  transition: color 0.15s;
}
.footer-link:hover { color: white; }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 16px;
}

/* ====================================================
   SCROLL REVEAL
   ==================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ★ 안전망: JS가 로드되기 전에도, 또는 IntersectionObserver가 실패해도
   요소가 영원히 숨어있지 않도록 1.5초 후 강제 표시 */
.reveal {
  animation: forceReveal 0s ease 1.5s forwards;
}
@keyframes forceReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* JS가 즉시 visible 클래스 추가했으면 애니메이션 우회 */
.reveal.visible {
  animation: none;
}

/* prefers-reduced-motion 지원 */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
}

.reveal.force-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ====================================================
   RESPONSIVE - 종합 정리
   ==================================================== */

/* ─── Tablet & Small Desktop (≤1024px) ─── */
@media (max-width: 1024px) {
  .feature-slide {
    grid-template-columns: 1fr !important;
    gap: 40px;
    padding: 60px 0;
  }
  .feature-slide.reverse { grid-template-columns: 1fr !important; }
  .feature-slide.reverse .feature-text { order: 1; }
  .feature-slide.reverse .feature-visual { order: 2; }

  /* Visual 카드는 컨테이너 안에 들어가도록 */
  .feature-visual {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .feature-visual > * {
    max-width: 100%;
  }
  .mock-browser, .mock-card, .mock-window {
    max-width: 100%;
    width: 100%;
  }

  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery-item:nth-child(2) { grid-column: span 2; }
  .gallery-item:nth-child(3) { grid-column: span 2; }
  .gallery-item:nth-child(4) { grid-column: span 2; grid-row: span 1; }
  .gallery-item:nth-child(5) { grid-column: span 4; grid-row: span 1; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }

  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static; height: auto;
    border-right: none; border-bottom: 1px solid var(--line);
  }
  .admin-nav { flex-direction: row; overflow-x: auto; padding: 0 12px; gap: 4px; }
  .admin-nav-item { white-space: nowrap; }
  .admin-content { max-width: 100%; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; max-width: 100%; }
}

/* ─── Mobile (≤768px) ─── */
@media (max-width: 768px) {
  /* 가로 스크롤 절대 방지 */
  html, body { overflow-x: hidden; max-width: 100vw; }
  * { max-width: 100vw; }

  .container { padding: 0 16px; }

  /* ─── 네비바 ─── */
  .nav-wrap {
    top: 10px;
    padding: 0 10px;
    margin-bottom: -48px;
  }
  .nav {
    padding: 4px 4px 4px 10px;
    gap: 4px;
    min-height: 44px;
  }
  .logo {
    font-size: 13px;
    gap: 6px;
    flex-shrink: 0;
  }
  .logo-mark { width: 22px; height: 22px; flex-shrink: 0; }
  .logo span:not(.logo-mark) {
    font-size: 12px;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }
  .nav-links { display: none !important; }
  .nav-actions { gap: 4px; flex-shrink: 0; }
  .nav-actions .btn-ghost { display: none !important; }
  .nav-actions .btn-primary {
    padding: 7px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
  .mobile-toggle {
    display: flex !important;
    width: 44px; height: 44px;
    flex-shrink: 0;
    /* iOS Safari touch 최적화 */
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0.15) !important;
    -webkit-touch-callout: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-appearance: none !important;
    z-index: 100 !important;
    position: relative !important;
  }
  .mobile-toggle:active {
    transform: scale(0.95);
  }
  .mobile-toggle .mt-bar {
    pointer-events: none !important;  /* span은 클릭 안 받음 — 부모 button만 받음 */
  }
  .lang-switch {
    padding: 1px;
    margin-right: 2px;
  }
  .lang-switch a {
    padding: 4px 6px;
    font-size: 10px;
  }

  /* ─── 히어로 ─── */
  .hero {
    padding: 90px 0 50px;
    min-height: auto;
  }
  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
  }
  .hero-title {
    font-size: clamp(32px, 8.5vw, 48px) !important;
    line-height: 1.05 !important;
    word-break: keep-all;
    margin-bottom: 16px;
    max-width: 100%;
    overflow-wrap: break-word;
  }
  /* 모바일에서 한국어/일본어는 더 작게 */
  html[lang="ko"] .hero-title,
  html[lang="ja"] .hero-title {
    font-size: clamp(26px, 7.2vw, 38px) !important;
    line-height: 1.18 !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  .hero-sub {
    font-size: 15px !important;
    line-height: 1.55;
    margin-bottom: 28px;
    word-break: keep-all;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  /* ─── 프롬프트 박스 ─── */
  .prompt-wrap { padding: 0 4px; }
  .prompt-box { width: 100%; }
  .prompt-textarea {
    font-size: 16px !important;  /* iOS zoom 방지 */
    padding: 14px 14px 6px;
    min-height: 80px;
  }
  .prompt-actions {
    padding: 6px 8px 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .prompt-meta {
    font-size: 11px;
    gap: 4px;
    flex-wrap: wrap;
  }
  .prompt-meta-pill {
    padding: 3px 8px;
    font-size: 11px;
  }
  .btn-generate {
    width: 36px; height: 36px;
    flex-shrink: 0;
  }

  /* ─── chips ─── */
  .examples-eyebrow { margin-top: 28px; font-size: 12px; }
  .chip {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* ─── Feature 섹션 (스크린샷의 문제!) ─── */
  .features-section,
  .gallery-section,
  .pricing-section,
  .faq-section,
  .cta-section { padding: 50px 0; }

  .features-title {
    margin-bottom: 32px;
    font-size: 28px !important;
    text-align: center;
    word-break: keep-all;
  }

  .feature-slide {
    grid-template-columns: 1fr !important;
    gap: 28px;
    padding: 40px 0;
  }

  .feature-text { width: 100%; }
  .feature-num {
    font-size: 11px;
    margin-bottom: 14px;
  }
  .feature-heading {
    font-size: clamp(24px, 6vw, 32px) !important;
    line-height: 1.15 !important;
    word-break: keep-all;
    margin-bottom: 14px;
  }
  .feature-body {
    font-size: 15px !important;
    line-height: 1.65;
    word-break: keep-all;
  }
  .feature-cta {
    font-size: 14px;
    padding: 10px 18px;
  }

  /* ─── Visual / Mock 카드 (스크린샷의 잘림 문제) ─── */
  .feature-visual {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    transform: none !important;
  }
  .feature-visual > *,
  .mock-browser,
  .mock-card,
  .mock-window,
  .feature-visual img {
    max-width: 100% !important;
    width: 100% !important;
    transform: none !important;
    margin: 0 !important;
  }
  .mock-browser {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
    border-radius: 12px;
  }

  /* ─── 갤러리 ─── */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
    gap: 10px;
  }
  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gallery-item:nth-child(1) { grid-column: span 2; }

  /* ─── 인증 페이지 ─── */
  .auth-card { padding: 28px 20px; }
  .auth-page { padding: 90px 16px 50px; }

  /* ─── 대시보드 ─── */
  .dash-greet { font-size: 24px; }
  .stat-grid { gap: 8px; grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 20px; }
  .dash-grid { grid-template-columns: 1fr; }
  .table th, .table td { padding: 10px 12px; font-size: 13px; }

  /* ─── 푸터 ─── */
  .footer { padding: 48px 0 28px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding-bottom: 28px;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* ─── 챗봇 위젯 (스크린샷에서 본문 가림) ─── */
  .chatbot-toggle,
  #chatbot-toggle,
  .kb-chat-toggle {
    bottom: 16px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
  }

  /* ─── 카운터 인디케이터 (스크린샷의 02/04 잘림) ─── */
  .feature-counter,
  .feature-num strong {
    white-space: nowrap;
  }

  /* ─── 버튼 ─── */
  .btn { font-size: 14px; padding: 10px 18px; }
  .btn-lg { font-size: 15px; padding: 12px 22px; }
  .btn-block { width: 100%; }

  /* ─── 가독성 ─── */
  h1, h2, h3, h4 { word-break: keep-all; }
  p { word-break: keep-all; }
}

/* ─── Small Mobile (≤480px) ─── */
@media (max-width: 480px) {
  .nav-actions .btn-primary {
    padding: 6px 10px;
    font-size: 11px;
  }
  .hero-title { font-size: clamp(28px, 9vw, 40px) !important; }
  .feature-heading { font-size: clamp(22px, 7vw, 28px) !important; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery-item:nth-child(1) { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ─── 가로모드 안전영역 ─── */
@supports (padding: env(safe-area-inset-left)) {
  .container, .nav-wrap, .footer {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ============================================================
   ROY JU — LANDING (Build something beautiful)
   gold · black · cream-white · Fraunces serif
   ============================================================ */
:root{
  --lp-bg:#fdfcf9; --lp-surface:#ffffff;
  --lp-ink:#141210; --lp-ink2:#56514a; --lp-ink3:#938d83;
  --lp-line:#eceae3; --lp-line2:#f5f3ec;
  --lp-gold:#b8975a; --lp-gold-deep:#8e7536; --lp-gold-soft:#f4efe1;
  --lp-serif:'Noto Sans','Noto Sans KR','Noto Sans JP',sans-serif;
  --lp-sans:'Noto Sans','Noto Sans KR','Noto Sans JP',-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
}
.lp *{box-sizing:border-box}
.lp{font-family:var(--lp-sans);color:var(--lp-ink);background:var(--lp-bg);-webkit-font-smoothing:antialiased;letter-spacing:-.011em;overflow-x:hidden}
.lp-wrap{max-width:1280px;margin:0 auto;padding:0 36px}
.lp h1,.lp h2,.lp h3,.lp .serif{font-family:var(--lp-serif)}
.lp .ital{font-style:normal;color:inherit}
.lp a{color:inherit;text-decoration:none}

/* NAV */
.lp-nav-wrap{position:sticky;top:0;z-index:50;background:rgba(253,251,246,.82);backdrop-filter:saturate(180%) blur(16px);border-bottom:1px solid var(--lp-line2)}
.lp-nav{max-width:1280px;margin:0 auto;padding:15px 36px;display:flex;align-items:center;gap:26px}
.lp-nav .logo img{height:30px;width:auto;display:block}
.lp-nav-links{display:flex;gap:4px;margin-left:14px;margin-right:auto}
.lp-nav-links a{padding:8px 13px;font-size:14.5px;font-weight:500;color:var(--lp-ink2);border-radius:8px}
.lp-nav-links a:hover{color:var(--lp-ink);background:var(--lp-gold-soft)}
.lp-nav-right{display:flex;align-items:center;gap:12px}
.lp-lang{display:flex;background:#f1ece2;border-radius:99px;padding:3px}
.lp-lang a{padding:5px 11px;font-size:12.5px;font-weight:600;color:var(--lp-ink3);border-radius:99px}
.lp-lang a.active{background:#fff;color:var(--lp-ink);box-shadow:0 1px 2px rgba(0,0,0,.06)}
.lp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:inherit;font-weight:600;font-size:14.5px;border-radius:99px;padding:11px 20px;cursor:pointer;transition:.2s;border:1px solid transparent;white-space:nowrap}
.lp-btn-ghost{color:var(--lp-ink2)}.lp-btn-ghost:hover{color:var(--lp-ink)}
.lp-btn-dark{background:var(--lp-ink);color:#fff}.lp-btn-dark:hover{background:#000;transform:translateY(-1px);box-shadow:0 10px 24px -10px rgba(0,0,0,.35)}
.lp-btn-gold{background:var(--lp-gold);color:#1c1710}.lp-btn-gold:hover{background:#a98a4a;transform:translateY(-1px);box-shadow:0 8px 22px -10px rgba(142,117,54,.55)}
.lp-btn-line{background:#fff;border-color:var(--lp-line);color:var(--lp-ink)}.lp-btn-line:hover{border-color:var(--lp-gold)}
.lp-btn-lg{padding:14px 26px;font-size:15.5px}
.lp-mtoggle{display:none}

/* HERO */
.lp-hero{text-align:center;padding:74px 0 60px;position:relative}
.lp-pill{display:inline-flex;align-items:center;gap:8px;padding:6px 16px;border:1px solid var(--lp-line);background:#fff;border-radius:99px;font-size:13px;font-weight:500;color:var(--lp-ink2);margin-bottom:26px}
.lp-pill b{color:var(--lp-gold-deep);font-weight:700}
.lp-h1{font-size:clamp(42px,6.2vw,80px);line-height:1.06;font-weight:700;letter-spacing:-.04em;margin:0 auto 22px;max-width:15ch}
.lp-lede{font-size:clamp(17px,1.5vw,20px);line-height:1.6;color:var(--lp-ink2);max-width:60ch;margin:0 auto 34px}
.lp-prompt{max-width:760px;margin:0 auto;background:#fff;border:1px solid var(--lp-line);border-radius:20px;box-shadow:0 24px 60px -34px rgba(20,18,16,.22);padding:8px;text-align:left}
.lp-prompt-tabs{display:flex;gap:0;width:fit-content;margin:6px auto 6px;background:#f3eee4;border-radius:11px;padding:4px}
.lp-tab{display:inline-flex;align-items:center;gap:7px;padding:8px 15px;font-size:13px;font-weight:500;color:var(--lp-ink3);border:0;background:transparent;border-radius:8px;cursor:pointer;font-family:inherit}
.lp-tab.active{background:#fff;color:var(--lp-ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.lp-ta{width:100%;border:0;outline:0;background:none;resize:none;min-height:78px;padding:12px 14px;font-size:16.5px;font-family:inherit;color:var(--lp-ink)}
.lp-prompt-foot{display:flex;align-items:center;justify-content:space-between;padding:4px 8px 6px 14px}
.lp-ready{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:var(--lp-ink3)}
.lp-ready i{width:7px;height:7px;border-radius:50%;background:var(--lp-gold);display:inline-block}
.lp-send{width:42px;height:42px;border-radius:50%;background:var(--lp-ink);color:#fff;border:0;display:grid;place-items:center;cursor:pointer;transition:.2s}
.lp-send:hover{background:var(--lp-gold-deep);transform:translateY(-1px)}
.lp-try{margin-top:22px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center}
.lp-try-label{font-size:13px;color:var(--lp-ink3);font-weight:500}
.lp-chip{padding:8px 14px;background:#fff;border:1px solid var(--lp-line);border-radius:99px;font-size:13px;font-weight:500;color:var(--lp-ink2);cursor:pointer;transition:.18s;font-family:inherit}
.lp-chip:hover{border-color:var(--lp-gold);color:var(--lp-gold-deep);transform:translateY(-1px)}

/* SECTION SHELL */
.lp-sec{padding:84px 0}
.lp-eyebrow{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.18em;color:var(--lp-gold-deep);margin-bottom:16px}
.lp-h2{font-size:clamp(28px,3.3vw,42px);font-weight:700;letter-spacing:-.035em;line-height:1.12;margin:0 0 14px}
.lp-sub{font-size:17px;color:var(--lp-ink2);line-height:1.6;max-width:60ch}
.lp-sec-head{text-align:center;max-width:680px;margin:0 auto 48px}
.lp-sec-head .lp-sub{margin:0 auto}

/* STEPS */
.lp-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.lp-step{padding:34px 30px;background:#fff;border:1px solid var(--lp-line);border-radius:16px}
.lp-step-n{font-size:15px;font-weight:600;letter-spacing:.18em;color:var(--lp-gold-deep);line-height:1;margin-bottom:20px;display:inline-block;border-bottom:1px solid var(--lp-gold-soft);padding-bottom:10px}
.lp-step h3{font-size:21px;font-weight:600;margin:0 0 8px;letter-spacing:-.01em}
.lp-step p{color:var(--lp-ink2);font-size:15px;line-height:1.6}

/* TEMPLATES */
.lp-tpl-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.lp-tpl{background:#fff;border:1px solid var(--lp-line);border-radius:16px;overflow:hidden;transition:.3s}
.lp-tpl:hover{transform:translateY(-4px);box-shadow:0 22px 50px -24px rgba(60,45,20,.3);border-color:var(--lp-gold-soft)}
.lp-tpl img{width:100%;height:auto;display:block;border-bottom:1px solid var(--lp-line2)}
.lp-tpl-meta{padding:15px 17px}
.lp-tpl-meta h3{font-family:var(--lp-sans);font-size:15.5px;font-weight:700;margin:0 0 3px}
.lp-tpl-meta p{font-size:13px;color:var(--lp-ink3)}

/* FEATURE ROWS */
.lp-feat{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;padding:64px 0}
.lp-feat.rev .lp-feat-text{order:2}
.lp-feat-text .lp-cta-link{display:inline-flex;align-items:center;gap:7px;margin-top:20px;font-weight:600;color:var(--lp-gold-deep);font-size:15px}
.lp-feat-text .lp-cta-link:hover{gap:11px}
.lp-feat-visual{background:#fff;border:1px solid var(--lp-line);border-radius:20px;padding:26px;box-shadow:0 24px 56px -28px rgba(60,45,20,.22);min-height:260px;display:flex;flex-direction:column;justify-content:center}
.lp-stats{display:flex;gap:14px}
.lp-stat{flex:1;background:var(--lp-bg);border:1px solid var(--lp-line);border-radius:14px;padding:20px 16px;text-align:center}
.lp-stat b{display:block;font-size:32px;font-weight:700;letter-spacing:-.02em;color:var(--lp-ink)}
.lp-stat span{font-size:12.5px;color:var(--lp-ink3)}
.lp-feat-imgs{display:flex;gap:14px}
.lp-feat-imgs img{width:50%;border-radius:12px;border:1px solid var(--lp-line)}
.lp-bubble{padding:13px 16px;border-radius:14px;font-size:14px;line-height:1.5;margin-bottom:12px;max-width:88%}
.lp-bubble.user{background:var(--lp-ink);color:#fff;margin-left:auto;border-bottom-right-radius:4px}
.lp-bubble.ai{background:var(--lp-gold-soft);color:#4a3c1c;border-bottom-left-radius:4px}
.lp-bubble.ai a{color:var(--lp-gold-deep);font-weight:600}

/* PRICING */
.lp-price-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;align-items:stretch}
.lp-plan{background:#fff;border:1px solid var(--lp-line);border-radius:20px;padding:32px 28px;display:flex;flex-direction:column}
.lp-plan.pop{background:var(--lp-ink);color:#fff;border-color:var(--lp-ink);transform:scale(1.03)}
.lp-plan.pop .lp-plan-name,.lp-plan.pop .lp-price,.lp-plan.pop li{color:#fff}
.lp-plan.pop .lp-plan-desc,.lp-plan.pop .lp-price small{color:#bdb3a4}
.lp-badge{align-self:flex-start;background:var(--lp-gold);color:#1a1408;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:4px 11px;border-radius:99px;margin-bottom:14px}
.lp-plan-name{font-size:20px;font-weight:700;margin-bottom:6px}
.lp-plan-desc{font-size:13.5px;color:var(--lp-ink3);line-height:1.5;margin-bottom:18px;min-height:38px}
.lp-price{font-size:42px;font-weight:700;letter-spacing:-.03em;margin-bottom:20px;line-height:1}
.lp-price small{font-family:var(--lp-sans);font-size:15px;color:var(--lp-ink3);font-weight:500}
.lp-plan .lp-btn{width:100%;margin-bottom:22px}
.lp-plan ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:11px}
.lp-plan li{font-size:14px;color:var(--lp-ink2);display:flex;gap:10px;align-items:flex-start}
.lp-plan li::before{content:"";flex:0 0 16px;height:16px;margin-top:1px;border-radius:50%;background:var(--lp-gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.3 4.8-5' stroke='%239c7c3c' stroke-width='1.7' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat}
.lp-plan.pop li::before{background-color:rgba(255,255,255,.14)}
.lp-price-note{text-align:center;margin-top:28px;font-size:13.5px;color:var(--lp-ink3)}

/* FAQ */
.lp-faq{max-width:760px;margin:0 auto}
.lp-faq-item{border-bottom:1px solid var(--lp-line)}
.lp-faq-q{width:100%;text-align:left;background:none;border:0;padding:22px 4px;font-family:inherit;font-size:17px;font-weight:600;color:var(--lp-ink);cursor:pointer;display:flex;justify-content:space-between;gap:16px;align-items:center}
.lp-faq-q span.ic{color:var(--lp-gold-deep);font-size:22px;flex:0 0 auto;transition:.2s}
.lp-faq-item.open .lp-faq-q span.ic{transform:rotate(45deg)}
.lp-faq-a{max-height:0;overflow:hidden;transition:max-height .3s ease}
.lp-faq-a div{padding:0 4px 22px;color:var(--lp-ink2);font-size:15px;line-height:1.65}
.lp-faq-item.open .lp-faq-a{max-height:340px}

/* CTA */
.lp-cta{text-align:center;background:var(--lp-ink);color:#fff;border-radius:28px;padding:74px 32px;margin:40px 0}
.lp-cta h2{color:#fff;font-size:clamp(30px,3.6vw,46px);font-weight:700;letter-spacing:-.035em}
.lp-cta p{color:#c9bfb0;font-size:18px;margin:14px auto 30px;max-width:46ch}
.lp-cta-btns{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}

/* RESPONSIVE */
@media(max-width:980px){
  .lp-feat{grid-template-columns:1fr;gap:32px;padding:44px 0}
  .lp-feat.rev .lp-feat-text{order:0}
  .lp-tpl-grid{grid-template-columns:repeat(2,1fr)}
  .lp-price-grid{grid-template-columns:1fr;max-width:440px;margin:0 auto}
  .lp-plan.pop{transform:none}
}
@media(max-width:760px){
  .lp-nav-links{display:none}
  .lp-wrap,.lp-nav{padding-left:20px;padding-right:20px}
  .lp-steps{grid-template-columns:1fr;gap:16px}
  .lp-sec{padding:56px 0}
}
@media(max-width:480px){
  .lp-tpl-grid{grid-template-columns:1fr 1fr}
  .lp-nav-right .lp-btn-ghost{display:none}
}

/* ============================================================
   .lp scope overrides for the EXISTING header nav + prompt form
   (specificity .lp .x beats index.php inline .x — no !important)
   ============================================================ */
.lp .nav-wrap{position:sticky;top:0;z-index:100;margin:0;padding:0;background:rgba(253,251,246,.82);backdrop-filter:saturate(180%) blur(16px);-webkit-backdrop-filter:saturate(180%) blur(16px);border:0;border-bottom:1px solid var(--lp-line2);box-shadow:none;border-radius:0}
.lp .nav{max-width:1280px;margin:0 auto;padding:14px 36px;background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;gap:24px;flex-wrap:nowrap;white-space:nowrap}
.lp .nav:hover{box-shadow:none}
.lp .logo-img{width:138px}
.lp .nav-links{margin-left:10px;margin-right:auto;gap:2px}
.lp .nav-links a{padding:8px 13px;font-size:14.5px;color:var(--lp-ink2);border-radius:8px}
.lp .nav-links a:hover{color:var(--lp-ink);background:var(--lp-gold-soft)}
.lp .lang-switch{background:#f1ece2}
.lp .lang-switch a.active{background:#fff;color:var(--lp-ink)}
.lp .btn-primary{background:var(--lp-ink);border-color:var(--lp-ink);color:#fff}
.lp .btn-primary:hover{background:#000}

/* hero */
.lp .hero{text-align:center;padding:74px 0 60px;display:block}
.lp .hero > .container{max-width:1140px;padding:0 36px}
.lp .hero-pill{display:inline-flex;align-items:center;gap:8px;padding:6px 16px;border:1px solid var(--lp-line);background:#fff;border-radius:99px;font-size:13px;font-weight:500;color:var(--lp-ink2);margin:0 auto 26px;box-shadow:none}
.lp .hero-pill-tag{background:none;color:var(--lp-gold-deep);font-weight:700;font-size:11px;padding:0;text-transform:uppercase;letter-spacing:.12em}
.lp .hero-pill svg{color:var(--lp-ink3)}
.lp .hero-title{font-size:clamp(42px,6.2vw,80px);line-height:1.06;font-weight:700;letter-spacing:-.04em;margin:0 auto 22px;max-width:16ch;color:var(--lp-ink)}
.lp .hero-title .ital{font-style:normal;color:inherit}
.lp .hero-sub{font-size:clamp(17px,1.5vw,20px);line-height:1.6;color:var(--lp-ink2);max-width:58ch;margin:0 auto 34px}

/* prompt card */
.lp .prompt-wrap{max-width:760px;margin:0 auto 4px}
.lp .prompt-box{background:#fff;border:1px solid var(--lp-line);border-radius:20px;box-shadow:0 24px 60px -34px rgba(20,18,16,.22);padding:8px}
.lp .prompt-box:focus-within{border-color:var(--lp-gold);box-shadow:0 0 0 4px var(--lp-gold-soft),0 30px 70px -24px rgba(60,45,20,.3)}
.lp .prompt-tabs{background:#f3eee4;margin:6px auto 6px;border-radius:11px}
.lp .prompt-tab.active{background:#fff;color:var(--lp-ink)}
.lp .prompt-textarea{font-size:16.5px;color:var(--lp-ink);padding:12px 14px;min-height:78px}
.lp .btn-generate{background:var(--lp-ink);border-radius:50%}
.lp .btn-generate:hover{background:var(--lp-gold-deep)}
.lp .prompt-meta-pill{color:var(--lp-ink3)}

/* try chips */
.lp .ex-prompts{max-width:840px;margin:22px auto 0;text-align:center}
.lp .ex-prompts-label{color:var(--lp-ink3);font-weight:500;font-size:13px;margin-bottom:11px}
.lp .ex-prompt-chip{background:#fff;border:1px solid var(--lp-line);color:var(--lp-ink2);border-radius:99px;font-size:13px}
.lp .ex-prompt-chip:hover{border-color:var(--lp-gold);color:var(--lp-gold-deep)}
.lp .ex-prompt-spark{color:var(--lp-gold)}

/* faq (reuse existing .faq-* hooks for JS) */
.lp .faq-section{padding:84px 0}
.lp .faq-list{max-width:760px;margin:0 auto}
.lp .faq-title{font-family:var(--lp-serif)!important;font-size:clamp(30px,3.6vw,46px);font-weight:500;text-align:center;margin-bottom:40px}
.lp .faq-item{border-bottom:1px solid var(--lp-line);background:none;border-radius:0;margin:0}
.lp .faq-q{padding:22px 4px;font-size:17px;font-weight:600;color:var(--lp-ink)}
.lp .faq-q-icon{color:var(--lp-gold-deep)}
.lp .faq-a-inner{color:var(--lp-ink2);font-size:15px;line-height:1.65;padding:0 4px 22px}

/* ===== ROY JU first-purchase discount (landing pricing) ===== */
.lp-fd{margin:10px 0 6px;padding:12px 14px;border:1px solid var(--gold,#b8975a);border-radius:12px;background:var(--gold-soft,#f4efe1)}
.lp-fd-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.lp-fd-eye{font-size:12px;font-weight:600;color:#8e7536}
.lp-fd-pct{font-size:12px;font-weight:800;color:#fff;background:var(--gold-deep,#8e7536);padding:2px 9px;border-radius:99px;white-space:nowrap}
.lp-fd-row{display:flex;align-items:baseline;gap:10px}
.lp-fd-amt{font-size:24px;font-weight:800;color:#0a0a0a}
.lp-fd-strike{font-size:15px;color:#9a8f7d;text-decoration:line-through}
.lp-fd-after{margin-top:4px;font-size:11.5px;color:#8a8170}

/* ===== 408 pricing CSS preserved for pricing.php ===== */
/* 큰 텍스트는 모두 화면 폭에 맞춰 줄바꿈 */
h1, h2, h3, h4, .hero-title, .section-title, .features-title, .pricing-title, .faq-title {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: keep-all;
}
/* ====================================================
   PRICING SECTION
   ==================================================== */
.pricing-section {
  padding: 120px 0;
  text-align: center;
}
.pricing-title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}
html[lang="ko"] .pricing-title,
html[lang="ja"] .pricing-title {
  font-size: clamp(28px, 4.2vw, 52px);
  letter-spacing: -0.025em;
}
.pricing-sub {
  font-size: 18px;
  color: var(--ink-2);
  margin-bottom: 56px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.plan {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  position: relative;
  transition: all 0.3s var(--ease);
  text-align: left;
}
.plan:hover {
  border-color: var(--ink-5);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.plan.featured {
  background: linear-gradient(180deg, #fff4eb 0%, white 100%);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-md);
}
.plan.current {
  background: linear-gradient(180deg, #f0fdf4 0%, white 100%);
  border: 2px solid #16a34a;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.15);
  position: relative;
}
.plan.current.featured {
  background: linear-gradient(180deg, #f0fdf4 0%, #fff4eb 100%);
  border: 2px solid #16a34a;
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--r-full);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.plan-price {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 4px;
}
.plan-price .currency {
  font-size: 22px;
  vertical-align: super;
  font-weight: 500;
  color: var(--ink-3);
}
.plan-period {
  color: var(--ink-3);
  font-size: 14px;
  margin-bottom: 28px;
}
/* 첫 구독 할인 표시 — 크고 또렷하게 (네이비 톤, 빨강 미사용) */
.plan-first-discount {
  margin: 8px 0 24px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  line-height: 1.3;
}
.plan-first-discount .pfd-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 6px;
}
.plan-first-discount .pfd-eyebrow {
  font-size: 12px; font-weight: 700; color: #475569; letter-spacing: -0.01em;
}
.plan-first-discount .pfd-pct {
  display: inline-block;
  padding: 3px 10px;
  background: #1e3a5f; color: #fff;
  font-size: 12px; font-weight: 800;
  border-radius: 999px; letter-spacing: 0.02em; line-height: 1.4;
}
.plan-first-discount .pfd-amount-row {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px;
}
.plan-first-discount .pfd-amt {
  font-size: 32px; font-weight: 900; color: #0f172a;
  letter-spacing: -0.03em; line-height: 1;
}
.plan-first-discount .pfd-strike {
  font-size: 14px; color: #94a3b8;
  text-decoration: line-through; text-decoration-thickness: 1.5px;
  font-weight: 600;
}
.plan-first-discount .pfd-after {
  font-size: 11.5px; color: #64748b; font-weight: 500;
}
.plan-first-discount { padding: 12px 14px; margin-bottom: 20px; }
.plan-first-discount .pfd-amt { font-size: 26px; }
.plan-first-discount .pfd-strike { font-size: 13px; }
.plan-first-discount .pfd-pct { font-size: 11px; padding: 2px 8px; }
.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  word-break: keep-all;
}
.plan-features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" fill="none"><path d="M3 9l4 4 8-8" stroke="%2316a34a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 2px;
}
.pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
/* ─── Feature 섹션 (스크린샷의 문제!) ─── */
  .features-section,
  .gallery-section,
  .pricing-section,
  .faq-section,
  .cta-section { padding: 50px 0; }
