/* ========== 스크롤바: 평소 숨김, 스크롤 중만 표시 ========== */
* {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

*::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 0;
}

*::-webkit-scrollbar-button {
  display: none !important;
  width: 0;
  height: 0;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

.is-scrolling {
  scrollbar-color: rgba(26, 26, 26, 0.22) transparent;
}

.is-scrolling::-webkit-scrollbar-thumb {
  background: rgba(26, 26, 26, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

:root {
  color-scheme: light;
  --paper: #e8e8e4;
  --paper-deep: #ddddd8;
  --surface: #f0f0ec;
  --border: #c4c4be;
  --ink: #1a1a1a;
  --ink-soft: #3a3a38;
  --muted: #6b6b66;
  --rule: rgba(26, 26, 26, 0.14);
  --text: var(--ink);
  --accent: var(--ink);
  --accent-deep: var(--ink);
  --accent-soft: rgba(26, 26, 26, 0.06);
  --link: var(--ink);
  --btn-hover-bg: rgba(26, 26, 26, 0.05);
  --error: #8a2f2f;
  --success: #2f5a3a;
  --text-white: #f2f2ee;
  --font-sans: "Pretendard Variable", Pretendard, -apple-system,
    BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR",
    sans-serif;
  --font-serif: "Gowun Batang", "Noto Serif KR", "Nanum Myeongjo", serif;
  --font-display: "Gowun Batang", "Noto Serif KR", serif;
}

html,
body {
  min-height: 100%;
}

html {
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-serif);
  font-weight: 400;
  background: var(--paper);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  opacity: 0.72;
}

.wrap {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 12px;
  }
}

/* Header */
.nd-header {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  background: rgba(232, 232, 228, 0.92);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-home {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-home:hover {
  text-decoration: none;
  opacity: 1;
  color: inherit;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  display: inline-block;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background-color: var(--ink);
  -webkit-mask: url("/img/logo-mark.png") center / contain no-repeat;
  mask: url("/img/logo-mark.png") center / contain no-repeat;
}

.brand-name {
  /* Latin wordmark: fixed stack so KO/JA/EN page lang does not swap glyphs */
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1;
}

.header-actions,
.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-pricing-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
}

.btn-pricing-nav .icon,
.btn-header-primary .icon,
.btn-header-ghost .icon {
  display: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.btn-pricing-nav:hover,
.btn-pricing-nav.is-active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nd-lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.nd-lang-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nd-lang-btn:hover {
  background: var(--btn-hover-bg);
}

.nd-lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 120px;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  display: none;
  z-index: 30;
}

.nd-lang-switcher.is-open .nd-lang-dropdown {
  display: block;
}

.nd-lang-option {
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
}

.nd-lang-option:hover,
.nd-lang-option.is-active {
  background: var(--accent-soft);
  color: var(--ink);
}

.btn-header-primary,
.btn-header-ghost {
  height: 36px;
  padding: 0 14px;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
}

.btn-header-primary {
  background: var(--ink);
  color: var(--text-white);
  border: 1px solid var(--ink);
}

.btn-header-primary:hover {
  opacity: 0.88;
  text-decoration: none;
}

.btn-header-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-header-ghost:hover {
  background: var(--btn-hover-bg);
  text-decoration: none;
  opacity: 1;
}

.legal-back {
  font-size: 13px;
  font-weight: 500;
  min-height: 36px;
  height: 36px;
  padding: 0 12px;
}

/* Hero — e-ink first viewport */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  padding: 48px 0 64px;
  background: var(--paper);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: transparent;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.hero-bg-slide.is-active {
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-slide {
    will-change: auto;
  }
}

.hero-bg-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(237, 237, 229, 0.88) 0%,
      rgba(237, 237, 229, 0.72) 42%,
      rgba(237, 237, 229, 0.45) 70%,
      rgba(237, 237, 229, 0.28) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(237, 237, 229, 0.2) 0%,
      rgba(237, 237, 229, 0.55) 100%
    );
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% 40%, transparent 40%, rgba(26, 26, 26, 0.04) 100%),
    linear-gradient(to bottom, transparent 0%, rgba(26, 26, 26, 0.03) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 48px;
  align-items: center;
  justify-items: start;
  animation: ink-rise 1.1s ease both;
}

.hero.is-demo-open .hero-grid {
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
}

.hero-copy {
  min-width: 0;
  width: 100%;
  max-width: 480px;
}

.hero-brand {
  display: flex;
  align-items: center;
  margin: 0 0 24px;
  animation: ink-settle 1.4s ease 0.15s both;
}

.hero-brand-mark {
  width: clamp(72px, 18vw, 96px);
  height: clamp(72px, 18vw, 96px);
  min-width: 72px;
  min-height: 72px;
  background-color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-rotate {
  max-width: 480px;
}

.hero-rotate-stage {
  position: relative;
  height: var(--hero-rotate-height, 140px);
  min-height: var(--hero-rotate-height, 140px);
}

.hero-rotate-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.hero-rotate-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-rotate-slide.is-leaving {
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-rotate-slide {
    transition: opacity 1s ease-in-out;
  }
}

.hero-rotate-slide.is-measuring {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.hero-rotate-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 6.5vw, 32px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  margin: 0;
  word-break: keep-all;
}

.hero-rotate-desc {
  display: block;
  max-width: 420px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  margin: 12px 0 0;
  line-height: 1.75;
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  animation: ink-rise 1s ease 0.35s both;
}

.hero-demo {
  width: 100%;
  max-width: none;
  animation: ink-rise 1.1s ease 0.2s both;
}

.hero-demo-panel {
  min-width: 0;
  width: 100%;
  display: none;
}

.hero-demo-panel.is-open {
  display: block;
}

.hero-meong {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(26, 26, 26, 0.03);
}

.hero-meong-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: var(--ink);
  animation: meong-bob 2.8s ease-in-out infinite;
}

.hero-meong-face .icon {
  width: 36px;
  height: 36px;
  display: block;
}

.hero-meong-copy {
  min-width: 0;
}

.hero-meong-name {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.hero-meong-line {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  word-break: keep-all;
}

@keyframes meong-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.btn-cta,
.btn-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-cta {
  background: var(--ink);
  color: var(--text-white);
  border: 1px solid var(--ink);
}

.btn-cta:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  text-decoration: none;
  opacity: 1;
}

.btn-cta-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-cta-ghost:hover {
  background: var(--btn-hover-bg);
  border-color: var(--ink);
  text-decoration: none;
  opacity: 1;
}

@keyframes ink-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ink-settle {
  0% {
    opacity: 0;
    filter: contrast(1.4) brightness(1.08);
  }
  35% {
    opacity: 1;
    filter: contrast(1.15) brightness(1.02);
  }
  100% {
    opacity: 1;
    filter: none;
  }
}

@keyframes eink-refresh {
  0% {
    opacity: 0;
    filter: contrast(1.8) grayscale(1);
  }
  18% {
    opacity: 0.35;
    filter: contrast(2) grayscale(1) invert(0.08);
  }
  40% {
    opacity: 0.85;
    filter: contrast(1.1);
  }
  100% {
    opacity: 1;
    filter: none;
  }
}

/* Essence — three quiet beats */
.essence {
  padding: 64px 0;
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
}

.essence-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}

.essence-list li {
  padding-top: 0;
  border-top: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.essence-doodle {
  display: block;
  width: 120px;
  height: 94px;
  margin-bottom: 18px;
  color: var(--ink);
  opacity: 0.92;
  animation: doodle-settle 1.2s ease both;
}

.essence-list li:nth-child(2) .essence-doodle {
  animation-delay: 0.12s;
}

.essence-list li:nth-child(3) .essence-doodle {
  animation-delay: 0.24s;
}

.essence-doodle img {
  display: block;
  width: 100%;
  height: 100%;
}

.essence-label {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.essence-list p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  word-break: keep-all;
}

@keyframes doodle-settle {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 0.88;
    transform: translateY(0);
  }
}

/* Demo (in hero) */
.demo-frame {
  --demo-line: 1.7;
  --demo-font: 14px;
  --demo-lines: 6;
  --demo-clamp: calc(var(--demo-font) * var(--demo-line) * var(--demo-lines));
  position: relative;
  max-width: 640px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.demo-body {
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
}

.demo-page--styles {
  padding: 14px 0 6px;
  margin: 10px 0 0;
}

.demo-main {
  --demo-label-h: calc(11px * 1.35 + 6px);
  display: flex;
  flex-direction: column;
}

.demo-col {
  min-width: 0;
}

.demo-col--converted {
  margin-top: 4px;
}

.demo-side {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.demo-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  color: var(--muted);
}

.demo-flow-arrow .icon {
  width: 22px;
  height: 22px;
  display: block;
}

.demo-chip {
  padding: 8px 6px;
  border-radius: 0;
  border: 1px solid var(--border);
  background: transparent;
  font: inherit;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.demo-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.demo-chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--text-white);
}

.demo-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
  flex-shrink: 0;
}

.demo-label.accent {
  margin-top: 0;
  color: var(--ink);
}

.demo-text {
  font-family: var(--font-serif);
  font-size: var(--demo-font);
  line-height: var(--demo-line);
  color: var(--text);
  word-break: keep-all;
  margin: 0;
  height: auto;
  max-height: var(--demo-clamp);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
}

.demo-text.converted {
  color: var(--ink);
  font-weight: 700;
  transition: opacity 0.16s ease;
  font-size: var(--demo-font) !important;
  white-space: pre-line;
}

.demo-text.converted.is-style-font,
.style-gallery-converted.is-style-font {
  font-weight: 400;
}

.demo-text.converted.is-style-black-comedy,
.style-gallery-converted.is-style-black-comedy {
  font-family: "Hahmlet", var(--font-serif);
  font-weight: 600;
}

.demo-text.converted.is-style-historical,
.style-gallery-converted.is-style-historical {
  font-family: "Noto Serif KR", var(--font-serif);
  letter-spacing: 0.01em;
}

.demo-text.converted.is-style-hanja-couplet,
.style-gallery-converted.is-style-hanja-couplet {
  font-family: "Noto Serif KR", "Gowun Batang", var(--font-serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.75;
  color: #111;
  white-space: pre-wrap;
  -webkit-font-smoothing: antialiased;
}

.demo-text.converted.is-style-documentary,
.style-gallery-converted.is-style-documentary {
  font-family: "Noto Sans KR", var(--font-sans);
  letter-spacing: -0.02em;
}

.demo-text.converted.is-style-interview,
.style-gallery-converted.is-style-interview {
  font-family: "Noto Sans KR", var(--font-sans);
  letter-spacing: -0.01em;
  line-height: 1.8;
  white-space: pre-wrap;
}

.demo-text.converted.is-style-light-novel,
.style-gallery-converted.is-style-light-novel {
  font-family: "Gaegu", sans-serif;
}

.demo-text.converted.is-style-dawn-mood,
.style-gallery-converted.is-style-dawn-mood {
  font-family: "Gowun Batang", "Noto Serif KR", var(--font-serif);
  letter-spacing: 0.01em;
  line-height: 1.85;
}

.demo-text.converted.is-style-pokemon,
.style-gallery-converted.is-style-pokemon {
  font-family: "NeoDunggeunmo", "DungGeunMo", var(--font-serif);
  letter-spacing: 0.02em;
}

.demo-text.converted.is-style-vertical-poem,
.style-gallery-converted.is-style-vertical-poem {
  font-family: "Noto Serif KR", var(--font-serif);
  letter-spacing: 0;
  line-height: 1;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  display: block;
  -webkit-box-orient: unset;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  white-space: normal;
  height: auto;
  max-height: none;
  min-height: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  text-align: start;
  background-image: none;
  padding: 2px 0;
  box-sizing: border-box;
}

.demo-text.converted.is-style-vertical-poem .wongoji,
.style-gallery-converted.is-style-vertical-poem .wongoji {
  --wongoji-cell: 24px;
  --wongoji-border: rgba(26, 26, 26, 0.1);
  height: auto;
  max-height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.demo-text.converted.is-style-vertical-poem .wongoji-sheet,
.style-gallery-converted.is-style-vertical-poem .wongoji-sheet {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  height: auto;
  overflow: visible;
  padding: 0;
}

.demo-text.converted.is-style-vertical-poem .wongoji-col,
.style-gallery-converted.is-style-vertical-poem .wongoji-col {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  height: auto;
  border: none;
  border-left: 1px solid var(--wongoji-border);
}

.demo-text.converted.is-style-vertical-poem .wongoji-cell,
.style-gallery-converted.is-style-vertical-poem .wongoji-cell {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: var(--wongoji-cell);
  height: var(--wongoji-cell);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-family: "Noto Serif KR", var(--font-serif);
  font-size: calc(var(--wongoji-cell) * 0.72);
  line-height: 1;
  color: var(--ink);
  background: transparent;
}

.style-gallery-converted.is-style-vertical-poem .wongoji-cell {
  font-size: calc(var(--wongoji-cell) * 0.78);
}

.demo-text.converted.is-style-vertical-poem .wongoji-cell.is-blank,
.style-gallery-converted.is-style-vertical-poem .wongoji-cell.is-blank {
  color: transparent;
}

.demo-text.converted.is-style-vertical-poem .wongoji-gap,
.style-gallery-converted.is-style-vertical-poem .wongoji-gap {
  flex: 0 0 10px;
  width: 10px;
}

.demo-text.converted.is-switching {
  opacity: 0;
}

/* CTA */
.cta-section {
  padding: 72px 0;
  text-align: center;
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
}

/* Sell / pricing overview (Paddle review clarity) */
.sell-section {
  padding: 64px 0;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.sell-section .wrap {
  max-width: 560px;
}

.sell-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.35;
  word-break: keep-all;
}

.sell-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 20px;
  word-break: keep-all;
}

.sell-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}

.sell-list li {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  padding-left: 1.1em;
  position: relative;
  word-break: keep-all;
}

.sell-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.sell-note {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 8px;
  word-break: keep-all;
}

.btn-sell {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  border-radius: 2px;
  transition: opacity 0.15s ease;
}

.btn-sell:hover {
  opacity: 0.88;
}

.cta-section .wrap {
  max-width: 480px;
}

/* Style gallery — pick one style, compare original | converted */
.style-gallery {
  padding: 72px 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.style-gallery-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.35;
  text-align: center;
}

.style-gallery-desc {
  margin: 0 auto 28px;
  max-width: 36em;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  word-break: keep-all;
}

.style-gallery-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 24px;
  max-width: 860px;
}

.style-gallery-chip {
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.style-gallery-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.style-gallery-chip.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.style-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

.style-compare-col {
  min-width: 0;
  border: 1px solid var(--rule);
  padding: 16px 18px 18px;
}

.style-compare-col--converted {
  border-color: var(--ink);
}

.style-gallery-label {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.style-gallery-label.accent {
  color: var(--ink);
}

.style-gallery-text {
  margin: 0;
  font-family: var(--font-serif, "Gowun Batang", serif);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.style-gallery-converted.is-style-font {
  font-weight: 400;
}

@media (max-width: 720px) {
  .style-compare {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
  line-height: 1.4;
  word-break: keep-all;
}

.cta-note {
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
}

.cta-note a {
  font-weight: 600;
}

/* Ideas */
.ideas-section {
  padding: 72px 0;
  text-align: center;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.ideas-section .wrap {
  max-width: 520px;
}

.ideas-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.4;
  word-break: keep-all;
}

.ideas-desc {
  margin: 0 auto 28px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  word-break: keep-all;
}

.ideas-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.ideas-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ideas-field span {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.ideas-field input,
.ideas-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.15s;
}

.ideas-field input:focus,
.ideas-field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.ideas-field textarea {
  min-height: 120px;
  resize: vertical;
}

.ideas-message {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
}

.ideas-message.is-success {
  color: var(--success);
  background: rgba(47, 90, 58, 0.08);
  border-color: rgba(47, 90, 58, 0.28);
}

.ideas-message.is-error {
  color: var(--error);
  background: rgba(138, 47, 47, 0.08);
  border-color: rgba(138, 47, 47, 0.28);
}

.btn-ideas-submit {
  align-self: center;
  padding: 12px 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-ideas-submit:hover:not(:disabled) {
  background: transparent;
  color: var(--ink);
}

.btn-ideas-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Footer — still quiet, e-ink dark */
.nd-footer {
  background: #1a1a1a;
  color: rgba(242, 242, 238, 0.62);
  padding: 40px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  align-items: start;
  margin-bottom: 28px;
}

.footer-heading {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #f2f2ee;
  letter-spacing: 0.04em;
}

.footer-line {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(242, 242, 238, 0.55);
}

.footer-line--muted {
  color: rgba(242, 242, 238, 0.38);
  margin-bottom: 14px;
}

.footer-line a {
  color: rgba(242, 242, 238, 0.72);
  text-decoration: none;
}

.footer-line a:hover {
  color: #f2f2ee;
  opacity: 1;
}

.footer-policy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-policy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 0;
  border: 1px solid rgba(242, 242, 238, 0.18);
  background: transparent;
  color: rgba(242, 242, 238, 0.75);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.footer-policy-btn:hover {
  border-color: rgba(242, 242, 238, 0.4);
  color: #f2f2ee;
  text-decoration: none;
  opacity: 1;
}

.footer-copy {
  padding-top: 18px;
  border-top: 1px solid rgba(242, 242, 238, 0.1);
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(242, 242, 238, 0.35);
}

.nd-footer .footer-copy:only-child {
  border-top: none;
  padding-top: 0;
}

/* Legal pages */
body.legal-doc {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.65;
}

body.legal-doc .brand-name {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-page {
  padding: 40px 0 80px;
  min-height: 60vh;
  background: var(--paper);
}

.legal-inner {
  max-width: 720px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 0;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--ink);
  border-color: var(--ink);
  text-decoration: none;
  opacity: 1;
}

.legal-nav a.is-active {
  color: var(--text-white);
  background: var(--ink);
  border-color: var(--ink);
}

.legal-inner h1 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.legal-updated {
  margin: 0 0 28px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.legal-body h2 {
  margin: 36px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.legal-body h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-body h3 {
  margin: 18px 0 8px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.legal-body p,
.legal-body li {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: var(--text);
}

.legal-body p {
  margin: 0 0 12px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 14px;
  padding-left: 1.25em;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body li ul {
  margin-top: 8px;
  margin-bottom: 4px;
}

.legal-body strong {
  font-weight: 700;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: var(--text-white);
  padding: 12px 18px;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10050;
  max-width: min(90vw, 420px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  background: var(--error);
}

.toast.success {
  background: var(--success);
}

@media (max-width: 900px) {
  .hero {
    min-height: calc(200dvh - 65px);
    padding: 0;
    display: block;
    overflow: visible;
    background: transparent;
  }

  /* 스크롤해도 뷰포트에 고정 — 창 높이만큼, 초점은 약간 우측 */
  .hero-bg,
  .hero-bg-scrim,
  .hero-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 0;
  }

  .hero-bg-slide {
    background-position: 68% center;
  }

  /* 히어로가 화면에서 완전히 벗어나면 고정 배경 숨김 */
  .hero.is-bg-retired .hero-bg,
  .hero.is-bg-retired .hero-bg-scrim,
  .hero.is-bg-retired .hero-grain {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .hero-grid,
  .hero.is-demo-open .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
    justify-items: stretch;
    position: relative;
    z-index: 1;
  }

  /* 상단 1화면: 카피 / 하단 1화면: 예시 → 전체 약 2배 높이 */
  .hero-copy {
    max-width: none;
    width: 100%;
    height: calc(100svh - 65px);
    height: calc(100dvh - 65px);
    min-height: calc(100svh - 65px);
    min-height: calc(100dvh - 65px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 12px 36px;
    box-sizing: border-box;
  }

  .hero-demo-panel,
  .hero-demo-panel.is-open {
    display: flex !important;
    width: 100%;
    max-width: none;
    height: calc(100svh - 65px);
    height: calc(100dvh - 65px);
    min-height: calc(100svh - 65px);
    min-height: calc(100dvh - 65px);
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding: 24px 0 32px;
    visibility: visible !important;
  }

  .hero-demo {
    width: 100%;
    margin: 0;
    max-height: calc(100svh - 65px - 56px);
    max-height: calc(100dvh - 65px - 56px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .essence,
  .sell-section,
  .cta-section,
  .ideas-section,
  .style-gallery,
  .nd-footer {
    position: relative;
    z-index: 2;
  }

  .essence-list {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .essence-doodle {
    width: 96px;
    height: 80px;
  }

  .essence,
  .sell-section,
  .cta-section,
  .ideas-section,
  .style-gallery {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .nd-header {
    padding: 8px 0;
  }

  /* 소개 텍스트 좌우 여백 확대 (박스형 UI는 제외) */
  .hero-copy {
    padding-left: 14px;
    padding-right: 14px;
  }

  .essence .wrap,
  .sell-section .wrap,
  .cta-section .wrap,
  .style-gallery .wrap,
  .nd-footer .wrap {
    padding-left: 22px;
    padding-right: 22px;
  }

  .ideas-title,
  .ideas-desc {
    margin-left: 10px;
    margin-right: 10px;
  }

  .hero-actions {
    width: 100%;
  }

  .btn-cta,
  .btn-cta-ghost {
    width: 100%;
  }

  .header-inner {
    gap: 8px;
  }

  .header-actions,
  .header-user {
    gap: 4px;
    flex-wrap: nowrap;
  }

  .brand-lockup {
    gap: 6px;
  }

  .nd-header .brand-mark {
    width: 24px;
    height: 24px;
  }

  .hero-brand-mark {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
  }

  .hero-rotate-title {
    font-size: 24px;
  }

  .hero-rotate-desc {
    font-size: 14px;
  }

  .demo-frame {
    --demo-font: 13px;
  }

  .brand-name {
    font-size: 15px;
  }

  .nd-lang-btn {
    width: 34px;
    height: 34px;
  }

  .btn-pricing-nav {
    width: auto;
    min-width: 0;
    height: 34px;
    padding: 0 8px;
  }

  .btn-header-primary,
  .btn-header-ghost {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    gap: 0;
  }

  .btn-header-primary .icon,
  .btn-header-ghost .icon {
    display: block;
    width: 22px;
    height: 22px;
    stroke-width: 2;
  }

  .btn-pricing-nav .icon {
    display: none;
  }

  .btn-pricing-nav .btn-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border: 0;
    font-size: 13px;
  }

  .btn-header-primary .btn-label,
  .btn-header-ghost .btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .btn-pricing-nav:hover,
  .btn-pricing-nav.is-active {
    text-decoration: underline;
    text-underline-offset: 4px;
    background: transparent;
  }

  .demo-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .demo-chip {
    font-size: 11px;
    padding: 8px 4px;
  }
}
