*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "IBM Plex Sans KR", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: #3A3234;
  background: #F6F3F0;
}
.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: -0.02em;
}
a { color: #E8467C; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #F6F3F0, 0 0 0 4px #E8467C;
}
img, video {
  display: block;
  max-width: 100%;
  height: auto;
}
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.ko-line {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: #6F6568;
  line-height: 1.5;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #F6F3F0;
  border-bottom: 1px solid #E4DCD8;
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}
.wordmark {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #1C1416;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.wordmark:hover { text-decoration: none; }
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 100%;
}
@media (max-width: 420px) {
  .nav-links { font-size: 13px; gap: 6px 10px; }
  .nav-links .btn { padding: 0 12px; font-size: 13px; }
}
.nav-links a {
  color: #3A3234;
  text-decoration: none;
}
.nav-links a:hover { color: #E8467C; text-decoration: none; }

/* Typography */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #6F6568;
  margin: 0 0 16px;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 20px;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.18;
  color: #1C1416;
  letter-spacing: 0;
}
@media (min-width: 768px) {
  h1 { font-size: 56px; }
}
.lead {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.6;
  color: #6F6568;
  max-width: 34em;
}
h2 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.28;
  color: #1C1416;
}
.section {
  padding: 64px 0;
  border-top: 1px solid #E4DCD8;
}
.section:first-of-type { border-top: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #FFFFFF;
  background: #E8467C;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
}
.btn:hover {
  background: #d03a6c;
  text-decoration: none;
  color: #FFFFFF;
}
.text-link {
  font-size: 14px;
  font-weight: 500;
  color: #E8467C;
  text-decoration: none;
  margin-left: 16px;
}
.text-link:hover { text-decoration: underline; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
}

/* Hero */
.hero {
  padding: 48px 0 64px;
}
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}
.hero-grid > * {
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 46fr 54fr;
    gap: 32px;
  }
}
.hero-visual {
  max-width: 100%;
}
.hero-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  max-width: 100%;
}
@media (min-width: 900px) {
  .hero-media {
    grid-template-columns: 1fr 1fr;
  }
}
.hero-media > div {
  min-width: 0;
  max-width: 100%;
}
.hero-reel-wrap {
  position: relative;
  background: #FDE8EF;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
}
.hero-reel-wrap .poster-fallback,
.hero-reel-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-reel-wrap .poster-fallback {
  transition: opacity 200ms ease;
}
.hero-reel-wrap.is-playing .poster-fallback {
  opacity: 0;
}
.hero-reel-wrap video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 200ms ease;
}
.hero-reel-wrap.is-playing video { opacity: 1; }
.hero-still {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #FFFCFA;
}
.hero-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-caption {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.4;
  color: #6F6568;
}

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 24px 0 20px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar {
  display: none;
}
.filter-chip {
  flex-shrink: 0;
  font-family: "IBM Plex Sans KR", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid #E4DCD8;
  border-radius: 6px;
  background: #FFFCFA;
  color: #3A3234;
  cursor: pointer;
}
.filter-chip.is-active {
  border-color: #E8467C;
  color: #1C1416;
}
.filter-chip:hover { border-color: #E8467C; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.gallery-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.gallery-tile.is-hidden { display: none; }
.gallery-tile[data-gallery-format="banner"] {
  grid-column: span 2;
}
.tile-media {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #FFFCFA;
}
.gallery-tile[data-gallery-format="product"] .tile-media {
  aspect-ratio: 1 / 1;
}
.gallery-tile[data-gallery-format="feed"] .tile-media {
  aspect-ratio: 4 / 5;
}
.gallery-tile[data-gallery-format="reels"] .tile-media {
  aspect-ratio: 9 / 16;
}
.gallery-tile[data-gallery-format="banner"] .tile-media {
  aspect-ratio: 1.91 / 1;
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile-top,
.tile-label {
  font-size: 12px;
  font-weight: 450;
  line-height: 1.4;
  color: #6F6568;
}
.tile-brief {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #1C1416;
  background: #FFFCFA;
  border-top: 1px solid #E4DCD8;
  transform: translateY(100%);
  transition: transform 180ms ease;
}
.gallery-tile:hover .tile-brief,
.gallery-tile:focus-within .tile-brief {
  transform: translateY(0);
}

/* Steps */
.steps {
  display: grid;
  gap: 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.step-card {
  padding: 20px 0 0;
  border-top: 1px solid #E4DCD8;
}
@media (min-width: 768px) {
  .step-card { padding: 0 16px 0 0; border-top: none; border-left: 1px solid #E4DCD8; }
  .step-card:first-child { border-left: none; padding-left: 0; }
}
.step-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #1C1416;
}
.step-card p { margin: 0; font-size: 16px; }

/* Channels */
.channel-input {
  margin: 16px 0 28px;
  padding: 12px 14px;
  background: #FFFCFA;
  border: 1px solid #E4DCD8;
  border-radius: 8px;
  font-size: 13px;
  color: #3A3234;
}
.channel-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .channel-grid { grid-template-columns: repeat(3, 1fr); }
}
.channel-item h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: #6F6568;
}
.channel-frame {
  border-radius: 8px;
  overflow: hidden;
  background: #FFFCFA;
  border: 1px solid #E4DCD8;
  margin-bottom: 12px;
}
.channel-frame--feed { aspect-ratio: 4 / 5; }
.channel-frame--reel { aspect-ratio: 9 / 16; }
.channel-frame--banner { aspect-ratio: 1200 / 627; }
.channel-frame img,
.channel-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.channel-copy {
  margin: 0 0 6px;
  font-size: 16px;
  color: #1C1416;
}
.copy-note {
  margin: 0;
  font-size: 12px;
  color: #6F6568;
}

/* Pilot */
.limits {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.limits li {
  padding: 10px 0;
  border-bottom: 1px solid #E4DCD8;
  font-size: 16px;
}
.pilot-box {
  margin-top: 28px;
  padding: 20px;
  background: #FFFCFA;
  border: 1px solid #E4DCD8;
  border-radius: 8px;
  max-width: 36em;
}
.pilot-box p { margin: 0 0 10px; }
.pilot-box p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid #E4DCD8;
  font-size: 14px;
  line-height: 1.65;
  color: #6F6568;
}
.site-footer p { margin: 0 0 12px; }
.site-footer a { color: #E8467C; }

/* Legal */
.legal-page main { padding-bottom: 48px; }
.legal-doc {
  max-width: 42em;
  padding: 48px 0;
}
.legal-doc h1 {
  font-size: 32px;
  margin-bottom: 8px;
}
.legal-doc h2 {
  font-size: 20px;
  margin: 32px 0 12px;
}
.legal-doc p,
.legal-doc li {
  font-size: 16px;
  line-height: 1.65;
}
.legal-doc ul {
  margin: 0 0 16px;
  padding-left: 1.25em;
}
.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
.legal-doc th,
.legal-doc td {
  border: 1px solid #E4DCD8;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal-doc th { background: #FFFCFA; }
.legal-summary {
  margin-top: 40px;
  padding: 16px 18px;
  border-left: 3px solid #E8467C;
  background: #FFFCFA;
  font-size: 15px;
  color: #3A3234;
}

/* Pilot app */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.pilot-notice {
  margin-top: 24px;
  padding: 16px 18px;
  background: #FFFCFA;
  border: 1px solid #E4DCD8;
  border-left: 3px solid #E8467C;
  border-radius: 8px;
  font-size: 15px;
  color: #3A3234;
}
.pilot-form {
  margin-top: 8px;
  max-width: 40em;
}
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1C1416;
  margin-bottom: 6px;
}
.field-hint {
  display: block;
  font-size: 12px;
  color: #6F6568;
  margin-bottom: 8px;
}
.form-field input[type="file"],
.form-field textarea,
.form-field select {
  width: 100%;
  font-family: "IBM Plex Sans KR", system-ui, sans-serif;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid #E4DCD8;
  border-radius: 8px;
  background: #FFFCFA;
  color: #3A3234;
}
.form-field textarea {
  resize: vertical;
  min-height: 56px;
}
@media (min-width: 600px) {
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .form-field:first-child,
  .form-field:nth-child(2),
  .form-actions {
    grid-column: 1 / -1;
  }
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.status-line {
  margin: 0;
  font-size: 13px;
  color: #6F6568;
}
.status-line.is-error {
  color: #b42318;
}
.btn-secondary {
  background: #FFFCFA;
  color: #E8467C;
  border: 1px solid #E8467C;
}
.btn-secondary:hover {
  background: #FDE8EF;
  color: #d03a6c;
}
.copy-results {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}
.variant-card {
  padding: 18px;
  background: #FFFCFA;
  border: 1px solid #E4DCD8;
  border-radius: 8px;
}
.variant-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #1C1416;
}
.variant-label,
.variant-cta,
.variant-note {
  font-size: 12px;
  color: #6F6568;
  margin: 0 0 8px;
}
.variant-card .btn {
  margin-top: 12px;
}
.ai-disclaimer {
  margin-top: 8px;
  font-size: 12px;
  color: #6F6568;
}
.crop-controls {
  margin: 20px 0 24px;
  max-width: 28em;
}
.slider-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #3A3234;
}
.slider-row input[type="range"] {
  width: 100%;
  max-width: 280px;
  accent-color: #E8467C;
}
.crop-grid {
  display: grid;
  gap: 24px;
  margin-top: 16px;
}
@media (min-width: 768px) {
  .crop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.crop-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #6F6568;
}
.crop-preview canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.crop-size {
  margin: 8px 0 12px;
  font-size: 12px;
  color: #6F6568;
}